Certified Associate Developer for Apache Spark Practice Test 6
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.
Question 51
At Meridian Commerce, after a routine data refresh (fictional study case R280-C011-1), a cached DataFrame disappears from memory on one executor, but a new action recomputes affected partitions successfully. 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.
- 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.
- Size executor cores and concurrent tasks for observed CPU resources and avoid excessive intra-executor oversubscription.
Explanation
Correct Answer
A:A cached DataFrame disappears from memory on one executor, but a new action recomputes affected partitions successfully. The underlying cause is: Cached partitions are performance hints that can be evicted or recomputed from lineage, not durable source records. The corrective step is: Keep persistent source files and use cache only for reused computation; choose appropriate storage level if reuse justifies it. Validate the outcome: Correct answers remain available despite cache eviction, with predictable recomputation.
Incorrect Answers
B:Configure authorized executor-side credentials and egress for the distributed data source. The option targets a different stage or condition. The relevant failure is: Cached partitions are performance hints that can be evicted or recomputed from lineage, not durable source records. The needed repair is: Keep persistent source files and use cache only for reused computation; choose appropriate storage level if reuse justifies it.
C:Restore a supported driver lifecycle with appropriate restart/orchestration strategy and avoid hosting critical coordination on a transient shell. The option targets a different stage or condition. The relevant failure is: Cached partitions are performance hints that can be evicted or recomputed from lineage, not durable source records. The needed repair is: Keep persistent source files and use cache only for reused computation; choose appropriate storage level if reuse justifies it.
D:Size executor cores and concurrent tasks for observed CPU resources and avoid excessive intra-executor oversubscription. The option targets a different stage or condition. The relevant failure is: Cached partitions are performance hints that can be evicted or recomputed from lineage, not durable source records. The needed repair is: Keep persistent source files and use cache only for reused computation; choose appropriate storage level if reuse justifies it.
Question 52
At Copperline Finance, while debugging a failed notebook (fictional study case R280-C011-2), a cached DataFrame disappears from memory on one executor, but a new action recomputes affected partitions successfully. 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.
- 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.
- Cached partitions are performance hints that can be evicted or recomputed from lineage, not durable source records.
- Task concurrency was allocated without respecting executor cores and per-task CPU demands.
Explanation
Correct Answer
C:The reported symptom is: A cached DataFrame disappears from memory on one executor, but a new action recomputes affected partitions successfully. Its direct cause is: Cached partitions are performance hints that can be evicted or recomputed from lineage, not durable source records. Test that conclusion using: Inspect Storage tab evictions and confirm source lineage reruns missing partitions.
Incorrect Answers
A:Executor task processes lack the source access or network path available to the driver. The observed failure instead follows from: Cached partitions are performance hints that can be evicted or recomputed from lineage, not durable source records. The alternative does not explain the same dependency.
B:The driver owns application scheduling and coordination; executor capacity cannot replace a missing driver. The observed failure instead follows from: Cached partitions are performance hints that can be evicted or recomputed from lineage, not durable source records. The alternative does not explain the same dependency.
D:Task concurrency was allocated without respecting executor cores and per-task CPU demands. The observed failure instead follows from: Cached partitions are performance hints that can be evicted or recomputed from lineage, not durable source records. The alternative does not explain the same dependency.
Question 53
At Pinecrest Media, during a performance incident (fictional study case R280-C011-1), a cached DataFrame disappears from memory on one executor, but a new action recomputes affected partitions successfully. 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 driver read success with executor task access-denied logs.
- Correlate driver loss in application logs with executor heartbeats and stage cancellation.
- 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
C:A cached DataFrame disappears from memory on one executor, but a new action recomputes affected partitions successfully. The useful diagnostic is: Inspect Storage tab evictions and confirm source lineage reruns missing partitions. That can confirm or refute: Cached partitions are performance hints that can be evicted or recomputed from lineage, not durable source records.
Incorrect Answers
A:Compare driver read success with executor task access-denied logs. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Inspect Storage tab evictions and confirm source lineage reruns missing partitions.
B:Correlate driver loss in application logs with executor heartbeats and stage cancellation. The case requires a discriminating check before any change, not the offered alternative. Use: Inspect Storage tab evictions and confirm source lineage reruns missing partitions.
D:Compare executor core counts, running tasks and CPU saturation during peak stages. The case requires a discriminating check before any change, not the offered alternative. Use: Inspect Storage tab evictions and confirm source lineage reruns missing partitions.
Question 54
At Ironlake Networks, during a distributed-job recovery test (fictional study case R280-C011-2), a cached DataFrame disappears from memory on one executor, but a new action recomputes affected partitions successfully. 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.
- A restarted application completes under supervised driver management.
- CPU utilization stabilizes and per-task latency improves without lost work.
Explanation
Correct Answer
A:The verification result must be: Correct answers remain available despite cache eviction, with predictable recomputation. It is stronger evidence than merely performing: Inspect Storage tab evictions and confirm source lineage reruns missing partitions.
Incorrect Answers
B: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: Correct answers remain available despite cache eviction, with predictable recomputation.
C:A restarted application completes under supervised driver management. Implementation or a check alone is not proof of success. The measurable end state is: Correct answers remain available despite cache eviction, with predictable recomputation.
D:CPU utilization stabilizes and per-task latency improves without lost work. This is not the observed recovery outcome. Acceptance requires: Correct answers remain available despite cache eviction, with predictable recomputation.
Question 55
At Valleywide Travel, while reconciling a reporting dataset (fictional study case R280-C011-1), a cached DataFrame disappears from memory on one executor, but a new action recomputes affected partitions successfully. 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.
- Scope permissions to the application execution identity and source path.
- Fix driver placement and recovery, not executor heap sizes.
- Adjust executor task sizing for the affected pool.
Explanation
Correct Answer
A:The approved limit is: Avoid treating executor cache as the system of record. It avoids applying the corrective step beyond the stated failure: A cached DataFrame disappears from memory on one executor, but a new action recomputes affected partitions successfully.
Incorrect Answers
B:Scope permissions to the application execution identity and source path. This does not enforce the required scope: Avoid treating executor cache as the system of record. The specific failure is: Cached partitions are performance hints that can be evicted or recomputed from lineage, not durable source records.
C:Fix driver placement and recovery, not executor heap sizes. It is not the bounded choice for the stated condition: A cached DataFrame disappears from memory on one executor, but a new action recomputes affected partitions successfully. The permitted change must remain: Avoid treating executor cache as the system of record.
D:Adjust executor task sizing for the affected pool. It is not the bounded choice for the stated condition: A cached DataFrame disappears from memory on one executor, but a new action recomputes affected partitions successfully. The permitted change must remain: Avoid treating executor cache as the system of record.
Question 56
At Harbor Data Labs, after a routine data refresh (fictional study case R280-C012-1), driver-side credential validation succeeds, but distributed read tasks fail to fetch object-store partitions. 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.
- Restore a supported driver lifecycle with appropriate restart/orchestration strategy and avoid hosting critical coordination on a transient shell.
- Size executor cores and concurrent tasks for observed CPU resources and avoid excessive intra-executor oversubscription.
- Eliminate unnecessary collection or bound the local lookup while leaving executor allocations intact.
- Configure authorized executor-side credentials and egress for the distributed data source.
Explanation
Correct Answer
D:The observed defect follows from: Executor task processes lack the source access or network path available to the driver. The appropriate correction is: Configure authorized executor-side credentials and egress for the distributed data source. Confirm the result by verifying: All worker partitions read successfully under least-privilege source access.
Incorrect Answers
A: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: Driver-side credential validation succeeds, but distributed read tasks fail to fetch object-store partitions. The source-supported intervention is: Configure authorized executor-side credentials and egress for the distributed data source.
B:Size executor cores and concurrent tasks for observed CPU resources and avoid excessive intra-executor oversubscription. The recorded mechanism is: Executor task processes lack the source access or network path available to the driver. The proposed action does not correct that mechanism; use: Configure authorized executor-side credentials and egress for the distributed data source.
C:Eliminate unnecessary collection or bound the local lookup while leaving executor allocations intact. The option targets a different stage or condition. The relevant failure is: Executor task processes lack the source access or network path available to the driver. The needed repair is: Configure authorized executor-side credentials and egress for the distributed data source.
Question 57
At Oakline Transportation, while debugging a failed notebook (fictional study case R280-C012-2), driver-side credential validation succeeds, but distributed read tasks fail to fetch object-store partitions. 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 driver owns application scheduling and coordination; executor capacity cannot replace a missing driver.
- 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.
- Executor task processes lack the source access or network path available to the driver.
Explanation
Correct Answer
D:The failure is explained by: Executor task processes lack the source access or network path available to the driver. Driver-side credential validation succeeds, but distributed read tasks fail to fetch object-store partitions. Correcting it would require: Configure authorized executor-side credentials and egress for the distributed data source.
Incorrect Answers
A:The driver owns application scheduling and coordination; executor capacity cannot replace a missing driver. The observed failure instead follows from: Executor task processes lack the source access or network path available to the driver. The alternative does not explain the same dependency.
B:Task concurrency was allocated without respecting executor cores and per-task CPU demands. The observed failure instead follows from: Executor task processes lack the source access or network path available to the driver. The alternative does not explain the same dependency.
C: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: Executor task processes lack the source access or network path available to the driver.
Question 58
At Rosehill Diagnostics, during a performance incident (fictional study case R280-C012-1), driver-side credential validation succeeds, but distributed read tasks fail to fetch object-store partitions. 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 driver read success with executor task access-denied logs.
- Correlate driver loss in application logs with executor heartbeats and stage cancellation.
- Compare executor core counts, running tasks and CPU saturation during peak stages.
- Trace the failing action and compare driver RSS with executor memory metrics.
Explanation
Correct Answer
A:Compare driver read success with executor task access-denied logs. This gathers evidence about the stated mechanism: Executor task processes lack the source access or network path available to the driver. The existing symptom is: Driver-side credential validation succeeds, but distributed read tasks fail to fetch object-store partitions.
Incorrect Answers
B:Correlate driver loss in application logs with executor heartbeats and stage cancellation. That does not establish whether the stated cause is present: Executor task processes lack the source access or network path available to the driver. The diagnostic is: Compare driver read success with executor task access-denied logs.
C:Compare executor core counts, running tasks and CPU saturation during peak stages. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Compare driver read success with executor task access-denied logs.
D: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 driver read success with executor task access-denied logs.
Question 59
At Redwood Transit, during a distributed-job recovery test (fictional study case R280-C012-2), driver-side credential validation succeeds, but distributed read tasks fail to fetch object-store partitions. 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 restarted application completes under supervised driver management.
- All worker partitions read successfully under least-privilege source access.
- CPU utilization stabilizes and per-task latency improves without lost work.
- The notebook completes without growing an unbounded driver object.
Explanation
Correct Answer
B:Acceptance requires: All worker partitions read successfully under least-privilege source access. That directly tests whether the mechanism was corrected: Executor task processes lack the source access or network path available to the driver.
Incorrect Answers
A:A restarted application completes under supervised driver management. This is not the observed recovery outcome. Acceptance requires: All worker partitions read successfully under least-privilege source access.
C:CPU utilization stabilizes and per-task latency improves without lost work. The alternative cannot demonstrate that the issue has been corrected: Driver-side credential validation succeeds, but distributed read tasks fail to fetch object-store partitions. The required result is: All worker partitions read successfully under least-privilege source access.
D:The notebook completes without growing an unbounded driver object. Implementation or a check alone is not proof of success. The measurable end state is: All worker partitions read successfully under least-privilege source access.
Question 60
At Meadowvale Robotics, while reconciling a reporting dataset (fictional study case R280-C012-1), driver-side credential validation succeeds, but distributed read tasks fail to fetch object-store partitions. 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.
- Scope permissions to the application execution identity and source path.
- 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.
Explanation
Correct Answer
A:The relevant boundary is: Scope permissions to the application execution identity and source path. The correction remains: Configure authorized executor-side credentials and egress for the distributed data source.
Incorrect Answers
B:Fix driver placement and recovery, not executor heap sizes. The action does not preserve the identified scope boundary: Scope permissions to the application execution identity and source path.
C:Adjust executor task sizing for the affected pool. It is not the bounded choice for the stated condition: Driver-side credential validation succeeds, but distributed read tasks fail to fetch object-store partitions. The permitted change must remain: Scope permissions to the application execution identity and source path.
D:Correct only the driver-side data handling path. It is not the bounded choice for the stated condition: Driver-side credential validation succeeds, but distributed read tasks fail to fetch object-store partitions. The permitted change must remain: Scope permissions to the application execution identity and source path.