Databricks Certified Data Engineer Professional Practice Test 63
Question 620
At Cedar Brook Commerce, a customer enrichment join uses nullable external IDs. Architecture constraint: Rows with null external IDs disappear from an inner join. Which design best addresses this requirement?
- Enforce one active record per key with deterministic conflict rules
- Choose fail semantics for non-negotiable constraints
- Use drop semantics only when invalid records may be excluded by policy
- Preserve unmatched facts with a left join when business rules require them
Explanation
Correct Answer
D:Preserve unmatched facts with a left join when business rules require them. This design addresses rows with null external IDs disappear from an inner join. SQL null equality and join type determine whether unmatched rows survive. It establishes the right contract or architecture before execution changes.
Incorrect Answers
A:Enforce one active record per key with deterministic conflict rules. This design action addresses a different case (uniqueness quality rule), where an upstream replay creates multiple active versions. An explicit uniqueness check identifies duplicate business keys before serving data. In the stated problem, rows with null external IDs disappear from an inner join; this choice would not establish the required join with nullable keys decision.
B:Choose fail semantics for non-negotiable constraints. This design action addresses a different case (expectation fail action), where the pipeline continues despite critical null records. Fail-on-violation expectations stop updates rather than silently filtering rows. In the stated problem, rows with null external IDs disappear from an inner join; this choice would not establish the required join with nullable keys decision.
C:Use drop semantics only when invalid records may be excluded by policy. This design action addresses a different case (expectation drop action), where invalid rows currently reach downstream aggregates. A Lakeflow expectation configured to drop invalid rows filters violations from target output. In the stated problem, rows with null external IDs disappear from an inner join; this choice would not establish the required join with nullable keys decision.
Question 621
At Fairhaven Transport, a repository change breaks SQL transformations in the production bundle. A change was deployed to address: The deployment pipeline only checks YAML syntax. Which test result provides the strongest evidence that the requirement is now met?
- Submit a known broken transformation and confirm deployment is blocked
- Verify job and pipeline IDs appear only in the intended workspace
- Run fresh-runtime import and transformation tests successfully
- Run the pipeline and confirm the previous error class does not recur
Explanation
Correct Answer
A:Submit a known broken transformation and confirm deployment is blocked. This tests the expected result against the deployment pipeline only checks YAML syntax, not simply whether a job or object exists. CI must run transformation tests and controlled integration checks before deployment.
Incorrect Answers
B:Confirm job and pipeline IDs appear only in the intended workspace. This validate action addresses a different case (target-safe deployment), where the wrong workspace is selected because target is implicit. Explicit bundle target selection prevents accidental environment deployment. In the stated problem, the deployment pipeline only checks YAML syntax; this choice would not establish the required ci quality gates decision.
C:Run fresh-runtime import and transformation tests successfully. This validate action addresses a different case (python dependency triage), where a package import error appears only on the target compute. Runtime-specific wheel compatibility and pinning must be tested in CI. In the stated problem, the deployment pipeline only checks YAML syntax; this choice would not establish the required ci quality gates decision.
D:Run the pipeline and confirm the previous error class does not recur. This validate action addresses a different case (lakeflow event error classes), where the only visible dashboard status is FAILED without a dataset name. Pipeline event logs identify failing update and dataset messages. In the stated problem, the deployment pipeline only checks YAML syntax; this choice would not establish the required ci quality gates decision.
Question 622
A data engineer at Clearstone Media must troubleshoot this case: data consumers cannot discover existing data products without requesting table SELECT. Evidence: Teams grant SELECT merely to expose object listings. What should be inspected first to confirm the failure mechanism?
- Inspect external location paths and grants against business scope
- Inspect catalog BROWSE and SELECT grants for the discovery group
- Inspect current owner and authorized ownership transfer process
- Inspect notebook defaults and catalog settings for both environments
Explanation
Correct Answer
B:Inspect catalog BROWSE and SELECT grants for the discovery group. This checks the specific evidence behind teams grant SELECT merely to expose object listings. BROWSE enables controlled metadata discovery without granting data read access. The investigation distinguishes the mechanism from an unrelated operational symptom.
Incorrect Answers
A:Inspect external location paths and grants against business scope. This diagnose action addresses a different case (external location governance), where raw cloud permissions bypass central catalog governance. External locations map cloud paths to governed Unity Catalog storage credentials. In the stated problem, teams grant SELECT merely to expose object listings; this choice would not establish the required browse metadata privilege decision.
C:Inspect current owner and authorized ownership transfer process. This diagnose action addresses a different case (ownership reassignment), where new data stewards cannot maintain its grants. Unity Catalog ownership should be assigned to a maintained principal. In the stated problem, teams grant SELECT merely to expose object listings; this choice would not establish the required browse metadata privilege decision.
D:Inspect notebook defaults and catalog settings for both environments. This diagnose action addresses a different case (environment catalog isolation), where both environments use the same default catalog name in notebooks. Environment-specific catalogs and explicit target names reduce cross-environment writes. In the stated problem, teams grant SELECT merely to expose object listings; this choice would not establish the required browse metadata privilege decision.
Question 623
Quality assurance at Northfield Analytics checks a corrected workload where a Python ETL workload runs reliably in development but fails after the next cluster restart. The original fault was: A transitive dependency updated to an incompatible version. Which verification is most decisive?
- Run a task that imports the packaged module on fresh job compute
- Confirm unit tests run without credentials and integrations run in an approved test workspace
- Recreate compute and confirm imports and ETL tests pass
- Restart a fresh session and confirm the imported module version
Explanation
Correct Answer
C:Recreate compute and confirm imports and ETL tests pass. This tests the expected result against a transitive dependency updated to an incompatible version, not simply whether a job or object exists. Explicit compatible dependency versions improve reproducibility across new compute environments.
Incorrect Answers
A:Run a task that imports the packaged module on fresh job compute. This validate action addresses a different case (python wheel packaging), where a refactor broke a notebook-relative import in the deployed job. A properly packaged versioned wheel gives Python code stable import paths outside notebooks. In the stated problem, a transitive dependency updated to an incompatible version; this choice would not establish the required library version pinning decision.
B:Confirm unit tests run without credentials and integrations run in an approved test workspace. This validate action addresses a different case (unit versus integration tests), where small logic regressions are discovered late and costly to debug. Unit tests isolate transformations while integration tests validate external contracts. In the stated problem, a transitive dependency updated to an incompatible version; this choice would not establish the required library version pinning decision.
D:Restart a fresh session and confirm the imported module version. This validate action addresses a different case (library precedence), where a notebook-scoped installation overrides the expected cluster version. The runtime can resolve conflicting versions from different installation scopes. In the stated problem, a transitive dependency updated to an incompatible version; this choice would not establish the required library version pinning decision.
Question 624
Operations at Riverbend Energy owns a workload where an engineering team owns many internal Delta tables with no need for external file lifecycle control. The previously identified issue was: Each table has custom file cleanup jobs and broad storage permissions. Which metric or audit check best detects drift?
- Monitor optimization operations and cost savings
- Monitor retention changes and cleanup failures
- Monitor small-file accumulation and optimization jobs
- Monitor managed table optimization and ownership changes
Explanation
Correct Answer
D:Monitor managed table optimization and ownership changes. This watches the failure mode described by each table has custom file cleanup jobs and broad storage permissions. Unity Catalog managed tables provide platform-managed data placement and maintenance capabilities. It supplies a regression signal after remediation.
Incorrect Answers
A:Monitor optimization operations and cost savings. This monitor action addresses a different case (predictive optimization), where operators run blanket manual OPTIMIZE jobs regardless of table use. Predictive optimization can automate supported managed-table maintenance based on workload signals. 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.
B:Monitor retention changes and cleanup failures. This monitor action addresses a different case (vacuum retention safety), where an operator proposes aggressive VACUUM retention during active long-running readers. VACUUM retention must protect older snapshots still needed by readers and streams. 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:Monitor small-file accumulation and optimization jobs. This monitor action addresses a different case (small file compaction), where read overhead grows because query plans open excessive small files. OPTIMIZE can compact compatible Delta files without changing logical table contents. 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 625
At Oak Valley Retail, a Python UDF fails on certain malformed nested payloads. A change was deployed to address: Scattered print statements do not reveal the failing object shape. Which test result provides the strongest evidence that the requirement is now met?
- Run the failing record through corrected parser and its regression test
- Run the same function in a unit test and in a production job
- Confirm each key has one selected row matching the maximum sequence
- Start a fresh job run and verify parameters reach the intended function
Explanation
Correct Answer
A:Run the failing record through corrected parser and its regression test. This tests the expected result against scattered print statements do not reveal the failing object shape, not simply whether a job or object exists. Debugger breakpoints and targeted local repros help inspect code path and values.
Incorrect Answers
B:Run the same function in a unit test and in a production job. This validate action addresses a different case (transform composability), where business logic depends on notebook state and widgets. DataFrame.transform supports composable DataFrame-to-DataFrame functions. In the stated problem, scattered print statements do not reveal the failing object shape; this choice would not establish the required notebook debugger decision.
C:Confirm each key has one selected row matching the maximum sequence. This validate action addresses a different case (window latest record), where the pipeline picks an arbitrary record instead of the newest sequence. ROW_NUMBER ordered by a deterministic sequence within each key selects the desired latest row. In the stated problem, scattered print statements do not reveal the failing object shape; this choice would not establish the required notebook debugger decision.
D:Start a fresh job run and verify parameters reach the intended function. This validate 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, scattered print statements do not reveal the failing object shape; this choice would not establish the required notebook debugger decision.
Question 626
At Granite Edge Labs, a complex aggregation fails repeatedly under memory pressure. A change was deployed to address: Operators increase driver memory but failures occur on executors. Which test result provides the strongest evidence that the requirement is now met?
- Confirm live settings match repository after redeployment
- Re-run and confirm failed partitions complete with stable outputs
- Confirm only intended tasks rerun and final outputs reconcile
- Run the pipeline and confirm the previous error class does not recur
Explanation
Correct Answer
B:Re-run and confirm failed partitions complete with stable outputs. This tests the expected result against operators increase driver memory but failures occur on executors, not simply whether a job or object exists. Spark UI task failures and shuffle/spill metrics distinguish worker pressure from driver issues.
Incorrect Answers
A:Confirm live settings match repository after redeployment. This validate action addresses a different case (unmanaged resource drift), where subsequent CI redeployment unexpectedly overwrites it. Declarative source of truth should include intentional job-resource changes. In the stated problem, operators increase driver memory but failures occur on executors; this choice would not establish the required spark ui failure stage decision.
C:Confirm only intended tasks rerun and final outputs reconcile. This validate action addresses a different case (repair failed tasks), where operators rerun the entire job and duplicate completed side effects. Repair runs can rerun failed or selected tasks while preserving successful predecessor work under supported semantics. In the stated problem, operators increase driver memory but failures occur on executors; this choice would not establish the required spark ui failure stage decision.
D:Run the pipeline and confirm the previous error class does not recur. This validate action addresses a different case (lakeflow event error classes), where the only visible dashboard status is FAILED without a dataset name. Pipeline event logs identify failing update and dataset messages. In the stated problem, operators increase driver memory but failures occur on executors; this choice would not establish the required spark ui failure stage decision.
Question 627
A deployment owner at Cascade Manufacturing needs to implement a remedy: a workload's input volume varies from 1 GB to 500 GB by day. The present failure is: A fixed high-worker count wastes resources on quiet days. Which change should be applied?
- Include supported partition or clustering predicates to MERGE match conditions
- Tune shuffle partitions or adaptive coalescing on the affected workload
- Configure supported min/max worker settings for the workload
- Enable Photon on the selected supported warehouse or compute
Explanation
Correct Answer
C:Configure supported min/max worker settings for the workload. This directly changes the feature or logic behind a fixed high-worker count wastes resources on quiet days. Supported autoscaling can adapt worker count within configured bounds. It is the concrete configuration for the stated incident.
Incorrect Answers
A:Add supported partition or clustering predicates to MERGE match conditions. This implement action addresses a different case (predicate-limited merge), where the merge scans unrelated historical partitions. Constraining merge matches to relevant partitions can reduce unnecessary target scanning. In the stated problem, a fixed high-worker count wastes resources on quiet days; this choice would not establish the required autoscaling right-size decision.
B:Tune shuffle partitions or adaptive coalescing on the affected workload. This implement action addresses a different case (shuffle partition count), where the current partition count is too low for data volume. Shuffle partition sizing affects memory pressure and task parallelism. In the stated problem, a fixed high-worker count wastes resources on quiet days; this choice would not establish the required autoscaling right-size decision.
D:Enable Photon on the selected supported warehouse or compute. This implement 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, a fixed high-worker count wastes resources on quiet days; this choice would not establish the required autoscaling right-size decision.
Question 628
Quality assurance at Orion Capital checks a corrected workload where a stateful stream holds hundreds of millions of unexpired keys. The original fault was: Executor memory pressure grows even though input rate is stable. Which verification is most decisive?
- Confirm reused stages avoid recomputation with no change in output
- Confirm maintenance activity occurs on appropriate tables without duplicate jobs
- Run representative device filters and compare data skipping
- Replay representative late events and confirm both correctness and bounded state
Explanation
Correct Answer
D:Replay representative late events and confirm both correctness and bounded state. This tests the expected result against executor memory pressure grows even though input rate is stable, not simply whether a job or object exists. State retention and checkpoint state-store configuration affect memory requirements.
Incorrect Answers
A: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, executor memory pressure grows even though input rate is stable; this choice would not establish the required streaming state growth decision.
B:Confirm maintenance activity occurs on appropriate tables without duplicate jobs. This validate action addresses a different case (predictive optimization), where operators run blanket manual OPTIMIZE jobs regardless of table use. Predictive optimization can automate supported managed-table maintenance based on workload signals. In the stated problem, executor memory pressure grows even though input rate is stable; this choice would not establish the required streaming state growth decision.
C:Run representative device filters and compare data skipping. This validate action addresses a different case (liquid clustering cardinality), where partitioning by device would produce many tiny partitions. Liquid clustering organizes data by useful filter keys without high-cardinality partition directories. In the stated problem, executor memory pressure grows even though input rate is stable; this choice would not establish the required streaming state growth decision.
Question 629
At Riverbend Energy, two Databricks workspaces in an organization share a curated catalog. Architecture constraint: A recipient team copies files manually and loses timely updates. Which design best addresses this requirement?
- Choose D2D sharing for supported Databricks managed recipients
- Apply a live share when consumers require current provider-managed data
- Define a minimal table-level share membership contract
- Use an open-sharing recipient with restricted data and secure credential delivery
Explanation
Correct Answer
A:Choose D2D sharing for supported Databricks managed recipients. This design addresses a recipient team copies files manually and loses timely updates. Databricks-to-Databricks Delta Sharing supports governed live access without manual copying. It establishes the right contract or architecture before execution changes.
Incorrect Answers
B:Use a live share when consumers require current provider-managed data. This design action addresses a different case (shared table freshness), where consumers assume the share is a nightly static export. Delta Sharing exposes current authorized data as the provider updates the source. In the stated problem, a recipient team copies files manually and loses timely updates; this choice would not establish the required d2d managed recipient decision.
C:Define a minimal table-level share membership contract. This design 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, a recipient team copies files manually and loses timely updates; this choice would not establish the required d2d managed recipient decision.
D:Use an open-sharing recipient with restricted data and secure credential delivery. This design action addresses a different case (open protocol recipient), where the partner cannot use an internal Databricks-to-Databricks credential flow. Open Delta Sharing can support non-Databricks recipients using the sharing protocol. In the stated problem, a recipient team copies files manually and loses timely updates; this choice would not establish the required d2d managed recipient decision.
Question 630
At Summit Consumer Goods, an orchestrator retries a failed object-storage batch. A change is required because: A partially processed input file is loaded twice into Delta. Which implementation action most directly corrects the configuration?
- Configure CSV quote/escape and malformed-record capture
- Implement checkpoint-aware incremental ingestion and a safe merge downstream
- Configure cloudFiles ingestion into a Delta bronze streaming table
- Configure the Kafka stream and persistent checkpoint path
Explanation
Correct Answer
B:Implement checkpoint-aware incremental ingestion and a safe merge downstream. This directly changes the feature or logic behind a partially processed input file is loaded twice into Delta. Checkpointed incremental ingestion or stable event-level deduplication prevents repeated effects. It is the concrete configuration for the stated incident.
Incorrect Answers
A:Configure CSV quote/escape and malformed-record capture. This implement action addresses a different case (malformed csv quotes), where an ingestion reader splits quoted names into extra columns. CSV quoting and escape configurations must match the source serialization. In the stated problem, a partially processed input file is loaded twice into Delta; this choice would not establish the required retry-safe file loads decision.
C:Configure cloudFiles ingestion into a Delta bronze streaming table. This implement 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, a partially processed input file is loaded twice into Delta; this choice would not establish the required retry-safe file loads decision.
D:Configure the Kafka stream and persistent checkpoint path. This implement action addresses a different case (kafka offset durability), where restarting with a fresh checkpoint replays previously ingested messages. A stable streaming checkpoint maintains Kafka offsets and sink progress across restarts. In the stated problem, a partially processed input file is loaded twice into Delta; this choice would not establish the required retry-safe file loads decision.