What are BigQuery's key data types, and how does choosing the right type affect storage, performance and cost?

Quick Overview

Asks which data types BigQuery supports and how the choice of type changes storage size, query speed and cost. Tests whether you can connect logical byte sizes, partitioning and nested types to what a columnar warehouse bills for.

What are BigQuery's key data types, and how does choosing the right type affect storage, performance and cost?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: easy

Interview Round: Other

What are the key data types supported by BigQuery, and how might choosing the right data type impact storage, performance, and cost? ```hint Count the bytes BigQuery's on-demand pricing is based on the bytes in the columns a query reads. Compare how many bytes the same value takes in different types, then think about what else a type enables or blocks, such as partitioning and correct comparisons. ``` ### What a Strong Answer Covers - The main scalar types and complex types, and when each one fits. - How type choice changes the bytes stored and scanned, with at least one concrete size comparison. - What native types enable beyond size: partitioning, pruning, correct ordering and exact arithmetic. - How nested types change the data model, and the trade-offs that come with them. ### Follow-up Questions - Why is `FLOAT64` a poor choice for monetary amounts, and what would you use? - What is the difference between `TIMESTAMP` and `DATETIME`, and when does it matter? - When would you model order line items as an `ARRAY` of `STRUCT` in the orders table, and what do you give up? - Does type choice still affect the bill under capacity-based pricing?

Overview: Asks which data types BigQuery supports and how the choice of type changes storage size, query speed and cost. Tests whether you can connect logical byte sizes, partitioning and nested types to what a columnar warehouse bills for.

General logo
General
Nov 24, 2026
easyData ScientistOtherData Manipulation (SQL/Python)
0
0

What are the key data types supported by BigQuery, and how might choosing the right data type impact storage, performance, and cost?

What a Strong Answer Covers Guidance

  • The main scalar types and complex types, and when each one fits.
  • How type choice changes the bytes stored and scanned, with at least one concrete size comparison.
  • What native types enable beyond size: partitioning, pruning, correct ordering and exact arithmetic.
  • How nested types change the data model, and the trade-offs that come with them.

Follow-up Questions Guidance

  • Why is FLOAT64 a poor choice for monetary amounts, and what would you use?
  • What is the difference between TIMESTAMP and DATETIME , and when does it matter?
  • When would you model order line items as an ARRAY of STRUCT in the orders table, and what do you give up?
  • Does type choice still affect the bill under capacity-based pricing?