Certified Associate Developer for Apache Spark Practice Test 11
Question 100
At Summit Supply, while reconciling a reporting dataset (fictional study case R280-C020-1), one partition's executor process crashes, and a replacement task succeeds while the rest of the stage remains intact. The change owner wants to avoid damaging unrelated tables, jobs or access. Which change boundary BEST limits the correction to the affected Spark workload? Select ONE best answer. This is unofficial original Spark educational practice, not a real certification item.
- Change the grouping data path, not unrelated narrow transformations.
- Optimize the shared lineage and its actions only.
- Fix the external write contract without disabling Spark fault recovery.
- Limit recovery handling to failed partitions and idempotent sinks.
Explanation
Correct Answer
D:Keep scope tied to the actual issue: One partition's executor process crashes, and a replacement task succeeds while the rest of the stage remains intact. The bounded intervention is: Limit recovery handling to failed partitions and idempotent sinks. Confirm: The job finishes with one logical output and no duplicated external side effects.
Incorrect Answers
A:Change the grouping data path, not unrelated narrow transformations. It is not the bounded choice for the stated condition: One partition's executor process crashes, and a replacement task succeeds while the rest of the stage remains intact. The permitted change must remain: Limit recovery handling to failed partitions and idempotent sinks.
B:Optimize the shared lineage and its actions only. It is not the bounded choice for the stated condition: One partition's executor process crashes, and a replacement task succeeds while the rest of the stage remains intact. The permitted change must remain: Limit recovery handling to failed partitions and idempotent sinks.
C:Fix the external write contract without disabling Spark fault recovery. The action does not preserve the identified scope boundary: Limit recovery handling to failed partitions and idempotent sinks.
Question 101
At Granite Insurance, after a routine data refresh (fictional study case R280-C021-1), a `groupBy` after a filter has heavy network transfer, but the team expects a pipelined narrow dependency only. Which corrective Spark operation or design change BEST addresses the reported failure? Select ONE best answer. This is unofficial original Spark educational practice, not a real certification item.
- Consolidate required outputs or persist the shared intermediate when multiple actions justify caching.
- Make sink operations idempotent with stable keys or use a transactionally safe supported output mechanism.
- Account for the shuffle in sizing and reduce transferred data before grouping where valid.
- Preserve recoverable inputs and allow supported shuffle/task recovery while investigating executor churn.
Explanation
Correct Answer
C:Account for the shuffle in sizing and reduce transferred data before grouping where valid. This addresses the documented mechanism: Keyed grouping redistributes records between partitions, introducing a wide shuffle dependency and stage boundary. Recovery is demonstrated when: The stage plan reflects real network transfer and optimized grouping produces correct aggregates.
Incorrect Answers
A:Consolidate required outputs or persist the shared intermediate when multiple actions justify caching. The option targets a different stage or condition. The relevant failure is: Keyed grouping redistributes records between partitions, introducing a wide shuffle dependency and stage boundary. The needed repair is: Account for the shuffle in sizing and reduce transferred data before grouping where valid.
B:Make sink operations idempotent with stable keys or use a transactionally safe supported output mechanism. The recorded mechanism is: Keyed grouping redistributes records between partitions, introducing a wide shuffle dependency and stage boundary. The proposed action does not correct that mechanism; use: Account for the shuffle in sizing and reduce transferred data before grouping where valid.
D:Preserve recoverable inputs and allow supported shuffle/task recovery while investigating executor churn. The recorded mechanism is: Keyed grouping redistributes records between partitions, introducing a wide shuffle dependency and stage boundary. The proposed action does not correct that mechanism; use: Account for the shuffle in sizing and reduce transferred data before grouping where valid.
Question 102
At Elmwood Manufacturing, while debugging a failed notebook (fictional study case R280-C021-2), a `groupBy` after a filter has heavy network transfer, but the team expects a pipelined narrow dependency only. The engineer wants to distinguish the mechanism before changing code. Which underlying Spark mechanism BEST explains the observed symptom? Select ONE best answer. This is unofficial original Spark educational practice, not a real certification item.
- Each action can initiate execution of lazy transformations; no persistence or materialized reuse was configured.
- Task-attempt retries can rerun user code; arbitrary external side effects are not automatically exactly-once.
- Lost shuffle blocks may require upstream task recomputation from lineage before dependent tasks continue.
- Keyed grouping redistributes records between partitions, introducing a wide shuffle dependency and stage boundary.
Explanation
Correct Answer
D:The failure is explained by: Keyed grouping redistributes records between partitions, introducing a wide shuffle dependency and stage boundary. A `groupBy` after a filter has heavy network transfer, but the team expects a pipelined narrow dependency only. Correcting it would require: Account for the shuffle in sizing and reduce transferred data before grouping where valid.
Incorrect Answers
A:Each action can initiate execution of lazy transformations; no persistence or materialized reuse was configured. That explanation needs evidence of another fault. The specific mechanism here is: Keyed grouping redistributes records between partitions, introducing a wide shuffle dependency and stage boundary.
B:Task-attempt retries can rerun user code; arbitrary external side effects are not automatically exactly-once. That explanation needs evidence of another fault. The specific mechanism here is: Keyed grouping redistributes records between partitions, introducing a wide shuffle dependency and stage boundary.
C:Lost shuffle blocks may require upstream task recomputation from lineage before dependent tasks continue. That explanation needs evidence of another fault. The specific mechanism here is: Keyed grouping redistributes records between partitions, introducing a wide shuffle dependency and stage boundary.
Question 103
At Lakeside Devices, during a performance incident (fictional study case R280-C021-1), a `groupBy` after a filter has heavy network transfer, but the team expects a pipelined narrow dependency only. Competing explanations are being considered; choose the most discriminating check. Which evidence check BEST distinguishes this cause from a different Spark problem? Select ONE best answer. This is unofficial original Spark educational practice, not a real certification item.
- Inspect `Exchange` in the physical plan and per-stage shuffle metrics.
- Inspect Spark UI job history and repeated source scans for each action.
- Compare duplicate invoice IDs with Spark task attempt history after a forced retry.
- Trace lost executor, missing shuffle blocks and resubmitted task attempts.
Explanation
Correct Answer
A:A `groupBy` after a filter has heavy network transfer, but the team expects a pipelined narrow dependency only. The useful diagnostic is: Inspect `Exchange` in the physical plan and per-stage shuffle metrics. That can confirm or refute: Keyed grouping redistributes records between partitions, introducing a wide shuffle dependency and stage boundary.
Incorrect Answers
B:Inspect Spark UI job history and repeated source scans for each action. The case requires a discriminating check before any change, not the offered alternative. Use: Inspect `Exchange` in the physical plan and per-stage shuffle metrics.
C:Compare duplicate invoice IDs with Spark task attempt history after a forced retry. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Inspect `Exchange` in the physical plan and per-stage shuffle metrics.
D:Trace lost executor, missing shuffle blocks and resubmitted task attempts. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Inspect `Exchange` in the physical plan and per-stage shuffle metrics.
Question 104
At Bayfront Markets, during a distributed-job recovery test (fictional study case R280-C021-2), a `groupBy` after a filter has heavy network transfer, but the team expects a pipelined narrow dependency only. A proposed fix has been applied; its result still needs validation. Which measurable outcome BEST confirms the fix works without violating the data contract? Select ONE best answer. This is unofficial original Spark educational practice, not a real certification item.
- Repeated work is reduced while all requested results remain correct.
- A retried task produces one logical invoice record.
- The DAG reaches completion with correct rows after simulated executor loss.
- The stage plan reflects real network transfer and optimized grouping produces correct aggregates.
Explanation
Correct Answer
D:A passing check shows: The stage plan reflects real network transfer and optimized grouping produces correct aggregates. This is evidence for the scoped change: Account for the shuffle in sizing and reduce transferred data before grouping where valid.
Incorrect Answers
A:Repeated work is reduced while all requested results remain correct. This is not the observed recovery outcome. Acceptance requires: The stage plan reflects real network transfer and optimized grouping produces correct aggregates.
B:A retried task produces one logical invoice record. The alternative cannot demonstrate that the issue has been corrected: A `groupBy` after a filter has heavy network transfer, but the team expects a pipelined narrow dependency only. The required result is: The stage plan reflects real network transfer and optimized grouping produces correct aggregates.
C:The DAG reaches completion with correct rows after simulated executor loss. This is not the observed recovery outcome. Acceptance requires: The stage plan reflects real network transfer and optimized grouping produces correct aggregates.
Question 105
At Orion Fintech, while reconciling a reporting dataset (fictional study case R280-C021-1), a `groupBy` after a filter has heavy network transfer, but the team expects a pipelined narrow dependency only. The change owner wants to avoid damaging unrelated tables, jobs or access. Which change boundary BEST limits the correction to the affected Spark workload? Select ONE best answer. This is unofficial original Spark educational practice, not a real certification item.
- Optimize the shared lineage and its actions only.
- Change the grouping data path, not unrelated narrow transformations.
- Fix the external write contract without disabling Spark fault recovery.
- Address the affected shuffle and executor health, not the source schema.
Explanation
Correct Answer
B:Keep scope tied to the actual issue: A `groupBy` after a filter has heavy network transfer, but the team expects a pipelined narrow dependency only. The bounded intervention is: Change the grouping data path, not unrelated narrow transformations. Confirm: The stage plan reflects real network transfer and optimized grouping produces correct aggregates.
Incorrect Answers
A:Optimize the shared lineage and its actions only. This does not enforce the required scope: Change the grouping data path, not unrelated narrow transformations. The specific failure is: Keyed grouping redistributes records between partitions, introducing a wide shuffle dependency and stage boundary.
C:Fix the external write contract without disabling Spark fault recovery. It is not the bounded choice for the stated condition: A `groupBy` after a filter has heavy network transfer, but the team expects a pipelined narrow dependency only. The permitted change must remain: Change the grouping data path, not unrelated narrow transformations.
D:Address the affected shuffle and executor health, not the source schema. It is not the bounded choice for the stated condition: A `groupBy` after a filter has heavy network transfer, but the team expects a pipelined narrow dependency only. The permitted change must remain: Change the grouping data path, not unrelated narrow transformations.
Question 106
At Westfield Insights, after a routine data refresh (fictional study case R280-C022-1), a notebook calls `count()`, `show()` and `collect()` on the same uncached lineage and unexpectedly launches separate Spark jobs. Which corrective Spark operation or design change BEST addresses the reported failure? Select ONE best answer. This is unofficial original Spark educational practice, not a real certification item.
- Consolidate required outputs or persist the shared intermediate when multiple actions justify caching.
- Make sink operations idempotent with stable keys or use a transactionally safe supported output mechanism.
- Preserve recoverable inputs and allow supported shuffle/task recovery while investigating executor churn.
- Inspect the optimized plan and Spark UI stages to map transformations to stage boundaries correctly.
Explanation
Correct Answer
A:Consolidate required outputs or persist the shared intermediate when multiple actions justify caching. This addresses the documented mechanism: Each action can initiate execution of lazy transformations; no persistence or materialized reuse was configured. Recovery is demonstrated when: Repeated work is reduced while all requested results remain correct.
Incorrect Answers
B:Make sink operations idempotent with stable keys or use a transactionally safe supported output mechanism. The option targets a different stage or condition. The relevant failure is: Each action can initiate execution of lazy transformations; no persistence or materialized reuse was configured. The needed repair is: Consolidate required outputs or persist the shared intermediate when multiple actions justify caching.
C:Preserve recoverable inputs and allow supported shuffle/task recovery while investigating executor churn. The recorded mechanism is: Each action can initiate execution of lazy transformations; no persistence or materialized reuse was configured. The proposed action does not correct that mechanism; use: Consolidate required outputs or persist the shared intermediate when multiple actions justify caching.
D:Inspect the optimized plan and Spark UI stages to map transformations to stage boundaries correctly. That would not resolve the reported problem: A notebook calls `count()`, `show()` and `collect()` on the same uncached lineage and unexpectedly launches separate Spark jobs. The source-supported intervention is: Consolidate required outputs or persist the shared intermediate when multiple actions justify caching.
Question 107
At Mapleford Engineering, while debugging a failed notebook (fictional study case R280-C022-2), a notebook calls `count()`, `show()` and `collect()` on the same uncached lineage and unexpectedly launches separate Spark jobs. The engineer wants to distinguish the mechanism before changing code. Which underlying Spark mechanism BEST explains the observed symptom? Select ONE best answer. This is unofficial original Spark educational practice, not a real certification item.
- Each action can initiate execution of lazy transformations; no persistence or materialized reuse was configured.
- Task-attempt retries can rerun user code; arbitrary external side effects are not automatically exactly-once.
- Lost shuffle blocks may require upstream task recomputation from lineage before dependent tasks continue.
- Stages are derived from shuffle and execution boundaries rather than one-to-one source statements.
Explanation
Correct Answer
A:The reported symptom is: A notebook calls `count()`, `show()` and `collect()` on the same uncached lineage and unexpectedly launches separate Spark jobs. Its direct cause is: Each action can initiate execution of lazy transformations; no persistence or materialized reuse was configured. Test that conclusion using: Inspect Spark UI job history and repeated source scans for each action.
Incorrect Answers
B:Task-attempt retries can rerun user code; arbitrary external side effects are not automatically exactly-once. The observed failure instead follows from: Each action can initiate execution of lazy transformations; no persistence or materialized reuse was configured. The alternative does not explain the same dependency.
C:Lost shuffle blocks may require upstream task recomputation from lineage before dependent tasks continue. That explanation needs evidence of another fault. The specific mechanism here is: Each action can initiate execution of lazy transformations; no persistence or materialized reuse was configured.
D:Stages are derived from shuffle and execution boundaries rather than one-to-one source statements. That explanation needs evidence of another fault. The specific mechanism here is: Each action can initiate execution of lazy transformations; no persistence or materialized reuse was configured.
Question 108
At Horizon Logistics, during a performance incident (fictional study case R280-C022-1), a notebook calls `count()`, `show()` and `collect()` on the same uncached lineage and unexpectedly launches separate Spark jobs. Competing explanations are being considered; choose the most discriminating check. Which evidence check BEST distinguishes this cause from a different Spark problem? Select ONE best answer. This is unofficial original Spark educational practice, not a real certification item.
- Compare duplicate invoice IDs with Spark task attempt history after a forced retry.
- Trace lost executor, missing shuffle blocks and resubmitted task attempts.
- Compare Exchange operators and DAG stage dependencies with the UI.
- Inspect Spark UI job history and repeated source scans for each action.
Explanation
Correct Answer
D:A notebook calls `count()`, `show()` and `collect()` on the same uncached lineage and unexpectedly launches separate Spark jobs. The useful diagnostic is: Inspect Spark UI job history and repeated source scans for each action. That can confirm or refute: Each action can initiate execution of lazy transformations; no persistence or materialized reuse was configured.
Incorrect Answers
A:Compare duplicate invoice IDs with Spark task attempt history after a forced retry. The case requires a discriminating check before any change, not the offered alternative. Use: Inspect Spark UI job history and repeated source scans for each action.
B:Trace lost executor, missing shuffle blocks and resubmitted task attempts. That does not establish whether the stated cause is present: Each action can initiate execution of lazy transformations; no persistence or materialized reuse was configured. The diagnostic is: Inspect Spark UI job history and repeated source scans for each action.
C:Compare Exchange operators and DAG stage dependencies with the UI. That does not establish whether the stated cause is present: Each action can initiate execution of lazy transformations; no persistence or materialized reuse was configured. The diagnostic is: Inspect Spark UI job history and repeated source scans for each action.
Question 109
At Aspen Public Services, during a distributed-job recovery test (fictional study case R280-C022-2), a notebook calls `count()`, `show()` and `collect()` on the same uncached lineage and unexpectedly launches separate Spark jobs. A proposed fix has been applied; its result still needs validation. Which measurable outcome BEST confirms the fix works without violating the data contract? Select ONE best answer. This is unofficial original Spark educational practice, not a real certification item.
- A retried task produces one logical invoice record.
- The DAG reaches completion with correct rows after simulated executor loss.
- Repeated work is reduced while all requested results remain correct.
- The runbook identifies the actual stage and job boundaries for the pipeline.
Explanation
Correct Answer
C:Repeated work is reduced while all requested results remain correct. This is an observable state after the correction: Consolidate required outputs or persist the shared intermediate when multiple actions justify caching. It confirms the original problem no longer occurs.
Incorrect Answers
A:A retried task produces one logical invoice record. This is not the observed recovery outcome. Acceptance requires: Repeated work is reduced while all requested results remain correct.
B:The DAG reaches completion with correct rows after simulated executor loss. The alternative cannot demonstrate that the issue has been corrected: A notebook calls `count()`, `show()` and `collect()` on the same uncached lineage and unexpectedly launches separate Spark jobs. The required result is: Repeated work is reduced while all requested results remain correct.
D:The runbook identifies the actual stage and job boundaries for the pipeline. Implementation or a check alone is not proof of success. The measurable end state is: Repeated work is reduced while all requested results remain correct.
Question 110
At Juniper Foods, while reconciling a reporting dataset (fictional study case R280-C022-1), a notebook calls `count()`, `show()` and `collect()` on the same uncached lineage and unexpectedly launches separate Spark jobs. The change owner wants to avoid damaging unrelated tables, jobs or access. Which change boundary BEST limits the correction to the affected Spark workload? Select ONE best answer. This is unofficial original Spark educational practice, not a real certification item.
- Fix the external write contract without disabling Spark fault recovery.
- Address the affected shuffle and executor health, not the source schema.
- Update performance diagnosis, not the logical query output.
- Optimize the shared lineage and its actions only.
Explanation
Correct Answer
D:Keep scope tied to the actual issue: A notebook calls `count()`, `show()` and `collect()` on the same uncached lineage and unexpectedly launches separate Spark jobs. The bounded intervention is: Optimize the shared lineage and its actions only. Confirm: Repeated work is reduced while all requested results remain correct.
Incorrect Answers
A:Fix the external write contract without disabling Spark fault recovery. The action does not preserve the identified scope boundary: Optimize the shared lineage and its actions only.
B:Address the affected shuffle and executor health, not the source schema. This does not enforce the required scope: Optimize the shared lineage and its actions only. The specific failure is: Each action can initiate execution of lazy transformations; no persistence or materialized reuse was configured.
C:Update performance diagnosis, not the logical query output. It is not the bounded choice for the stated condition: A notebook calls `count()`, `show()` and `collect()` on the same uncached lineage and unexpectedly launches separate Spark jobs. The permitted change must remain: Optimize the shared lineage and its actions only.