Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Google Cloud Certified Professional Data Engineer Professional-Data-Engineer Exam Questions

Last updated: · 11 practice questions with answers and explanations

Page: 1 / 27 Total 401 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Designing data processing systems

Skill tested: Designs regional data governance and access boundaries for regulated BigQuery datasets.

A healthcare analytics team must store identifiable patient records only in the EU and allow analysts to query them from approved workloads. The organization already has separate development and production projects, and a central security team manages organization policies. Analysts must not receive broad project-level access, and the team must prevent accidental creation of datasets in other regions. Which design best meets these requirements?

Correct Answer: A. Create EU-location datasets in the production project, grant analysts BigQuery Data Viewer on those datasets, and enforce the permitted resource locations with an organization policy.
Explanation:

EU-location BigQuery datasets keep the stored data in the required region, while an organization policy restricting resource locations helps prevent accidental dataset creation elsewhere. Dataset-level BigQuery Data Viewer grants read access without giving analysts broad project permissions; workload identities can be granted only the additional permissions their jobs require. A customer-managed key does not make US-resident data EU-resident. Project-level BigQuery Admin is excessive and audit logs do not prevent a violation. External tables do not solve the regional requirement if the BigQuery dataset or query processing is located in the US.

Question 2

New Single answer

Topic: Designing data processing systems

Skill tested: Selects an atomic BigQuery publication pattern that prevents consumers from seeing partial loads.

A retailer replaces a daily BigQuery reporting table with a complete snapshot. The incoming file is loaded and validated in a staging table; downstream dashboards must continue seeing the previous snapshot until the new one is fully ready. The publication must not expose a period when the reporting table is empty or partially populated. Which action should the pipeline take after validation succeeds?

Correct Answer: C. Run a single CREATE OR REPLACE TABLE statement that selects the validated snapshot from staging.
Explanation:

A single CREATE OR REPLACE TABLE operation publishes the replacement table as one BigQuery DDL operation, avoiding the visible gap created by a truncate followed by a separate insert. Appending and later deleting can expose duplicated or stale data between jobs. A multi-statement transaction can provide atomicity for supported DML operations, but the proposed delete-and-insert approach is unnecessary for replacing an entire snapshot and may be subject to transaction constraints. Staging and validation remain important because replacement should occur only after the incoming snapshot is known to be complete and correct.

Question 3

New Multiple answers

Topic: Designing data processing systems

Skill tested: Chooses Beam windowing and deduplication strategies for late, retried streaming events.

A subscription service receives purchase events through Pub/Sub and processes them with a streaming Dataflow pipeline. Event timestamps come from devices, so events can arrive up to 20 minutes late. Pub/Sub redelivery can also produce duplicate event IDs. Finance needs hourly totals that include events arriving within the allowed delay, while the pipeline must not count a redelivered purchase twice. Select TWO actions that best satisfy these requirements. Select 2 answers.

Correct Answer: B. Assign event time from the event timestamp and use fixed one-hour windows with an allowed lateness of at least 20 minutes.; C. Deduplicate using the purchase event ID in a stateful Beam transform whose state is scoped to the relevant window and retained for the required lateness period.
Explanation:

Event-time windows align hourly aggregation with the time purchases occurred, and allowed lateness gives the pipeline an opportunity to incorporate events that arrive within the stated 20-minute bound. Deduplication by a stable event ID handles redeliveries; state retention and window scope must cover the period during which duplicates or late data can affect results. Processing-time windows misclassify delayed events, and zero lateness discards them. Extending an acknowledgment deadline does not guarantee exactly-once delivery. A global window does not meet the hourly reporting requirement.

Question 4

New Single answer

Topic: Ingesting and processing the data

Skill tested: Designs a scalable Pub/Sub-to-Dataflow streaming pipeline with event-time correctness.

An IoT provider sends telemetry continuously to Pub/Sub. A Dataflow pipeline must calculate five-minute device metrics based on event timestamps, even when records arrive several minutes late. Traffic varies sharply, and operations wants a managed service that can scale workers without maintaining a cluster. The raw event stream must also remain available for replay if transformation logic changes. Which architecture is most appropriate?

