Intrigued by the art of cloud architecture? Discover how to design, develop, and manage robust, secure, scalable, and dynamic solutions on Google Cloud as you prepare for the Professional Cloud Architect exam!
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
A data architect is configuring an automated pipeline to ingest daily e-commerce order records stored as newline-delimited JSON files in Cloud Storage into BigQuery. The implementation must meet the following operational requirements:
retail_dw.orders must be partitioned daily on an existing order_timestamp column.WHERE clause to avoid costly accidental full-table scans.RECORD fields.Which bq command-line invocation correctly configures the table parameters and loads the files?
bq load command isThe bq load command in the Google Cloud SDK creates a BigQuery load job that ingests data from external sources (such as Cloud Storage) into a destination table while simultaneously establishing table properties, schemas, and performance configurations.
--time_partitioning_field order_timestamp and --time_partitioning_type DAY configures the destination table to partition data by day according to values in the order_timestamp column rather than table ingestion time.--time_partitioning_expiration 7776000 defines a partition time-to-live of exactly 90 days in seconds, automatically deleting stale partitions and eliminating unnecessary storage charges.--require_partition_filter enforces mandatory partition filtering on all downstream queries, preventing analysts and BI tools from incurring high scanning costs from unintentional full-table scans../order_schema.json schema file allows BigQuery to apply explicit data types, RECORD (STRUCT) elements, and field modes (NULLABLE or REQUIRED).NEWLINE_DELIMITED_JSON formatted files directly from Cloud Storage bucket wildcards.This approach configures all data governance, performance tuning, and lifecycle parameters at the point of ingestion using standard, supported bq CLI flags without requiring multi-step DDL execution or external orchestration tools.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.