Certified Associate Developer for Apache Spark Practice Test 4
Question 30
At Northstar Payments, while optimizing an ETL application (fictional study case R280-C006-1), doubling worker nodes barely improves a group-by because one product identifier owns most of the input rows. 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.
- Keep the migration limited to the archive transformation and its output contract.
- Change only the skewed stage and document its special-case data contract.
- Restrict the simplification to the bounded reference input, not the large fact table.
- Replace only the row-wise computational portion while preserving application side effects.
Explanation
Correct Answer
B:Change only the skewed stage and document its special-case data contract. This limits the change while addressing: Distributed parallelism cannot eliminate a single oversized hot-key partition without special handling. The expected outcome is: No single straggler dominates the aggregation and totals are unchanged.
Incorrect Answers
A:Keep the migration limited to the archive transformation and its output contract. This does not enforce the required scope: Change only the skewed stage and document its special-case data contract. The specific failure is: Distributed parallelism cannot eliminate a single oversized hot-key partition without special handling.
C:Restrict the simplification to the bounded reference input, not the large fact table. This does not enforce the required scope: Change only the skewed stage and document its special-case data contract. The specific failure is: Distributed parallelism cannot eliminate a single oversized hot-key partition without special handling.
D:Replace only the row-wise computational portion while preserving application side effects. It is not the bounded choice for the stated condition: Doubling worker nodes barely improves a group-by because one product identifier owns most of the input rows. The permitted change must remain: Change only the skewed stage and document its special-case data contract.
Question 31
At Cloudhaven Apps, after a routine data refresh (fictional study case R280-C007-1), a Spark batch stops after the coordinating process is killed although workers still have available CPU. 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.
- Size executor cores and concurrent tasks for observed CPU resources and avoid excessive intra-executor oversubscription.
- Restore a supported driver lifecycle with appropriate restart/orchestration strategy and avoid hosting critical coordination on a transient shell.
- Eliminate unnecessary collection or bound the local lookup while leaving executor allocations intact.
- Request a supported executor allocation or dynamic scaling policy matched to the work and quotas.
Explanation
Correct Answer
B:Restore a supported driver lifecycle with appropriate restart/orchestration strategy and avoid hosting critical coordination on a transient shell. This addresses the documented mechanism: The driver owns application scheduling and coordination; executor capacity cannot replace a missing driver. Recovery is demonstrated when: A restarted application completes under supervised driver management.
Incorrect Answers
A:Size executor cores and concurrent tasks for observed CPU resources and avoid excessive intra-executor oversubscription. The recorded mechanism is: The driver owns application scheduling and coordination; executor capacity cannot replace a missing driver. The proposed action does not correct that mechanism; use: Restore a supported driver lifecycle with appropriate restart/orchestration strategy and avoid hosting critical coordination on a transient shell.
C:Eliminate unnecessary collection or bound the local lookup while leaving executor allocations intact. The recorded mechanism is: The driver owns application scheduling and coordination; executor capacity cannot replace a missing driver. The proposed action does not correct that mechanism; use: Restore a supported driver lifecycle with appropriate restart/orchestration strategy and avoid hosting critical coordination on a transient shell.
D:Request a supported executor allocation or dynamic scaling policy matched to the work and quotas. The option targets a different stage or condition. The relevant failure is: The driver owns application scheduling and coordination; executor capacity cannot replace a missing driver. The needed repair is: Restore a supported driver lifecycle with appropriate restart/orchestration strategy and avoid hosting critical coordination on a transient shell.
Question 32
At Bayshore Healthcare, while debugging a failed notebook (fictional study case R280-C007-2), a Spark batch stops after the coordinating process is killed although workers still have available CPU. 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.
- Task concurrency was allocated without respecting executor cores and per-task CPU demands.
- Driver and executor memory are separate process budgets, and driver-side collection exhausts only the former.
- The driver owns application scheduling and coordination; executor capacity cannot replace a missing driver.
- The running application has insufficient allocated executors/cores relative to available cluster capacity.
Explanation
Correct Answer
C:Investigation should distinguish this specific mechanism: The driver owns application scheduling and coordination; executor capacity cannot replace a missing driver. The related symptom is: A Spark batch stops after the coordinating process is killed although workers still have available CPU. The discriminating check is: Correlate driver loss in application logs with executor heartbeats and stage cancellation.
Incorrect Answers
A:Task concurrency was allocated without respecting executor cores and per-task CPU demands. This is not the root cause established for the reported condition: A Spark batch stops after the coordinating process is killed although workers still have available CPU. The cause is: The driver owns application scheduling and coordination; executor capacity cannot replace a missing driver.
B:Driver and executor memory are separate process budgets, and driver-side collection exhausts only the former. That explanation needs evidence of another fault. The specific mechanism here is: The driver owns application scheduling and coordination; executor capacity cannot replace a missing driver.
D:The running application has insufficient allocated executors/cores relative to available cluster capacity. That explanation needs evidence of another fault. The specific mechanism here is: The driver owns application scheduling and coordination; executor capacity cannot replace a missing driver.
Question 33
At Stonebridge Research, during a performance incident (fictional study case R280-C007-1), a Spark batch stops after the coordinating process is killed although workers still have available CPU. 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 executor core counts, running tasks and CPU saturation during peak stages.
- Trace the failing action and compare driver RSS with executor memory metrics.
- Compare Spark UI pending tasks with active executor/core assignments and cluster scheduler limits.
- Correlate driver loss in application logs with executor heartbeats and stage cancellation.
Explanation
Correct Answer
D:Diagnose the affected path with: Correlate driver loss in application logs with executor heartbeats and stage cancellation. This tests the case-specific cause: The driver owns application scheduling and coordination; executor capacity cannot replace a missing driver.
Incorrect Answers
A:Compare executor core counts, running tasks and CPU saturation during peak stages. That does not establish whether the stated cause is present: The driver owns application scheduling and coordination; executor capacity cannot replace a missing driver. The diagnostic is: Correlate driver loss in application logs with executor heartbeats and stage cancellation.
B:Trace the failing action and compare driver RSS with executor memory metrics. The case requires a discriminating check before any change, not the offered alternative. Use: Correlate driver loss in application logs with executor heartbeats and stage cancellation.
C:Compare Spark UI pending tasks with active executor/core assignments and cluster scheduler limits. The case requires a discriminating check before any change, not the offered alternative. Use: Correlate driver loss in application logs with executor heartbeats and stage cancellation.
Question 34
At Cedarline Telecommunications, during a distributed-job recovery test (fictional study case R280-C007-2), a Spark batch stops after the coordinating process is killed although workers still have available CPU. 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.
- CPU utilization stabilizes and per-task latency improves without lost work.
- The notebook completes without growing an unbounded driver object.
- A restarted application completes under supervised driver management.
- More partitions run concurrently within approved capacity and runtime improves.
Explanation
Correct Answer
C:The verification result must be: A restarted application completes under supervised driver management. It is stronger evidence than merely performing: Correlate driver loss in application logs with executor heartbeats and stage cancellation.
Incorrect Answers
A:CPU utilization stabilizes and per-task latency improves without lost work. Implementation or a check alone is not proof of success. The measurable end state is: A restarted application completes under supervised driver management.
B:The notebook completes without growing an unbounded driver object. This is not the observed recovery outcome. Acceptance requires: A restarted application completes under supervised driver management.
D:More partitions run concurrently within approved capacity and runtime improves. This is not the observed recovery outcome. Acceptance requires: A restarted application completes under supervised driver management.
Question 35
At Cobalt Analytics, while reconciling a reporting dataset (fictional study case R280-C007-1), a Spark batch stops after the coordinating process is killed although workers still have available CPU. 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 driver placement and recovery, not executor heap sizes.
- Adjust executor task sizing for the affected pool.
- Correct only the driver-side data handling path.
- Change application compute allocation, not partition semantics.
Explanation
Correct Answer
A:Fix driver placement and recovery, not executor heap sizes. This limits the change while addressing: The driver owns application scheduling and coordination; executor capacity cannot replace a missing driver. The expected outcome is: A restarted application completes under supervised driver management.
Incorrect Answers
B:Adjust executor task sizing for the affected pool. It is not the bounded choice for the stated condition: A Spark batch stops after the coordinating process is killed although workers still have available CPU. The permitted change must remain: Fix driver placement and recovery, not executor heap sizes.
C:Correct only the driver-side data handling path. The action does not preserve the identified scope boundary: Fix driver placement and recovery, not executor heap sizes.
D:Change application compute allocation, not partition semantics. This does not enforce the required scope: Fix driver placement and recovery, not executor heap sizes. The specific failure is: The driver owns application scheduling and coordination; executor capacity cannot replace a missing driver.
Question 36
At Summit Supply, after a routine data refresh (fictional study case R280-C008-1), each executor runs far more concurrent tasks than its cores can sustain and throughput collapses under context switching. 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.
- Eliminate unnecessary collection or bound the local lookup while leaving executor allocations intact.
- Request a supported executor allocation or dynamic scaling policy matched to the work and quotas.
- Size executor cores and concurrent tasks for observed CPU resources and avoid excessive intra-executor oversubscription.
- Keep persistent source files and use cache only for reused computation; choose appropriate storage level if reuse justifies it.
Explanation
Correct Answer
C:The observed defect follows from: Task concurrency was allocated without respecting executor cores and per-task CPU demands. The appropriate correction is: Size executor cores and concurrent tasks for observed CPU resources and avoid excessive intra-executor oversubscription. Confirm the result by verifying: CPU utilization stabilizes and per-task latency improves without lost work.
Incorrect Answers
A:Eliminate unnecessary collection or bound the local lookup while leaving executor allocations intact. The recorded mechanism is: Task concurrency was allocated without respecting executor cores and per-task CPU demands. The proposed action does not correct that mechanism; use: Size executor cores and concurrent tasks for observed CPU resources and avoid excessive intra-executor oversubscription.
B:Request a supported executor allocation or dynamic scaling policy matched to the work and quotas. The recorded mechanism is: Task concurrency was allocated without respecting executor cores and per-task CPU demands. The proposed action does not correct that mechanism; use: Size executor cores and concurrent tasks for observed CPU resources and avoid excessive intra-executor oversubscription.
D:Keep persistent source files and use cache only for reused computation; choose appropriate storage level if reuse justifies it. The option targets a different stage or condition. The relevant failure is: Task concurrency was allocated without respecting executor cores and per-task CPU demands. The needed repair is: Size executor cores and concurrent tasks for observed CPU resources and avoid excessive intra-executor oversubscription.
Question 37
At Granite Insurance, while debugging a failed notebook (fictional study case R280-C008-2), each executor runs far more concurrent tasks than its cores can sustain and throughput collapses under context switching. 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.
- Driver and executor memory are separate process budgets, and driver-side collection exhausts only the former.
- The running application has insufficient allocated executors/cores relative to available cluster capacity.
- Task concurrency was allocated without respecting executor cores and per-task CPU demands.
- Cached partitions are performance hints that can be evicted or recomputed from lineage, not durable source records.
Explanation
Correct Answer
C:Investigation should distinguish this specific mechanism: Task concurrency was allocated without respecting executor cores and per-task CPU demands. The related symptom is: Each executor runs far more concurrent tasks than its cores can sustain and throughput collapses under context switching. The discriminating check is: Compare executor core counts, running tasks and CPU saturation during peak stages.
Incorrect Answers
A:Driver and executor memory are separate process budgets, and driver-side collection exhausts only the former. That explanation needs evidence of another fault. The specific mechanism here is: Task concurrency was allocated without respecting executor cores and per-task CPU demands.
B:The running application has insufficient allocated executors/cores relative to available cluster capacity. That explanation needs evidence of another fault. The specific mechanism here is: Task concurrency was allocated without respecting executor cores and per-task CPU demands.
D:Cached partitions are performance hints that can be evicted or recomputed from lineage, not durable source records. That explanation needs evidence of another fault. The specific mechanism here is: Task concurrency was allocated without respecting executor cores and per-task CPU demands.
Question 38
At Elmwood Manufacturing, during a performance incident (fictional study case R280-C008-1), each executor runs far more concurrent tasks than its cores can sustain and throughput collapses under context switching. 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.
- Trace the failing action and compare driver RSS with executor memory metrics.
- Compare Spark UI pending tasks with active executor/core assignments and cluster scheduler limits.
- Inspect Storage tab evictions and confirm source lineage reruns missing partitions.
- Compare executor core counts, running tasks and CPU saturation during peak stages.
Explanation
Correct Answer
D:Use this focused test: Compare executor core counts, running tasks and CPU saturation during peak stages. The test distinguishes the reported condition from alternatives by checking: Task concurrency was allocated without respecting executor cores and per-task CPU demands.
Incorrect Answers
A:Trace the failing action and compare driver RSS with executor memory metrics. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Compare executor core counts, running tasks and CPU saturation during peak stages.
B:Compare Spark UI pending tasks with active executor/core assignments and cluster scheduler limits. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Compare executor core counts, running tasks and CPU saturation during peak stages.
C:Inspect Storage tab evictions and confirm source lineage reruns missing partitions. The case requires a discriminating check before any change, not the offered alternative. Use: Compare executor core counts, running tasks and CPU saturation during peak stages.
Question 39
At Lakeside Devices, during a distributed-job recovery test (fictional study case R280-C008-2), each executor runs far more concurrent tasks than its cores can sustain and throughput collapses under context switching. 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.
- The notebook completes without growing an unbounded driver object.
- More partitions run concurrently within approved capacity and runtime improves.
- Correct answers remain available despite cache eviction, with predictable recomputation.
- CPU utilization stabilizes and per-task latency improves without lost work.
Explanation
Correct Answer
D:A passing check shows: CPU utilization stabilizes and per-task latency improves without lost work. This is evidence for the scoped change: Size executor cores and concurrent tasks for observed CPU resources and avoid excessive intra-executor oversubscription.
Incorrect Answers
A:The notebook completes without growing an unbounded driver object. This is not the observed recovery outcome. Acceptance requires: CPU utilization stabilizes and per-task latency improves without lost work.
B:More partitions run concurrently within approved capacity and runtime improves. The alternative cannot demonstrate that the issue has been corrected: Each executor runs far more concurrent tasks than its cores can sustain and throughput collapses under context switching. The required result is: CPU utilization stabilizes and per-task latency improves without lost work.
C:Correct answers remain available despite cache eviction, with predictable recomputation. Implementation or a check alone is not proof of success. The measurable end state is: CPU utilization stabilizes and per-task latency improves without lost work.
Question 40
At Bayfront Markets, while reconciling a reporting dataset (fictional study case R280-C008-1), each executor runs far more concurrent tasks than its cores can sustain and throughput collapses under context switching. 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.
- Adjust executor task sizing for the affected pool.
- Correct only the driver-side data handling path.
- Change application compute allocation, not partition semantics.
- Avoid treating executor cache as the system of record.
Explanation
Correct Answer
A:Keep scope tied to the actual issue: Each executor runs far more concurrent tasks than its cores can sustain and throughput collapses under context switching. The bounded intervention is: Adjust executor task sizing for the affected pool. Confirm: CPU utilization stabilizes and per-task latency improves without lost work.
Incorrect Answers
B:Correct only the driver-side data handling path. It is not the bounded choice for the stated condition: Each executor runs far more concurrent tasks than its cores can sustain and throughput collapses under context switching. The permitted change must remain: Adjust executor task sizing for the affected pool.
C:Change application compute allocation, not partition semantics. This does not enforce the required scope: Adjust executor task sizing for the affected pool. The specific failure is: Task concurrency was allocated without respecting executor cores and per-task CPU demands.
D:Avoid treating executor cache as the system of record. This does not enforce the required scope: Adjust executor task sizing for the affected pool. The specific failure is: Task concurrency was allocated without respecting executor cores and per-task CPU demands.