Correct Answer: D. Use a streaming Dataflow job with event-time fixed windows and allowed lateness, while retaining a durable raw copy in Cloud Storage or BigQuery for replay.
Explanation:

Dataflow is a managed stream-processing service that can scale workers and apply Beam event-time windows with allowed lateness, preserving correct five-minute metric boundaries despite delayed arrival. Keeping a durable raw copy supports replay and reprocessing when transformation logic changes; Pub/Sub retention alone may not meet long-term replay needs. Scheduled querying is not a sound way to process a continuous subscription. Cloud SQL is not an appropriate high-volume telemetry landing store here, and a manually operated Dataproc cluster adds operational burden while arrival-time aggregation fails the event-time requirement.

Question 5

New Single answer

Topic: Ingesting and processing the data

Skill tested: Chooses the right orchestration service for dependency-aware recurring data pipelines.

A data engineering team has a nightly workflow that waits for several independent BigQuery loads, runs Dataflow transformations, performs validation queries, and publishes tables only if all checks pass. The workflow needs retries, execution history, dependency management, and a centrally scheduled DAG. The team has no requirement to maintain a general-purpose workflow server. Which approach is the best fit?

Correct Answer: C. Create a Cloud Composer DAG that models dependencies and retries, and use operators or tasks to invoke the managed services.
Explanation:

Cloud Composer provides managed Apache Airflow orchestration for dependency-aware DAGs, retries, scheduling, and execution history. It can invoke BigQuery and Dataflow operations while ensuring validation gates publication. Cloud Scheduler can trigger a job but does not by itself model this workflow's dependencies and conditional progression. BigQuery scheduled queries execute SQL rather than orchestrate a mixed-service workflow. Starting later stages from individual Dataflow workers is not a reliable orchestration mechanism because worker execution and bundle processing are distributed and can be retried.

Question 6

New Multiple answers

Topic: Storing the data

Skill tested: Matches BigQuery partitioning and clustering design to query filters and cost controls.

A media company stores several years of event data in a BigQuery table. Most analyst queries filter on an event date range and then restrict results to one or a few customer IDs. Data is appended daily, and analysts should incur lower scan costs for typical queries. The table is large enough that partition pruning is valuable. Select TWO table design choices that best match the access pattern. Select 2 answers.

Correct Answer: A. Partition the table by the event date column used in the date-range filters.; C. Cluster the table by customer ID so filtering by customer can reduce scanned blocks within selected partitions.
Explanation:

Partitioning by the commonly filtered event date allows BigQuery to prune partitions for bounded date-range queries. Clustering by customer ID can improve block pruning within those partitions when analysts filter on a small set of customers. Partitioning by a high-cardinality customer identifier is generally a poor fit and undermines efficient date-range selection. Per-customer tables create an unmanageable sharded design and complicate queries. LIMIT restricts returned rows, not necessarily the amount of data scanned, so it is not a substitute for partitioning or clustering.

Question 7

New Single answer

Topic: Storing the data

Skill tested: Selects BigQuery reservation capacity appropriate for predictable business-critical workloads.

A finance organization has a predictable daily reporting window in which a set of production BigQuery queries must have dedicated compute capacity. Ad hoc analyst workloads should remain isolated so they cannot consume that production capacity. The organization wants to manage capacity as a pool and assign workloads by project or other supported assignment scope. Which approach best meets the requirement?

Correct Answer: B. Create a BigQuery reservation and assignment for the production workload, leaving ad hoc workloads on a separate assignment or on-demand capacity as appropriate.
Explanation:

BigQuery reservations provide managed capacity that can be allocated through assignments, allowing production workloads to use capacity separately from ad hoc workloads. This directly addresses the need for a controlled capacity pool and workload isolation. A bytes-billed limit controls query scan cost, not dedicated compute availability. Concurrency settings and labels do not create isolated capacity or guarantee priority. Scheduling queries earlier also does not reserve resources; other workloads can still compete for available capacity.

Question 8

New Single answer

Topic: Preparing and using data for analysis

Skill tested: Improves dashboard query performance with BigQuery materialized views and BI Engine.

