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.
Question 621
A source issues deletes, but the downstream silver table retains those customers because only insert and update events are applied. A customer-history table needs to retain prior address versions, but an engineer chooses an update-in-place target for all CDC events. A CDC source replays an event after restart, and a homemade merge writes duplicate versions for one key. Which response best addresses these needs?
- Map supported delete semantics in AUTO CDC and validate tombstone behavior against representative events; implement the appropriate SCD Type 2 history behavior with key and sequence handling; and use supported deduplication and sequence-aware CDC processing with stable checkpoints and key selection.
- Configure AUTO CDC with the stable business keys and reliable sequence column to order source changes; implement the appropriate SCD Type 2 history behavior with key and sequence handling; and use supported deduplication and sequence-aware CDC processing with stable checkpoints and key selection.
- Map supported delete semantics in AUTO CDC and validate tombstone behavior against representative events; configure AUTO CDC with the stable business keys and reliable sequence column to order source changes; and use supported deduplication and sequence-aware CDC processing with stable checkpoints and key selection.
- Map supported delete semantics in AUTO CDC and validate tombstone behavior against representative events; implement the appropriate SCD Type 2 history behavior with key and sequence handling; and configure AUTO CDC with the stable business keys and reliable sequence column to order source changes.
Explanation
Correct Answer
A:Removing a source record must be explicitly represented in the CDC application logic. Historical versions cannot be reconstructed if every change overwrites the preceding state. Replay tolerance depends on deterministic event identity and ordering in the target pipeline.
Incorrect Answers
B:Configure AUTO CDC with the stable business keys and reliable sequence column to order source changes; implement the appropriate SCD Type 2 history behavior with key and sequence handling; and use supported deduplication and sequence-aware CDC processing with stable checkpoints and key selection; cDC correctness requires source event ordering, not just the physical arrival time; Requirement 1 requires: map supported delete semantics in AUTO CDC and validate tombstone behavior against representative events.
C:CDC correctness requires source event ordering, not just the physical arrival time; requirement 2 requires: implementing the appropriate SCD Type 2 history behavior with key and sequence handling.
D:Replay tolerance depends on deterministic event identity and ordering in the target pipeline.
Question 622
A compliance export must preserve aggregate city-level trends without exposing individual GPS coordinates. A table tokenizes account IDs but stores the token-to-identity lookup in the same broadly readable catalog. What is the most appropriate plan for this situation?
- Isolate and restrict the detokenization mapping under a separate approved access boundary; do not Generalize fine-grained location values to approved geography buckets and verify residual identification risk.
- Generalize fine-grained location values to approved geography buckets and verify residual identification risk; use a governed keyed pseudonymization approach and protect its key lifecycle.
- Evaluate reidentification risk and combine appropriate suppression or generalization with controlled pseudonymization; Isolate and restrict the detokenization mapping under a separate approved access boundary.
- Generalize fine-grained location values to approved geography buckets and verify residual identification risk; Isolate and restrict the detokenization mapping under a separate approved access boundary.
Explanation
Correct Answer
D:Aggregated or generalized location can retain analytical utility with lower person-level specificity. Tokenization loses value when the recovery map is accessible to the same unauthorized readers.
Incorrect Answers
A:Generalize fine-grained location values to approved geography buckets and verify residual identification risk.
B:Generalize fine-grained location values to approved geography buckets and verify residual identification risk; use a governed keyed pseudonymization approach and protect its key lifecycle: tokenization loses value when the recovery map is accessible to the same unauthorized readers.
C:Evaluate reidentification risk and combine appropriate suppression or generalization with controlled pseudonymization. This does not replace generalize fine-grained location values to approved geography buckets and verify residual identification risk.
Question 623
An SLA requires notifying data owners when the number of quarantined rows exceeds a threshold, but nobody reviews the dashboard manually. A daily job fails overnight but its owner receives no warning because email notifications are configured only for successful runs. Which course of action addresses the stated issues?
- Add sensible alert scheduling, severity and noise-control policy grounded in the business impact; configure supported Lakeflow Jobs failure notifications and verify recipient routing in a test run.
- Create a scheduled SQL query and alert with an appropriate threshold and notification destination; configure supported Lakeflow Jobs failure notifications and verify recipient routing in a test run.
- Create a scheduled SQL query and alert with an appropriate threshold and notification destination; Include stable resource, workspace and run links in notifications so responders can identify the affected workload.
- Configure supported Lakeflow Jobs failure notifications and verify recipient routing in a test run; do not create a scheduled SQL query and alert with an appropriate threshold and notification destination.
Explanation
Correct Answer
B:Automated alerts convert measurable data quality thresholds into actionable signals. Notification rules must cover failure outcomes, not just completion.
Incorrect Answers
A:Add sensible alert scheduling, severity and noise-control policy grounded in the business impact; configure supported Lakeflow Jobs failure notifications and verify recipient routing in a test run. This does not replace create a scheduled SQL query and alert with an appropriate threshold and notification destination.
C:Create a scheduled SQL query and alert with an appropriate threshold and notification destination; Include stable resource, workspace and run links in notifications so responders can identify the affected workload: notification rules must cover failure outcomes, not just completion.
D:Create a scheduled SQL query and alert with an appropriate threshold and notification destination.
Question 624
A workflow uses a large shared cluster for a five-minute daily metadata update and incurs long idle periods. How should the team resolve this issue?
- Disable unguarded retries or introduce idempotency keys for external side effects before enabling recovery attempts.
- Select appropriately sized on-demand or serverless job compute and measure total cost including startup.
- Reconcile supported serverless environment dependencies and versions with the packaged job artifact.
- Right-size the task's driver and memory configuration based on the Spark UI and actual collection behavior.
Explanation
Correct Answer
B:An oversized continuously available cluster may cost far more than the actual task demands.
Incorrect Answers
A:Disable unguarded retries or introduce idempotency keys for external side effects before enabling recovery attempts: disable unguarded retries or introduce idempotency keys for external side effects before enabling recovery attempts:; Select appropriately sized on-demand or serverless job compute and measure total cost including startup.
C:Reconcile supported serverless environment dependencies and versions with the packaged job artifact: reconcile supported serverless environment dependencies and versions with the packaged job artifact: each compute mode has deployment prerequisites that must be tested independently.
D:Right-size the task's driver and memory configuration based on the Spark UI and actual collection behavior: right-size the task's driver and memory configuration based on the Spark UI and actual collection behavior: driver pressure cannot always be fixed by adding worker executors alone.
Question 625
A newly clustered table has not been optimized after large new data arrivals, and queries still scan disorganized recent files. A team chooses a monotonically increasing unique event ID as its only clustering key despite most queries filtering by tenant and date. What is the most appropriate plan for this situation?
- Run supported layout maintenance and compare pruning metrics for representative recent data; select clustering columns using actual filter patterns and cardinality evidence from query workloads.
- Select clustering columns using actual filter patterns and cardinality evidence from query workloads; do not run supported layout maintenance and compare pruning metrics for representative recent data.
- Run supported layout maintenance and compare pruning metrics for representative recent data; validate the supported migration and table-feature requirements before changing the clustering layout.
- Evaluate liquid clustering on selective evolving query columns and test pruning improvements; select clustering columns using actual filter patterns and cardinality evidence from query workloads.
Explanation
Correct Answer
A:Declaring cluster keys does not necessarily reorganize all future or existing data immediately. Effective clustering depends on predicates that meaningfully reduce scans.
Incorrect Answers
B:Select clustering columns using actual filter patterns and cardinality evidence from query workloads; do not run supported layout maintenance and compare pruning metrics for representative recent data: run supported layout maintenance and compare pruning metrics for representative recent data.
C:Physical layout strategies have compatibility and maintenance constraints that cannot be ignored; requirement 2 requires selecting clustering columns using actual filter patterns and cardinality evidence from query workloads.
D:Evaluate liquid clustering on selective evolving query columns and test pruning improvements; select clustering columns using actual filter patterns and cardinality evidence from query workloads. This does not replace run supported layout maintenance and compare pruning metrics for representative recent data.
Question 626
A cluster terminates during an expensive join and an operator assumes the SQL syntax is wrong without checking instance events. A log retention job removes all driver logs immediately after failed runs and prevents root-cause analysis. Which course of action addresses the stated issues?
- Set approved diagnostic retention and access controls so failure evidence survives incident response; do not correlate cluster events, executor termination logs and job errors before editing the SQL.
- Retrieve the scheduled run's driver and executor logs with its runtime and library context; Set approved diagnostic retention and access controls so failure evidence survives incident response.
- Correlate cluster events, executor termination logs and job errors before editing the SQL; inspect the failing path access, run identity and relevant storage or Unity Catalog permissions.
- Correlate cluster events, executor termination logs and job errors before editing the SQL; Set approved diagnostic retention and access controls so failure evidence survives incident response.
Explanation
Correct Answer
D:Infrastructure and memory faults can look like query failures at the workflow level. Unavailable logs turn repeatable failures into untraceable incidents.
Incorrect Answers
A:Correlate cluster events, executor termination logs and job errors before editing the SQL.
B:Retrieve the scheduled run's driver and executor logs with its runtime and library context. This does not replace correlate cluster events, executor termination logs and job errors before editing the SQL.
C:Correlate cluster events, executor termination logs and job errors before editing the SQL; inspect the failing path access, run identity and relevant storage or Unity Catalog permissions: unavailable logs turn repeatable failures into untraceable incidents.
Question 627
A data engineer uses `collect()` to validate ten million result rows, exhausting the driver during a job that previously scaled. Which response best addresses the failure?
- Inject test DataFrames or fixtures and test output schemas and values independently of production tables.
- Raise or surface actionable failures with source context instead of treating arbitrary ingestion exceptions as valid empty input.
- Replace full driver collection with distributed assertions, aggregates, or bounded samples.
- Pass configuration explicitly and make the transformation deterministic for the same input DataFrame.
Explanation
Correct Answer
C:Large distributed results should not be materialized on a single driver just to confirm correctness.
Incorrect Answers
A:Inject test DataFrames or fixtures and test output schemas and values independently of production tables: 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:Raise or surface actionable failures with source context instead of treating arbitrary ingestion exceptions as valid empty input: raise or surface actionable failures with source context instead of treating arbitrary ingestion exceptions as valid empty input: swallowing failures converts an operational outage into silent data loss; Replace full driver collection with distributed assertions, aggregates, or bounded samples.
D:Pass configuration explicitly and make the transformation deterministic for the same input DataFrame: 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.
Question 628
A pipeline accepts an impossible future event timestamp because its quality rule checks only that the field is not null. A critical validation rule is set to log-only mode and business users believe invalid rows never reach gold. What is the most appropriate plan for this situation?
- Align the rule's failure action with the publication contract and test how rejected rows are handled; do not add a bounded timestamp validation rule aligned to the allowed clock-skew and event-lateness policy.
- Enforce the required uniqueness expectation or deduplication contract before publishing the curated table; align the rule's failure action with the publication contract and test how rejected rows are handled.
- Add a bounded timestamp validation rule aligned to the allowed clock-skew and event-lateness policy; Move the quality gate before publishing and verify external consumers read only validated output.
- Add a bounded timestamp validation rule aligned to the allowed clock-skew and event-lateness policy; align the rule's failure action with the publication contract and test how rejected rows are handled.
Explanation
Correct Answer
D:Non-null data can still violate the domain's valid range. Logging a violation is not the same as blocking invalid records.
Incorrect Answers
A:Add a bounded timestamp validation rule aligned to the allowed clock-skew and event-lateness policy.
B:Enforce the required uniqueness expectation or deduplication contract before publishing the curated table; align the rule's failure action with the publication contract and test how rejected rows are handled. This does not replace add a bounded timestamp validation rule aligned to the allowed clock-skew and event-lateness policy.
C:Add a bounded timestamp validation rule aligned to the allowed clock-skew and event-lateness policy; Move the quality gate before publishing and verify external consumers read only validated output: logging a violation is not the same as blocking invalid records.
Question 629
A Spark stage is slow because one task processes ten times more input than all others, but a team assumes executors are evenly loaded. A notebook spends several minutes starting jobs with thousands of tiny partitions; task execution is fast once scheduled. Which course of action addresses the stated issues?
- Review executor memory, spill and task failure evidence in the Spark UI; evaluate task-count and scheduling overhead and choose a sensible partitioning strategy.
- Inspect Spark UI task and shuffle distributions for skew before applying an appropriate targeted optimization; evaluate task-count and scheduling overhead and choose a sensible partitioning strategy.
- Inspect Spark UI task and shuffle distributions for skew before applying an appropriate targeted optimization; inspect streaming progress and Spark UI stages by batch to identify processing rate, backlogs and bottlenecks.
- Evaluate task-count and scheduling overhead and choose a sensible partitioning strategy; do not inspect Spark UI task and shuffle distributions for skew before applying an appropriate targeted optimization.
Explanation
Correct Answer
B:Stage-level averages can conceal a single straggling partition. Excessive small tasks waste scheduler resources even without heavy computation.
Incorrect Answers
A:Review executor memory, spill and task failure evidence in the Spark UI; evaluate task-count and scheduling overhead and choose a sensible partitioning strategy. This does not replace inspect Spark UI task and shuffle distributions for skew before applying an appropriate targeted optimization.
C:Inspect Spark UI task and shuffle distributions for skew before applying an appropriate targeted optimization; inspect streaming progress and Spark UI stages by batch to identify processing rate, backlogs and bottlenecks: excessive small tasks waste scheduler resources even without heavy computation.
D:Inspect Spark UI task and shuffle distributions for skew before applying an appropriate targeted optimization.
Question 630
A streaming pipeline publishes unredacted raw chat metadata to a broadly accessible silver table before asynchronous masking runs. A stream replays a checkpoint interval and republishes some records without masking because the fallback branch skips its transformation. Which response best addresses these needs?
- Apply consistent privacy logic on all replay and recovery paths and test idempotent publication; do not Mask sensitive fields within the streaming ingestion path before publishing to the shared table.
- Mask sensitive fields within the streaming ingestion path before publishing to the shared table; Minimize and protect streaming diagnostic events while preserving non-sensitive failure context.
- Validate schema evolution and masking outcomes with explicit error handling and monitored quarantine; apply consistent privacy logic on all replay and recovery paths and test idempotent publication.
- Mask sensitive fields within the streaming ingestion path before publishing to the shared table; apply consistent privacy logic on all replay and recovery paths and test idempotent publication.
Explanation
Correct Answer
D:Privacy protection must apply before exposure, not only in a later cleanup job. Recovery semantics must not bypass the same controls used for normal processing.
Incorrect Answers
A:Mask sensitive fields within the streaming ingestion path before publishing to the shared table.
B:Mask sensitive fields within the streaming ingestion path before publishing to the shared table; Minimize and protect streaming diagnostic events while preserving non-sensitive failure context: recovery semantics must not bypass the same controls used for normal processing.
C:Validate schema evolution and masking outcomes with explicit error handling and monitored quarantine; apply consistent privacy logic on all replay and recovery paths and test idempotent publication. This does not replace mask sensitive fields within the streaming ingestion path before publishing to the shared table.
Certified Data Engineer Professional Practice Tests