Question 660
A data engineer uses `collect()` to validate ten million result rows, exhausting the driver during a job that previously scaled. A Python ingestion helper catches every exception and returns an empty DataFrame, causing a downstream success report with missing data. Which response best addresses these needs?
- Replace full driver collection with distributed assertions, aggregates, or bounded samples; Raise or surface actionable failures with source context instead of treating arbitrary ingestion exceptions as valid empty input.
- Raise or surface actionable failures with source context instead of treating arbitrary ingestion exceptions as valid empty input; do not replace full driver collection with distributed assertions, aggregates, or bounded samples.
- Replace full driver collection with distributed assertions, aggregates, or bounded samples; Inject test DataFrames or fixtures and test output schemas and values independently of production tables.
- Pass configuration explicitly and make the transformation deterministic for the same input DataFrame; Raise or surface actionable failures with source context instead of treating arbitrary ingestion exceptions as valid empty input.
Explanation
Correct Answer
A:Large distributed results should not be materialized on a single driver just to confirm correctness. Swallowing failures converts an operational outage into silent data loss.
Incorrect Answers
B:Replace full driver collection with distributed assertions, aggregates, or bounded samples.
C:Repeatable fixtures make code defects distinguishable from live input changes; Requirement 2 requires: raise or surface actionable failures with source context instead of treating arbitrary ingestion exceptions as valid empty input.
D:Pass configuration explicitly and make the transformation deterministic for the same input DataFrame; Raise or surface actionable failures with source context instead of treating arbitrary ingestion exceptions as valid empty input. This does not replace replace full driver collection with distributed assertions, aggregates, or bounded samples.
Question 661
A downstream system needs only new customer updates, but each refresh rereads the entire 600-million-row source table. An incremental consumer resumes from a Delta version already removed by retention and assumes it can replay the missing history automatically. What is the most appropriate plan for this situation?
- Enable or consume supported Delta Change Data Feed with version checkpoints and correct change-type handling; 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; confirm the enablement point and use an approved snapshot or historical source for changes before CDF activation.
- Validate source retention windows and plan a controlled baseline rebuild when required history is unavailable; do not 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; validate source retention windows and plan a controlled baseline rebuild when required history is unavailable.
Explanation
Correct Answer
A:CDF can expose incremental row changes without a full table scan for every synchronization. Change-feed replay depends on retained source history and versions.
Incorrect Answers
B:Enable or consume supported Delta Change Data Feed with version checkpoints and correct change-type handling; confirm the enablement point and use an approved snapshot or historical source for changes before CDF activation: change-feed replay depends on retained source history and versions.
C:Validate source retention windows and plan a controlled baseline rebuild when required history is unavailable; do not enable or consume supported Delta Change Data Feed with version checkpoints and correct change-type handling: enable or consume supported Delta Change Data Feed with version checkpoints and correct change-type handling.
D:Implement the required update and delete semantics using CDF event types and a keyed target; validate source retention windows and plan a controlled baseline rebuild when required history is unavailable. This does not replace enable or consume supported Delta Change Data Feed with version checkpoints and correct change-type handling.
Question 662
A data team copies environment-specific catalog names into twelve Python notebooks; the same release must deploy safely to staging and production. A release changes bundle variables but never validates the resolved resource names; the deployment unexpectedly replaces a job in a different environment. Which course of action addresses the stated issues?
- Extract reusable Python modules and parameterize catalog and workspace targets in Declarative Automation Bundle configuration; validate the deployment target and rendered bundle configuration in CI before applying changes to that workspace.
- 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.
- Validate the deployment target and rendered bundle configuration in CI before applying changes to that workspace; do not Extract reusable Python modules and parameterize catalog and workspace targets in Declarative Automation Bundle configuration.
- 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.
Explanation
Correct Answer
A:Separating business logic from environment settings prevents accidental production targeting and makes deployment reproducible. Generated job identities and resource paths must be checked before a deployment changes state.
Incorrect Answers
B: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; a notebook-only search path is not a reliable dependency boundary for production tasks; Requirement 1 requires: extract reusable Python modules and parameterize catalog and workspace targets in Declarative Automation Bundle configuration.
C:Generated job identities and resource paths must be checked before a deployment changes state; Requirement 1 requires: extract reusable Python modules and parameterize catalog and workspace targets in Declarative Automation Bundle configuration.
D: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: generated job identities and resource paths must be checked before a deployment changes state.
Question 663
A source issues deletes, but the downstream silver table retains those customers because only insert and update events are applied. A customer-history table needs to retain prior address versions, but an engineer chooses an update-in-place target for all CDC events. Which response best addresses these needs?
- Map supported delete semantics in AUTO CDC and validate tombstone behavior against representative events; implement the appropriate SCD Type 2 history behavior with key and sequence handling.
- Implement the appropriate SCD Type 2 history behavior with key and sequence handling; do not map supported delete semantics in AUTO CDC and validate tombstone behavior against representative events.
- Map supported delete semantics in AUTO CDC and validate tombstone behavior against representative events; use supported deduplication and sequence-aware CDC processing with stable checkpoints and key selection.
- Configure AUTO CDC with the stable business keys and reliable sequence column to order source changes; implement the appropriate SCD Type 2 history behavior with key and sequence handling.
Explanation
Correct Answer
A:Removing a source record must be explicitly represented in the CDC application logic. Historical versions cannot be reconstructed if every change overwrites the preceding state.
Incorrect Answers
B:Implement the appropriate SCD Type 2 history behavior with key and sequence handling; do not map supported delete semantics in AUTO CDC and validate tombstone behavior against representative events: map supported delete semantics in AUTO CDC and validate tombstone behavior against representative events.
C:Replay tolerance depends on deterministic event identity and ordering in the target pipeline; requirement 2 requires: implementing the appropriate SCD Type 2 history behavior with key and sequence handling.
D:Configure AUTO CDC with the stable business keys and reliable sequence column to order source changes; implement the appropriate SCD Type 2 history behavior with key and sequence handling. This does not replace map supported delete semantics in AUTO CDC and validate tombstone behavior against representative events.
Question 664
A pipeline chooses a source table based on an environment setting, but a hardcoded production path overrides the testing selection. A developer writes a Python loop that creates the same named pipeline table repeatedly, causing collisions during graph construction. What is the most appropriate plan for this situation?
- Generate deterministic distinct dataset names and validate the loop's declarations before pipeline evaluation; do not Resolve the supported environment condition before declaring the relevant pipeline input and validate each deployment target.
- Resolve the supported environment condition before declaring the relevant pipeline input and validate each deployment target; Generate deterministic distinct dataset names and validate the loop's declarations before pipeline evaluation.
- Parameterize unique regional outputs and task identities while retaining shared transformation code; Generate deterministic distinct dataset names and validate the loop's declarations before pipeline evaluation.
- Resolve the supported environment condition before declaring the relevant pipeline input and validate each deployment target; validate required branch configuration and fail clearly when no supported source selection exists.
Explanation
Correct Answer
B:Environment control flow must determine actual input selection rather than cosmetic variable names. Programmatic declarations must produce a valid and nonconflicting dependency graph.
Incorrect Answers
A:Generate deterministic distinct dataset names and validate the loop's declarations before pipeline evaluation; do not Resolve the supported environment condition before declaring the relevant pipeline input and validate each deployment target: programmatic declarations must produce a valid and nonconflicting dependency graph; Requirement 1 requires: resolve the supported environment condition before declaring the relevant pipeline input and validate each deployment target.
C:Reuse of code should not imply reuse of stateful output locations; Requirement 1 requires: resolve the supported environment condition before declaring the relevant pipeline input and validate each deployment target.
D:Resolve the supported environment condition before declaring the relevant pipeline input and validate each deployment target; validate required branch configuration and fail clearly when no supported source selection exists: programmatic declarations must produce a valid and nonconflicting dependency graph.
Question 665
A team maintains many dependent silver tables with manual trigger order and ad hoc restart scripts. A source emits data late, but a stateful stream drops records because watermark expectations were never checked. Which course of action addresses the stated issues?
- Choose and test an event-time watermark that balances accepted lateness with state retention and memory; do not use Lakeflow declarative dependency management where its supported transforms meet the business requirements.
- Evaluate Structured Streaming directly with supported state, watermark, and checkpoint management; choose and test an event-time watermark that balances accepted lateness with state retention and memory.
- Use Lakeflow declarative dependency management where its supported transforms meet the business requirements; choose and test an event-time watermark that balances accepted lateness with state retention and memory.
- Use Lakeflow declarative dependency management where its supported transforms meet the business requirements; preserve and validate checkpoint compatibility; plan a controlled state reset only when genuinely required.
Explanation
Correct Answer
C:A managed dependency graph can reduce custom orchestration burden across related tables. Watermarks govern when late data is no longer retained for stateful processing.
Incorrect Answers
A:Use Lakeflow declarative dependency management where its supported transforms meet the business requirements.
B:Evaluate Structured Streaming directly with supported state, watermark, and checkpoint management; choose and test an event-time watermark that balances accepted lateness with state retention and memory. This does not replace use Lakeflow declarative dependency management where its supported transforms meet the business requirements.
D:Use Lakeflow declarative dependency management where its supported transforms meet the business requirements; preserve and validate checkpoint compatibility; plan a controlled state reset only when genuinely required; Requirement 2 requires: choose and test an event-time watermark that balances accepted lateness with state retention and memory, rather than preserve and validate checkpoint compatibility.
Question 666
A production job installs an unpinned PyPI library and begins failing after a minor upstream release introduces an incompatible API. A custom wheel imports locally but fails on a serverless job where its native extension depends on an unavailable system library. Which response best addresses these needs?
- Verify the target compute environment's supported library and native dependency requirements before selecting or rebuilding the package; do not Pin and test compatible library versions in the job's environment before promoting the dependency update.
- Pin and test compatible library versions in the job's environment before promoting the dependency update; verify the target compute environment's supported library and native dependency requirements before selecting or rebuilding the package.
- Isolate compatible dependency sets by supported task or compute configuration rather than forcing both jobs onto one shared version; verify the target compute environment's supported library and native dependency requirements before selecting or rebuilding the package.
- Pin and test compatible library versions in the job's environment before promoting the dependency update; use a vetted artifact source with integrity controls and record the approved package version in deployment configuration.
Explanation
Correct Answer
B:Reproducible dependency versions prevent unreviewed upstream changes from breaking scheduled workloads. Successful local installation does not establish binary compatibility with the target runtime.
Incorrect Answers
A:Verify the target compute environment's supported library and native dependency requirements before selecting or rebuilding the package; do not Pin and test compatible library versions in the job's environment before promoting the dependency update: successful local installation does not establish binary compatibility with the target runtime; requirement 1 requires: pinning and test compatible library versions in the job's environment before promoting the dependency update.
C:Dependency isolation limits cross-job regressions when release cadences differ; requirement 1 requires: pinning and test compatible library versions in the job's environment before promoting the dependency update.
D:Pin and test compatible library versions in the job's environment before promoting the dependency update; use a vetted artifact source with integrity controls and record the approved package version in deployment configuration: successful local installation does not establish binary compatibility with the target runtime.
Question 667
A dashboard requires updates every hour, but a team pays for continuous streaming processing while inputs arrive only once per day. An analyst assumes a streaming table and a materialized view can be substituted without reviewing change handling for updates and deletes. What is the most appropriate plan for this situation?
- Compare supported incremental and refresh semantics against actual source mutations before choosing the target object; do not Match refresh or trigger cadence to actual arrival and freshness requirements rather than leaving compute running needlessly.
- Match refresh or trigger cadence to actual arrival and freshness requirements rather than leaving compute running needlessly; 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; compare supported incremental and refresh semantics against actual source mutations before choosing the target object.
- 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.
Explanation
Correct Answer
D:Additional refresh frequency creates cost without improving data availability when the source does not change. Nonappend changes can require different processing semantics from monotonically growing events.
Incorrect Answers
A:Match refresh or trigger cadence to actual arrival and freshness requirements rather than leaving compute running needlessly.
B:Incremental ingestion should avoid rereading the complete growing landing zone each time; Requirement 2 requires: compare supported incremental and refresh semantics against actual source mutations before choosing the target object.
C:Evaluate a materialized view for the maintained aggregate and choose a refresh schedule matching the freshness target; compare supported incremental and refresh semantics against actual source mutations before choosing the target object. This does not replace match refresh or trigger cadence to actual arrival and freshness requirements rather than leaving compute running needlessly.
Question 668
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. Which course of action addresses the stated issues?
- 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.
- 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.
- Move external side effects out of retryable row UDF execution and design an idempotent controlled enrichment step; align the declared UDF return type and actual output schema, then test representative null and malformed values.
- Align the declared UDF return type and actual output schema, then test representative null and malformed values; do not evaluate a vectorized Pandas UDF with compatible Arrow-backed batches and measure the revised execution cost.
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.
Incorrect Answers
A: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: spark must reconcile the declared type with the values emitted across Python execution boundaries.
C:Move external side effects out of retryable row UDF execution and design an idempotent controlled enrichment step; 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.
D:Evaluate a vectorized Pandas UDF with compatible Arrow-backed batches and measure the revised execution cost.
Question 669
A multi-task job starts its publishing task before validation finishes, occasionally exposing unverified gold data. A downstream task fails after three predecessors succeed, and operators rerun the entire DAG, duplicating an external export. Which response best addresses these needs?
- Declare the validation task as an explicit prerequisite for publishing in the job graph; Model both predecessors as dependencies and execute the final task only after their required successful completion.
- Use supported repair-run behavior and make externally visible tasks idempotent; do not 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.
- 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.
Explanation
Correct Answer
C:Task dependencies enforce completion order instead of relying on variable runtime durations. A failed downstream task does not automatically reverse successful earlier side effects.
Incorrect Answers
A:A fixed sleep period cannot guarantee parallel work has completed; requirement 2 requires: using supported repair-run behavior and make externally visible tasks idempotent.
B:A failed downstream task does not automatically reverse successful earlier side effects; Requirement 1 requires: declare the validation task as an explicit prerequisite for publishing in the job graph.
D: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; workload-specific job compute can avoid continuous idle capacity while meeting the refresh interval; Requirement 1 requires: declare the validation task as an explicit prerequisite for publishing in the job graph.
Question 670
An Auto Loader pipeline ingests JSON from a landing bucket, but newly added columns disappear because schema evolution is disabled without alerting. One corrupt file stops the entire bronze ingestion even though the business wants invalid payloads retained for investigation. What is the most appropriate plan for this situation?
- Capture rescued or malformed input separately and preserve raw evidence for controlled quarantine; do not configure supported schema inference and evolution behavior and test a staged new-column event.
- Configure supported schema inference and evolution behavior and test a staged new-column event; use checkpointed Auto Loader semantics and an idempotent target write path for recoverable ingestion.
- Evaluate Auto Loader's supported incremental file discovery mechanisms and checkpoint-backed progress; Capture rescued or malformed input separately and preserve raw evidence for controlled quarantine.
- Configure supported schema inference and evolution behavior and test a staged new-column event; Capture rescued or malformed input separately and preserve raw evidence for controlled quarantine.
Explanation
Correct Answer
D:Source contract changes should produce a deliberate schema transition rather than silent loss. Quarantine lets valid records proceed while keeping defects visible to data owners.
Incorrect Answers
A:Capture rescued or malformed input separately and preserve raw evidence for controlled quarantine; do not configure supported schema inference and evolution behavior and test a staged new-column event: quarantine lets valid records proceed while keeping defects visible to data owners; requirement 1 requires: configuring supported schema inference and evolution behavior and test a staged new-column event.
B:Configure supported schema inference and evolution behavior and test a staged new-column event; use checkpointed Auto Loader semantics and an idempotent target write path for recoverable ingestion: quarantine lets valid records proceed while keeping defects visible to data owners.
C:Evaluate Auto Loader's supported incremental file discovery mechanisms and checkpoint-backed progress; Capture rescued or malformed input separately and preserve raw evidence for controlled quarantine; incremental discovery scales better than repeatedly traversing a large historical file inventory; requirement 1 requires: configuring supported schema inference and evolution behavior and test a staged new-column event.
Certified Data Engineer Professional Practice Tests