Executives use a dashboard that repeatedly aggregates a very large fact table into the same daily metrics by region. The dashboard is latency-sensitive, the underlying table changes through regular appends, and the team wants to reduce repeated computation without maintaining a separate manual refresh pipeline. The report can tolerate the supported limitations of precomputed results but must reflect source changes according to BigQuery's materialized-view behavior. What should the team implement?

Correct Answer: C. Create a BigQuery materialized view for the supported aggregation and use BI Engine to accelerate eligible dashboard queries.
Explanation:

A materialized view can precompute supported aggregations and BigQuery maintains it according to its materialized-view semantics as base data changes. BI Engine can accelerate eligible interactive queries, making the combination suitable for low-latency dashboard use. A logical view stores a query definition rather than permanently persisting its results. Exporting the whole fact table adds latency and does not target the repeated aggregation. Rebuilding a table after every dashboard request creates unnecessary work and does not provide an efficient serving design.

Question 9

New Multiple answers

Topic: Preparing and using data for analysis

Skill tested: Applies least-privilege BigQuery sharing through Analytics Hub listings and linked datasets.

A data provider wants to offer a curated BigQuery dataset to several external organizations through a managed discovery and sharing experience. Consumers should be able to query the shared data in their own projects without the provider copying a separate dataset for each consumer. The provider must retain control over the source dataset and avoid granting consumers access to unrelated project resources. Select TWO actions that best fit. Select 2 answers.

Correct Answer: A. Publish an Analytics Hub listing for the curated dataset and configure the listing's access and exchange controls.; E. Have each consumer create a linked dataset from the listing in its own project and query that shared data there.
Explanation:

Analytics Hub supports publishing governed BigQuery data through listings, with exchange and access controls managed by the provider. Consumers can subscribe by creating a linked dataset in their own project, enabling queries without the provider maintaining a separate full copy for each consumer. Project-level BigQuery Admin is far broader than necessary and exposes unrelated resources. A public bucket and signed URLs are not the managed BigQuery sharing experience and introduce unnecessary export and access risks. Manually copying data increases duplication and operational burden.

Question 10

New Single answer

Topic: Maintaining and automating data workloads

Skill tested: Diagnoses and reduces BigQuery scan costs using job metadata and partition filters.

A team's BigQuery bill rises sharply after analysts adopt a new dashboard. The tables are partitioned by transaction date, but the dashboard's SQL wraps that column in a transformation and scans a much wider time range than users select. The organization wants to identify the expensive jobs and correct the underlying query pattern, not merely cap spending or increase capacity. What should the data engineer do first?

Correct Answer: A. Use BigQuery job metadata and query plans to identify high-bytes-processed dashboard jobs, then rewrite filters to enable partition pruning.
Explanation:

BigQuery job metadata exposes information such as bytes processed, and query plans help identify costly dashboard statements. Rewriting predicates so they directly constrain the partitioning column allows partition pruning and addresses the cause of excessive scanning. More reservation capacity may improve throughput but does not reduce bytes scanned or correct inefficient SQL. A maximum-bytes-billed limit can fail legitimate queries without resolving the dashboard design. Removing partitioning would generally increase scanning rather than solve it.

Question 11

New Single answer

Topic: Maintaining and automating data workloads

Skill tested: Uses Cloud Monitoring and Logging to troubleshoot Dataflow failures and alert on pipeline health.

A production Dataflow streaming job intermittently stops making progress after a new release. Operators currently learn about failures from users, and a restart often clears the symptom without revealing the cause. The team needs to detect stalled or failed jobs promptly and diagnose worker-level errors while preserving the managed Dataflow service model. Which operational change is most appropriate?

Correct Answer: B. Use Cloud Monitoring metrics and alerts for Dataflow job health and throughput, and inspect Cloud Logging worker and job logs when alerts fire.
Explanation:

Cloud Monitoring can alert on Dataflow job state and relevant throughput or backlog indicators, while Cloud Logging provides job and worker logs needed to investigate errors after a release. This gives operators both timely detection and diagnostic evidence. Pub/Sub retention supports recovery but does not indicate whether a pipeline is healthy. Running duplicate pipelines adds cost and may duplicate side effects without explaining the failure. Fixed sleeps do not address the cause and can reduce throughput or increase latency.