Question 60
A legal hold requires retaining selected audit records, but a scheduled blanket purge deletes every record older than a fixed date. A data lake deletes a table but leaves accessible exported CSV copies in an untracked object-storage location. Which response best addresses these needs?
- Extend the retention inventory and approved purge process to derivative exports and backups; do not Exclude approved hold data from automated purging and retain documented exception controls.
- Exclude approved hold data from automated purging and retain documented exception controls; Extend the retention inventory and approved purge process to derivative exports and backups.
- Exclude approved hold data from automated purging and retain documented exception controls; review active readers, streaming checkpoints, and retention guarantees before shortening file cleanup windows.
- Apply the approved retention and physical purge workflow while honoring Delta time-travel, VACUUM and legal-hold constraints; Extend the retention inventory and approved purge process to derivative exports and backups.
Explanation
Correct Answer
B:Regulatory retention may depend on holds and classifications, not only record age. Removing the canonical table does not automatically remove external copies.
Incorrect Answers
A:Exclude approved hold data from automated purging and retain documented exception controls.
C:Premature file deletion can break time travel and incremental consumers; Requirement 2 requires: extend the retention inventory and approved purge process to derivative exports and backups.
D:Apply the approved retention and physical purge workflow while honoring Delta time-travel, VACUUM and legal-hold constraints; Extend the retention inventory and approved purge process to derivative exports and backups. This does not replace exclude approved hold data from automated purging and retain documented exception controls.
Question 61
A reporting team needs a computed daily sales aggregate refreshed when source data changes, but it models every aggregate as a continuously appended streaming source. How should the team resolve this issue?
- Match refresh or trigger cadence to actual arrival and freshness requirements rather than leaving compute running needlessly.
- Compare supported incremental and refresh semantics against actual source mutations before choosing the target object.
- Use a supported incremental streaming-table ingestion design with stable file discovery and checkpoint semantics.
- Evaluate a materialized view for the maintained aggregate and choose a refresh schedule matching the freshness target.
Explanation
Correct Answer
D:Recomputable aggregations and append-only ingestion have different lifecycle semantics.
Incorrect Answers
A:Match refresh or trigger cadence to actual arrival and freshness requirements rather than leaving compute running needlessly: additional refresh frequency creates cost without improving data availability when the source does not change.
B:Compare supported incremental and refresh semantics against actual source mutations before choosing the target object. This does not replace evaluate a materialized view for the maintained aggregate and choose a refresh schedule matching the freshness target.
C:Use a supported incremental streaming-table ingestion design with stable file discovery and checkpoint semantics: incremental ingestion should avoid rereading the complete growing landing zone each time.
Question 62
A fact table joins to a dimension with duplicate business keys, inflating revenue totals after the lookup. Two large Delta tables are broadcast joined after a forced hint, exhausting executor memory because neither side fits. Which course of action addresses the stated issues?
- Diagnose skewed keys and apply a supported skew-aware join or salting strategy where justified; remove the inappropriate broadcast hint and choose a measured shuffle or adaptive join strategy.
- Remove the inappropriate broadcast hint and choose a measured shuffle or adaptive join strategy; do not enforce one intended dimension record per join key or join with a version-effective condition.
- Enforce one intended dimension record per join key or join with a version-effective condition; remove the inappropriate broadcast hint and choose a measured shuffle or adaptive join strategy.
- Enforce one intended dimension record per join key or join with a version-effective condition; select a left join and explicit unknown-member handling when all transactions must remain.
Explanation
Correct Answer
C:A many-to-many join multiplies fact rows and produces incorrect aggregates. Broadcast joins require a side small enough to replicate safely across executors.
Incorrect Answers
A:Adding generic partitions alone may leave the dominant key concentrated in one task; Requirement 1 requires: enforce one intended dimension record per join key or join with a version-effective condition.
B:Broadcast joins require a side small enough to replicate safely across executors; Requirement 1 requires: enforce one intended dimension record per join key or join with a version-effective condition.
D:Join type controls whether unmatched facts survive the enrichment step; requirement 2 requires: removing the inappropriate broadcast hint and choose a measured shuffle or adaptive join strategy.
Question 63
A downstream system needs only new customer updates, but each refresh rereads the entire 600-million-row source table. Which response best addresses the failure?
- Validate source retention windows and plan a controlled baseline rebuild when required history is unavailable.
- Enable or consume supported Delta Change Data Feed with version checkpoints and correct change-type handling.
- Implement the required update and delete semantics using CDF event types and a keyed target.
- Confirm the enablement point and use an approved snapshot or historical source for changes before CDF activation.
Explanation
Correct Answer
B:CDF can expose incremental row changes without a full table scan for every synchronization.
Incorrect Answers
A:Validate source retention windows and plan a controlled baseline rebuild when required history is unavailable: change-feed replay depends on retained source history and versions.
C:Implement the required update and delete semantics using CDF event types and a keyed target: implement the required update and delete semantics using CDF event types and a keyed target: partial event handling can leave stale or duplicated records in the destination.
D:Confirm the enablement point and use an approved snapshot or historical source for changes before CDF activation. This does not replace enable or consume supported Delta Change Data Feed with version checkpoints and correct change-type handling.
Question 64
Finance needs workspace-level job and SQL warehouse spend trends, but engineers aggregate notebook wall-clock duration as a proxy for billing. A monitoring query joins billing and jobs on task name alone, blending equally named workflows across workspaces. What is the most appropriate plan for this situation?
- Query the relevant accessible Databricks system billing records with documented attribution and currency assumptions; Join using stable identifiers and workspace context supplied by the system datasets.
- Query the relevant accessible Databricks system billing records with documented attribution and currency assumptions; verify system schema availability, regional coverage and reader grants before interpreting empty results.
- Examine appropriate system audit events for the change window and correlate the actor and object; Join using stable identifiers and workspace context supplied by the system datasets.
- Join using stable identifiers and workspace context supplied by the system datasets; do not Query the relevant accessible Databricks system billing records with documented attribution and currency assumptions.
Explanation
Correct Answer
A:Recorded usage data is stronger cost evidence than elapsed notebook time alone. Human-readable names are not reliable global keys for cross-workspace attribution.
Incorrect Answers
B:A missing telemetry entitlement or feed must not be mistaken for absence of operations; Requirement 2 requires: join using stable identifiers and workspace context supplied by the system datasets.
C:Current ACL state cannot establish historical authorization changes on its own; Requirement 1 requires: query the relevant accessible Databricks system billing records with documented attribution and currency assumptions.
D:Human-readable names are not reliable global keys for cross-workspace attribution; Requirement 1 requires: query the relevant accessible Databricks system billing records with documented attribution and currency assumptions.
Question 65
A development workspace creates sensitive production tables in a broadly shared sandbox catalog because its job defaults are not parameterized. Which response best addresses the failure?
- Define schema-level ownership and narrowly grant creation privileges to authorized producers.
- Transfer asset ownership to an authorized durable principal or group with reviewed permissions.
- Use governed production catalog and schema targets with explicit deployment configuration and grants.
- Verify source table and container privileges separately from view ownership.
Explanation
Correct Answer
C:Environment separation should be enforced through resource boundaries, not a naming convention alone.
Incorrect Answers
A:Define schema-level ownership and narrowly grant creation privileges to authorized producers: schema creation scope determines who can publish governed datasets.
B:Transfer asset ownership to an authorized durable principal or group with reviewed permissions: long-lived assets should not depend on one departing user's account.
D:Verify source table and container privileges separately from view ownership. This does not replace use governed production catalog and schema targets with explicit deployment configuration and grants.
Question 66
An engineer edits a notebook directly in production while the repository's tested version remains unchanged, causing future deploys to revert the hotfix. A workspace Git folder is linked to an obsolete branch and scheduled jobs read code that differs from the current repository mainline. Which response best addresses these needs?
- Check the folder's remote, branch and revision and align deployment to the approved commit; do not Make the correction in version control and deliver it through the approved tested deployment path.
- Require branch review and automated tests before the protected branch triggers production deployment; 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.
- Make the correction in version control and deliver it through the approved tested deployment path; check the folder's remote, branch and revision and align deployment to the approved commit.
Explanation
Correct Answer
D:Untracked workspace edits create drift from the authoritative source. Git-backed workspace content depends on its checked-out revision, not repository existence alone.
Incorrect Answers
A:Git-backed workspace content depends on its checked-out revision, not repository existence alone; Requirement 1 requires: make the correction in version control and deliver it through the approved tested deployment path.
B:CI/CD controls should separate development commits from authorized releases; Requirement 1 requires: make the correction in version control and deliver it through the approved tested deployment path.
C:A code-only release can leave production resources configured for an older execution contract; requirement 2 requires: checking the folder's remote, branch and revision and align deployment to the approved commit.
Question 67
A downstream task fails after three predecessors succeed, and operators rerun the entire DAG, duplicating an external export. What is the most effective next step?
- Use suitable job compute and schedule the task hourly with measured startup and SLA headroom.
- Use supported repair-run behavior and make externally visible tasks idempotent.
- Model both predecessors as dependencies and execute the final task only after their required successful completion.
- Declare the validation task as an explicit prerequisite for publishing in the job graph.
Explanation
Correct Answer
B:A failed downstream task does not automatically reverse successful earlier side effects.
Incorrect Answers
A:Use suitable job compute and schedule the task hourly with measured startup and SLA headroom: workload-specific job compute can avoid continuous idle capacity while meeting the refresh interval.
C:Model both predecessors as dependencies and execute the final task only after their required successful completion: a fixed sleep period cannot guarantee parallel work has completed.
D:Declare the validation task as an explicit prerequisite for publishing in the job graph: task dependencies enforce completion order instead of relying on variable runtime durations.
Question 68
A contractor can edit production Lakeflow Jobs because a workspace group grants broad CAN MANAGE permissions to all developers. A service principal needs to execute one production notebook but has been assigned workspace administrator to bypass an access error. Which course of action addresses the stated issues?
- Remove embedded secrets and use approved credential storage with restrictive object access; correct the notebook and task execution privileges without granting blanket workspace administration.
- Restrict job permissions to the approved operations group and grant the contractor only the needed run or view role; correct the notebook and task execution privileges without granting blanket workspace administration.
- 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.
- Correct the notebook and task execution privileges without granting blanket workspace administration; do not restrict job permissions to the approved operations group and grant the contractor only the needed run or view role.
Explanation
Correct Answer
B:Workspace object privileges should follow job responsibilities rather than organization-wide defaults. Administrative privileges are not the right substitute for a narrowly scoped execution entitlement.
Incorrect Answers
A: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.
C:Development-user access does not establish what a separate production principal can read; Requirement 2 requires: correct the notebook and task execution privileges without granting blanket workspace administration.
D: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.
Question 69
A cloud storage bucket receives many tiny files each minute; a scheduled full-rescan job misses its hourly completion SLA. How should the team resolve this issue?
- Normalize timestamp parsing with explicit source timezone and preserve original event-time evidence.
- Use checkpointed incremental discovery and plan file compaction or upstream batching where appropriate.
- Select supported Auto Loader schema evolution and failure/restart behavior for additive fields.
- Track complete source file identity and ingestion state rather than treating the leaf filename as globally unique.
Explanation
Correct Answer
B:Repeated enumeration and tiny-file overhead can dominate useful ingestion work.
Incorrect Answers
A:Normalize timestamp parsing with explicit source timezone and preserve original event-time evidence: ambiguous local timestamps can shift ordering across distributed ingestion runs.
C:Select supported Auto Loader schema evolution and failure/restart behavior for additive fields. This does not replace use checkpointed incremental discovery and plan file compaction or upstream batching where appropriate.
D:Track complete source file identity and ingestion state rather than treating the leaf filename as globally unique: distinct paths can contain legitimate files with the same name.
Question 70
A customer lifetime value calculation uses ROW_NUMBER without deterministic tie breakers, so equal-timestamp purchases receive inconsistent ranks. A team uses a global ORDER BY with LIMIT to find the latest event for every customer and returns only one event overall. What is the most appropriate plan for this situation?
- Partition the window by account before applying the ordered cumulative sum; use a partitioned row-number window and select the latest row within each customer partition.
- Use a partitioned row-number window and select the latest row within each customer partition; do not add a stable secondary sort key to the window ordering and test tied inputs.
- Add a stable secondary sort key to the window ordering and test tied inputs; use a partitioned row-number window and select the latest row within each customer partition.
- Add a stable secondary sort key to the window ordering and test tied inputs; use an event-time range or complete calendar design suited to seven actual days rather than seven arbitrary records.
Explanation
Correct Answer
C:Window ordering must be deterministic when multiple rows share the primary sort value. A global top row cannot represent the most recent row per key.
Incorrect Answers
A:Window partitions define which rows contribute to each account's running calculation; Requirement 1 requires: add a stable secondary sort key to the window ordering and test tied inputs.
B:A global top row cannot represent the most recent row per key; Requirement 1 requires: add a stable secondary sort key to the window ordering and test tied inputs.
D:Row counts and elapsed-day intervals are not interchangeable; requirement 2 requires: using a partitioned row-number window and select the latest row within each customer partition.
Certified Data Engineer Professional Practice Tests