CertKeen

Google Cloud Professional Data Engineer · Free practice question 9 of 12

Integer-range partitioning on an ID

Queries on a BigQuery table at Garside Telecom almost always filter on account_id, an integer between 1 and 4,000,000, and the table has no useful date column. The team wants to prune data by account ranges. Which table design allows this?

  1. A.Ingestion-time partitioning with daily granularity
  2. B.Time-unit column partitioning on account_id
  3. C.Creating a separate table for each account
  4. D.Integer-range partitioning on account_id with a start, end and interval
Show answer and explanation

Correct answer: D. Integer-range partitioning on account_id with a start, end and interval

Why: Integer-range partitioning splits a table on an INTEGER column using a start, end and interval, so filters on account_id prune whole partitions. Ingestion time has nothing to do with account_id, and time-unit partitioning requires a DATE, TIMESTAMP or DATETIME column. A table per account would mean millions of tables.

More free Google Cloud Professional Data Engineer questions