Certified Associate Developer for Apache Spark Practice Test 79
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.
Question 781
At Ironlake Networks, when reviewing an incremental load (fictional study case R280-C157-1), a huge cluster shows idle CPU while the active stage has only two input 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.
- 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.
- Increase useful input parallelism or adjust cluster size to task demand after profiling.
- Batch, cache or eliminate remote per-row calls with a supported bounded integration pattern.
Explanation
Correct Answer
C:Increase useful input parallelism or adjust cluster size to task demand after profiling. This addresses the documented mechanism: There are too few runnable tasks to occupy the allocated executor slots. Recovery is demonstrated when: More cores perform useful work or resources are right-sized without changing results.
Incorrect Answers
A:Reduce retained object footprint or adjust memory sizing according to GC and spill evidence. The option targets a different stage or condition. The relevant failure is: There are too few runnable tasks to occupy the allocated executor slots. The needed repair is: Increase useful input parallelism or adjust cluster size to task demand after profiling.
B:Review worker stability and allow Spark's supported shuffle recovery with idempotent output writes. The option targets a different stage or condition. The relevant failure is: There are too few runnable tasks to occupy the allocated executor slots. The needed repair is: Increase useful input parallelism or adjust cluster size to task demand after profiling.
D:Batch, cache or eliminate remote per-row calls with a supported bounded integration pattern. That would not resolve the reported problem: A huge cluster shows idle CPU while the active stage has only two input partitions. The source-supported intervention is: Increase useful input parallelism or adjust cluster size to task demand after profiling.
Question 782
At Valleywide Travel, before a production rollout (fictional study case R280-C157-2), a huge cluster shows idle CPU while the active stage has only two input 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.
- There are too few runnable tasks to occupy the allocated executor slots.
- Heap pressure and garbage collection, not network input, dominate stage wall time.
- Executor loss invalidated shuffle data and downstream fetch attempts must retry/recompute.
- Synchronous network calls in the transformation create latency and uneven task completion.
Explanation
Correct Answer
A:A huge cluster shows idle CPU while the active stage has only two input partitions. The supporting root cause is: There are too few runnable tasks to occupy the allocated executor slots. The appropriate remedy is: Increase useful input parallelism or adjust cluster size to task demand after profiling.
Incorrect Answers
B:Heap pressure and garbage collection, not network input, dominate stage wall time. The observed failure instead follows from: There are too few runnable tasks to occupy the allocated executor slots. The alternative does not explain the same dependency.
C:Executor loss invalidated shuffle data and downstream fetch attempts must retry/recompute. That explanation needs evidence of another fault. The specific mechanism here is: There are too few runnable tasks to occupy the allocated executor slots.
D:Synchronous network calls in the transformation create latency and uneven task completion. That explanation needs evidence of another fault. The specific mechanism here is: There are too few runnable tasks to occupy the allocated executor slots.
Question 783
At Harbor Data Labs, while optimizing an ETL application (fictional study case R280-C157-1), a huge cluster shows idle CPU while the active stage has only two input 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 executor GC time, heap usage and source read duration.
- Correlate lost executor IDs with fetch-failure attempts and resumed map tasks.
- Compare stage task count with total executor cores.
- Compare API request counts, wait time and per-task input sizes.
Explanation
Correct Answer
C:Compare stage task count with total executor cores. This gathers evidence about the stated mechanism: There are too few runnable tasks to occupy the allocated executor slots. The existing symptom is: A huge cluster shows idle CPU while the active stage has only two input partitions.
Incorrect Answers
A:Compare executor GC time, heap usage and source read duration. The case requires a discriminating check before any change, not the offered alternative. Use: Compare stage task count with total executor cores.
B:Correlate lost executor IDs with fetch-failure attempts and resumed map tasks. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Compare stage task count with total executor cores.
D:Compare API request counts, wait time and per-task input sizes. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Compare stage task count with total executor cores.
Question 784
At Oakline Transportation, during an internal acceptance test (fictional study case R280-C157-2), a huge cluster shows idle CPU while the active stage has only two input 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.
- GC pause fraction drops and stage runtime improves.
- More cores perform useful work or resources are right-sized without changing results.
- Retry completes correctly without duplicate external side effects.
- Tasks complete more evenly without losing enrichment correctness.
Explanation
Correct Answer
B:More cores perform useful work or resources are right-sized without changing results. This demonstrates the intended effect of: Increase useful input parallelism or adjust cluster size to task demand after profiling. The prior failure was: A huge cluster shows idle CPU while the active stage has only two input partitions.
Incorrect Answers
A:GC pause fraction drops and stage runtime improves. Implementation or a check alone is not proof of success. The measurable end state is: More cores perform useful work or resources are right-sized without changing results.
C:Retry completes correctly without duplicate external side effects. The alternative cannot demonstrate that the issue has been corrected: A huge cluster shows idle CPU while the active stage has only two input partitions. The required result is: More cores perform useful work or resources are right-sized without changing results.
D:Tasks complete more evenly without losing enrichment correctness. This is not the observed recovery outcome. Acceptance requires: More cores perform useful work or resources are right-sized without changing results.
Question 785
At Rosehill Diagnostics, after a routine data refresh (fictional study case R280-C157-1), a huge cluster shows idle CPU while the active stage has only two input 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.
- Tune this job's task parallelism and capacity.
- Focus on memory-intensive task behavior.
- Investigate node churn and affected shuffle stages.
- Refactor the external lookup stage only.
Explanation
Correct Answer
A:Keep scope tied to the actual issue: A huge cluster shows idle CPU while the active stage has only two input partitions. The bounded intervention is: Tune this job's task parallelism and capacity. Confirm: More cores perform useful work or resources are right-sized without changing results.
Incorrect Answers
B:Focus on memory-intensive task behavior. It is not the bounded choice for the stated condition: A huge cluster shows idle CPU while the active stage has only two input partitions. The permitted change must remain: Tune this job's task parallelism and capacity.
C:Investigate node churn and affected shuffle stages. This does not enforce the required scope: Tune this job's task parallelism and capacity. The specific failure is: There are too few runnable tasks to occupy the allocated executor slots.
D:Refactor the external lookup stage only. This does not enforce the required scope: Tune this job's task parallelism and capacity. The specific failure is: There are too few runnable tasks to occupy the allocated executor slots.
Question 786
At Redwood Transit, when reviewing an incremental load (fictional study case R280-C158-1), executor logs show long Java GC pauses during a large aggregate, but the team blames remote source latency. 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 worker stability and allow Spark's supported shuffle recovery with idempotent output writes.
- Batch, cache or eliminate remote per-row calls with a supported bounded integration pattern.
- Inspect driver output and application event logs first for pre-task errors.
- Reduce retained object footprint or adjust memory sizing according to GC and spill evidence.
Explanation
Correct Answer
D:Reduce retained object footprint or adjust memory sizing according to GC and spill evidence. This addresses the documented mechanism: Heap pressure and garbage collection, not network input, dominate stage wall time. Recovery is demonstrated when: GC pause fraction drops and stage runtime improves.
Incorrect Answers
A:Review worker stability and allow Spark's supported shuffle recovery with idempotent output writes. That would not resolve the reported problem: Executor logs show long Java GC pauses during a large aggregate, but the team blames remote source latency. The source-supported intervention is: Reduce retained object footprint or adjust memory sizing according to GC and spill evidence.
B:Batch, cache or eliminate remote per-row calls with a supported bounded integration pattern. The option targets a different stage or condition. The relevant failure is: Heap pressure and garbage collection, not network input, dominate stage wall time. The needed repair is: Reduce retained object footprint or adjust memory sizing according to GC and spill evidence.
C:Inspect driver output and application event logs first for pre-task errors. That would not resolve the reported problem: Executor logs show long Java GC pauses during a large aggregate, but the team blames remote source latency. The source-supported intervention is: Reduce retained object footprint or adjust memory sizing according to GC and spill evidence.
Question 787
At Meadowvale Robotics, before a production rollout (fictional study case R280-C158-2), executor logs show long Java GC pauses during a large aggregate, but the team blames remote source latency. 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.
- Heap pressure and garbage collection, not network input, dominate stage wall time.
- Executor loss invalidated shuffle data and downstream fetch attempts must retry/recompute.
- Synchronous network calls in the transformation create latency and uneven task completion.
- Driver-side scheduling, configuration and analysis failures occur outside executor task logs.
Explanation
Correct Answer
A:Executor logs show long Java GC pauses during a large aggregate, but the team blames remote source latency. The supporting root cause is: Heap pressure and garbage collection, not network input, dominate stage wall time. The appropriate remedy is: Reduce retained object footprint or adjust memory sizing according to GC and spill evidence.
Incorrect Answers
B:Executor loss invalidated shuffle data and downstream fetch attempts must retry/recompute. The observed failure instead follows from: Heap pressure and garbage collection, not network input, dominate stage wall time. The alternative does not explain the same dependency.
C:Synchronous network calls in the transformation create latency and uneven task completion. This is not the root cause established for the reported condition: Executor logs show long Java GC pauses during a large aggregate, but the team blames remote source latency. The cause is: Heap pressure and garbage collection, not network input, dominate stage wall time.
D:Driver-side scheduling, configuration and analysis failures occur outside executor task logs. This is not the root cause established for the reported condition: Executor logs show long Java GC pauses during a large aggregate, but the team blames remote source latency. The cause is: Heap pressure and garbage collection, not network input, dominate stage wall time.
Question 788
At Northridge Retail, while optimizing an ETL application (fictional study case R280-C158-1), executor logs show long Java GC pauses during a large aggregate, but the team blames remote source latency. 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 lost executor IDs with fetch-failure attempts and resumed map tasks.
- Compare API request counts, wait time and per-task input sizes.
- Confirm absence of started tasks and locate the first driver exception.
- Compare executor GC time, heap usage and source read duration.
Explanation
Correct Answer
D:Compare executor GC time, heap usage and source read duration. This gathers evidence about the stated mechanism: Heap pressure and garbage collection, not network input, dominate stage wall time. The existing symptom is: Executor logs show long Java GC pauses during a large aggregate, but the team blames remote source latency.
Incorrect Answers
A:Correlate lost executor IDs with fetch-failure attempts and resumed map tasks. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Compare executor GC time, heap usage and source read duration.
B:Compare API request counts, wait time and per-task input sizes. The case requires a discriminating check before any change, not the offered alternative. Use: Compare executor GC time, heap usage and source read duration.
C:Confirm absence of started tasks and locate the first driver exception. The case requires a discriminating check before any change, not the offered alternative. Use: Compare executor GC time, heap usage and source read duration.
Question 789
At Northstar Payments, during an internal acceptance test (fictional study case R280-C158-2), executor logs show long Java GC pauses during a large aggregate, but the team blames remote source latency. 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.
- GC pause fraction drops and stage runtime improves.
- Retry completes correctly without duplicate external side effects.
- Tasks complete more evenly without losing enrichment correctness.
- Diagnosis identifies the configuration failure and job starts successfully.
Explanation
Correct Answer
A:A passing check shows: GC pause fraction drops and stage runtime improves. This is evidence for the scoped change: Reduce retained object footprint or adjust memory sizing according to GC and spill evidence.
Incorrect Answers
B:Retry completes correctly without duplicate external side effects. The alternative cannot demonstrate that the issue has been corrected: Executor logs show long Java GC pauses during a large aggregate, but the team blames remote source latency. The required result is: GC pause fraction drops and stage runtime improves.
C:Tasks complete more evenly without losing enrichment correctness. The alternative cannot demonstrate that the issue has been corrected: Executor logs show long Java GC pauses during a large aggregate, but the team blames remote source latency. The required result is: GC pause fraction drops and stage runtime improves.
D:Diagnosis identifies the configuration failure and job starts successfully. Implementation or a check alone is not proof of success. The measurable end state is: GC pause fraction drops and stage runtime improves.
Question 790
At Cloudhaven Apps, after a routine data refresh (fictional study case R280-C158-1), executor logs show long Java GC pauses during a large aggregate, but the team blames remote source latency. 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.
- Focus on memory-intensive task behavior.
- Investigate node churn and affected shuffle stages.
- Refactor the external lookup stage only.
- Restrict log review and fix to the failed application.
Explanation
Correct Answer
A:The relevant boundary is: Focus on memory-intensive task behavior. The correction remains: Reduce retained object footprint or adjust memory sizing according to GC and spill evidence.
Incorrect Answers
B:Investigate node churn and affected shuffle stages. The action does not preserve the identified scope boundary: Focus on memory-intensive task behavior.
C:Refactor the external lookup stage only. The action does not preserve the identified scope boundary: Focus on memory-intensive task behavior.
D:Restrict log review and fix to the failed application. This does not enforce the required scope: Focus on memory-intensive task behavior. The specific failure is: Heap pressure and garbage collection, not network input, dominate stage wall time.