Databricks Certified Data Engineer Professional Practice Test 42
Question 410
Quality assurance at Riverbend Energy checks a corrected workload where an engineering team owns many internal Delta tables with no need for external file lifecycle control. The original fault was: Each table has custom file cleanup jobs and broad storage permissions. Which verification is most decisive?
- Benchmark identical queries with correct outputs and controlled resources
- Confirm access is controlled through Unity Catalog and queries return identical rows
- Confirm reused stages avoid recomputation with no change in output
- Delete a few rows and confirm snapshot consistency without unnecessary rewrites
Explanation
Correct Answer
B:Confirm access is controlled through Unity Catalog and queries return identical rows. This tests the expected result against each table has custom file cleanup jobs and broad storage permissions, not simply whether a job or object exists. Unity Catalog managed tables provide platform-managed data placement and maintenance capabilities.
Incorrect Answers
A:Benchmark identical queries with correct outputs and controlled resources. This validate action addresses a different case (photon query execution), where an unsupported execution mode limits vectorized engine use. Photon can accelerate supported SQL and DataFrame operators on compatible compute. In the stated problem, each table has custom file cleanup jobs and broad storage permissions; this choice would not establish the required managed table maintenance decision.
C:Confirm reused stages avoid recomputation with no change in output. This validate action addresses a different case (cache reuse), where repeated recomputation dominates each branch's execution. Persistence can avoid repeated work if reused data fits the memory budget. In the stated problem, each table has custom file cleanup jobs and broad storage permissions; this choice would not establish the required managed table maintenance decision.
D:Delete a few rows and confirm snapshot consistency without unnecessary rewrites. This validate action addresses a different case (deletion vectors), where each small delete rewrites large data files and increases write cost. Deletion vectors can mark deleted rows without immediate whole-file rewrite when supported. In the stated problem, each table has custom file cleanup jobs and broad storage permissions; this choice would not establish the required managed table maintenance decision.
Question 411
At Orion Capital, an aggregation pipeline uses a Python UDF for lowercase normalization. A change is required because: The Python UDF creates an avoidable cross-language execution boundary. Which implementation action most directly corrects the configuration?
- Update foreachBatch to upsert by business key with batch idempotency
- Deploy the wheel task with its documented entrypoint and parameters
- Replace the Python UDF with Spark SQL built-in functions
- Replace the literal token with a permitted secret lookup in the job runtime
Explanation
Correct Answer
C:Replace the Python UDF with Spark SQL built-in functions. This directly changes the feature or logic behind the Python UDF creates an avoidable cross-language execution boundary. Built-in Spark SQL functions can execute in optimized expressions without Python UDF overhead. It is the concrete configuration for the stated incident.
Incorrect Answers
A:Update foreachBatch to upsert by business key with batch idempotency. This implement action addresses a different case (streaming idempotent sink), where a retry of a completed batch produces duplicate sink rows. foreachBatch can execute a batch again and requires idempotent external writes for exactly-once effects. In the stated problem, the Python UDF creates an avoidable cross-language execution boundary; this choice would not establish the required avoid python udf for sql decision.
B:Deploy the wheel task with its documented entrypoint and parameters. This implement action addresses a different case (python task entrypoints), where the task exits before setting up its argument parser. A standard Python entrypoint and explicit arguments avoid notebook runtime assumptions. In the stated problem, the Python UDF creates an avoidable cross-language execution boundary; this choice would not establish the required avoid python udf for sql decision.
D:Replace the literal token with a permitted secret lookup in the job runtime. This implement action addresses a different case (secure configuration), where an API token is committed in a Python notebook tracked in Git. Secret-backed configuration avoids embedding credentials in notebooks or deployment YAML. In the stated problem, the Python UDF creates an avoidable cross-language execution boundary; this choice would not establish the required avoid python udf for sql decision.
Question 412
At Pinecrest Holdings, a partner outside Databricks needs access to one curated table. A change is required because: The partner cannot use an internal Databricks-to-Databricks credential flow. Which implementation action most directly corrects the configuration?
- Rotate the recipient credential according to the supported sharing workflow
- Create a supported connection and foreign catalog with least-privilege credentials
- Remove unapproved assets and add only the vetted table to the share
- Create a scoped sharing recipient and distribute credentials through an approved channel
Explanation
Correct Answer
D:Create a scoped sharing recipient and distribute credentials through an approved channel. This directly changes the feature or logic behind the partner cannot use an internal Databricks-to-Databricks credential flow. Open Delta Sharing can support non-Databricks recipients using the sharing protocol. It is the concrete configuration for the stated incident.
Incorrect Answers
A:Rotate the recipient credential according to the supported sharing workflow. This implement action addresses a different case (sharing credential rotation), where partners risk losing access or using a leaked long-lived credential. Credential rotation must be coordinated without unnecessarily broadening permissions. In the stated problem, the partner cannot use an internal Databricks-to-Databricks credential flow; this choice would not establish the required open protocol recipient decision.
B:Create a supported connection and foreign catalog with least-privilege credentials. This implement action addresses a different case (federated connection), where engineers export the full source database into cloud object storage each hour. Lakehouse Federation can query supported external sources through a catalog connection. In the stated problem, the partner cannot use an internal Databricks-to-Databricks credential flow; this choice would not establish the required open protocol recipient decision.
C:Remove unapproved assets and add only the vetted table to the share. This implement action addresses a different case (share catalog scope), where the recipient can discover unintended datasets. A Delta Sharing share should contain only explicitly approved assets. In the stated problem, the partner cannot use an internal Databricks-to-Databricks credential flow; this choice would not establish the required open protocol recipient decision.
Question 413
At Arbor Medical, a streaming table has a data quality expectation that drops invalid records. Architecture constraint: Analysts confuse successful pipeline status with zero rejected records. Which design best addresses this requirement?
- Report violation rate as an explicit quality indicator
- Set backlog thresholds and remediation based on sustained processed rate
- Design a polling integration respecting API quotas and run state transitions
- Build structured operational diagnostics from pipeline event records
Explanation
Correct Answer
A:Report violation rate as an explicit quality indicator. This design addresses analysts confuse successful pipeline status with zero rejected records. Quality metric events reveal input and dropped records separately from update status. It establishes the right contract or architecture before execution changes.
Incorrect Answers
B:Set backlog thresholds and remediation based on sustained processed rate. This design action addresses a different case (streaming backlog), where consumer lag grows while microbatch intervals appear stable. Backlog growth reveals insufficient sustainable processing throughput. In the stated problem, analysts confuse successful pipeline status with zero rejected records; this choice would not establish the required expectation monitoring decision.
C:Design a polling integration respecting API quotas and run state transitions. This design action addresses a different case (jobs rest monitoring), where a manual UI report omits failed tasks and paginated runs. The Jobs API exposes run records that a program can paginate and aggregate. In the stated problem, analysts confuse successful pipeline status with zero rejected records; this choice would not establish the required expectation monitoring decision.
D:Build structured operational diagnostics from pipeline event records. This design action addresses a different case (pipeline event log), where the Jobs status only reports a high-level failure. Lakeflow pipeline event logs include update-level errors and progress events. In the stated problem, analysts confuse successful pipeline status with zero rejected records; this choice would not establish the required expectation monitoring decision.
Question 414
Operations at Horizon Travel owns a workload where rows with a nonnull region code should use a lookup while others retain an unknown label. The previously identified issue was: An unconditional inner join discards rows with missing region codes. Which metric or audit check best detects drift?
- Monitor dimension growth that may invalidate the broadcast assumption
- Monitor lookup match rate and fallback-label frequency
- Monitor cast failure and schema drift counts
- Monitor null-key rate and unmatched dimension lookups
Explanation
Correct Answer
B:Monitor lookup match rate and fallback-label frequency. This watches the failure mode described by an unconditional inner join discards rows with missing region codes. A left join with explicit CASE logic preserves rows while enriching those that match. It supplies a regression signal after remediation.
Incorrect Answers
A:Monitor dimension growth that may invalidate the broadcast assumption. This monitor action addresses a different case (broadcast lookup table), where the join triggers a costly shuffle of the large fact dataset. Broadcasting an appropriately sized dimension can avoid a large shuffle join. In the stated problem, an unconditional inner join discards rows with missing region codes; this choice would not establish the required conditional enrichment decision.
C:Monitor cast failure and schema drift counts. This monitor action addresses a different case (silver schema enforcement), where implicit type coercion risks invalid numeric values being stored. Schema validation and explicit casts make type conversion failures observable. In the stated problem, an unconditional inner join discards rows with missing region codes; this choice would not establish the required conditional enrichment decision.
D:Monitor null-key rate and unmatched dimension lookups. This monitor action addresses a different case (join with nullable keys), where rows with null external IDs disappear from an inner join. SQL null equality and join type determine whether unmatched rows survive. In the stated problem, an unconditional inner join discards rows with missing region codes; this choice would not establish the required conditional enrichment decision.
Question 415
At Westridge Research, a Python UDF transforms millions of numeric rows with substantial serialization overhead. Observed issue: Row-by-row Python invocation dominates stage runtime. Before applying a fix, which investigation is most directly relevant?
- Use the physical plan to locate Python evaluation operators
- Inspect task invocation mode and module entrypoint expectations
- Inspect Python UDF execution time and batch serialization in Spark UI
- Inspect whether a Spark action was issued and review the execution plan
Explanation
Correct Answer
C:Inspect Python UDF execution time and batch serialization in Spark UI. This checks the specific evidence behind row-by-row Python invocation dominates stage runtime. Pandas UDFs process batches through Arrow rather than per-row Python calls. The investigation distinguishes the mechanism from an unrelated operational symptom.
Incorrect Answers
A:Use the physical plan to locate Python evaluation operators. This diagnose action addresses a different case (avoid python udf for sql), where the Python UDF creates an avoidable cross-language execution boundary. Built-in Spark SQL functions can execute in optimized expressions without Python UDF overhead. In the stated problem, row-by-row Python invocation dominates stage runtime; this choice would not establish the required vectorized udf decision.
B:Inspect task invocation mode and module entrypoint expectations. This diagnose action addresses a different case (python task entrypoints), where the task exits before setting up its argument parser. A standard Python entrypoint and explicit arguments avoid notebook runtime assumptions. In the stated problem, row-by-row Python invocation dominates stage runtime; this choice would not establish the required vectorized udf decision.
D:Inspect whether a Spark action was issued and review the execution plan. This diagnose action addresses a different case (spark lazy evaluation), where engineers assume an intermediate filter executed before any action. Spark transformations are lazy until an action triggers a job. In the stated problem, row-by-row Python invocation dominates stage runtime; this choice would not establish the required vectorized udf decision.
Question 416
At Pinecrest Holdings, a batch landing zone contains Parquet files written with incompatible column types. A change is required because: A merge step fails after a producer changes an integer field to string. Which implementation action most directly corrects the configuration?
- Implement checkpoint-aware incremental ingestion and a safe merge downstream
- Configure the supported XML reader with the correct rowTag and schema
- Update the reader schema handling and test a versioned schema rollout
- Cast or quarantine incompatible records before writing the destination
Explanation
Correct Answer
D:Cast or quarantine incompatible records before writing the destination. This directly changes the feature or logic behind a merge step fails after a producer changes an integer field to string. Parquet schema compatibility matters even when column names are unchanged. It is the concrete configuration for the stated incident.
Incorrect Answers
A:Implement checkpoint-aware incremental ingestion and a safe merge downstream. This implement action addresses a different case (retry-safe file loads), where a partially processed input file is loaded twice into Delta. Checkpointed incremental ingestion or stable event-level deduplication prevents repeated effects. In the stated problem, a merge step fails after a producer changes an integer field to string; this choice would not establish the required parquet schema mismatch decision.
B:Configure the supported XML reader with the correct rowTag and schema. This implement action addresses a different case (xml repeating elements), where an XML ingest incorrectly flattens multiple line items into one text field. XML ingestion must specify the repeating row element and preserve nested structure. In the stated problem, a merge step fails after a producer changes an integer field to string; this choice would not establish the required parquet schema mismatch decision.
C:Update the reader schema handling and test a versioned schema rollout. This implement action addresses a different case (avro schema evolution), where an older consumer cannot deserialize records from a newer producer schema. Avro writer-reader schema compatibility must be maintained for evolution. In the stated problem, a merge step fails after a producer changes an integer field to string; this choice would not establish the required parquet schema mismatch decision.
Question 417
At Clearstone Media, a central dashboard must display status for hundreds of workflows. A change is required because: A manual UI report omits failed tasks and paginated runs. Which implementation action most directly corrects the configuration?
- Implement Jobs API run enumeration and status extraction
- Set the supported job notification destination for failed runs
- Query the pipeline event log for the failed dataset and update ID
- Create a supported metrics query for failed expectation records
Explanation
Correct Answer
A:Implement Jobs API run enumeration and status extraction. This directly changes the feature or logic behind a manual UI report omits failed tasks and paginated runs. The Jobs API exposes run records that a program can paginate and aggregate. It is the concrete configuration for the stated incident.
Incorrect Answers
B:Set the supported job notification destination for failed runs. This implement action addresses a different case (job email notification), where operators manually check the run page every morning. Lakeflow Jobs support status-triggered notifications for run outcomes. In the stated problem, a manual UI report omits failed tasks and paginated runs; this choice would not establish the required jobs rest monitoring decision.
C:Query the pipeline event log for the failed dataset and update ID. This implement action addresses a different case (pipeline event log), where the Jobs status only reports a high-level failure. Lakeflow pipeline event logs include update-level errors and progress events. In the stated problem, a manual UI report omits failed tasks and paginated runs; this choice would not establish the required jobs rest monitoring decision.
D:Create a supported metrics query for failed expectation records. This implement action addresses a different case (expectation monitoring), where analysts confuse successful pipeline status with zero rejected records. Quality metric events reveal input and dropped records separately from update status. In the stated problem, a manual UI report omits failed tasks and paginated runs; this choice would not establish the required jobs rest monitoring decision.
Question 418
Operations at Westridge Research owns a workload where an ETL repo only has end-to-end tests that require a live warehouse. The previously identified issue was: Small logic regressions are discovered late and costly to debug. Which metric or audit check best detects drift?
- Monitor state rows and dropped late-event counts
- Track unit test and integration test failures separately
- Monitor plan regressions that reintroduce Python evaluation
- Track execution-plan regressions for representative heavy queries
Explanation
Correct Answer
B:Track unit test and integration test failures separately. This watches the failure mode described by small logic regressions are discovered late and costly to debug. Unit tests isolate transformations while integration tests validate external contracts. It supplies a regression signal after remediation.
Incorrect Answers
A:Monitor state rows and dropped late-event counts. This monitor action addresses a different case (event-time watermarking), where old keys remain in state indefinitely without a lateness bound. Watermarks provide a lateness threshold for bounded stateful streaming operations. In the stated problem, small logic regressions are discovered late and costly to debug; this choice would not establish the required unit versus integration tests decision.
C:Monitor plan regressions that reintroduce Python evaluation. This monitor action addresses a different case (avoid python udf for sql), where the Python UDF creates an avoidable cross-language execution boundary. Built-in Spark SQL functions can execute in optimized expressions without Python UDF overhead. In the stated problem, small logic regressions are discovered late and costly to debug; this choice would not establish the required unit versus integration tests decision.
D:Track execution-plan regressions for representative heavy queries. This monitor action addresses a different case (spark explain plans), where developers tune executor size without inspecting actual exchanges. The physical execution plan exposes exchanges, scan filters and join strategy. In the stated problem, small logic regressions are discovered late and costly to debug; this choice would not establish the required unit versus integration tests decision.
Question 419
Operations at Silver Ridge Logistics owns a workload where an aggregation workload has one very slow Spark stage. The previously identified issue was: Operators only monitor cluster-wide CPU and miss skewed task durations. Which metric or audit check best detects drift?
- Alert on freshness lag rather than only job failure
- Monitor job failure rate and latency over time
- Monitor recurring task skew in scheduled workloads
- Monitor source-to-target staleness and missed updates
Explanation
Correct Answer
C:Monitor recurring task skew in scheduled workloads. This watches the failure mode described by operators only monitor cluster-wide CPU and miss skewed task durations. Spark UI stage metrics reveal shuffle, spill and task skew. It supplies a regression signal after remediation.
Incorrect Answers
A:Alert on freshness lag rather than only job failure. This monitor action addresses a different case (end-to-end sla), where operators monitor compute uptime rather than data freshness. SLA monitoring should measure source event time to published table availability. In the stated problem, operators only monitor cluster-wide CPU and miss skewed task durations; this choice would not establish the required spark ui shuffle metrics decision.
B:Monitor job failure rate and latency over time. This monitor action addresses a different case (job operational history), where operators only see the most recent run in the Jobs UI. Jobs system records support historical analysis of runs and tasks. In the stated problem, operators only monitor cluster-wide CPU and miss skewed task durations; this choice would not establish the required spark ui shuffle metrics decision.
D:Monitor source-to-target staleness and missed updates. This monitor action addresses a different case (pipeline update cadence), where scheduled updates are spaced several hours apart. Pipeline update frequency determines available end-to-end freshness. In the stated problem, operators only monitor cluster-wide CPU and miss skewed task durations; this choice would not establish the required spark ui shuffle metrics decision.
Question 420
At Horizon Travel, supplier CSV feeds contain commas inside quoted customer names. The known risk is: An ingestion reader splits quoted names into extra columns. After remediation, which ongoing signal best detects recurrence?
- Monitor duplicated ingest event IDs and retry pressure
- Monitor schema changes and rescued-field counts
- Monitor discovered-file backlog and ingestion freshness
- Monitor malformed CSV rows and supplier format drift
Explanation
Correct Answer
D:Monitor malformed CSV rows and supplier format drift. This watches the failure mode described by an ingestion reader splits quoted names into extra columns. CSV quoting and escape configurations must match the source serialization. It supplies a regression signal after remediation.
Incorrect Answers
A:Monitor duplicated ingest event IDs and retry pressure. This monitor action addresses a different case (retry-safe file loads), where a partially processed input file is loaded twice into Delta. Checkpointed incremental ingestion or stable event-level deduplication prevents repeated effects. In the stated problem, an ingestion reader splits quoted names into extra columns; this choice would not establish the required malformed csv quotes decision.
B:Monitor schema changes and rescued-field counts. This monitor action addresses a different case (nested json ingest), where the initial reader assumes one unchanging flat schema and loses new fields. Explicit schema management and rescued data handling protect evolving semi-structured ingestion. In the stated problem, an ingestion reader splits quoted names into extra columns; this choice would not establish the required malformed csv quotes decision.
C:Monitor discovered-file backlog and ingestion freshness. This monitor action addresses a different case (auto loader file discovery), where listing the full historical directory every run exceeds the ingestion SLA. Auto Loader is designed for incremental new-file discovery with persisted state. In the stated problem, an ingestion reader splits quoted names into extra columns; this choice would not establish the required malformed csv quotes decision.