















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















































1. A data engineering team ingests clickstream events into BigQuery. The source emits duplicate events during retries, and each event has a globally unique event_id. The team needs an analytical table that contains exactly one record per event while allowing late-arriving events. Which approach is MOST appropriate? A. Use INSERT statements exclusively and periodically delete duplicates B. Use a scheduled query that truncates and reloads the entire table daily C. Use a staging table and apply idempotent MERGE operations keyed by event_id D. Disable retries on the ingestion pipeline Rationale: A staging layer combined with an idempotent MERGE keyed by the event's unique identifier allows retries to be safely replayed without creating duplicate analytical records. It also supports late-arriving events without requiring a complete table rebuild.
2. A company stores several petabytes of historical event data in BigQuery. Queries frequently filter on customer_id and a timestamp range. The data is continuously appended and is rarely updated. Which table design is MOST appropriate? A. Cluster only by timestamp and avoid partitioning B. Partition by event date and cluster by customer_id C. Partition by customer_id and cluster by event date D. Use a single unpartitioned table with a search index Rationale: Time-based partitioning limits the amount of data scanned for temporal queries, while clustering by customer_id improves pruning within relevant partitions. Partitioning by a high-cardinality customer identifier is generally inappropriate. 3. A BigQuery workload processes billions of rows every day. Analysts frequently run exploratory queries that accidentally scan entire historical tables. The organization wants to control unexpected query costs without preventing legitimate large queries. What should the data engineering team implement? A. Disable on-demand querying B. Create smaller permanent tables for every analyst C. Set maximum bytes billed limits and establish appropriate project-level query controls D. Convert all analytical tables to CSV files Rationale: Maximum bytes billed provides a guardrail against unexpectedly expensive queries. It allows legitimate
Rationale: Event time represents when the event actually occurred. Using event-time windows allows analytics to reflect business chronology rather than the potentially delayed time at which the pipeline processes each event.
6. A streaming Dataflow pipeline experiences occasional worker failures. The organization requires results to remain correct even when individual messages are retried. Which design principle is MOST important? A. Assume every message will be processed exactly once B. Store all intermediate results permanently on local worker disks C. Design processing and sinks to tolerate retries and use appropriate deduplication or transactional semantics D. Disable autoscaling Rationale: Distributed streaming systems can retry work after failures. Correctness therefore requires idempotent processing, deterministic transformations, deduplication where necessary, or sink semantics that prevent duplicate effects. 7. A company wants to expose curated customer data from BigQuery to analysts while preventing them from viewing sensitive columns such as national identification numbers. Analysts should still be able to query the same table. What is the MOST appropriate solution?
A. Create a separate BigQuery project for every analyst B. Encrypt the sensitive columns with a key unavailable to BigQuery C. Use BigQuery column-level access controls such as policy tags D. Store the sensitive columns in a spreadsheet Rationale: BigQuery policy tags can be used with column-level security to restrict access to sensitive fields while allowing authorized users to query the broader dataset.
8. A data warehouse contains customer information that must be retained for seven years. Regulations require that historical records cannot be modified or deleted during the retention period. Which architectural approach BEST supports this requirement? A. Give analysts write access to the production tables B. Use appropriate immutable or retention-controlled storage and restrict modification permissions C. Export the data to local laptops D. Rely exclusively on application-level passwords Rationale: Regulatory retention requirements require both appropriate storage controls and strict access management. Preventing unauthorized modification or deletion is more reliable when enforced through storage and IAM controls rather than application conventions alone.
load on the operational system compared with repeated full exports and enables fresher analytical data.
11. A BigQuery table receives daily data loads. Queries overwhelmingly filter on region and transaction_date, with transaction_date being the primary restriction. Which design is MOST likely to improve query efficiency? A. Cluster by a random UUID B. Partition by transaction_date and cluster by region C. Partition by region and cluster by UUID D. Avoid partitioning because BigQuery automatically scans only matching rows Rationale: Partitioning on the frequently filtered date enables partition pruning. Clustering by region can then improve block-level pruning within the selected partitions. 12. A Dataflow streaming pipeline has increasing backlog because input traffic has grown substantially. Workers are CPU-constrained. The pipeline is configured with autoscaling. What should engineers investigate FIRST? A. Disable autoscaling immediately B. Increase Pub/Sub message retention indefinitely C. Verify autoscaling behavior and determine whether worker resources or pipeline parallelism are limiting throughput D. Convert all streaming data to CSV
Rationale: A growing backlog indicates that processing throughput is insufficient relative to input. Engineers should inspect worker utilization, autoscaling behavior, parallelism, hot keys, and other pipeline bottlenecks before selecting a remediation.
13. A BigQuery query joins a very large fact table with a relatively small dimension table. The dimension data changes infrequently. Which technique can reduce repeated processing of the dimension data? A. Export the dimension table to a local machine B. Use an appropriate denormalized or optimized table design and leverage BigQuery's query optimization capabilities C. Perform the join in a spreadsheet D. Copy the fact table into Cloud SQL Rationale: BigQuery is optimized for analytical workloads, and appropriate table design can reduce expensive repeated joins. Depending on access patterns, denormalization can eliminate unnecessary joins and improve analytical performance. 14. A company wants to train a machine-learning model using customer data stored in BigQuery. The model should be periodically retrained using newly available records. The team wants to minimize data movement and keep feature
tables, rows, or columns. Combining these controls provides defense in depth.
16. A streaming pipeline groups events by customer_id. One customer generates millions of events while most customers generate very few. The pipeline develops severe processing imbalance. What is the MOST likely cause? A. Excessive Cloud Storage capacity B. A hot key causing uneven work distribution C. Excessive BigQuery partition expiration D. Insufficient SQL syntax validation Rationale: A disproportionately active key can concentrate work on a limited number of processing partitions or workers. This hot-key condition can create skew and reduce overall pipeline throughput. 17. A data engineering team needs to validate that a daily ingestion job has not introduced unexpected nulls, duplicate identifiers, or invalid ranges. Where should these checks be implemented? A. Only after analysts discover incorrect reports B. Only in the visualization layer C. As automated data-quality checks within the ingestion or transformation pipeline D. In individual analysts' notebooks
Rationale: Automated quality checks placed within the pipeline detect problems as close as possible to their source. This prevents invalid data from silently propagating into downstream systems.
18. A BigQuery dataset contains a large historical table. Users frequently query only recent data, while historical data is retained for compliance. Which feature can automatically remove data after a defined period when policy permits deletion? A. Clustering B. Materialized views C. Partition expiration D. Query caching Rationale: Partition expiration allows partitions to be automatically removed after a configured retention period. This is useful when data-retention policies permit automatic deletion of older data. 19. A company has a batch pipeline that processes thousands of independent files. Each file can be processed independently, and the team wants the pipeline to scale automatically as the number of files increases. Which processing model is MOST appropriate? A. A single-threaded application on one VM B. A distributed parallel processing pipeline such as Dataflow
A. Processing-time windows with no lateness handling B. Event-time windowing with appropriate watermarks and allowed lateness C. Daily batch aggregation D. A five-minute VM cron schedule Rationale: Event-time windows ensure that transactions are grouped according to their actual occurrence time. Watermarks and allowed lateness allow the pipeline to account for delayed events while controlling how long it waits for additional data.
22. A BigQuery workload repeatedly scans a large table but returns only a few columns. The query currently uses SELECT *. What change can directly reduce the amount of data read? A. Add more columns to the query B. Select only the columns required by the analysis C. Convert the table to an unpartitioned table D. Disable query caching Rationale: BigQuery is columnar, so selecting only required columns can reduce the amount of data read. Avoiding SELECT * is therefore an important query-optimization practice when wide tables are involved. 23. A data engineering team needs to build a reliable production pipeline with development, testing, and production environments. They want to prevent accidental
production changes while maintaining repeatable deployments. Which practice is MOST appropriate? A. Allow every developer direct production editing privileges B. Use separate environments, controlled IAM permissions, automated testing, and repeatable deployment processes C. Test only after production deployment D. Maintain production configuration only in personal notes Rationale: Environment separation reduces accidental production impact, while automated testing and controlled deployments improve reproducibility. Least-privilege IAM further limits unauthorized changes.
24. A company receives sensitive customer data through a streaming ingestion pipeline. Security policy requires encryption in transit and at rest, centralized access management, and auditability of data access. Which approach BEST satisfies these requirements? A. Store all incoming data in publicly readable buckets B. Use encrypted managed services, IAM-based access controls, and appropriate audit logging C. Encrypt only the final dashboard D. Store credentials directly in application source code Rationale: Managed Google Cloud services provide encryption capabilities, while IAM controls authorization and audit logging provides visibility into relevant administrative and data-access activity. Credentials should also be managed securely rather than embedded in source code.
design choice is MOST appropriate to improve filtering efficiency? A. Add a second partitioning column for customer_id B. Cluster the table by customer_id C. Convert the table to an external CSV table D. Disable partition pruning Rationale: BigQuery tables support partitioning and clustering together. Since the table is already partitioned by date and customer_id is frequently used as a filter, clustering can improve block pruning within the relevant partitions. BigQuery does not support arbitrary multi-column partitioning in the manner described in option A.
27. A streaming Dataflow pipeline aggregates website activity in five-minute windows. The source occasionally delivers events 10 minutes late. The business wants those late events incorporated into the appropriate five-minute window whenever possible. Which configuration is MOST relevant? A. Increase worker disk size B. Disable watermarks C. Configure allowed lateness and use event-time windowing D. Replace Pub/Sub with Cloud Storage Rationale: Event-time windowing assigns events according to their event timestamps rather than arrival time. Allowed lateness specifies how long the pipeline can continue
accepting late data for a window after the watermark has advanced.
28. A data engineering team wants to ensure that only authorized users can access a BigQuery dataset. Developers should be able to create tables but should not be able to modify IAM policies. Which principle should guide the access design? A. Grant project Owner to all developers B. Grant broad permissions and monitor misuse afterward C. Apply least privilege using appropriate IAM roles D. Give developers Service Usage Admin only Rationale: Least privilege means granting only the permissions required for a user's responsibilities. Developers can receive data-management permissions without receiving administrative permissions such as changing IAM policies. 29. A company has a 10 TB BigQuery table. A query filters on a partitioning column but wraps that column in a function that prevents effective partition pruning. What is the likely consequence? A. The query will automatically scan only one row B. More partitions may be scanned than necessary C. The table will automatically become clustered D. BigQuery will permanently delete unused partitions
A. Query the database synchronously for every event B. Use an appropriate side-input or periodically refreshed reference-data mechanism C. Increase the number of SQL columns D. Disable parallel processing Rationale: Small reference datasets can often be distributed to workers using side-input mechanisms or another suitable cached/reference-data architecture. This avoids performing a remote lookup for every individual event.
32. A BigQuery table contains customer records. A compliance team requires users to see only rows belonging to their assigned geographic region. Which BigQuery capability is specifically designed for this type of restriction? A. Table partitioning B. Clustering C. Row-level access policies D. Query result caching Rationale: Row-level security can restrict which rows users are permitted to access based on identities or authorization conditions. Partitioning and clustering affect physical organization and query performance rather than authorization. 33. A data pipeline needs to process a large collection of historical files once, transform them, and load the results into
BigQuery. There is no requirement for real-time processing. Which architecture is MOST appropriate? A. A continuously running streaming pipeline B. A batch processing pipeline C. Pub/Sub push notifications for every record D. A real-time event-time window Rationale: Batch processing is appropriate when data is bounded and immediate processing is unnecessary. It can efficiently process large historical datasets without the operational complexity of maintaining a continuously running streaming pipeline.
34. A BigQuery table is frequently queried using a complex aggregation. The underlying data changes periodically rather than continuously. Analysts repeatedly execute similar queries. Which feature can potentially improve performance by storing precomputed results? A. IAM conditions B. Cloud Storage object versioning C. Materialized views D. Pub/Sub ordering keys Rationale: Materialized views maintain precomputed results for supported query patterns. When applicable, BigQuery can use those results instead of recomputing the full aggregation from the underlying data.