Google Professional Data Engineer Practice Test 5
Question 40
The data engineering team must correct this issue: A mobile field-work app stores flexible nested inspection documents and synchronizes changes through supported client libraries. Which controlled engineering action is MOST appropriate?
- Configure supported PITR and conduct a rehearsal into an isolated recovery instance.
- Apply the approved Cloud Storage retention or hold mechanism with formal change control.
- Choose a Firestore document model with carefully scoped security rules and indexes.
- Use a suitable Cloud SQL edition and HA configuration with controlled migrations.
Explanation
Correct Answer
C:Choose a Firestore document model with carefully scoped security rules and indexes. This addresses the specific problem while respecting business and technical constraints. Validate it by checking: A mobile user can read only authorized inspections and query the intended indexed fields. Firestore offers managed document storage suitable for document access patterns and supported client needs.
Incorrect Answers
A:Configure supported PITR and conduct a rehearsal into an isolated recovery instance. This addresses a different situation: A PostgreSQL operational service needs to restore state from immediately before a faulty data migration, not merely from the last weekly export. The current scenario instead calls for the more directly applicable engineering action: Choose a Firestore document model with carefully scoped security rules and indexes. The reason is that firestore offers managed document storage suitable for document access patterns and supported client needs.
B:Apply the approved Cloud Storage retention or hold mechanism with formal change control. This addresses a different situation: A legal investigation requires evidence objects to remain unchanged for a prescribed duration, while administrators can currently delete them. The current scenario instead calls for the more directly applicable engineering action: Choose a Firestore document model with carefully scoped security rules and indexes. The reason is that firestore offers managed document storage suitable for document access patterns and supported client needs.
D:Use a suitable Cloud SQL edition and HA configuration with controlled migrations. 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 engineering action: Choose a Firestore document model with carefully scoped security rules and indexes. The reason is that firestore offers managed document storage suitable for document access patterns and supported client needs.
Question 41
The data engineering team must correct this issue: A SaaS analytics platform hosts multiple tenant records in one BigQuery table, and users may see only their organization's rows. Which controlled engineering action is MOST appropriate?
- Restrict report export and underlying dataset grants consistent with approved aggregate-only access.
- Publish a controlled BigQuery sharing listing and grant only approved subscriber access.
- Revoke only the affected subscriber grant and publish versioned replacement guidance.
- Apply supported row access policies or governed authorized views with tenant controls.
Explanation
Correct Answer
D:Apply supported row access policies or governed authorized views with tenant controls. This addresses the specific problem while respecting business and technical constraints. Validate it by checking: A tenant user cannot query another organization's records through ordinary analytics tools. Row-level security can enforce tenant-scoped access when identity and policy design are correct.
Incorrect Answers
A:Restrict report export and underlying dataset grants consistent with approved aggregate-only access. This addresses a different situation: An embedded dashboard lets viewers export all underlying data even though contracts permit only monthly aggregates. The current scenario instead calls for the more directly applicable engineering action: Apply supported row access policies or governed authorized views with tenant controls. The reason is that row-level security can enforce tenant-scoped access when identity and policy design are correct.
B:Publish a controlled BigQuery sharing listing and grant only approved subscriber access. This addresses a different situation: Two companies want to share selected curated BigQuery datasets without copying unrestricted source projects into each tenant. The current scenario instead calls for the more directly applicable engineering action: Apply supported row access policies or governed authorized views with tenant controls. The reason is that row-level security can enforce tenant-scoped access when identity and policy design are correct.
C:Revoke only the affected subscriber grant and publish versioned replacement guidance. This addresses a different situation: A business data provider wants to revoke a partner's access to an outdated analytics feed without invalidating access for other subscribers. The current scenario instead calls for the more directly applicable engineering action: Apply supported row access policies or governed authorized views with tenant controls. The reason is that row-level security can enforce tenant-scoped access when identity and policy design are correct.
Question 42
A Google Cloud architecture review finds: An order service needs multi-row transactional correctness, yet engineers propose independent uncoordinated object writes as the system of record. Which principle BEST explains the underlying data-engineering risk?
- Stateful stream reliability depends on supported checkpoint or snapshot recovery and sink semantics.
- Transformation orchestration must enforce dependency order and freshness contracts.
- Transactional workloads require storage semantics that match atomicity and consistency requirements.
- Generated SQL needs explicit validation, permission boundaries, and review before modifying governed data.
Explanation
Correct Answer
C:Transactional workloads require storage semantics that match atomicity and consistency requirements. This principle identifies the relevant workload or governance requirement. The engineer should first examine: Review transaction boundaries, read-write patterns, recovery guarantees, and candidate database capabilities. A focused corrective action is: Choose a supported transactional database design and execute related mutations in governed transactions.
Incorrect Answers
A: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: Transactional workloads require storage semantics that match atomicity and consistency requirements. The reason is that transactional workloads require storage semantics that match atomicity and consistency requirements.
B:Transformation orchestration must enforce dependency order and freshness contracts. This addresses a different situation: A Dataform pipeline materializes monthly revenue before its upstream exchange-rate table refresh completes. The current scenario instead calls for the more directly applicable principle: Transactional workloads require storage semantics that match atomicity and consistency requirements. The reason is that transactional workloads require storage semantics that match atomicity and consistency requirements.
D:Generated SQL needs explicit validation, permission boundaries, and review before modifying governed data. This addresses a different situation: An analytics team uses LLM-generated BigQuery SQL and executes it immediately against production tables with write privileges. The current scenario instead calls for the more directly applicable principle: Transactional workloads require storage semantics that match atomicity and consistency requirements. The reason is that transactional workloads require storage semantics that match atomicity and consistency requirements.
Question 43
A Google Cloud data engineer is addressing: A pilot warehouse handles thousands of daily events but must support hundreds of millions without rewriting every consuming dashboard. Which TWO complementary actions should the team take? Select TWO answers.
- Inventory datasets, owners, classifications, descriptions, and upstream-downstream dependencies.
- Review source formats, SQL dialect assumptions, pipeline definitions, and operational dependencies.
- Design elastic ingestion and partitioned analytical storage with stable governed interfaces.
- Inspect forecast data volume, query patterns, ingestion rates, retention, and service limits.
- Review embedded project identifiers, regional service compatibility, and configuration files.
Explanation
Correct Answers
C:Design elastic ingestion and partitioned analytical storage with stable governed interfaces. This is the applicable controlled engineering response. Its complementary step is: Inspect forecast data volume, query patterns, ingestion rates, retention, and service limits. Together they address: Future scale requirements must influence partitioning, decoupling, and managed resource choices.
D:Inspect forecast data volume, query patterns, ingestion rates, retention, and service limits. This is the applicable diagnostic investigation. Its complementary step is: Design elastic ingestion and partitioned analytical storage with stable governed interfaces. Together they address: Future scale requirements must influence partitioning, decoupling, and managed resource choices.
Incorrect Answers
A:Inventory datasets, owners, classifications, descriptions, and upstream-downstream dependencies. This could be useful for another system: Business teams cannot identify which dataset is authoritative for customer retention because copies lack ownership and lineage. For this situation, the necessary paired decisions are to examine (Inspect forecast data volume, query patterns, ingestion rates, retention, and service limits.) and to implement (Design elastic ingestion and partitioned analytical storage with stable governed interfaces.).
B:Review source formats, SQL dialect assumptions, pipeline definitions, and operational dependencies. This could be useful for another system: A data platform expects future multi-cloud processing, but its transformation logic is buried in manual console operations with no versioned definitions. For this situation, the necessary paired decisions are to examine (Inspect forecast data volume, query patterns, ingestion rates, retention, and service limits.) and to implement (Design elastic ingestion and partitioned analytical storage with stable governed interfaces.).
E:Review embedded project identifiers, regional service compatibility, and configuration files. This could be useful for another system: A pipeline deployment hardcodes one project ID and dataset location into every query, blocking deployment into another approved region. For this situation, the necessary paired decisions are to examine (Inspect forecast data volume, query patterns, ingestion rates, retention, and service limits.) and to implement (Design elastic ingestion and partitioned analytical storage with stable governed interfaces.).
Question 44
Before modifying the data platform, the team observes: Poison messages repeatedly fail subscriber parsing, preventing healthy telemetry events from moving through the subscription. Which evidence should the engineer examine FIRST?
- Inspect object creation events, generation numbers, filename rules, and duplicate triggers.
- Review source log positions, change timestamps, key identities, and destination merge semantics.
- Review event timestamps, watermark progress, late-data distribution, and aggregation triggers.
- Inspect delivery attempt counts, error patterns, dead-letter configuration, and acknowledgements.
Explanation
Correct Answer
D:Inspect delivery attempt counts, error patterns, dead-letter configuration, and acknowledgements. This evidence directly tests the uncertain part of the described system. Invalid messages need bounded retry, quarantine, and replay decisions. A controlled response is: Configure an approved dead-letter topic and remediation workflow with appropriate retry policy.
Incorrect Answers
A:Inspect object creation events, generation numbers, filename rules, and duplicate triggers. This addresses a different situation: A pipeline should start only after a new approved object lands in a bucket, but currently polls every minute and processes partially copied files. The current scenario instead calls for the more directly applicable investigation: Inspect delivery attempt counts, error patterns, dead-letter configuration, and acknowledgements. The reason is that invalid messages need bounded retry, quarantine, and replay decisions.
B:Review source log positions, change timestamps, key identities, and destination merge semantics. This addresses a different situation: Datastream CDC events sometimes reach the destination out of order after reconnection and older rows overwrite current values. The current scenario instead calls for the more directly applicable investigation: Inspect delivery attempt counts, error patterns, dead-letter configuration, and acknowledgements. The reason is that invalid messages need bounded retry, quarantine, and replay decisions.
C:Review event timestamps, watermark progress, late-data distribution, and aggregation triggers. This addresses a different situation: A fraud model groups purchases into ten-minute windows, but late device clocks place events into the wrong billing period. The current scenario instead calls for the more directly applicable investigation: Inspect delivery attempt counts, error patterns, dead-letter configuration, and acknowledgements. The reason is that invalid messages need bounded retry, quarantine, and replay decisions.
Question 45
The data engineering team must correct this issue: A production model receives categorical values in a format different from the BigQuery ML training transformations. Which controlled engineering action is MOST appropriate?
- Version reusable transformations and validate feature parity between training and serving.
- Record versioned model artifacts and approval criteria with reproducible training inputs.
- Apply an approved text-extraction and chunking pipeline with accuracy and privacy checks.
- Evaluate the model using appropriate metrics and select a reviewed operating threshold.
Explanation
Correct Answer
A:Version reusable transformations and validate feature parity between training and serving. This addresses the specific problem while respecting business and technical constraints. Validate it by checking: The same test record produces equivalent engineered features in training and serving paths. Training-serving feature consistency is essential for reliable inference quality.
Incorrect Answers
B:Record versioned model artifacts and approval criteria with reproducible training inputs. This addresses a different situation: A data scientist overwrites a BigQuery ML model each week and has no record of which training window produced the current predictions. The current scenario instead calls for the more directly applicable engineering action: Version reusable transformations and validate feature parity between training and serving. The reason is that training-serving feature consistency is essential for reliable inference quality.
C:Apply an approved text-extraction and chunking pipeline with accuracy and privacy checks. This addresses a different situation: A records team ingests scanned PDFs for semantic search but indexes raw unreadable binary bytes as if they were meaningful text. The current scenario instead calls for the more directly applicable engineering action: Version reusable transformations and validate feature parity between training and serving. The reason is that training-serving feature consistency is essential for reliable inference quality.
D:Evaluate the model using appropriate metrics and select a reviewed operating threshold. This addresses a different situation: A fraud model reports 99 percent accuracy on data where only one in a thousand transactions is fraudulent. The current scenario instead calls for the more directly applicable engineering action: Version reusable transformations and validate feature parity between training and serving. The reason is that training-serving feature consistency is essential for reliable inference quality.
Question 46
Before modifying the data platform, the team observes: During a marketing campaign, Pub/Sub backlog grows and Dataflow workers remain fixed far below incoming throughput. Which evidence should the engineer examine FIRST?
- Inspect ticket contents, model input logs, privacy policies, and enrichment accuracy.
- Inspect input throughput, worker caps, backpressure metrics, and processing latency.
- Review UDF exceptions, input samples, metrics, and dead-letter records.
- Review source log positions, change timestamps, key identities, and destination merge semantics.
Explanation
Correct Answer
B:Inspect input throughput, worker caps, backpressure metrics, and processing latency. This evidence directly tests the uncertain part of the described system. Throughput monitoring and correctly configured autoscaling help manage sustained stream backlogs. A controlled response is: Tune Dataflow worker limits and pipeline stages using measured bottlenecks.
Incorrect Answers
A:Inspect ticket contents, model input logs, privacy policies, and enrichment accuracy. This addresses a different situation: A content pipeline sends customer free-text support tickets to a generative model for categorization without excluding sensitive identifiers. The current scenario instead calls for the more directly applicable investigation: Inspect input throughput, worker caps, backpressure metrics, and processing latency. The reason is that throughput monitoring and correctly configured autoscaling help manage sustained stream backlogs.
C:Review UDF exceptions, input samples, metrics, and dead-letter records. This addresses a different situation: A Dataflow JavaScript or Python user-defined transform catches every exception and returns an empty record, hiding thousands of failed rows. The current scenario instead calls for the more directly applicable investigation: Inspect input throughput, worker caps, backpressure metrics, and processing latency. The reason is that throughput monitoring and correctly configured autoscaling help manage sustained stream backlogs.
D:Review source log positions, change timestamps, key identities, and destination merge semantics. This addresses a different situation: Datastream CDC events sometimes reach the destination out of order after reconnection and older rows overwrite current values. The current scenario instead calls for the more directly applicable investigation: Inspect input throughput, worker caps, backpressure metrics, and processing latency. The reason is that throughput monitoring and correctly configured autoscaling help manage sustained stream backlogs.
Question 47
After applying the change, the team re-examines this condition: A churn model trains on a cancellation timestamp that becomes known only after the customer leaves, producing unrealistic validation accuracy. Which result BEST verifies the improvement?
- A sampled scan yields useful searchable passages without leaking protected content.
- The same test record produces equivalent engineered features in training and serving paths.
- A future-period evaluation remains credible without using post-outcome information.
- A prior approved model can be reproduced or identified for rollback and comparison.
Explanation
Correct Answer
C:A future-period evaluation remains credible without using post-outcome information. This measures the intended corrected behavior rather than only confirming a setting. Implemented action: Build point-in-time-correct training examples and retrain with only eligible predictors. Predictive features must be available at the intended prediction time to avoid target leakage.
Incorrect Answers
A:A sampled scan yields useful searchable passages without leaking protected content. This addresses a different situation: A records team ingests scanned PDFs for semantic search but indexes raw unreadable binary bytes as if they were meaningful text. The current scenario instead calls for the more directly applicable verification result: A future-period evaluation remains credible without using post-outcome information. The reason is that predictive features must be available at the intended prediction time to avoid target leakage.
B:The same test record produces equivalent engineered features in training and serving paths. This addresses a different situation: A production model receives categorical values in a format different from the BigQuery ML training transformations. The current scenario instead calls for the more directly applicable verification result: A future-period evaluation remains credible without using post-outcome information. The reason is that predictive features must be available at the intended prediction time to avoid target leakage.
D:A prior approved model can be reproduced or identified for rollback and comparison. This addresses a different situation: A data scientist overwrites a BigQuery ML model each week and has no record of which training window produced the current predictions. The current scenario instead calls for the more directly applicable verification result: A future-period evaluation remains credible without using post-outcome information. The reason is that predictive features must be available at the intended prediction time to avoid target leakage.
Question 48
The data engineering team must correct this issue: A recurring transformation runs under the credentials of a departed analyst and begins failing when the account is disabled. Which controlled engineering action is MOST appropriate?
- Configure separate release workflows and narrowly scoped production invocation identities.
- Publish a tested parameterized template with approved environment configuration.
- Move scheduled execution to an approved service identity or supported transfer owner with monitoring.
- Use a suitable Google Cloud Workflows definition for the small stateful service chain.
Explanation
Correct Answer
C:Move scheduled execution to an approved service identity or supported transfer owner with monitoring. This addresses the specific problem while respecting business and technical constraints. Validate it by checking: The query continues after the old analyst loses access and alerts a current owner on failure. Production scheduling should use maintained workload identities and explicit ownership.
Incorrect Answers
A:Configure separate release workflows and narrowly scoped production invocation identities. 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 engineering action: Move scheduled execution to an approved service identity or supported transfer owner with monitoring. The reason is that production scheduling should use maintained workload identities and explicit ownership.
B:Publish a tested parameterized template with approved environment configuration. This addresses a different situation: The same Dataflow template should run in staging and production but contains hardcoded staging bucket names and service-account references. The current scenario instead calls for the more directly applicable engineering action: Move scheduled execution to an approved service identity or supported transfer owner with monitoring. The reason is that production scheduling should use maintained workload identities and explicit ownership.
D:Use a suitable Google Cloud Workflows definition for the small stateful service chain. This addresses a different situation: A lightweight pipeline calls several managed service APIs in order with retry rules, but the team proposes maintaining an entire Airflow deployment for one request chain. The current scenario instead calls for the more directly applicable engineering action: Move scheduled execution to an approved service identity or supported transfer owner with monitoring. The reason is that production scheduling should use maintained workload identities and explicit ownership.
Question 49
The data engineering team must correct this issue: An analytics contractor needs to query one approved sales dataset, but the administrator proposes granting project-wide BigQuery Admin privileges. Which controlled engineering action is MOST appropriate?
- Select compliant regional resources and constrain replication, jobs, and exports to approved locations.
- De-identify or tokenize sensitive columns upstream and publish a limited-use analytical dataset.
- Grant the narrow dataset and job-execution permissions required, avoiding project-wide administration.
- Create isolated nonproduction projects and datasets with masked test fixtures and deployment gates.
Explanation
Correct Answer
C:Grant the narrow dataset and job-execution permissions required, avoiding project-wide administration. This addresses the specific problem while respecting business and technical constraints. Validate it by checking: A test identity queries the authorized dataset but cannot read a separate payroll dataset. Dataset-scoped roles limit access without giving users authority over unrelated data or infrastructure.
Incorrect Answers
A:Select compliant regional resources and constrain replication, jobs, and exports to approved locations. This addresses a different situation: A European customer contract restricts processing and storage to approved locations, while engineers intend to replicate datasets to another continent. The current scenario instead calls for the more directly applicable engineering action: Grant the narrow dataset and job-execution permissions required, avoiding project-wide administration. The reason is that dataset-scoped roles limit access without giving users authority over unrelated data or infrastructure.
B:De-identify or tokenize sensitive columns upstream and publish a limited-use analytical dataset. This addresses a different situation: Customer support event feeds contain phone numbers and account identifiers, but most analysts require only behavioral aggregates. The current scenario instead calls for the more directly applicable engineering action: Grant the narrow dataset and job-execution permissions required, avoiding project-wide administration. The reason is that dataset-scoped roles limit access without giving users authority over unrelated data or infrastructure.
D:Create isolated nonproduction projects and datasets with masked test fixtures and deployment gates. This addresses a different situation: Developers test destructive transformations against the same production dataset used for regulatory reporting. The current scenario instead calls for the more directly applicable engineering action: Grant the narrow dataset and job-execution permissions required, avoiding project-wide administration. The reason is that dataset-scoped roles limit access without giving users authority over unrelated data or infrastructure.
Question 50
After applying the change, the team re-examines this condition: A company acquires another business and wants consistent discovery and access classification across existing BigQuery and Cloud Storage assets. Which result BEST verifies the improvement?
- A breaking sample change triggers controlled migration communication before being released.
- A search returns both businesses' governed assets with consistent sensitivity attributes.
- A restricted identity is denied the same sensitive records through both SQL and direct object paths.
- Consumers find accountable owners and interoperable published data without centralizing every transformation.
Explanation
Correct Answer
B:A search returns both businesses' governed assets with consistent sensitivity attributes. This measures the intended corrected behavior rather than only confirming a setting. Implemented action: Create an approved Dataplex Catalog classification approach and map existing assets into it. A central catalog and policy taxonomy can help govern multiple analytical storage systems.
Incorrect Answers
A:A breaking sample change triggers controlled migration communication before being released. This addresses a different situation: An internal data product is advertised as reliable, but consumers receive schema changes and delayed data without notice. The current scenario instead calls for the more directly applicable verification result: A search returns both businesses' governed assets with consistent sensitivity attributes. The reason is that a central catalog and policy taxonomy can help govern multiple analytical storage systems.
C:A restricted identity is denied the same sensitive records through both SQL and direct object paths. This addresses a different situation: Data teams use Cloud Storage for open formats and BigQuery for SQL, but each engine applies incompatible permissions to the same sensitive records. The current scenario instead calls for the more directly applicable verification result: A search returns both businesses' governed assets with consistent sensitivity attributes. The reason is that a central catalog and policy taxonomy can help govern multiple analytical storage systems.
D:Consumers find accountable owners and interoperable published data without centralizing every transformation. This addresses a different situation: Finance and logistics teams publish data independently, but a central team imposes one schema that ignores both domains' definitions. The current scenario instead calls for the more directly applicable verification result: A search returns both businesses' governed assets with consistent sensitivity attributes. The reason is that a central catalog and policy taxonomy can help govern multiple analytical storage systems.