Google Professional Data Engineer Practice Test 56
Question 550
A Google Cloud architecture review finds: A data lake ingestion job repeatedly misses one daily source partition yet storage dashboards show only total object count. Which principle BEST explains the underlying data-engineering risk?
- Lake operational monitoring needs partition completeness and business-level freshness signals.
- Data lake ingestion benefits from schema contracts, validation, and curated layers.
- A useful data lake needs catalog metadata and lifecycle governance, not only cheap object storage.
- Lake query performance depends on file sizing, layout, and processing format, not only total bytes.
Explanation
Correct Answer
A:Lake operational monitoring needs partition completeness and business-level freshness signals. This principle identifies the relevant workload or governance requirement. The engineer should first examine: Inspect expected partition manifests, arrival timestamps, pipeline logs, and object inventories. A focused corrective action is: Implement per-source completeness checks with actionable missing-partition alerts.
Incorrect Answers
B:Data lake ingestion benefits from schema contracts, validation, and curated layers. This addresses a different situation: Multiple departments publish raw JSON to a shared lake with inconsistent field definitions that break downstream reusable tables. The current scenario instead calls for the more directly applicable principle: Lake operational monitoring needs partition completeness and business-level freshness signals. The reason is that lake operational monitoring needs partition completeness and business-level freshness signals.
C:A useful data lake needs catalog metadata and lifecycle governance, not only cheap object storage. This addresses a different situation: Researchers place thousands of raw objects in a data lake and cannot identify schemas, ownership, or classification. The current scenario instead calls for the more directly applicable principle: Lake operational monitoring needs partition completeness and business-level freshness signals. The reason is that lake operational monitoring needs partition completeness and business-level freshness signals.
D:Lake query performance depends on file sizing, layout, and processing format, not only total bytes. This addresses a different situation: A Spark job writes millions of tiny Parquet objects, causing large listing overhead and poor query performance across the lake. The current scenario instead calls for the more directly applicable principle: Lake operational monitoring needs partition completeness and business-level freshness signals. The reason is that lake operational monitoring needs partition completeness and business-level freshness signals.
Question 551
A Google Cloud architecture review finds: An analytics team uses LLM-generated BigQuery SQL and executes it immediately against production tables with write privileges. Which principle BEST explains the underlying data-engineering risk?
- Recovery objectives should drive resilient data placement, backups, and executable failover procedures.
- Data fidelity depends on business-time semantics and conflict-resolution rules rather than arrival order alone.
- Generated SQL needs explicit validation, permission boundaries, and review before modifying governed data.
- Stateful stream reliability depends on supported checkpoint or snapshot recovery and sink semantics.
Explanation
Correct Answer
C:Generated SQL needs explicit validation, permission boundaries, and review before modifying governed data. This principle identifies the relevant workload or governance requirement. The engineer should first examine: Inspect proposed SQL statements, query plans, target datasets, write permissions, and test results. A focused corrective action is: Require human-reviewed read-only dry runs and approved execution boundaries for generated queries.
Incorrect Answers
A:Recovery objectives should drive resilient data placement, backups, and executable failover procedures. This addresses a different situation: A regional processing failure stops daily regulatory datasets because all staging, computation, and recovery copies reside in one failure domain. The current scenario instead calls for the more directly applicable principle: Generated SQL needs explicit validation, permission boundaries, and review before modifying governed data. The reason is that generated SQL needs explicit validation, permission boundaries, and review before modifying governed data.
B:Data fidelity depends on business-time semantics and conflict-resolution rules rather than arrival order alone. This addresses a different situation: A reporting table is updated from multiple partners, and records arriving days late overwrite newer authoritative versions. The current scenario instead calls for the more directly applicable principle: Generated SQL needs explicit validation, permission boundaries, and review before modifying governed data. The reason is that generated SQL needs explicit validation, permission boundaries, and review before modifying governed data.
D:Stateful stream reliability depends on supported checkpoint or snapshot recovery and sink semantics. This addresses a different situation: A six-hour streaming Dataflow job is relaunched after worker failure and loses uncommitted state when operators create a new pipeline without recovery planning. The current scenario instead calls for the more directly applicable principle: Generated SQL needs explicit validation, permission boundaries, and review before modifying governed data. The reason is that generated SQL needs explicit validation, permission boundaries, and review before modifying governed data.
Question 552
A Google Cloud data engineer is addressing: A six-hour streaming Dataflow job is relaunched after worker failure and loses uncommitted state when operators create a new pipeline without recovery planning. Which TWO complementary actions should the team take? Select TWO answers.
- Review Dataform dependency definitions, execution timestamps, assertions, and SQL references.
- Inspect Pub/Sub message identifiers, producer event IDs, write keys, and duplicate metrics.
- Inspect job state, checkpoints, replay source retention, watermarks, and sink write behavior.
- Require human-reviewed read-only dry runs and approved execution boundaries for generated queries.
- Use supported Dataflow recovery and replay procedures with independently verified sink idempotency.
Explanation
Correct Answers
C:Inspect job state, checkpoints, replay source retention, watermarks, and sink write behavior. This is the applicable diagnostic investigation. Its complementary step is: Use supported Dataflow recovery and replay procedures with independently verified sink idempotency. Together they address: Stateful stream reliability depends on supported checkpoint or snapshot recovery and sink semantics.
E:Use supported Dataflow recovery and replay procedures with independently verified sink idempotency. This is the applicable controlled engineering response. Its complementary step is: Inspect job state, checkpoints, replay source retention, watermarks, and sink write behavior. Together they address: Stateful stream reliability depends on supported checkpoint or snapshot recovery and sink semantics.
Incorrect Answers
A:Review Dataform dependency definitions, execution timestamps, assertions, and SQL references. This could be useful for another system: A Dataform pipeline materializes monthly revenue before its upstream exchange-rate table refresh completes. For this situation, the necessary paired decisions are to examine (Inspect job state, checkpoints, replay source retention, watermarks, and sink write behavior.) and to implement (Use supported Dataflow recovery and replay procedures with independently verified sink idempotency.).
B:Inspect Pub/Sub message identifiers, producer event IDs, write keys, and duplicate metrics. This could be useful for another system: A payments stream retries messages after transient failures, causing duplicate warehouse revenue rows during replay. For this situation, the necessary paired decisions are to examine (Inspect job state, checkpoints, replay source retention, watermarks, and sink write behavior.) and to implement (Use supported Dataflow recovery and replay procedures with independently verified sink idempotency.).
D:Require human-reviewed read-only dry runs and approved execution boundaries for generated queries. This could be useful for another system: An analytics team uses LLM-generated BigQuery SQL and executes it immediately against production tables with write privileges. For this situation, the necessary paired decisions are to examine (Inspect job state, checkpoints, replay source retention, watermarks, and sink write behavior.) and to implement (Use supported Dataflow recovery and replay procedures with independently verified sink idempotency.).
Question 553
After applying the change, the team re-examines this condition: Researchers place thousands of raw objects in a data lake and cannot identify schemas, ownership, or classification. Which result BEST verifies the improvement?
- A representative lake query improves read performance without losing or duplicating rows.
- The public researcher retrieves allowed files but cannot list or read restricted patient objects.
- Unused scratch output expires while legal records and required lineage artifacts remain intact.
- An authorized researcher finds the correct lake dataset and understands its ownership and sensitivity.
Explanation
Correct Answer
D:An authorized researcher finds the correct lake dataset and understands its ownership and sensitivity. This measures the intended corrected behavior rather than only confirming a setting. Implemented action: Register lake assets in Dataplex Catalog with curated metadata and governed discovery. A useful data lake needs catalog metadata and lifecycle governance, not only cheap object storage.
Incorrect Answers
A:A representative lake query improves read performance without losing or duplicating rows. This addresses a different situation: A Spark job writes millions of tiny Parquet objects, causing large listing overhead and poor query performance across the lake. The current scenario instead calls for the more directly applicable verification result: An authorized researcher finds the correct lake dataset and understands its ownership and sensitivity. The reason is that a useful data lake needs catalog metadata and lifecycle governance, not only cheap object storage.
B:The public researcher retrieves allowed files but cannot list or read restricted patient objects. This addresses a different situation: A research lake contains both public scientific data and restricted patient samples under one bucket with unrestricted reader roles. The current scenario instead calls for the more directly applicable verification result: An authorized researcher finds the correct lake dataset and understands its ownership and sensitivity. The reason is that a useful data lake needs catalog metadata and lifecycle governance, not only cheap object storage.
C:Unused scratch output expires while legal records and required lineage artifacts remain intact. This addresses a different situation: A lake accumulates experimental intermediate outputs that cost more than final retained datasets and lacks automated expiration. The current scenario instead calls for the more directly applicable verification result: An authorized researcher finds the correct lake dataset and understands its ownership and sensitivity. The reason is that a useful data lake needs catalog metadata and lifecycle governance, not only cheap object storage.
Question 554
Before modifying the data platform, the team observes: The same Dataflow template should run in staging and production but contains hardcoded staging bucket names and service-account references. Which evidence should the engineer examine FIRST?
- Inspect DAG tasks, task dependencies, partition sensors, and success criteria.
- Inspect Dataform repositories, release configurations, workflow invocations, and IAM scopes.
- Inspect scheduled-query owner, credential scope, destination permissions, and alert routing.
- Inspect template options, bucket identifiers, worker identities, and region restrictions.
Explanation
Correct Answer
D:Inspect template options, bucket identifiers, worker identities, and region restrictions. This evidence directly tests the uncertain part of the described system. Reusable deployment artifacts require versioned code plus environment-specific parameterization. A controlled response is: Publish a tested parameterized template with approved environment configuration.
Incorrect Answers
A:Inspect DAG tasks, task dependencies, partition sensors, and success criteria. This addresses a different situation: An Airflow DAG launches a billing aggregation before its source partition arrives, producing empty reports that appear successful. The current scenario instead calls for the more directly applicable investigation: Inspect template options, bucket identifiers, worker identities, and region restrictions. The reason is that reusable deployment artifacts require versioned code plus environment-specific parameterization.
B:Inspect Dataform repositories, release configurations, workflow invocations, and IAM scopes. This addresses a different situation: A team builds new SQL models in a development workspace but schedules them against production datasets using the same credentials. The current scenario instead calls for the more directly applicable investigation: Inspect template options, bucket identifiers, worker identities, and region restrictions. The reason is that reusable deployment artifacts require versioned code plus environment-specific parameterization.
C:Inspect scheduled-query owner, credential scope, destination permissions, and alert routing. This addresses a different situation: A recurring transformation runs under the credentials of a departed analyst and begins failing when the account is disabled. The current scenario instead calls for the more directly applicable investigation: Inspect template options, bucket identifiers, worker identities, and region restrictions. The reason is that reusable deployment artifacts require versioned code plus environment-specific parameterization.
Question 555
A Google Cloud architecture review finds: A media company keeps infrequently accessed raw video assets in standard storage for years and has no retention or retrieval policy. Which principle BEST explains the underlying data-engineering risk?
- A managed in-memory cache can reduce repeated reads but must not become the sole durable source of truth.
- Spanner supports distributed relational transactions with strong consistency, subject to schema and locality design.
- Object storage class and lifecycle choices should reflect access frequency, retrieval cost, and legal retention.
- Cloud SQL is a managed relational option for compatible transactional application workloads.
Explanation
Correct Answer
C:Object storage class and lifecycle choices should reflect access frequency, retrieval cost, and legal retention. This principle identifies the relevant workload or governance requirement. The engineer should first examine: Analyze object age, access logs, retrieval expectations, storage classes, and retention requirements. A focused corrective action is: Apply reviewed Cloud Storage lifecycle policies with an approved cold-tier or deletion strategy.
Incorrect Answers
A:A managed in-memory cache can reduce repeated reads but must not become the sole durable source of truth. This addresses a different situation: An ecommerce service repeatedly looks up the same short-lived inventory recommendations and overwhelms its primary datastore during traffic peaks. The current scenario instead calls for the more directly applicable principle: Object storage class and lifecycle choices should reflect access frequency, retrieval cost, and legal retention. The reason is that object storage class and lifecycle choices should reflect access frequency, retrieval cost, and legal retention.
B:Spanner supports distributed relational transactions with strong consistency, subject to schema and locality design. This addresses a different situation: A global order platform needs strongly consistent relational transactions across geographic users and plans to scale beyond a single traditional database instance. The current scenario instead calls for the more directly applicable principle: Object storage class and lifecycle choices should reflect access frequency, retrieval cost, and legal retention. The reason is that object storage class and lifecycle choices should reflect access frequency, retrieval cost, and legal retention.
D:Cloud SQL is a managed relational option for compatible transactional application workloads. This addresses a different situation: A small business runs a conventional PostgreSQL order service and needs managed backups and routine high availability without massive global horizontal write scale. The current scenario instead calls for the more directly applicable principle: Object storage class and lifecycle choices should reflect access frequency, retrieval cost, and legal retention. The reason is that object storage class and lifecycle choices should reflect access frequency, retrieval cost, and legal retention.
Question 556
Before modifying the data platform, the team observes: Two finance dashboards report different net revenue because they define discount treatment separately in handwritten SQL. Which evidence should the engineer examine FIRST?
- Review dashboard SQL, data sizes, cache applicability, reservation use, and latency profiles.
- Compare data model measures, discount logic, source lineage, and report SQL.
- Review query execution stages, joins, ORDER BY, LIMIT, and slot usage.
- Review metric grains, join keys, time zones, and calculated-field definitions.
Explanation
Correct Answer
B:Compare data model measures, discount logic, source lineage, and report SQL. This evidence directly tests the uncertain part of the described system. Central semantic definitions can prevent inconsistent business metrics across dashboards. A controlled response is: Define governed revenue measures in an appropriate reusable semantic model or certified view.
Incorrect Answers
A:Review dashboard SQL, data sizes, cache applicability, reservation use, and latency profiles. This addresses a different situation: A high-traffic operational dashboard executes recurring BigQuery aggregations and users complain about slow interactive response. The current scenario instead calls for the more directly applicable investigation: Compare data model measures, discount logic, source lineage, and report SQL. The reason is that central semantic definitions can prevent inconsistent business metrics across dashboards.
C:Review query execution stages, joins, ORDER BY, LIMIT, and slot usage. This addresses a different situation: An analytics query sorts a multi-terabyte table globally before returning 20 leaderboard entries, exhausting resources. The current scenario instead calls for the more directly applicable investigation: Compare data model measures, discount logic, source lineage, and report SQL. The reason is that central semantic definitions can prevent inconsistent business metrics across dashboards.
D:Review metric grains, join keys, time zones, and calculated-field definitions. This addresses a different situation: A sales dashboard adds hourly clicks to daily orders with a join on date only, producing inflated conversion rates. The current scenario instead calls for the more directly applicable investigation: Compare data model measures, discount logic, source lineage, and report SQL. The reason is that central semantic definitions can prevent inconsistent business metrics across dashboards.
Question 557
Before modifying the data platform, the team observes: A compliance team cannot determine which identity exported a restricted BigQuery customer table last week. Which evidence should the engineer examine FIRST?
- Check data classifications, policy tags, user groups, dataset roles, and sample SELECT permissions.
- Inspect effective org policies, project inheritance, exceptions, and historical resource creation.
- Review dataset and table encryption settings, Cloud KMS key permissions, key location, and rotation policy.
- Examine Cloud Audit Logs configuration, data access log coverage, export job history, and retention.
Explanation
Correct Answer
D:Examine Cloud Audit Logs configuration, data access log coverage, export job history, and retention. This evidence directly tests the uncertain part of the described system. Audit logging and appropriate retention provide traceability of privileged data access and exports. A controlled response is: Enable and retain required audit events with protected sinks and monitored access policies.
Incorrect Answers
A:Check data classifications, policy tags, user groups, dataset roles, and sample SELECT permissions. This addresses a different situation: Analysts may inspect product transactions but only a small fraud group may see a sensitive risk score in the same table. The current scenario instead calls for the more directly applicable investigation: Examine Cloud Audit Logs configuration, data access log coverage, export job history, and retention. The reason is that audit logging and appropriate retention provide traceability of privileged data access and exports.
B:Inspect effective org policies, project inheritance, exceptions, and historical resource creation. This addresses a different situation: Several developer projects can create external IP resources and unrestricted service-account keys even though the organization prohibits them. The current scenario instead calls for the more directly applicable investigation: Examine Cloud Audit Logs configuration, data access log coverage, export job history, and retention. The reason is that audit logging and appropriate retention provide traceability of privileged data access and exports.
C:Review dataset and table encryption settings, Cloud KMS key permissions, key location, and rotation policy. This addresses a different situation: A regulated finance team requires customer-managed keys for sensitive BigQuery tables and documented key revocation procedures. The current scenario instead calls for the more directly applicable investigation: Examine Cloud Audit Logs configuration, data access log coverage, export job history, and retention. The reason is that audit logging and appropriate retention provide traceability of privileged data access and exports.
Question 558
The data engineering team must correct this issue: A data platform expects future multi-cloud processing, but its transformation logic is buried in manual console operations with no versioned definitions. Which controlled engineering action is MOST appropriate?
- Design elastic ingestion and partitioned analytical storage with stable governed interfaces.
- Enforce registry or versioned schema compatibility checks before deploying producer changes.
- Define governed staging and curated data layers with controlled promotion checks.
- Separate portable transformation logic from provider-specific orchestration and version the deployment configuration.
Explanation
Correct Answer
D:Separate portable transformation logic from provider-specific orchestration and version the deployment configuration. This addresses the specific problem while respecting business and technical constraints. Validate it by checking: A representative transform can run in a second approved environment with predictable adjustments. Portable workflows benefit from declarative, version-controlled transformations and clear service boundaries.
Incorrect Answers
A:Design elastic ingestion and partitioned analytical storage with stable governed interfaces. This addresses a different situation: A pilot warehouse handles thousands of daily events but must support hundreds of millions without rewriting every consuming dashboard. The current scenario instead calls for the more directly applicable engineering action: Separate portable transformation logic from provider-specific orchestration and version the deployment configuration. The reason is that portable workflows benefit from declarative, version-controlled transformations and clear service boundaries.
B:Enforce registry or versioned schema compatibility checks before deploying producer changes. This addresses a different situation: Three applications produce events into a common stream, and one deploys a breaking field rename without notifying downstream consumers. The current scenario instead calls for the more directly applicable engineering action: Separate portable transformation logic from provider-specific orchestration and version the deployment configuration. The reason is that portable workflows benefit from declarative, version-controlled transformations and clear service boundaries.
C:Define governed staging and curated data layers with controlled promotion checks. This addresses a different situation: A company lands vendor extracts directly in curated datasets, making it impossible to distinguish unvalidated source values from approved metrics. The current scenario instead calls for the more directly applicable engineering action: Separate portable transformation logic from provider-specific orchestration and version the deployment configuration. The reason is that portable workflows benefit from declarative, version-controlled transformations and clear service boundaries.
Question 559
A Google Cloud data engineer is addressing: A PostgreSQL-compatible application has intensive operational transactions plus complex analytical queries and wants compatible managed performance options. Which TWO complementary actions should the team take? Select TWO answers.
- Benchmark a compatible AlloyDB deployment with appropriate read pools and operational design.
- Partition by the relevant date field and cluster on useful high-selectivity columns where appropriate.
- Review transaction isolation needs, region placement, query patterns, and write contention.
- Review object layout, table format, supported engines, and access-control model.
- Profile read/write characteristics, PostgreSQL extensions, query plans, and service constraints.
Explanation
Correct Answers
A:Benchmark a compatible AlloyDB deployment with appropriate read pools and operational design. This is the applicable controlled engineering response. Its complementary step is: Profile read/write characteristics, PostgreSQL extensions, query plans, and service constraints. Together they address: AlloyDB may suit demanding PostgreSQL-compatible operational workloads when measured capabilities and costs fit.
E:Profile read/write characteristics, PostgreSQL extensions, query plans, and service constraints. This is the applicable diagnostic investigation. Its complementary step is: Benchmark a compatible AlloyDB deployment with appropriate read pools and operational design. Together they address: AlloyDB may suit demanding PostgreSQL-compatible operational workloads when measured capabilities and costs fit.
Incorrect Answers
B:Partition by the relevant date field and cluster on useful high-selectivity columns where appropriate. This could be useful for another system: A warehouse stores years of events and most reports filter by event date and customer segment, but all queries scan the full table. For this situation, the necessary paired decisions are to examine (Profile read/write characteristics, PostgreSQL extensions, query plans, and service constraints.) and to implement (Benchmark a compatible AlloyDB deployment with appropriate read pools and operational design.).
C:Review transaction isolation needs, region placement, query patterns, and write contention. This could be useful for another system: A global order platform needs strongly consistent relational transactions across geographic users and plans to scale beyond a single traditional database instance. For this situation, the necessary paired decisions are to examine (Profile read/write characteristics, PostgreSQL extensions, query plans, and service constraints.) and to implement (Benchmark a compatible AlloyDB deployment with appropriate read pools and operational design.).
D:Review object layout, table format, supported engines, and access-control model. This could be useful for another system: A lakehouse platform keeps Parquet in Cloud Storage but wants managed governance across BigQuery and compatible external engines. For this situation, the necessary paired decisions are to examine (Profile read/write characteristics, PostgreSQL extensions, query plans, and service constraints.) and to implement (Benchmark a compatible AlloyDB deployment with appropriate read pools and operational design.).
Question 560
A Google Cloud data engineer is addressing: A sales dashboard adds hourly clicks to daily orders with a join on date only, producing inflated conversion rates. Which TWO complementary actions should the team take? Select TWO answers.
- Aggregate source facts to a common approved grain before joining or visualizing.
- Compare data model measures, discount logic, source lineage, and report SQL.
- Review query execution stages, joins, ORDER BY, LIMIT, and slot usage.
- Review metric grains, join keys, time zones, and calculated-field definitions.
- Use an approved restricted view or authorized dataset with scoped BI credentials.
Explanation
Correct Answers
A:Aggregate source facts to a common approved grain before joining or visualizing. This is the applicable controlled engineering response. Its complementary step is: Review metric grains, join keys, time zones, and calculated-field definitions. Together they address: BI measures must be combined at compatible time and entity granularity.
D:Review metric grains, join keys, time zones, and calculated-field definitions. This is the applicable diagnostic investigation. Its complementary step is: Aggregate source facts to a common approved grain before joining or visualizing. Together they address: BI measures must be combined at compatible time and entity granularity.
Incorrect Answers
B:Compare data model measures, discount logic, source lineage, and report SQL. This could be useful for another system: Two finance dashboards report different net revenue because they define discount treatment separately in handwritten SQL. For this situation, the necessary paired decisions are to examine (Review metric grains, join keys, time zones, and calculated-field definitions.) and to implement (Aggregate source facts to a common approved grain before joining or visualizing.).
C:Review query execution stages, joins, ORDER BY, LIMIT, and slot usage. This could be useful for another system: An analytics query sorts a multi-terabyte table globally before returning 20 leaderboard entries, exhausting resources. For this situation, the necessary paired decisions are to examine (Review metric grains, join keys, time zones, and calculated-field definitions.) and to implement (Aggregate source facts to a common approved grain before joining or visualizing.).
E:Use an approved restricted view or authorized dataset with scoped BI credentials. This could be useful for another system: A marketing dashboard in Looker Studio displays performance summaries but the configured data source grants unrestricted access to restricted BigQuery customer fields. For this situation, the necessary paired decisions are to examine (Review metric grains, join keys, time zones, and calculated-field definitions.) and to implement (Aggregate source facts to a common approved grain before joining or visualizing.).