Question 610
A Python ingestion helper catches every exception and returns an empty DataFrame, causing a downstream success report with missing data. Which change should the data engineer make?
- Inject test DataFrames or fixtures and test output schemas and values independently of production tables.
- Pass configuration explicitly and make the transformation deterministic for the same input DataFrame.
- Replace full driver collection with distributed assertions, aggregates, or bounded samples.
- Raise or surface actionable failures with source context instead of treating arbitrary ingestion exceptions as valid empty input.
Explanation
Correct Answer
D:Swallowing failures converts an operational outage into silent data loss.
Incorrect Answers
A:Inject test DataFrames or fixtures and test output schemas and values independently of production tables: repeatable fixtures make code defects distinguishable from live input changes.
B:Pass configuration explicitly and make the transformation deterministic for the same input DataFrame: hidden mutable state makes ETL functions order-dependent and difficult to test.
C:Replace full driver collection with distributed assertions, aggregates, or bounded samples: replace full driver collection with distributed assertions, aggregates, or bounded samples: large distributed results should not be materialized on a single driver just to confirm correctness; Raise or surface actionable failures with source context instead of treating arbitrary ingestion exceptions as valid empty input.
Question 611
A Lakeflow pipeline shows an unsuccessful update, but the operations team only inspects the final target row count. A dataset quality expectation warns about invalid identifiers for days without anyone noticing the trend. Which course of action addresses the stated issues?
- Query the pipeline event log for failed flow and update details, including relevant error context; Aggregate quality metrics from supported pipeline event records and alert on sustained violation rates.
- Correlate update and flow events with source progress and available processing metrics; Aggregate quality metrics from supported pipeline event records and alert on sustained violation rates.
- Query the pipeline event log for failed flow and update details, including relevant error context; preserve approved event-log history and scope retention to support troubleshooting and audit needs.
- Aggregate quality metrics from supported pipeline event records and alert on sustained violation rates; do not Query the pipeline event log for failed flow and update details, including relevant error context.
Explanation
Correct Answer
A:Event records reveal the stage and reason for failure more precisely than table size. Quality event telemetry allows degradation to be detected before users complain.
Incorrect Answers
B:Correlate update and flow events with source progress and available processing metrics; Aggregate quality metrics from supported pipeline event records and alert on sustained violation rates. This does not replace query the pipeline event log for failed flow and update details, including relevant error context.
C:Query the pipeline event log for failed flow and update details, including relevant error context; preserve approved event-log history and scope retention to support troubleshooting and audit needs: quality event telemetry allows degradation to be detected before users complain.
D:Aggregate quality metrics from supported pipeline event records and alert on sustained violation rates; do not Query the pipeline event log for failed flow and update details, including relevant error context: query the pipeline event log for failed flow and update details, including relevant error context.
Question 612
A join performs massive data exchange because its high-cardinality keys are distributed unevenly. A Spark SQL stage has thousands of spilled partitions and a team only changes the table file count. Which response best addresses these needs?
- Remove or scope the sort where global ordering is not part of the required result contract; inspect shuffle spill, partition sizes and available memory before adjusting execution settings.
- Diagnose shuffle bytes and skew, then evaluate supported adaptive execution or repartitioning methods; inspect shuffle spill, partition sizes and available memory before adjusting execution settings.
- Diagnose shuffle bytes and skew, then evaluate supported adaptive execution or repartitioning methods; check broadcast size and memory before choosing an adaptive or shuffle join strategy.
- Inspect shuffle spill, partition sizes and available memory before adjusting execution settings; do not Diagnose shuffle bytes and skew, then evaluate supported adaptive execution or repartitioning methods.
Explanation
Correct Answer
B:Shuffle cost can dominate computation even when scan time is low. Spill reflects execution-state pressure that may not be fixed by input file compaction alone.
Incorrect Answers
A:Remove or scope the sort where global ordering is not part of the required result contract; inspect shuffle spill, partition sizes and available memory before adjusting execution settings; global ordering can force expensive redistribution without adding business value; Requirement 1 requires: diagnose shuffle bytes and skew, then evaluate supported adaptive execution or repartitioning methods.
C:Diagnose shuffle bytes and skew, then evaluate supported adaptive execution or repartitioning methods; check broadcast size and memory before choosing an adaptive or shuffle join strategy: spill reflects execution-state pressure that may not be fixed by input file compaction alone.
D:Spill reflects execution-state pressure that may not be fixed by input file compaction alone; Requirement 1 requires: diagnose shuffle bytes and skew, then evaluate supported adaptive execution or repartitioning methods.
Question 613
A custom streaming application needs fine-grained stateful event-time operations not expressed by the existing managed pipeline definition. What is the most effective next step?
- Evaluate Structured Streaming directly with supported state, watermark, and checkpoint management.
- Preserve and validate checkpoint compatibility; plan a controlled state reset only when genuinely required.
- Choose and test an event-time watermark that balances accepted lateness with state retention and memory.
- Use Lakeflow declarative dependency management where its supported transforms meet the business requirements.
Explanation
Correct Answer
A:A lower-level streaming API can be appropriate when the transformation requires precise stateful control.
Incorrect Answers
B:Preserve and validate checkpoint compatibility; plan a controlled state reset only when genuinely required: preserve and validate checkpoint compatibility; plan a controlled state reset only when genuinely required:; Evaluate Structured Streaming directly with supported state, watermark, and checkpoint management.
C:Choose and test an event-time watermark that balances accepted lateness with state retention and memory: choose and test an event-time watermark that balances accepted lateness with state retention and memory: watermarks govern when late data is no longer retained for stateful processing; Evaluate Structured Streaming directly with supported state, watermark, and checkpoint management.
D:Use Lakeflow declarative dependency management where its supported transforms meet the business requirements: use Lakeflow declarative dependency management where its supported transforms meet the business requirements: a managed dependency graph can reduce custom orchestration burden across related tables; Evaluate Structured Streaming directly with supported state, watermark, and checkpoint management.
Question 614
A regional reporting query groups by customer_id as well as region and mistakenly describes its output as one row per region. A distinct-user report uses COUNT(*) on event rows and overstates active customers with many repeat events. Which course of action addresses the stated issues?
- Group only on the required reporting grain and separately aggregate customer-level details if needed; Normalize event timestamps to the authorized reporting timezone before daily grouping.
- Group only on the required reporting grain and separately aggregate customer-level details if needed; Count distinct users at the required date and business grain after deduplication rules.
- Count distinct users at the required date and business grain after deduplication rules; do not Group only on the required reporting grain and separately aggregate customer-level details if needed.
- Calculate the weighted numerator and denominator from underlying totals; Count distinct users at the required date and business grain after deduplication rules.
Explanation
Correct Answer
B:Every grouping expression changes the result's granularity. Event count and unique-user count measure different entities.
Incorrect Answers
A:Group only on the required reporting grain and separately aggregate customer-level details if needed; Normalize event timestamps to the authorized reporting timezone before daily grouping: event count and unique-user count measure different entities.
C:Group only on the required reporting grain and separately aggregate customer-level details if needed.
D:Calculate the weighted numerator and denominator from underlying totals; Count distinct users at the required date and business grain after deduplication rules. This does not replace group only on the required reporting grain and separately aggregate customer-level details if needed.
Question 615
An hourly job fails because a required date parameter was omitted, and operations restarts it unchanged five times. A repaired job uses a different source snapshot than its originally successful predecessors, producing inconsistent gold output. Which response best addresses these needs?
- Supply the validated missing parameter in a controlled repair or new run and verify the intended date partition; Reconcile the run's final repair and task states in monitoring before closing the incident.
- Supply the validated missing parameter in a controlled repair or new run and verify the intended date partition; check run-scoped inputs and dependencies before reusing prior task results during repair.
- Check run-scoped inputs and dependencies before reusing prior task results during repair; do not Supply the validated missing parameter in a controlled repair or new run and verify the intended date partition.
- Repair the failed portion of the job when supported and check upstream task artifacts and idempotency; check run-scoped inputs and dependencies before reusing prior task results during repair.
Explanation
Correct Answer
B:Repeating the same invalid configuration does not cure a parameter-related failure. Partial reruns are safe only when input consistency requirements remain satisfied.
Incorrect Answers
A:Supply the validated missing parameter in a controlled repair or new run and verify the intended date partition; Reconcile the run's final repair and task states in monitoring before closing the incident: partial reruns are safe only when input consistency requirements remain satisfied.
C:Partial reruns are safe only when input consistency requirements remain satisfied; Requirement 1 requires: supply the validated missing parameter in a controlled repair or new run and verify the intended date partition.
D:Task repair reduces unnecessary recomputation without pretending earlier side effects were rolled back; Requirement 1 requires: supply the validated missing parameter in a controlled repair or new run and verify the intended date partition.
Question 616
A nightly export includes phone numbers and tax identifiers that analytics does not need, although a generic JSON cleaning rule runs successfully. A compliance job checks only that the PII column exists, not whether the mask was applied to actual values. What is the most appropriate plan for this situation?
- Classify sensitive source fields and mask or remove them before publishing the batch dataset; add representative masked-value assertions and permission-scoped output tests.
- Classify sensitive source fields and mask or remove them before publishing the batch dataset; Maintain a governed classification and schema-change review gate that updates the masking contract.
- Apply protective transformations before writing to any staging location with broad access; add representative masked-value assertions and permission-scoped output tests.
- Add representative masked-value assertions and permission-scoped output tests; do not Classify sensitive source fields and mask or remove them before publishing the batch dataset.
Explanation
Correct Answer
A:Successful parsing does not establish that the output follows the approved privacy contract. A present column with its original values is not evidence of privacy enforcement.
Incorrect Answers
B:Classify sensitive source fields and mask or remove them before publishing the batch dataset; Maintain a governed classification and schema-change review gate that updates the masking contract: a present column with its original values is not evidence of privacy enforcement.
C:Apply protective transformations before writing to any staging location with broad access; add representative masked-value assertions and permission-scoped output tests. This does not replace classify sensitive source fields and mask or remove them before publishing the batch dataset.
D:Classify sensitive source fields and mask or remove them before publishing the batch dataset.
Question 617
A conditional transformation silently skips a source table when a configuration key is missing, but the pipeline still reports a partial success. Which change should the data engineer make?
- Validate required branch configuration and fail clearly when no supported source selection exists.
- Parameterize unique regional outputs and task identities while retaining shared transformation code.
- Resolve the supported environment condition before declaring the relevant pipeline input and validate each deployment target.
- Generate deterministic distinct dataset names and validate the loop's declarations before pipeline evaluation.
Explanation
Correct Answer
A:Missing conditions should surface as configuration errors rather than incomplete successful data.
Incorrect Answers
B:Parameterize unique regional outputs and task identities while retaining shared transformation code: parameterize unique regional outputs and task identities while retaining shared transformation code:; Validate required branch configuration and fail clearly when no supported source selection exists.
C:Resolve the supported environment condition before declaring the relevant pipeline input and validate each deployment target: resolve the supported environment condition before declaring the relevant pipeline input and validate each deployment target: environment control flow must determine actual input selection rather than cosmetic variable names; Validate required branch configuration and fail clearly when no supported source selection exists.
D:Generate deterministic distinct dataset names and validate the loop's declarations before pipeline evaluation: generate deterministic distinct dataset names and validate the loop's declarations before pipeline evaluation: programmatic declarations must produce a valid and nonconflicting dependency graph; Validate required branch configuration and fail clearly when no supported source selection exists.
Question 618
A bronze audit table must retain every source event, but an engineer executes MERGE that overwrites prior event rows on matching IDs. A raw table has millions of tiny append commits and downstream queries spend most time opening files. Which response best addresses these needs?
- Append immutable event records using a stable event identity and a duplicate-handling policy; Coordinate backfill and streaming ingestion through a documented append-and-deduplicate strategy with clear checkpoints.
- Use appropriate ingest batching and Delta file maintenance without discarding the append-only event contract; do not Append immutable event records using a stable event identity and a duplicate-handling policy.
- Append immutable event records using a stable event identity and a duplicate-handling policy; use appropriate ingest batching and Delta file maintenance without discarding the append-only event contract.
- Record processed input identity and make append operations idempotent across retry boundaries; use appropriate ingest batching and Delta file maintenance without discarding the append-only event contract.
Explanation
Correct Answer
C:An append-only audit record must preserve previous events instead of treating each key as current state. Append-only semantics do not remove the need to manage physical file layout.
Incorrect Answers
A:Append immutable event records using a stable event identity and a duplicate-handling policy; Coordinate backfill and streaming ingestion through a documented append-and-deduplicate strategy with clear checkpoints: append-only semantics do not remove the need to manage physical file layout.
B:Append immutable event records using a stable event identity and a duplicate-handling policy.
D:Record processed input identity and make append operations idempotent across retry boundaries; use appropriate ingest batching and Delta file maintenance without discarding the append-only event contract. This does not replace append immutable event records using a stable event identity and a duplicate-handling policy.
Question 619
A high-update Delta table rewrites many full Parquet files for small row deletions, producing high write amplification. A table with extensive deletion metadata slows down reads and operators never perform scheduled maintenance. What is the most appropriate plan for this situation?
- Evaluate supported deletion vectors and maintenance behavior for the table's runtime and reader compatibility; apply the supported physical data purge and retention workflow separately from logical deletion.
- Check client protocol compatibility before enabling the feature or provide a compatible read path; Monitor table health and use supported compaction or rewrite operations where justified.
- Monitor table health and use supported compaction or rewrite operations where justified; do not evaluate supported deletion vectors and maintenance behavior for the table's runtime and reader compatibility.
- Evaluate supported deletion vectors and maintenance behavior for the table's runtime and reader compatibility; Monitor table health and use supported compaction or rewrite operations where justified.
Explanation
Correct Answer
D:Row-level deletion metadata can avoid immediate rewriting of all affected data files. Deletion metadata and file layout still require lifecycle planning to sustain read performance.
Incorrect Answers
A:Evaluate supported deletion vectors and maintenance behavior for the table's runtime and reader compatibility; apply the supported physical data purge and retention workflow separately from logical deletion: deletion metadata and file layout still require lifecycle planning to sustain read performance.
B:Check client protocol compatibility before enabling the feature or provide a compatible read path; Monitor table health and use supported compaction or rewrite operations where justified; delta table features can raise minimum reader requirements; requirement 1 requires: evaluating supported deletion vectors and maintenance behavior for the table's runtime and reader compatibility.
C:Deletion metadata and file layout still require lifecycle planning to sustain read performance; requirement 1 requires: evaluating supported deletion vectors and maintenance behavior for the table's runtime and reader compatibility.
Question 620
A customer lifetime value calculation uses ROW_NUMBER without deterministic tie breakers, so equal-timestamp purchases receive inconsistent ranks. An analyst calculates a running balance but forgets to partition by account_id, merging unrelated customers' transactions. Which course of action addresses the stated issues?
- Partition the window by account before applying the ordered cumulative sum; do not add a stable secondary sort key to the window ordering and test tied inputs.
- Add a stable secondary sort key to the window ordering and test tied inputs; use an event-time range or complete calendar design suited to seven actual days rather than seven arbitrary records.
- Use a partitioned row-number window and select the latest row within each customer partition; Partition the window by account before applying the ordered cumulative sum.
- Add a stable secondary sort key to the window ordering and test tied inputs; Partition the window by account before applying the ordered cumulative sum.
Explanation
Correct Answer
D:Window ordering must be deterministic when multiple rows share the primary sort value. Window partitions define which rows contribute to each account's running calculation.
Incorrect Answers
A:Add a stable secondary sort key to the window ordering and test tied inputs.
B:Add a stable secondary sort key to the window ordering and test tied inputs; use an event-time range or complete calendar design suited to seven actual days rather than seven arbitrary records: window partitions define which rows contribute to each account's running calculation.
C:Use a partitioned row-number window and select the latest row within each customer partition; Partition the window by account before applying the ordered cumulative sum. This does not replace add a stable secondary sort key to the window ordering and test tied inputs.
Certified Data Engineer Professional Practice Tests