Question 650
A query requests one month from a multi-year Delta history yet reads most files because records are randomly distributed across dates. A query includes SELECT * from a wide Delta table though only two fields are needed by the dashboard. Which course of action addresses the stated issues?
- Project only required columns and confirm column pruning in the query profile; do not Improve physical locality or clustering for the date predicate and verify file-pruning metrics.
- Improve physical locality or clustering for the date predicate and verify file-pruning metrics; Project only required columns and confirm column pruning in the query profile.
- Improve physical locality or clustering for the date predicate and verify file-pruning metrics; Redesign layout around lower-cardinality filters or supported clustering rather than transaction-ID partitioning.
- Express eligible filters with native Spark SQL or column operations so predicate optimization can apply; Project only required columns and confirm column pruning in the query profile.
Explanation
Correct Answer
B:Data skipping is more effective when file statistics separate relevant and irrelevant ranges. Columnar storage can avoid unnecessary reads only when the plan does not request those columns.
Incorrect Answers
A:Improve physical locality or clustering for the date predicate and verify file-pruning metrics.
C:Improve physical locality or clustering for the date predicate and verify file-pruning metrics; Redesign layout around lower-cardinality filters or supported clustering rather than transaction-ID partitioning: columnar storage can avoid unnecessary reads only when the plan does not request those columns.
D:Express eligible filters with native Spark SQL or column operations so predicate optimization can apply; Project only required columns and confirm column pruning in the query profile. This does not replace improve physical locality or clustering for the date predicate and verify file-pruning metrics.
Question 651
A reporting team needs a computed daily sales aggregate refreshed when source data changes, but it models every aggregate as a continuously appended streaming source. A dashboard requires updates every hour, but a team pays for continuous streaming processing while inputs arrive only once per day. Which response best addresses these needs?
- Evaluate a materialized view for the maintained aggregate and choose a refresh schedule matching the freshness target; Match refresh or trigger cadence to actual arrival and freshness requirements rather than leaving compute running needlessly.
- Use a supported incremental streaming-table ingestion design with stable file discovery and checkpoint semantics; Match refresh or trigger cadence to actual arrival and freshness requirements rather than leaving compute running needlessly.
- Evaluate a materialized view for the maintained aggregate and choose a refresh schedule matching the freshness target; compare supported incremental and refresh semantics against actual source mutations before choosing the target object.
- Match refresh or trigger cadence to actual arrival and freshness requirements rather than leaving compute running needlessly; do not evaluate a materialized view for the maintained aggregate and choose a refresh schedule matching the freshness target.
Explanation
Correct Answer
A:Recomputable aggregations and append-only ingestion have different lifecycle semantics. Additional refresh frequency creates cost without improving data availability when the source does not change.
Incorrect Answers
B:Use a supported incremental streaming-table ingestion design with stable file discovery and checkpoint semantics; Match refresh or trigger cadence to actual arrival and freshness requirements rather than leaving compute running needlessly. This does not replace evaluate a materialized view for the maintained aggregate and choose a refresh schedule matching the freshness target.
C:Nonappend changes can require different processing semantics from monotonically growing events; Requirement 2 requires: match refresh or trigger cadence to actual arrival and freshness requirements rather than leaving compute running needlessly.
D:Match refresh or trigger cadence to actual arrival and freshness requirements rather than leaving compute running needlessly; do not evaluate a materialized view for the maintained aggregate and choose a refresh schedule matching the freshness target: evaluate a materialized view for the maintained aggregate and choose a refresh schedule matching the freshness target.
Question 652
A join performs massive data exchange because its high-cardinality keys are distributed unevenly. A repeated query spends most time on a sort required by an unnecessary global ORDER BY in an intermediate table. What is the most appropriate plan for this situation?
- 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.
- Remove or scope the sort where global ordering is not part of the required result contract; do not Diagnose shuffle bytes and skew, then evaluate supported adaptive execution or repartitioning methods.
- Diagnose shuffle bytes and skew, then evaluate supported adaptive execution or repartitioning methods; remove or scope the sort where global ordering is not part of the required result contract.
- Check broadcast size and memory before choosing an adaptive or shuffle join strategy; remove or scope the sort where global ordering is not part of the required result contract.
Explanation
Correct Answer
C:Shuffle cost can dominate computation even when scan time is low. Global ordering can force expensive redistribution without adding business value.
Incorrect Answers
A: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: global ordering can force expensive redistribution without adding business value.
B:Diagnose shuffle bytes and skew, then evaluate supported adaptive execution or repartitioning methods.
D:Check broadcast size and memory before choosing an adaptive or shuffle join strategy; remove or scope the sort where global ordering is not part of the required result contract. This does not replace diagnose shuffle bytes and skew, then evaluate supported adaptive execution or repartitioning methods.
Question 653
A Python UDF processes millions of values one row at a time, and a Spark UI profile shows excessive serialization overhead. A scalar UDF silently calls an external paid service once per row, creating duplicate invoices after Spark retries tasks. Which course of action addresses the stated issues?
- Evaluate a vectorized Pandas UDF with compatible Arrow-backed batches and measure the revised execution cost; Move external side effects out of retryable row UDF execution and design an idempotent controlled enrichment step.
- Move external side effects out of retryable row UDF execution and design an idempotent controlled enrichment step; do not evaluate a vectorized Pandas UDF with compatible Arrow-backed batches and measure the revised execution cost.
- Evaluate a vectorized Pandas UDF with compatible Arrow-backed batches and measure the revised execution cost; examine group cardinalities and use a supported partitioned transformation or skew-aware strategy before scaling blindly.
- Align the declared UDF return type and actual output schema, then test representative null and malformed values; Move external side effects out of retryable row UDF execution and design an idempotent controlled enrichment step.
Explanation
Correct Answer
A:Vectorized evaluation can reduce per-row Python crossing overhead when the function and types are supported. Spark can recompute tasks, so per-row side effects are not guaranteed to run exactly once. Both actions are necessary.
Incorrect Answers
B:Spark can recompute tasks, so per-row side effects are not guaranteed to run exactly once; requirement 1 requires: evaluating a vectorized Pandas UDF with compatible Arrow-backed batches and measure the revised execution cost.
C:Grouped operations may materialize the full group in Python memory rather than uniform small batches; Requirement 2 requires: move external side effects out of retryable row UDF execution and design an idempotent controlled enrichment step.
D:Align the declared UDF return type and actual output schema, then test representative null and malformed values; Move external side effects out of retryable row UDF execution and design an idempotent controlled enrichment step; spark must reconcile the declared type with the values emitted across Python execution boundaries; requirement 1 requires: evaluating a vectorized Pandas UDF with compatible Arrow-backed batches and measure the revised execution cost.
Question 654
A high-update Delta table rewrites many full Parquet files for small row deletions, producing high write amplification. A downstream external reader cannot interpret a Delta table after a new protocol feature is enabled for deletion vectors. Which response best addresses these needs?
- 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.
- Check client protocol compatibility before enabling the feature or provide a compatible read path; do not 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.
- Evaluate supported deletion vectors and maintenance behavior for the table's runtime and reader compatibility; check client protocol compatibility before enabling the feature or provide a compatible read path.
Explanation
Correct Answer
D:Row-level deletion metadata can avoid immediate rewriting of all affected data files. Delta table features can raise minimum reader requirements.
Incorrect Answers
A: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: delta table features can raise minimum reader requirements.
B:Check client protocol compatibility before enabling the feature or provide a compatible read path; 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.
C: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. This does not replace evaluate supported deletion vectors and maintenance behavior for the table's runtime and reader compatibility.
Question 655
An hourly batch typically finishes in eight minutes, but the team keeps a costly interactive cluster running all day solely for that job. A job must wait for two parallel branches, but the developer encodes a time delay instead of explicit task dependencies. What is the most appropriate plan for this situation?
- Use suitable job compute and schedule the task hourly with measured startup and SLA headroom; Model both predecessors as dependencies and execute the final task only after their required successful completion.
- Use suitable job compute and schedule the task hourly with measured startup and SLA headroom; use supported repair-run behavior and make externally visible tasks idempotent.
- Model both predecessors as dependencies and execute the final task only after their required successful completion; do not use suitable job compute and schedule the task hourly with measured startup and SLA headroom.
- Declare the validation task as an explicit prerequisite for publishing in the job graph; Model both predecessors as dependencies and execute the final task only after their required successful completion.
Explanation
Correct Answer
A:Workload-specific job compute can avoid continuous idle capacity while meeting the refresh interval. A fixed sleep period cannot guarantee parallel work has completed.
Incorrect Answers
B:Use suitable job compute and schedule the task hourly with measured startup and SLA headroom; use supported repair-run behavior and make externally visible tasks idempotent: a fixed sleep period cannot guarantee parallel work has completed.
C:A fixed sleep period cannot guarantee parallel work has completed; requirement 1 requires: using suitable job compute and schedule the task hourly with measured startup and SLA headroom.
D:Declare the validation task as an explicit prerequisite for publishing in the job graph; Model both predecessors as dependencies and execute the final task only after their required successful completion; task dependencies enforce completion order instead of relying on variable runtime durations; requirement 1 requires: using suitable job compute and schedule the task hourly with measured startup and SLA headroom.
Question 656
A refactor changes the order of DataFrame columns while retaining all values, and a regression test only checks the row count. A DataFrame.transform chain passes unit tests individually but produces wrong totals when three functions run together. Which course of action addresses the stated issues?
- Use schema and DataFrame equality assertions that validate names, types, and expected records; add an integration test for the composed transformation and compare representative expected aggregates.
- Use schema and DataFrame equality assertions that validate names, types, and expected records; use controlled local or test-catalog fixtures for unit tests and reserve integration tests for explicitly managed external systems.
- Add an integration test for the composed transformation and compare representative expected aggregates; do not use schema and DataFrame equality assertions that validate names, types, and expected records.
- Add a targeted fixture that asserts key uniqueness and expected join cardinality; add an integration test for the composed transformation and compare representative expected aggregates.
Explanation
Correct Answer
A:Row counts cannot detect a changed field contract or incorrect values. Valid individual components do not guarantee the composed pipeline preserves business invariants.
Incorrect Answers
B:Use schema and DataFrame equality assertions that validate names, types, and expected records; use controlled local or test-catalog fixtures for unit tests and reserve integration tests for explicitly managed external systems; test isolation separates code behavior from infrastructure availability; Requirement 2 requires: add an integration test for the composed transformation and compare representative expected aggregates.
C:Valid individual components do not guarantee the composed pipeline preserves business invariants; requirement 1 requires: using schema and DataFrame equality assertions that validate names, types, and expected records.
D:Add a targeted fixture that asserts key uniqueness and expected join cardinality; add an integration test for the composed transformation and compare representative expected aggregates; nonempty output does not prove joins preserve intended one-to-many relationships; requirement 1 requires: using schema and DataFrame equality assertions that validate names, types, and expected records.
Question 657
An engineer uses a full directory list each run on a bucket containing tens of millions of files and sees growing discovery latency. A file ingestion job retries after interruption and loads the same records twice because its custom loop has no file-processing state. Which response best addresses these needs?
- Evaluate Auto Loader's supported incremental file discovery mechanisms and checkpoint-backed progress; Capture rescued or malformed input separately and preserve raw evidence for controlled quarantine.
- Use checkpointed Auto Loader semantics and an idempotent target write path for recoverable ingestion; do not evaluate Auto Loader's supported incremental file discovery mechanisms and checkpoint-backed progress.
- Configure supported schema inference and evolution behavior and test a staged new-column event; use checkpointed Auto Loader semantics and an idempotent target write path for recoverable ingestion.
- Evaluate Auto Loader's supported incremental file discovery mechanisms and checkpoint-backed progress; use checkpointed Auto Loader semantics and an idempotent target write path for recoverable ingestion.
Explanation
Correct Answer
D:Incremental discovery scales better than repeatedly traversing a large historical file inventory. Progress tracking and idempotent writes protect against replay following failures.
Incorrect Answers
A:Quarantine lets valid records proceed while keeping defects visible to data owners; requirement 2 requires: using checkpointed Auto Loader semantics and an idempotent target write path for recoverable ingestion.
B:Evaluate Auto Loader's supported incremental file discovery mechanisms and checkpoint-backed progress.
C:Configure supported schema inference and evolution behavior and test a staged new-column event; use checkpointed Auto Loader semantics and an idempotent target write path for recoverable ingestion. This does not replace evaluate Auto Loader's supported incremental file discovery mechanisms and checkpoint-backed progress.
Question 658
A non-idempotent task bills a third-party service on every retry; automatic retries turn a single outage into repeated charges. A scheduled serverless job cannot load a library built for a different runtime, although the notebook worked on an all-purpose cluster. What is the most appropriate plan for this situation?
- Reconcile supported serverless environment dependencies and versions with the packaged job artifact; do not 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.
- Right-size the task's driver and memory configuration based on the Spark UI and actual collection behavior; Reconcile supported serverless environment dependencies and versions with the packaged job artifact.
- Disable unguarded retries or introduce idempotency keys for external side effects before enabling recovery attempts; Reconcile supported serverless environment dependencies and versions with the packaged job artifact.
Explanation
Correct Answer
D:Retried tasks can repeat effects outside Delta transactions. Each compute mode has deployment prerequisites that must be tested independently.
Incorrect Answers
A:Each compute mode has deployment prerequisites that must be tested independently; Requirement 1 requires: disable unguarded retries or introduce idempotency keys for external side effects before enabling recovery attempts.
B:An oversized continuously available cluster may cost far more than the actual task demands; Requirement 2 requires: reconcile supported serverless environment dependencies and versions with the packaged job artifact.
C:Driver pressure cannot always be fixed by adding worker executors alone; Requirement 1 requires: disable unguarded retries or introduce idempotency keys for external side effects before enabling recovery attempts.
Question 659
A sales Delta table is queried by several changing combinations of region, customer and date; fixed partitioning produces many tiny folders. A table already uses partitioning and ZORDER, and a team tries to enable liquid clustering simultaneously without checking feature incompatibilities. Which course of action addresses the stated issues?
- 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.
- Evaluate liquid clustering on selective evolving query columns and test pruning improvements; validate the supported migration and table-feature requirements before changing the clustering layout.
- Validate the supported migration and table-feature requirements before changing the clustering layout; do not evaluate liquid clustering on selective evolving query columns and test pruning improvements.
- 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.
Explanation
Correct Answer
B:Liquid clustering can adapt physical locality without proliferating high-cardinality partition directories. Physical layout strategies have compatibility and maintenance constraints that cannot be ignored.
Incorrect Answers
A: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: physical layout strategies have compatibility and maintenance constraints that cannot be ignored.
C:Evaluate liquid clustering on selective evolving query columns and test pruning improvements.
D: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. This does not replace evaluate liquid clustering on selective evolving query columns and test pruning improvements.
Question 660
A data engineer uses `collect()` to validate ten million result rows, exhausting the driver during a job that previously scaled. A Python ingestion helper catches every exception and returns an empty DataFrame, causing a downstream success report with missing data. Which response best addresses these needs?
- 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.
- Raise or surface actionable failures with source context instead of treating arbitrary ingestion exceptions as valid empty input; do not replace full driver collection with distributed assertions, aggregates, or bounded samples.
- Replace full driver collection with distributed assertions, aggregates, or bounded samples; 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; Raise or surface actionable failures with source context instead of treating arbitrary ingestion exceptions as valid empty input.
Explanation
Correct Answer
A:Large distributed results should not be materialized on a single driver just to confirm correctness. Swallowing failures converts an operational outage into silent data loss.
Incorrect Answers
B:Replace full driver collection with distributed assertions, aggregates, or bounded samples.
C:Repeatable fixtures make code defects distinguishable from live input changes; Requirement 2 requires: raise or surface actionable failures with source context instead of treating arbitrary ingestion exceptions as valid empty input.
D:Pass configuration explicitly and make the transformation deterministic for the same input DataFrame; Raise or surface actionable failures with source context instead of treating arbitrary ingestion exceptions as valid empty input. This does not replace replace full driver collection with distributed assertions, aggregates, or bounded samples.
Certified Data Engineer Professional Practice Tests