Question 30
A transactions table partitions by unique order ID, creating one directory per record and severe metadata overhead. A large Delta table's updates are frequent, but a proposed layout plan requires a full manual repartition of the table every hour. Which response best addresses these needs?
- Choose one compatible supported layout strategy and plan any required migration; evaluate the maintenance cost of fixed partitions and clustering against the update frequency and query benefit.
- Avoid high-cardinality partition keys and consider supported liquid clustering or lower-cardinality layout; compare partitioning or clustering choices using actual date-filter queries and table size.
- Avoid high-cardinality partition keys and consider supported liquid clustering or lower-cardinality layout; evaluate the maintenance cost of fixed partitions and clustering against the update frequency and query benefit.
- Evaluate the maintenance cost of fixed partitions and clustering against the update frequency and query benefit; do not Avoid high-cardinality partition keys and consider supported liquid clustering or lower-cardinality layout.
Explanation
Correct Answer
C:Excessive partition cardinality destroys file-management efficiency. A performance technique can be counterproductive if its recurring rewrite cost exceeds its read savings.
Incorrect Answers
A:Delta optimization methods have operational incompatibilities that need explicit review; Requirement 1 requires: avoid high-cardinality partition keys and consider supported liquid clustering or lower-cardinality layout.
B:Physical layout should reflect dominant predicates instead of an unrelated high-cardinality field; requirement 2 requires: evaluating the maintenance cost of fixed partitions and clustering against the update frequency and query benefit.
D:A performance technique can be counterproductive if its recurring rewrite cost exceeds its read savings; Requirement 1 requires: avoid high-cardinality partition keys and consider supported liquid clustering or lower-cardinality layout.
Question 31
A release validation identifies three different failures. A pipeline accepts an impossible future event timestamp because its quality rule checks only that the field is not null. A critical validation rule is set to log-only mode and business users believe invalid rows never reach gold. A pipeline adds quality checks after the table is already shared externally, exposing bad records before the validation step runs. What is the most appropriate plan for this situation?
- Add a bounded timestamp validation rule aligned to the allowed clock-skew and event-lateness policy; enforce the required uniqueness expectation or deduplication contract before publishing the curated table; and 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; align the rule's failure action with the publication contract and test how rejected rows are handled; and Move the quality gate before publishing and verify external consumers read only validated output.
- Add a bounded timestamp validation rule aligned to the allowed clock-skew and event-lateness policy; align the rule's failure action with the publication contract and test how rejected rows are handled; and 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; and Move the quality gate before publishing and verify external consumers read only validated output.
Explanation
Correct Answer
D:Non-null data can still violate the domain's valid range. Logging a violation is not the same as blocking invalid records. Downstream availability should be conditioned on completed validation for protected data products.
Incorrect Answers
A:Reliable output requires explicit record identity, not only successful ingestion; Requirement 2 requires: align the rule's failure action with the publication contract and test how rejected rows are handled.
B:Reliable output requires explicit record identity, not only successful ingestion; Requirement 1 requires: add a bounded timestamp validation rule aligned to the allowed clock-skew and event-lateness policy.
C:Downstream availability should be conditioned on completed validation for protected data products.
Question 32
A cluster terminates during an expensive join and an operator assumes the SQL syntax is wrong without checking instance events. Which response best addresses the failure?
- Correlate cluster events, executor termination logs and job errors before editing the SQL.
- Inspect the failing path access, run identity and relevant storage or Unity Catalog permissions.
- Set approved diagnostic retention and access controls so failure evidence survives incident response.
- Retrieve the scheduled run's driver and executor logs with its runtime and library context.
Explanation
Correct Answer
A:Infrastructure and memory faults can look like query failures at the workflow level.
Incorrect Answers
B:Inspect the failing path access, run identity and relevant storage or Unity Catalog permissions: table SELECT alone does not grant every file or volume access needed by a task.
C:Set approved diagnostic retention and access controls so failure evidence survives incident response: set approved diagnostic retention and access controls so failure evidence survives incident response: unavailable logs turn repeatable failures into untraceable incidents.
D:Retrieve the scheduled run's driver and executor logs with its runtime and library context: retrieve the scheduled run's driver and executor logs with its runtime and library context: failures can depend on the compute environment used by the actual job.
Question 33
An hourly batch typically finishes in eight minutes, but the team keeps a costly interactive cluster running all day solely for that job. A downstream task fails after three predecessors succeed, and operators rerun the entire DAG, duplicating an external export. A job must wait for two parallel branches, but the developer encodes a time delay instead of explicit task dependencies. Which response best addresses these needs?
- 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; and 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; and 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; and Declare the validation task as an explicit prerequisite for publishing in the job graph.
- Declare the validation task as an explicit prerequisite for publishing in the job graph; use supported repair-run behavior and make externally visible tasks idempotent; and Model both predecessors as dependencies and execute the final task only after their required successful completion.
Explanation
Correct Answer
B:Workload-specific job compute can avoid continuous idle capacity while meeting the refresh interval. A failed downstream task does not automatically reverse successful earlier side effects. A fixed sleep period cannot guarantee parallel work has completed.
Incorrect Answers
A:Task dependencies enforce completion order instead of relying on variable runtime durations; requirement 2 requires: using supported repair-run behavior and make externally visible tasks idempotent.
C:A fixed sleep period cannot guarantee parallel work has completed.
D: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 34
An external partner does not operate Databricks but needs read access to one continuously updated Delta dataset. A partner's open-sharing bearer token is accidentally pasted into a public support ticket. What is the most appropriate plan for this situation?
- Clarify read-sharing semantics and use an authorized separate ingestion workflow for proposed writes; Revoke or rotate the compromised recipient credential and review share access logs.
- Evaluate open Delta Sharing and issue narrowly scoped recipient credentials compatible with the partner's client; publish an approved restricted share asset or view that omits sensitive columns and check the recipient's effective access.
- Revoke or rotate the compromised recipient credential and review share access logs; do not evaluate open Delta Sharing and issue narrowly scoped recipient credentials compatible with the partner's client.
- Evaluate open Delta Sharing and issue narrowly scoped recipient credentials compatible with the partner's client; Revoke or rotate the compromised recipient credential and review share access logs.
Explanation
Correct Answer
D:The open protocol supports consumers beyond Databricks-native workspaces. A leaked access token can expose permitted data until its trust is withdrawn.
Incorrect Answers
A:Delta Sharing is not an arbitrary bidirectional transaction channel; requirement 1 requires: evaluating open Delta Sharing and issue narrowly scoped recipient credentials compatible with the partner's client.
B:Provider-side data minimization is preferable to relying on every recipient to mask raw fields; Requirement 2 requires: revoke or rotate the compromised recipient credential and review share access logs.
C:A leaked access token can expose permitted data until its trust is withdrawn; requirement 1 requires: evaluating open Delta Sharing and issue narrowly scoped recipient credentials compatible with the partner's client.
Question 35
A support team must analyze account activity but must not view full payment-card numbers stored in a common table. A data owner creates a filtered view for one dashboard but then assumes it protects every direct query against the underlying table. A row-filter function accidentally returns all rows when the caller's region mapping is absent. Which course of action addresses the stated issues?
- 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; and Make unmapped identities fail closed and test both authorized and unknown-user cases.
- Apply a supported Unity Catalog column mask appropriate to role and sensitivity requirements; enforce the intended table-level row or column policy and verify base-table grants and effective results; and Make unmapped identities fail closed and test both authorized and unknown-user cases.
- Apply a supported Unity Catalog column mask appropriate to role and sensitivity requirements; enforce the intended table-level row or column policy and verify base-table grants and effective results; and configure supported Unity Catalog row-filter policy tied to the authorized user's context.
- Apply a supported Unity Catalog column mask appropriate to role and sensitivity requirements; configure supported Unity Catalog row-filter policy tied to the authorized user's context; and Make unmapped identities fail closed and test both authorized and unknown-user cases.
Explanation
Correct Answer
B:Dynamic masking can preserve useful non-sensitive data while hiding protected values. A view-specific restriction does not automatically constrain independently authorized base-table access. Missing entitlement data should not silently become unrestricted access.
Incorrect Answers
A:Row-level governance can restrict visibility while retaining a single shared table; requirement 1 requires: applying a supported Unity Catalog column mask appropriate to role and sensitivity requirements.
C:Missing entitlement data should not silently become unrestricted access.
D:Row-level governance can restrict visibility while retaining a single shared table; Requirement 2 requires: enforce the intended table-level row or column policy and verify base-table grants and effective results.
Question 36
A database engineer optimizes one query from an unrepresentative empty cache but claims the workload is consistently faster. How should the team resolve this issue?
- Investigate warehouse concurrency, queuing and startup rather than rewriting a fast SQL plan.
- Inspect Query Profile operators and shuffle metrics before changing join distribution or compute sizing.
- Compare representative query profiles and repeated runs with documented cache conditions.
- Use Query Profile scan and pruning details to assess layout, statistics and predicate pushdown.
Explanation
Correct Answer
C:Measurement must control for warm-up and caching effects before claiming a real performance gain.
Incorrect Answers
A:Investigate warehouse concurrency, queuing and startup rather than rewriting a fast SQL plan: queue delay is a scheduling capacity issue distinct from slow query operators.
B:Inspect Query Profile operators and shuffle metrics before changing join distribution or compute sizing. This does not replace compare representative query profiles and repeated runs with documented cache conditions.
D:Use Query Profile scan and pruning details to assess layout, statistics and predicate pushdown: poor file skipping can dominate runtime even when the SQL filter appears selective.
Question 37
A small lookup dimension is repeatedly shuffled with a massive fact table even though it fits comfortably in executor memory. Two tables have incompatible join-key types and Spark performs repeated casts that slow matching and obscure bad data. What is the most appropriate plan for this situation?
- Normalize join-key types and null handling before joining and verify matched row counts; do not evaluate a supported broadcast join and measure its effect on shuffle volume.
- Evaluate a supported broadcast join and measure its effect on shuffle volume; compare alternative physical join plans with representative data before retaining a forced strategy.
- Evaluate a supported broadcast join and measure its effect on shuffle volume; Normalize join-key types and null handling before joining and verify matched row counts.
- Enable or tune skew-aware adaptive handling and address the hot key specifically; Normalize join-key types and null handling before joining and verify matched row counts.
Explanation
Correct Answer
C:Replicating a genuinely small lookup can avoid a large distributed exchange. Consistent key representation improves correctness and can reduce avoidable conversion cost.
Incorrect Answers
A:Consistent key representation improves correctness and can reduce avoidable conversion cost; requirement 1 requires: evaluating a supported broadcast join and measure its effect on shuffle volume.
B:Join hints should be justified by current sizes and cardinality, not preference; Requirement 2 requires: normalize join-key types and null handling before joining and verify matched row counts.
D:Hash repartitioning alone cannot split all records of one identical join key; requirement 1 requires: evaluating a supported broadcast join and measure its effect on shuffle volume.
Question 38
A release validation identifies three different failures. Analysts repeatedly misinterpret a `net_revenue` column because the Unity Catalog field has no definition or business owner. A curated table is marked certified in an internal wiki but its catalog record does not identify the accountable product team. Two datasets have nearly identical names and users select an obsolete one because no deprecation note appears in search. Which course of action addresses the stated issues?
- Add accurate column comments and ownership metadata explaining the metric and its grain; publish consistent catalog metadata and reviewable data-owner attributes for the table; and document data classifications and usage descriptions with the appropriate governed catalog assets.
- 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; and mark deprecated assets clearly and describe their supported replacement in catalog metadata.
- Document data classifications and usage descriptions with the appropriate governed catalog assets; publish consistent catalog metadata and reviewable data-owner attributes for the table; and 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; publish consistent catalog metadata and reviewable data-owner attributes for the table; and mark deprecated assets clearly and describe their supported replacement in catalog metadata.
Explanation
Correct Answer
D:Discoverability requires semantic definitions, not merely a searchable technical name. Governance metadata should be attached to the asset consumers actually discover. Explicit lifecycle context reduces accidental use of retired datasets.
Incorrect Answers
A:Explicit lifecycle context reduces accidental use of retired datasets.
B:Searchable data without handling guidance can lead to unsafe downstream assumptions; requirement 2 requires: publishing consistent catalog metadata and reviewable data-owner attributes for the table.
C:Searchable data without handling guidance can lead to unsafe downstream assumptions; Requirement 1 requires: add accurate column comments and ownership metadata explaining the metric and its grain.
Question 39
A pipeline expectation warns about invalid email but the compliance team expects those rows to be excluded from the published dataset. A quarantine table contains unencrypted original payment-card numbers and is accessible to all notebook users. Which response best addresses these needs?
- Select an expectation disposition that rejects invalid output while retaining appropriate quality metrics or quarantine evidence; Monitor quarantine counts and failure rates with accountable alerting and reprocessing ownership.
- Select an expectation disposition that rejects invalid output while retaining appropriate quality metrics or quarantine evidence; restrict and mask quarantined sensitive values while preserving minimal diagnostic metadata.
- Restrict and mask quarantined sensitive values while preserving minimal diagnostic metadata; do not select an expectation disposition that rejects invalid output while retaining appropriate quality metrics or quarantine evidence.
- Route parse failures to a quarantined Delta dataset with source file and error context; restrict and mask quarantined sensitive values while preserving minimal diagnostic metadata.
Explanation
Correct Answer
B:Warning-only validation does not necessarily prevent noncompliant records from reaching consumers. Failed quality checks do not remove privacy obligations for rejected data.
Incorrect Answers
A:Quarantine is useful only when unresolved defects are surfaced and recoverable; Requirement 2 requires: restrict and mask quarantined sensitive values while preserving minimal diagnostic metadata.
C:Failed quality checks do not remove privacy obligations for rejected data; requirement 1 requires: selecting an expectation disposition that rejects invalid output while retaining appropriate quality metrics or quarantine evidence.
D:Invalid input should remain available for investigation without polluting valid output; requirement 1 requires: selecting an expectation disposition that rejects invalid output while retaining appropriate quality metrics or quarantine evidence.
Question 40
A Python UDF processes millions of values one row at a time, and a Spark UI profile shows excessive serialization overhead. A Pandas UDF emits strings but declares an integer return type; a scheduled batch fails after a new category appears. A scalar UDF silently calls an external paid service once per row, creating duplicate invoices after Spark retries tasks. What is the most appropriate plan for this situation?
- 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; and 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; align the declared UDF return type and actual output schema, then test representative null and malformed values; and Move external side effects out of retryable row UDF execution and design an idempotent controlled enrichment step.
- 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; and 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; align the declared UDF return type and actual output schema, then test representative null and malformed values; and examine group cardinalities and use a supported partitioned transformation or skew-aware strategy before scaling blindly.
Explanation
Correct Answer
B:Vectorized evaluation can reduce per-row Python crossing overhead when the function and types are supported. Spark must reconcile the declared type with the values emitted across Python execution boundaries. Spark can recompute tasks, so per-row side effects are not guaranteed to run exactly once.
Incorrect Answers
A:Grouped operations may materialize the full group in Python memory rather than uniform small batches; Requirement 2 requires: align the declared UDF return type and actual output schema, then test representative null and malformed values.
C:Grouped operations may materialize the full group in Python memory rather than uniform small batches; requirement 1 requires: evaluating a vectorized Pandas UDF with compatible Arrow-backed batches and measure the revised execution cost.
D:Spark can recompute tasks, so per-row side effects are not guaranteed to run exactly once.
Certified Data Engineer Professional Practice Tests