About this exam
A professional-level Google Cloud certification that validates the ability to design, build and operate systems that collect, transform and publish data so it can drive decisions. It covers designing data processing systems, ingesting and processing data, storing data, preparing data for analysis, and maintaining and automating data workloads, with attention to security, reliability and cost.
Try a sample question
This is an original sample question written by itmoshi based on the exam objectives.
You are creating a BigQuery table named events for web activity logs. Each row has an event time event_ts (TIMESTAMP) and a customer_id, and logs can arrive up to 3 days late. The requirements are: (1) queries filtering on an event_ts range read only the relevant days; (2) when a selective customer_id filter is added, BigQuery can skip storage blocks that cannot match; (3) data more than 400 days past its event date is deleted automatically; (4) the data is managed as a single standard table. Which table design is most appropriate?
- APartition daily by ingestion time (_PARTITIONTIME) and cluster by customer_id
- BDo not partition; cluster by event_ts and customer_id and set a 400-day table expiration
- CSplit the data into date-sharded tables named events_YYYYMMDD and query them with a wildcard table
- DPartition daily on the event_ts column, cluster by customer_id and set a 400-day partition expiration
Show answer and explanation
Answer:D Partition on the event-time column, cluster on the filter column, and use partition expiration to drop old data.
Why it is correct
With daily partitions on event_ts, late-arriving logs still land in the partition for their event date, and queries filtering on event_ts read only the matching partitions (requirement 1). Clustering on customer_id stores data sorted by that column, so a selective filter lets BigQuery skip blocks that cannot match (requirement 2; how much is saved depends on data size and the filter). Partition expiration removes the oldest event-date partitions, meeting requirement 3, and everything stays in one partitioned table (requirement 4).
The other options
- ✗ A With ingestion-time partitioning, late logs land in the partition for the day they arrived, so event_ts filters cannot prune partitions (requirement 1 fails), and expiration is based on ingestion date rather than event date. Use it for data that has no event-time column but still needs daily management.
- ✗ B Clustering alone can also skip blocks, but table expiration deletes the entire table; it cannot remove only old rows (requirement 3 fails). It is meant for cleaning up temporary working tables automatically.
- ✗ C Splitting into one table per day violates requirement 4. Each shard carries its own metadata, permissions and schema, which adds overhead, and BigQuery recommends partitioned tables instead. It is mostly worth knowing for reading existing sharded tables.
Key takeaway
BigQuery table design in short: filtering and expiring by date or time → partitioning (on the event-time column when there is one); filtering on other columns → clustering; automatic deletion of old data → partition expiration (table expiration drops the whole table); prefer partitioning over date sharding.
Try 34 questions like this for free
itmoshi is an unofficial study service and is not affiliated with Google Cloud or any exam provider.