Question 80
A Python UDF processes millions of values one row at a time, and a Spark UI profile shows excessive serialization overhead. How should the team resolve this issue?
- Move external side effects out of retryable row UDF execution and design an idempotent controlled enrichment step.
- 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.
Explanation
Correct Answer
B:Vectorized evaluation can reduce per-row Python crossing overhead when the function and types are supported.
Incorrect Answers
A:Move external side effects out of retryable row UDF execution and design an idempotent controlled enrichment step: spark can recompute tasks, so per-row side effects are not guaranteed to run exactly once.
C:Examine group cardinalities and use a supported partitioned transformation or skew-aware strategy before scaling blindly: grouped operations may materialize the full group in Python memory rather than uniform small batches.
D:Align the declared UDF return type and actual output schema, then test representative null and malformed values. This does not replace evaluate a vectorized Pandas UDF with compatible Arrow-backed batches and measure the revised execution cost.
Question 81
An external scheduler starts a job but treats the submission's HTTP success as proof the task completed. A retry script launches another job every minute because the API returns RUNNING, creating overlapping data refreshes. An on-call dashboard shows a job failure but no task identifier or error message, forcing manual workspace investigation. Which response best addresses these needs?
- Poll or subscribe to the run's terminal state and inspect task-level results before reporting success; Track the existing run ID and use supported concurrency or retry controls rather than resubmitting while active; and use supported Jobs REST API or Databricks CLI status endpoints with stable run IDs.
- Poll or subscribe to the run's terminal state and inspect task-level results before reporting success; use supported Jobs REST API or Databricks CLI status endpoints with stable run IDs; and Capture task-level run state and structured error context through the supported monitoring API.
- Poll or subscribe to the run's terminal state and inspect task-level results before reporting success; Track the existing run ID and use supported concurrency or retry controls rather than resubmitting while active; and Capture task-level run state and structured error context through the supported monitoring API.
- Use supported Jobs REST API or Databricks CLI status endpoints with stable run IDs; Track the existing run ID and use supported concurrency or retry controls rather than resubmitting while active; and Capture task-level run state and structured error context through the supported monitoring API.
Explanation
Correct Answer
C:Run creation and successful execution are different lifecycle milestones. Repeated submissions can duplicate work that is still progressing. Run-level failure alone is insufficient for fast fault localization.
Incorrect Answers
A:Run-level failure alone is insufficient for fast fault localization.
B:Documented interfaces are more reliable for automated operational monitoring than page scraping; Requirement 2 requires: track the existing run ID and use supported concurrency or retry controls rather than resubmitting while active.
D:Use supported Jobs REST API or Databricks CLI status endpoints with stable run IDs; Track the existing run ID and use supported concurrency or retry controls rather than resubmitting while active; and Capture task-level run state and structured error context through the supported monitoring API; documented interfaces are more reliable for automated operational monitoring than page scraping; Requirement 1 requires: poll or subscribe to the run's terminal state and inspect task-level results before reporting success.
Question 82
A contractor can edit production Lakeflow Jobs because a workspace group grants broad CAN MANAGE permissions to all developers. A shared notebook contains credentials in source text, and its folder is readable to many analyst groups. What is the most appropriate plan for this situation?
- Correct the notebook and task execution privileges without granting blanket workspace administration; remove embedded secrets and use approved credential storage with restrictive object access.
- Remove embedded secrets and use approved credential storage with restrictive object access; do not restrict job permissions to the approved operations group and grant the contractor only the needed run or view role.
- Restrict job permissions to the approved operations group and grant the contractor only the needed run or view role; remove embedded secrets and use approved credential storage with restrictive object access.
- Restrict job permissions to the approved operations group and grant the contractor only the needed run or view role; verify permissions for the actual job run identity on each workspace object and dependency.
Explanation
Correct Answer
C:Workspace object privileges should follow job responsibilities rather than organization-wide defaults. Notebook ACLs alone cannot make plaintext embedded credentials safe to distribute.
Incorrect Answers
A:Correct the notebook and task execution privileges without granting blanket workspace administration; remove embedded secrets and use approved credential storage with restrictive object access: administrative privileges are not the right substitute for a narrowly scoped execution entitlement; Requirement 1 requires: restrict job permissions to the approved operations group and grant the contractor only the needed run or view role.
B:Remove embedded secrets and use approved credential storage with restrictive object access; do not restrict job permissions to the approved operations group and grant the contractor only the needed run or view role: notebook ACLs alone cannot make plaintext embedded credentials safe to distribute; Requirement 1 requires: restrict job permissions to the approved operations group and grant the contractor only the needed run or view role.
D:Development-user access does not establish what a separate production principal can read; requirement 2 requires: removing embedded secrets and use approved credential storage with restrictive object access.
Question 83
A pipeline overwrites every null postal code with a fictional default city, making reporting coverage look complete. What is the most effective next step?
- Parse according to the source contract with explicit formats and quarantine ambiguous values.
- Preserve or explicitly flag unknown addresses and apply imputation only when approved and traceable.
- Normalize accepted country values through a governed reference mapping before grouping.
- Distinguish legitimate return transactions from invalid quantities using documented business rules.
Explanation
Correct Answer
B:Invented replacements misrepresent the source data and hide missingness.
Incorrect Answers
A:Parse according to the source contract with explicit formats and quarantine ambiguous values. This does not replace preserve or explicitly flag unknown addresses and apply imputation only when approved and traceable.
C:Normalize accepted country values through a governed reference mapping before grouping: standard categories prevent equivalent business entities from appearing as separate groups.
D:Distinguish legitimate return transactions from invalid quantities using documented business rules: quality checks must preserve meaningful negative events rather than blanket-correcting them.
Question 84
Analysts repeatedly misinterpret a `net_revenue` column because the Unity Catalog field has no definition or business owner. Two datasets have nearly identical names and users select an obsolete one because no deprecation note appears in search. Which response best addresses these needs?
- Add accurate column comments and ownership metadata explaining the metric and its grain; mark deprecated assets clearly and describe their supported replacement in catalog metadata.
- Publish consistent catalog metadata and reviewable data-owner attributes for the table; mark deprecated assets clearly and describe their supported replacement in catalog metadata.
- Add accurate column comments and ownership metadata explaining the metric and its grain; document data classifications and usage descriptions with the appropriate governed catalog assets.
- Mark deprecated assets clearly and describe their supported replacement in catalog metadata; do not add accurate column comments and ownership metadata explaining the metric and its grain.
Explanation
Correct Answer
A:Discoverability requires semantic definitions, not merely a searchable technical name. Explicit lifecycle context reduces accidental use of retired datasets.
Incorrect Answers
B:Publish consistent catalog metadata and reviewable data-owner attributes for the table; mark deprecated assets clearly and describe their supported replacement in catalog metadata: governance metadata should be attached to the asset consumers actually discover; Requirement 1 requires: add accurate column comments and ownership metadata explaining the metric and its grain.
C:Searchable data without handling guidance can lead to unsafe downstream assumptions; Requirement 2 requires: mark deprecated assets clearly and describe their supported replacement in catalog metadata.
D:Mark deprecated assets clearly and describe their supported replacement in catalog metadata; do not add accurate column comments and ownership metadata explaining the metric and its grain: explicit lifecycle context reduces accidental use of retired datasets; Requirement 1 requires: add accurate column comments and ownership metadata explaining the metric and its grain.
Question 85
A high-update Delta table rewrites many full Parquet files for small row deletions, producing high write amplification. An engineer enables deletion vectors but assumes removed rows are immediately erased from the underlying Parquet objects for legal retention compliance. A table with extensive deletion metadata slows down reads and operators never perform scheduled maintenance. What is the most appropriate plan for this situation?
- Evaluate supported deletion vectors and maintenance behavior for the table's runtime and reader compatibility; apply the supported physical data purge and retention workflow separately from logical deletion; and 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; apply the supported physical data purge and retention workflow separately from logical deletion; and 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; apply the supported physical data purge and retention workflow separately from logical deletion; and Monitor table health and use supported compaction or rewrite operations where justified.
- 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; and Monitor table health and use supported compaction or rewrite operations where justified.
Explanation
Correct Answer
B:Row-level deletion metadata can avoid immediate rewriting of all affected data files. Logical visibility and physical removal are separate stages of data lifecycle management. Deletion metadata and file layout still require lifecycle planning to sustain read performance.
Incorrect Answers
A:Deletion metadata and file layout still require lifecycle planning to sustain read performance.
C:Delta table features can raise minimum reader requirements; requirement 1 requires: evaluating supported deletion vectors and maintenance behavior for the table's runtime and reader compatibility.
D:Delta table features can raise minimum reader requirements; requirement 2 requires: applying the supported physical data purge and retention workflow separately from logical deletion.
Question 86
A bundle deploy succeeds but a shared transformation module cannot be imported by a scheduled job because its package layout differs from the developer's notebook path. An ETL project has one 1,500-line notebook containing extraction, validation, and publishing, making a small schema change risky. Which course of action addresses the stated issues?
- Extract reusable Python modules and parameterize catalog and workspace targets in Declarative Automation Bundle configuration; Split the logic into testable functions and modules while keeping the notebook or job entry point thin.
- Split the logic into testable functions and modules while keeping the notebook or job entry point thin; do not Package the shared Python code with explicit imports and a tested installation path available to the job task.
- Package the shared Python code with explicit imports and a tested installation path available to the job task; Split the logic into testable functions and modules while keeping the notebook or job entry point thin.
- Package the shared Python code with explicit imports and a tested installation path available to the job task; validate the deployment target and rendered bundle configuration in CI before applying changes to that workspace.
Explanation
Correct Answer
C:A notebook-only search path is not a reliable dependency boundary for production tasks. Modular code permits isolated testing of schema handling without rerunning unrelated pipeline steps.
Incorrect Answers
A:Separating business logic from environment settings prevents accidental production targeting and makes deployment reproducible; Requirement 1 requires: package the shared Python code with explicit imports and a tested installation path available to the job task.
B:Modular code permits isolated testing of schema handling without rerunning unrelated pipeline steps; Requirement 1 requires: package the shared Python code with explicit imports and a tested installation path available to the job task.
D:Generated job identities and resource paths must be checked before a deployment changes state; Requirement 2 requires: split the logic into testable functions and modules while keeping the notebook or job entry point thin.
Question 87
A daily job fails overnight but its owner receives no warning because email notifications are configured only for successful runs. Which response best addresses the failure?
- Add sensible alert scheduling, severity and noise-control policy grounded in the business impact.
- 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.
- Create a scheduled SQL query and alert with an appropriate threshold and notification destination.
Explanation
Correct Answer
C: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. This does not replace configure supported Lakeflow Jobs failure notifications and verify recipient routing in a test run.
B:Include stable resource, workspace and run links in notifications so responders can identify the affected workload: actionable alerts require enough context to find the failing run.
D:Create a scheduled SQL query and alert with an appropriate threshold and notification destination: automated alerts convert measurable data quality thresholds into actionable signals.
Question 88
A global sales table contains multiple regions, but an analyst should see only their approved territory without copying the table per team. A row-filter function accidentally returns all rows when the caller's region mapping is absent. What is the most appropriate plan for this situation?
- Apply a supported Unity Catalog column mask appropriate to role and sensitivity requirements; Make unmapped identities fail closed and test both authorized and unknown-user cases.
- Configure supported Unity Catalog row-filter policy tied to the authorized user's context; Make unmapped identities fail closed and test both authorized and unknown-user cases.
- Configure supported Unity Catalog row-filter policy tied to the authorized user's context; enforce the intended table-level row or column policy and verify base-table grants and effective results.
- Make unmapped identities fail closed and test both authorized and unknown-user cases; do not configure supported Unity Catalog row-filter policy tied to the authorized user's context.
Explanation
Correct Answer
B:Row-level governance can restrict visibility while retaining a single shared table. Missing entitlement data should not silently become unrestricted access.
Incorrect Answers
A:Dynamic masking can preserve useful non-sensitive data while hiding protected values; requirement 1 requires: configuring supported Unity Catalog row-filter policy tied to the authorized user's context.
C:A view-specific restriction does not automatically constrain independently authorized base-table access; Requirement 2 requires: make unmapped identities fail closed and test both authorized and unknown-user cases.
D:Missing entitlement data should not silently become unrestricted access; requirement 1 requires: configuring supported Unity Catalog row-filter policy tied to the authorized user's context.
Question 89
A critical validation rule is set to log-only mode and business users believe invalid rows never reach gold. Which response best addresses the failure?
- Move the quality gate before publishing and verify external consumers read only validated output.
- Enforce the required uniqueness expectation or deduplication contract before publishing the curated table.
- 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:Logging a violation is not the same as blocking invalid records.
Incorrect Answers
A:Move the quality gate before publishing and verify external consumers read only validated output: downstream availability should be conditioned on completed validation for protected data products.
B:Enforce the required uniqueness expectation or deduplication contract before publishing the curated table: reliable output requires explicit record identity, not only successful ingestion.
C:Add a bounded timestamp validation rule aligned to the allowed clock-skew and event-lateness policy: non-null data can still violate the domain's valid range.
Question 90
A workspace Git folder is linked to an obsolete branch and scheduled jobs read code that differs from the current repository mainline. A production deployment updates notebook code but forgets to migrate required job and pipeline resource definitions. Which response best addresses these needs?
- Deploy both code and infrastructure definitions using the supported bundle or CI/CD workflow; do not check the folder's remote, branch and revision and align deployment to the approved commit.
- Make the correction in version control and deliver it through the approved tested deployment path; deploy both code and infrastructure definitions using the supported bundle or CI/CD workflow.
- Check the folder's remote, branch and revision and align deployment to the approved commit; deploy both code and infrastructure definitions using the supported bundle or CI/CD workflow.
- Check the folder's remote, branch and revision and align deployment to the approved commit; require branch review and automated tests before the protected branch triggers production deployment.
Explanation
Correct Answer
C:Git-backed workspace content depends on its checked-out revision, not repository existence alone. A code-only release can leave production resources configured for an older execution contract.
Incorrect Answers
A:Deploy both code and infrastructure definitions using the supported bundle or CI/CD workflow; do not check the folder's remote, branch and revision and align deployment to the approved commit: check the folder's remote, branch and revision and align deployment to the approved commit.
B:Make the correction in version control and deliver it through the approved tested deployment path; deploy both code and infrastructure definitions using the supported bundle or CI/CD workflow. This does not replace check the folder's remote, branch and revision and align deployment to the approved commit.
D:CI/CD controls should separate development commits from authorized releases; requirement 2 requires: deploying both code and infrastructure definitions using the supported bundle or CI/CD workflow.
Certified Data Engineer Professional Practice Tests