Certified Associate Developer for Apache Spark Practice Test 5
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.
Question 41
At Orion Fintech, after a routine data refresh (fictional study case R280-C009-1), the Spark UI shows healthy executors, but a Python notebook driver crashes when building a large local dictionary from a DataFrame. 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.
- Request a supported executor allocation or dynamic scaling policy matched to the work and quotas.
- Keep persistent source files and use cache only for reused computation; choose appropriate storage level if reuse justifies it.
- Configure authorized executor-side credentials and egress for the distributed data source.
- Eliminate unnecessary collection or bound the local lookup while leaving executor allocations intact.
Explanation
Correct Answer
D:The observed defect follows from: Driver and executor memory are separate process budgets, and driver-side collection exhausts only the former. The appropriate correction is: Eliminate unnecessary collection or bound the local lookup while leaving executor allocations intact. Confirm the result by verifying: The notebook completes without growing an unbounded driver object.
Incorrect Answers
A:Request a supported executor allocation or dynamic scaling policy matched to the work and quotas. The recorded mechanism is: Driver and executor memory are separate process budgets, and driver-side collection exhausts only the former. The proposed action does not correct that mechanism; use: Eliminate unnecessary collection or bound the local lookup while leaving executor allocations intact.
B:Keep persistent source files and use cache only for reused computation; choose appropriate storage level if reuse justifies it. That would not resolve the reported problem: The Spark UI shows healthy executors, but a Python notebook driver crashes when building a large local dictionary from a DataFrame. The source-supported intervention is: Eliminate unnecessary collection or bound the local lookup while leaving executor allocations intact.
C:Configure authorized executor-side credentials and egress for the distributed data source. That would not resolve the reported problem: The Spark UI shows healthy executors, but a Python notebook driver crashes when building a large local dictionary from a DataFrame. The source-supported intervention is: Eliminate unnecessary collection or bound the local lookup while leaving executor allocations intact.
Question 42
At Westfield Insights, while debugging a failed notebook (fictional study case R280-C009-2), the Spark UI shows healthy executors, but a Python notebook driver crashes when building a large local dictionary from a DataFrame. 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.
- The running application has insufficient allocated executors/cores relative to available cluster capacity.
- Cached partitions are performance hints that can be evicted or recomputed from lineage, not durable source records.
- Driver and executor memory are separate process budgets, and driver-side collection exhausts only the former.
- Executor task processes lack the source access or network path available to the driver.
Explanation
Correct Answer
C:The Spark UI shows healthy executors, but a Python notebook driver crashes when building a large local dictionary from a DataFrame. The supporting root cause is: Driver and executor memory are separate process budgets, and driver-side collection exhausts only the former. The appropriate remedy is: Eliminate unnecessary collection or bound the local lookup while leaving executor allocations intact.
Incorrect Answers
A:The running application has insufficient allocated executors/cores relative to available cluster capacity. The observed failure instead follows from: Driver and executor memory are separate process budgets, and driver-side collection exhausts only the former. The alternative does not explain the same dependency.
B:Cached partitions are performance hints that can be evicted or recomputed from lineage, not durable source records. This is not the root cause established for the reported condition: The Spark UI shows healthy executors, but a Python notebook driver crashes when building a large local dictionary from a DataFrame. The cause is: Driver and executor memory are separate process budgets, and driver-side collection exhausts only the former.
D:Executor task processes lack the source access or network path available to the driver. That explanation needs evidence of another fault. The specific mechanism here is: Driver and executor memory are separate process budgets, and driver-side collection exhausts only the former.
Question 43
At Mapleford Engineering, during a performance incident (fictional study case R280-C009-1), the Spark UI shows healthy executors, but a Python notebook driver crashes when building a large local dictionary from a DataFrame. 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 Spark UI pending tasks with active executor/core assignments and cluster scheduler limits.
- Trace the failing action and compare driver RSS with executor memory metrics.
- Inspect Storage tab evictions and confirm source lineage reruns missing partitions.
- Compare driver read success with executor task access-denied logs.
Explanation
Correct Answer
B:Use this focused test: Trace the failing action and compare driver RSS with executor memory metrics. The test distinguishes the reported condition from alternatives by checking: Driver and executor memory are separate process budgets, and driver-side collection exhausts only the former.
Incorrect Answers
A: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: Trace the failing action and compare driver RSS with executor memory metrics.
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: Trace the failing action and compare driver RSS with executor memory metrics.
D:Compare driver read success with executor task access-denied logs. That does not establish whether the stated cause is present: Driver and executor memory are separate process budgets, and driver-side collection exhausts only the former. The diagnostic is: Trace the failing action and compare driver RSS with executor memory metrics.
Question 44
At Horizon Logistics, during a distributed-job recovery test (fictional study case R280-C009-2), the Spark UI shows healthy executors, but a Python notebook driver crashes when building a large local dictionary from a DataFrame. 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.
- More partitions run concurrently within approved capacity and runtime improves.
- Correct answers remain available despite cache eviction, with predictable recomputation.
- The notebook completes without growing an unbounded driver object.
- All worker partitions read successfully under least-privilege source access.
Explanation
Correct Answer
C:A passing check shows: The notebook completes without growing an unbounded driver object. This is evidence for the scoped change: Eliminate unnecessary collection or bound the local lookup while leaving executor allocations intact.
Incorrect Answers
A:More partitions run concurrently within approved capacity and runtime improves. Implementation or a check alone is not proof of success. The measurable end state is: The notebook completes without growing an unbounded driver object.
B:Correct answers remain available despite cache eviction, with predictable recomputation. The alternative cannot demonstrate that the issue has been corrected: The Spark UI shows healthy executors, but a Python notebook driver crashes when building a large local dictionary from a DataFrame. The required result is: The notebook completes without growing an unbounded driver object.
D:All worker partitions read successfully under least-privilege source access. Implementation or a check alone is not proof of success. The measurable end state is: The notebook completes without growing an unbounded driver object.
Question 45
At Aspen Public Services, while reconciling a reporting dataset (fictional study case R280-C009-1), the Spark UI shows healthy executors, but a Python notebook driver crashes when building a large local dictionary from a DataFrame. 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.
- Correct only the driver-side data handling path.
- Change application compute allocation, not partition semantics.
- Avoid treating executor cache as the system of record.
- Scope permissions to the application execution identity and source path.
Explanation
Correct Answer
A:Correct only the driver-side data handling path. This limits the change while addressing: Driver and executor memory are separate process budgets, and driver-side collection exhausts only the former. The expected outcome is: The notebook completes without growing an unbounded driver object.
Incorrect Answers
B:Change application compute allocation, not partition semantics. It is not the bounded choice for the stated condition: The Spark UI shows healthy executors, but a Python notebook driver crashes when building a large local dictionary from a DataFrame. The permitted change must remain: Correct only the driver-side data handling path.
C:Avoid treating executor cache as the system of record. It is not the bounded choice for the stated condition: The Spark UI shows healthy executors, but a Python notebook driver crashes when building a large local dictionary from a DataFrame. The permitted change must remain: Correct only the driver-side data handling path.
D:Scope permissions to the application execution identity and source path. It is not the bounded choice for the stated condition: The Spark UI shows healthy executors, but a Python notebook driver crashes when building a large local dictionary from a DataFrame. The permitted change must remain: Correct only the driver-side data handling path.
Question 46
At Juniper Foods, after a routine data refresh (fictional study case R280-C010-1), a long stage queues thousands of partitions while only two executor slots run at once despite unused cluster nodes. 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.
- Request a supported executor allocation or dynamic scaling policy matched to the work and quotas.
- Keep persistent source files and use cache only for reused computation; choose appropriate storage level if reuse justifies it.
- Configure authorized executor-side credentials and egress for the distributed data source.
- Restore a supported driver lifecycle with appropriate restart/orchestration strategy and avoid hosting critical coordination on a transient shell.
Explanation
Correct Answer
A:The observed defect follows from: The running application has insufficient allocated executors/cores relative to available cluster capacity. The appropriate correction is: Request a supported executor allocation or dynamic scaling policy matched to the work and quotas. Confirm the result by verifying: More partitions run concurrently within approved capacity and runtime improves.
Incorrect Answers
B: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: The running application has insufficient allocated executors/cores relative to available cluster capacity. The needed repair is: Request a supported executor allocation or dynamic scaling policy matched to the work and quotas.
C:Configure authorized executor-side credentials and egress for the distributed data source. The option targets a different stage or condition. The relevant failure is: The running application has insufficient allocated executors/cores relative to available cluster capacity. The needed repair is: Request a supported executor allocation or dynamic scaling policy matched to the work and quotas.
D:Restore a supported driver lifecycle with appropriate restart/orchestration strategy and avoid hosting critical coordination on a transient shell. That would not resolve the reported problem: A long stage queues thousands of partitions while only two executor slots run at once despite unused cluster nodes. The source-supported intervention is: Request a supported executor allocation or dynamic scaling policy matched to the work and quotas.
Question 47
At Silverpeak Bioinformatics, while debugging a failed notebook (fictional study case R280-C010-2), a long stage queues thousands of partitions while only two executor slots run at once despite unused cluster nodes. 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.
- Cached partitions are performance hints that can be evicted or recomputed from lineage, not durable source records.
- The running application has insufficient allocated executors/cores relative to available cluster capacity.
- Executor task processes lack the source access or network path available to the driver.
- The driver owns application scheduling and coordination; executor capacity cannot replace a missing driver.
Explanation
Correct Answer
B:Investigation should distinguish this specific mechanism: The running application has insufficient allocated executors/cores relative to available cluster capacity. The related symptom is: A long stage queues thousands of partitions while only two executor slots run at once despite unused cluster nodes. The discriminating check is: Compare Spark UI pending tasks with active executor/core assignments and cluster scheduler limits.
Incorrect Answers
A:Cached partitions are performance hints that can be evicted or recomputed from lineage, not durable source records. This is not the root cause established for the reported condition: A long stage queues thousands of partitions while only two executor slots run at once despite unused cluster nodes. The cause is: The running application has insufficient allocated executors/cores relative to available cluster capacity.
C:Executor task processes lack the source access or network path available to the driver. This is not the root cause established for the reported condition: A long stage queues thousands of partitions while only two executor slots run at once despite unused cluster nodes. The cause is: The running application has insufficient allocated executors/cores relative to available cluster capacity.
D:The driver owns application scheduling and coordination; executor capacity cannot replace a missing driver. That explanation needs evidence of another fault. The specific mechanism here is: The running application has insufficient allocated executors/cores relative to available cluster capacity.
Question 48
At Willowbank Software, during a performance incident (fictional study case R280-C010-1), a long stage queues thousands of partitions while only two executor slots run at once despite unused cluster nodes. 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 Storage tab evictions and confirm source lineage reruns missing partitions.
- Compare Spark UI pending tasks with active executor/core assignments and cluster scheduler limits.
- Compare driver read success with executor task access-denied logs.
- Correlate driver loss in application logs with executor heartbeats and stage cancellation.
Explanation
Correct Answer
B:The needed observation is: Compare Spark UI pending tasks with active executor/core assignments and cluster scheduler limits. The suspected failure is: The running application has insufficient allocated executors/cores relative to available cluster capacity. The repair should only follow that check.
Incorrect Answers
A: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 Spark UI pending tasks with active executor/core assignments and cluster scheduler limits.
C:Compare driver read success with executor task access-denied logs. That does not establish whether the stated cause is present: The running application has insufficient allocated executors/cores relative to available cluster capacity. The diagnostic is: Compare Spark UI pending tasks with active executor/core assignments and cluster scheduler limits.
D:Correlate driver loss in application logs with executor heartbeats and stage cancellation. That does not establish whether the stated cause is present: The running application has insufficient allocated executors/cores relative to available cluster capacity. The diagnostic is: Compare Spark UI pending tasks with active executor/core assignments and cluster scheduler limits.
Question 49
At Seabrook Education, during a distributed-job recovery test (fictional study case R280-C010-2), a long stage queues thousands of partitions while only two executor slots run at once despite unused cluster nodes. 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.
- Correct answers remain available despite cache eviction, with predictable recomputation.
- All worker partitions read successfully under least-privilege source access.
- More partitions run concurrently within approved capacity and runtime improves.
- A restarted application completes under supervised driver management.
Explanation
Correct Answer
C:More partitions run concurrently within approved capacity and runtime improves. This is an observable state after the correction: Request a supported executor allocation or dynamic scaling policy matched to the work and quotas. It confirms the original problem no longer occurs.
Incorrect Answers
A: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: More partitions run concurrently within approved capacity and runtime improves.
B:All worker partitions read successfully under least-privilege source access. This is not the observed recovery outcome. Acceptance requires: More partitions run concurrently within approved capacity and runtime improves.
D:A restarted application completes under supervised driver management. This is not the observed recovery outcome. Acceptance requires: More partitions run concurrently within approved capacity and runtime improves.
Question 50
At Bluewater Energy, while reconciling a reporting dataset (fictional study case R280-C010-1), a long stage queues thousands of partitions while only two executor slots run at once despite unused cluster nodes. 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.
- Avoid treating executor cache as the system of record.
- Change application compute allocation, not partition semantics.
- Scope permissions to the application execution identity and source path.
- Fix driver placement and recovery, not executor heap sizes.
Explanation
Correct Answer
B:Keep scope tied to the actual issue: A long stage queues thousands of partitions while only two executor slots run at once despite unused cluster nodes. The bounded intervention is: Change application compute allocation, not partition semantics. Confirm: More partitions run concurrently within approved capacity and runtime improves.
Incorrect Answers
A:Avoid treating executor cache as the system of record. It is not the bounded choice for the stated condition: A long stage queues thousands of partitions while only two executor slots run at once despite unused cluster nodes. The permitted change must remain: Change application compute allocation, not partition semantics.
C:Scope permissions to the application execution identity and source path. The action does not preserve the identified scope boundary: Change application compute allocation, not partition semantics.
D:Fix driver placement and recovery, not executor heap sizes. The action does not preserve the identified scope boundary: Change application compute allocation, not partition semantics.