Certified Associate Developer for Apache Spark Practice Test 78
Question 770
At Mapleford Engineering, while debugging a failed notebook (fictional study case R280-C154-1), a query repeatedly scans unpartitioned years of data, but the team expects AQE alone to prune historical files. 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 source layout and query for the affected table.
- Enable/tune AQE for this workload under measured change control.
- Tune only adaptive post-shuffle partition sizing.
- Document and tune the specific join, not universal planner behavior.
Explanation
Correct Answer
A:The relevant boundary is: Fix the source layout and query for the affected table. The correction remains: Improve time filtering and source partition layout in addition to eligible adaptive operations.
Incorrect Answers
B:Enable/tune AQE for this workload under measured change control. It is not the bounded choice for the stated condition: A query repeatedly scans unpartitioned years of data, but the team expects AQE alone to prune historical files. The permitted change must remain: Fix the source layout and query for the affected table.
C:Tune only adaptive post-shuffle partition sizing. The action does not preserve the identified scope boundary: Fix the source layout and query for the affected table.
D:Document and tune the specific join, not universal planner behavior. This does not enforce the required scope: Fix the source layout and query for the affected table. The specific failure is: AQE focuses on runtime plan optimization and does not replace suitable source partitioning and predicate pushdown.
Question 771
At Horizon Logistics, when reviewing an incremental load (fictional study case R280-C155-1), a batch fails before any executor tasks launch, yet engineers look only at executor logs for the exception. 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.
- Review affected executor logs and tune partition size, aggregation pressure or executor memory as evidence supports.
- Inspect driver output and application event logs first for pre-task errors.
- Increase useful input parallelism or adjust cluster size to task demand after profiling.
- Reduce retained object footprint or adjust memory sizing according to GC and spill evidence.
Explanation
Correct Answer
B:The observed defect follows from: Driver-side scheduling, configuration and analysis failures occur outside executor task logs. The appropriate correction is: Inspect driver output and application event logs first for pre-task errors. Confirm the result by verifying: Diagnosis identifies the configuration failure and job starts successfully.
Incorrect Answers
A:Review affected executor logs and tune partition size, aggregation pressure or executor memory as evidence supports. The recorded mechanism is: Driver-side scheduling, configuration and analysis failures occur outside executor task logs. The proposed action does not correct that mechanism; use: Inspect driver output and application event logs first for pre-task errors.
C:Increase useful input parallelism or adjust cluster size to task demand after profiling. The recorded mechanism is: Driver-side scheduling, configuration and analysis failures occur outside executor task logs. The proposed action does not correct that mechanism; use: Inspect driver output and application event logs first for pre-task errors.
D:Reduce retained object footprint or adjust memory sizing according to GC and spill evidence. The recorded mechanism is: Driver-side scheduling, configuration and analysis failures occur outside executor task logs. The proposed action does not correct that mechanism; use: Inspect driver output and application event logs first for pre-task errors.
Question 772
At Aspen Public Services, before a production rollout (fictional study case R280-C155-2), a batch fails before any executor tasks launch, yet engineers look only at executor logs for the exception. 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.
- Partition/task memory pressure occurs in the executor process, not necessarily the driver.
- Driver-side scheduling, configuration and analysis failures occur outside executor task logs.
- There are too few runnable tasks to occupy the allocated executor slots.
- Heap pressure and garbage collection, not network input, dominate stage wall time.
Explanation
Correct Answer
B:Investigation should distinguish this specific mechanism: Driver-side scheduling, configuration and analysis failures occur outside executor task logs. The related symptom is: A batch fails before any executor tasks launch, yet engineers look only at executor logs for the exception. The discriminating check is: Confirm absence of started tasks and locate the first driver exception.
Incorrect Answers
A:Partition/task memory pressure occurs in the executor process, not necessarily the driver. The observed failure instead follows from: Driver-side scheduling, configuration and analysis failures occur outside executor task logs. The alternative does not explain the same dependency.
C:There are too few runnable tasks to occupy the allocated executor slots. The observed failure instead follows from: Driver-side scheduling, configuration and analysis failures occur outside executor task logs. The alternative does not explain the same dependency.
D:Heap pressure and garbage collection, not network input, dominate stage wall time. That explanation needs evidence of another fault. The specific mechanism here is: Driver-side scheduling, configuration and analysis failures occur outside executor task logs.
Question 773
At Juniper Foods, while optimizing an ETL application (fictional study case R280-C155-1), a batch fails before any executor tasks launch, yet engineers look only at executor logs for the exception. 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.
- Correlate executor OOM stack traces with task input bytes and spill.
- Compare stage task count with total executor cores.
- Confirm absence of started tasks and locate the first driver exception.
- Compare executor GC time, heap usage and source read duration.
Explanation
Correct Answer
C:Diagnose the affected path with: Confirm absence of started tasks and locate the first driver exception. This tests the case-specific cause: Driver-side scheduling, configuration and analysis failures occur outside executor task logs.
Incorrect Answers
A:Correlate executor OOM stack traces with task input bytes and spill. That does not establish whether the stated cause is present: Driver-side scheduling, configuration and analysis failures occur outside executor task logs. The diagnostic is: Confirm absence of started tasks and locate the first driver exception.
B:Compare stage task count with total executor cores. That does not establish whether the stated cause is present: Driver-side scheduling, configuration and analysis failures occur outside executor task logs. The diagnostic is: Confirm absence of started tasks and locate the first driver exception.
D:Compare executor GC time, heap usage and source read duration. That does not establish whether the stated cause is present: Driver-side scheduling, configuration and analysis failures occur outside executor task logs. The diagnostic is: Confirm absence of started tasks and locate the first driver exception.
Question 774
At Silverpeak Bioinformatics, during an internal acceptance test (fictional study case R280-C155-2), a batch fails before any executor tasks launch, yet engineers look only at executor logs for the exception. 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.
- Tasks complete without executor loss and output matches.
- More cores perform useful work or resources are right-sized without changing results.
- Diagnosis identifies the configuration failure and job starts successfully.
- GC pause fraction drops and stage runtime improves.
Explanation
Correct Answer
C:Diagnosis identifies the configuration failure and job starts successfully. This is an observable state after the correction: Inspect driver output and application event logs first for pre-task errors. It confirms the original problem no longer occurs.
Incorrect Answers
A:Tasks complete without executor loss and output matches. This is not the observed recovery outcome. Acceptance requires: Diagnosis identifies the configuration failure and job starts successfully.
B:More cores perform useful work or resources are right-sized without changing results. The alternative cannot demonstrate that the issue has been corrected: A batch fails before any executor tasks launch, yet engineers look only at executor logs for the exception. The required result is: Diagnosis identifies the configuration failure and job starts successfully.
D:GC pause fraction drops and stage runtime improves. The alternative cannot demonstrate that the issue has been corrected: A batch fails before any executor tasks launch, yet engineers look only at executor logs for the exception. The required result is: Diagnosis identifies the configuration failure and job starts successfully.
Question 775
At Willowbank Software, after a routine data refresh (fictional study case R280-C155-1), a batch fails before any executor tasks launch, yet engineers look only at executor logs for the exception. 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.
- Tune the affected executor-heavy stage.
- Restrict log review and fix to the failed application.
- Tune this job's task parallelism and capacity.
- Focus on memory-intensive task behavior.
Explanation
Correct Answer
B:Keep scope tied to the actual issue: A batch fails before any executor tasks launch, yet engineers look only at executor logs for the exception. The bounded intervention is: Restrict log review and fix to the failed application. Confirm: Diagnosis identifies the configuration failure and job starts successfully.
Incorrect Answers
A:Tune the affected executor-heavy stage. This does not enforce the required scope: Restrict log review and fix to the failed application. The specific failure is: Driver-side scheduling, configuration and analysis failures occur outside executor task logs.
C:Tune this job's task parallelism and capacity. It is not the bounded choice for the stated condition: A batch fails before any executor tasks launch, yet engineers look only at executor logs for the exception. The permitted change must remain: Restrict log review and fix to the failed application.
D:Focus on memory-intensive task behavior. The action does not preserve the identified scope boundary: Restrict log review and fix to the failed application.
Question 776
At Seabrook Education, when reviewing an incremental load (fictional study case R280-C156-1), a stage repeatedly loses one executor with out-of-memory exceptions while the driver stays healthy. 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.
- Increase useful input parallelism or adjust cluster size to task demand after profiling.
- Reduce retained object footprint or adjust memory sizing according to GC and spill evidence.
- Review worker stability and allow Spark's supported shuffle recovery with idempotent output writes.
- Review affected executor logs and tune partition size, aggregation pressure or executor memory as evidence supports.
Explanation
Correct Answer
D:The observed defect follows from: Partition/task memory pressure occurs in the executor process, not necessarily the driver. The appropriate correction is: Review affected executor logs and tune partition size, aggregation pressure or executor memory as evidence supports. Confirm the result by verifying: Tasks complete without executor loss and output matches.
Incorrect Answers
A:Increase useful input parallelism or adjust cluster size to task demand after profiling. That would not resolve the reported problem: A stage repeatedly loses one executor with out-of-memory exceptions while the driver stays healthy. The source-supported intervention is: Review affected executor logs and tune partition size, aggregation pressure or executor memory as evidence supports.
B:Reduce retained object footprint or adjust memory sizing according to GC and spill evidence. That would not resolve the reported problem: A stage repeatedly loses one executor with out-of-memory exceptions while the driver stays healthy. The source-supported intervention is: Review affected executor logs and tune partition size, aggregation pressure or executor memory as evidence supports.
C:Review worker stability and allow Spark's supported shuffle recovery with idempotent output writes. That would not resolve the reported problem: A stage repeatedly loses one executor with out-of-memory exceptions while the driver stays healthy. The source-supported intervention is: Review affected executor logs and tune partition size, aggregation pressure or executor memory as evidence supports.
Question 777
At Bluewater Energy, before a production rollout (fictional study case R280-C156-2), a stage repeatedly loses one executor with out-of-memory exceptions while the driver stays healthy. 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.
- There are too few runnable tasks to occupy the allocated executor slots.
- Partition/task memory pressure occurs in the executor process, not necessarily the driver.
- Heap pressure and garbage collection, not network input, dominate stage wall time.
- Executor loss invalidated shuffle data and downstream fetch attempts must retry/recompute.
Explanation
Correct Answer
B:Partition/task memory pressure occurs in the executor process, not necessarily the driver. This accounts for the observed condition: A stage repeatedly loses one executor with out-of-memory exceptions while the driver stays healthy. The relevant verification is: Correlate executor OOM stack traces with task input bytes and spill.
Incorrect Answers
A:There are too few runnable tasks to occupy the allocated executor slots. The observed failure instead follows from: Partition/task memory pressure occurs in the executor process, not necessarily the driver. The alternative does not explain the same dependency.
C:Heap pressure and garbage collection, not network input, dominate stage wall time. This is not the root cause established for the reported condition: A stage repeatedly loses one executor with out-of-memory exceptions while the driver stays healthy. The cause is: Partition/task memory pressure occurs in the executor process, not necessarily the driver.
D:Executor loss invalidated shuffle data and downstream fetch attempts must retry/recompute. This is not the root cause established for the reported condition: A stage repeatedly loses one executor with out-of-memory exceptions while the driver stays healthy. The cause is: Partition/task memory pressure occurs in the executor process, not necessarily the driver.
Question 778
At Meridian Commerce, while optimizing an ETL application (fictional study case R280-C156-1), a stage repeatedly loses one executor with out-of-memory exceptions while the driver stays healthy. 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 stage task count with total executor cores.
- Correlate executor OOM stack traces with task input bytes and spill.
- Compare executor GC time, heap usage and source read duration.
- Correlate lost executor IDs with fetch-failure attempts and resumed map tasks.
Explanation
Correct Answer
B:The needed observation is: Correlate executor OOM stack traces with task input bytes and spill. The suspected failure is: Partition/task memory pressure occurs in the executor process, not necessarily the driver. The repair should only follow that check.
Incorrect Answers
A:Compare stage task count with total executor cores. That does not establish whether the stated cause is present: Partition/task memory pressure occurs in the executor process, not necessarily the driver. The diagnostic is: Correlate executor OOM stack traces with task input bytes and spill.
C:Compare executor GC time, heap usage and source read duration. The case requires a discriminating check before any change, not the offered alternative. Use: Correlate executor OOM stack traces with task input bytes and spill.
D:Correlate lost executor IDs with fetch-failure attempts and resumed map tasks. That does not establish whether the stated cause is present: Partition/task memory pressure occurs in the executor process, not necessarily the driver. The diagnostic is: Correlate executor OOM stack traces with task input bytes and spill.
Question 779
At Copperline Finance, during an internal acceptance test (fictional study case R280-C156-2), a stage repeatedly loses one executor with out-of-memory exceptions while the driver stays healthy. 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.
- Tasks complete without executor loss and output matches.
- More cores perform useful work or resources are right-sized without changing results.
- GC pause fraction drops and stage runtime improves.
- Retry completes correctly without duplicate external side effects.
Explanation
Correct Answer
A:A passing check shows: Tasks complete without executor loss and output matches. This is evidence for the scoped change: Review affected executor logs and tune partition size, aggregation pressure or executor memory as evidence supports.
Incorrect Answers
B:More cores perform useful work or resources are right-sized without changing results. This is not the observed recovery outcome. Acceptance requires: Tasks complete without executor loss and output matches.
C:GC pause fraction drops and stage runtime improves. This is not the observed recovery outcome. Acceptance requires: Tasks complete without executor loss and output matches.
D:Retry completes correctly without duplicate external side effects. This is not the observed recovery outcome. Acceptance requires: Tasks complete without executor loss and output matches.
Question 780
At Pinecrest Media, after a routine data refresh (fictional study case R280-C156-1), a stage repeatedly loses one executor with out-of-memory exceptions while the driver stays healthy. 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.
- Tune the affected executor-heavy stage.
- Tune this job's task parallelism and capacity.
- Focus on memory-intensive task behavior.
- Investigate node churn and affected shuffle stages.
Explanation
Correct Answer
A:The relevant boundary is: Tune the affected executor-heavy stage. The correction remains: Review affected executor logs and tune partition size, aggregation pressure or executor memory as evidence supports.
Incorrect Answers
B:Tune this job's task parallelism and capacity. This does not enforce the required scope: Tune the affected executor-heavy stage. The specific failure is: Partition/task memory pressure occurs in the executor process, not necessarily the driver.
C:Focus on memory-intensive task behavior. The action does not preserve the identified scope boundary: Tune the affected executor-heavy stage.
D:Investigate node churn and affected shuffle stages. The action does not preserve the identified scope boundary: Tune the affected executor-heavy stage.