Certified Associate Developer for Apache Spark Practice Test 73
Question 720
At Oakline Transportation, during a performance incident (fictional study case R280-C144-1), a large report uses `coalesce(1)` to create a single CSV and waits on one giant task. 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.
- Remove persistence solely from the unused intermediate.
- Optimize the skewed join stage only.
- Focus changes on the spill-heavy aggregation.
- Avoid the single-writer bottleneck for this report.
Explanation
Correct Answer
D:Keep scope tied to the actual issue: A large report uses `coalesce(1)` to create a single CSV and waits on one giant task. The bounded intervention is: Avoid the single-writer bottleneck for this report. Confirm: The report completes with acceptable output layout and correct rows.
Incorrect Answers
A:Remove persistence solely from the unused intermediate. It is not the bounded choice for the stated condition: A large report uses `coalesce(1)` to create a single CSV and waits on one giant task. The permitted change must remain: Avoid the single-writer bottleneck for this report.
B:Optimize the skewed join stage only. This does not enforce the required scope: Avoid the single-writer bottleneck for this report. The specific failure is: Forcing a single partition serializes final output and eliminates available parallel writers.
C:Focus changes on the spill-heavy aggregation. The action does not preserve the identified scope boundary: Avoid the single-writer bottleneck for this report.
Question 721
At Rosehill Diagnostics, while optimizing an ETL application (fictional study case R280-C145-1), a one-pass DataFrame is cached even though it is never queried again; executors begin evicting hot datasets. 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 task duration percentiles and data-size histograms, then optimize the oversized partition.
- Reduce columns/rows early and adjust partitions or available memory after profiling.
- Coalesce or repartition to a measured useful output partition count and compact where supported.
- Remove the unnecessary cache or persist only repeatedly used intermediates.
Explanation
Correct Answer
D:Remove the unnecessary cache or persist only repeatedly used intermediates. The technical or governance gap is: Caching imposes memory cost without reuse benefit. Check the affected state using: Inspect cache reuse counts and Storage tab evictions.
Incorrect Answers
A:Review task duration percentiles and data-size histograms, then optimize the oversized partition. That would not resolve the reported problem: A one-pass DataFrame is cached even though it is never queried again; executors begin evicting hot datasets. The source-supported intervention is: Remove the unnecessary cache or persist only repeatedly used intermediates.
B:Reduce columns/rows early and adjust partitions or available memory after profiling. The recorded mechanism is: Caching imposes memory cost without reuse benefit. The proposed action does not correct that mechanism; use: Remove the unnecessary cache or persist only repeatedly used intermediates.
C:Coalesce or repartition to a measured useful output partition count and compact where supported. The option targets a different stage or condition. The relevant failure is: Caching imposes memory cost without reuse benefit. The needed repair is: Remove the unnecessary cache or persist only repeatedly used intermediates.
Question 722
At Redwood Transit, during an internal acceptance test (fictional study case R280-C145-2), a one-pass DataFrame is cached even though it is never queried again; executors begin evicting hot datasets. 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.
- Mean task time hides long-tail skew and prevents targeted correction.
- Per-task aggregation state exceeds execution-memory budget due to partition sizes and grouping cardinality.
- Caching imposes memory cost without reuse benefit.
- Excessive partition count creates small files and scheduling overhead disproportionate to the dataset size.
Explanation
Correct Answer
C:The reported symptom is: A one-pass DataFrame is cached even though it is never queried again; executors begin evicting hot datasets. Its direct cause is: Caching imposes memory cost without reuse benefit. Test that conclusion using: Inspect cache reuse counts and Storage tab evictions.
Incorrect Answers
A:Mean task time hides long-tail skew and prevents targeted correction. The observed failure instead follows from: Caching imposes memory cost without reuse benefit. The alternative does not explain the same dependency.
B:Per-task aggregation state exceeds execution-memory budget due to partition sizes and grouping cardinality. The observed failure instead follows from: Caching imposes memory cost without reuse benefit. The alternative does not explain the same dependency.
D:Excessive partition count creates small files and scheduling overhead disproportionate to the dataset size. That explanation needs evidence of another fault. The specific mechanism here is: Caching imposes memory cost without reuse benefit.
Question 723
At Meadowvale Robotics, after a routine data refresh (fictional study case R280-C145-1), a one-pass DataFrame is cached even though it is never queried again; executors begin evicting hot datasets. 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 max, p95 and median task input sizes and execution times.
- Correlate memory and disk spill metrics with group cardinality.
- Inspect cache reuse counts and Storage tab evictions.
- Compare partition/file count, median file size and stage scheduler time.
Explanation
Correct Answer
C:A one-pass DataFrame is cached even though it is never queried again; executors begin evicting hot datasets. The useful diagnostic is: Inspect cache reuse counts and Storage tab evictions. That can confirm or refute: Caching imposes memory cost without reuse benefit.
Incorrect Answers
A:Inspect max, p95 and median task input sizes and execution times. The case requires a discriminating check before any change, not the offered alternative. Use: Inspect cache reuse counts and Storage tab evictions.
B:Correlate memory and disk spill metrics with group cardinality. That does not establish whether the stated cause is present: Caching imposes memory cost without reuse benefit. The diagnostic is: Inspect cache reuse counts and Storage tab evictions.
D:Compare partition/file count, median file size and stage scheduler time. That does not establish whether the stated cause is present: Caching imposes memory cost without reuse benefit. The diagnostic is: Inspect cache reuse counts and Storage tab evictions.
Question 724
At Northridge Retail, while debugging a failed notebook (fictional study case R280-C145-2), a one-pass DataFrame is cached even though it is never queried again; executors begin evicting hot datasets. 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 long tail shrinks without altering join outputs.
- Spills decrease while all aggregates reconcile.
- The one-pass stage finishes with lower memory pressure.
- File count falls while records and query results remain unchanged.
Explanation
Correct Answer
C:Acceptance requires: The one-pass stage finishes with lower memory pressure. That directly tests whether the mechanism was corrected: Caching imposes memory cost without reuse benefit.
Incorrect Answers
A:The long tail shrinks without altering join outputs. Implementation or a check alone is not proof of success. The measurable end state is: The one-pass stage finishes with lower memory pressure.
B:Spills decrease while all aggregates reconcile. Implementation or a check alone is not proof of success. The measurable end state is: The one-pass stage finishes with lower memory pressure.
D:File count falls while records and query results remain unchanged. Implementation or a check alone is not proof of success. The measurable end state is: The one-pass stage finishes with lower memory pressure.
Question 725
At Northstar Payments, during a performance incident (fictional study case R280-C145-1), a one-pass DataFrame is cached even though it is never queried again; executors begin evicting hot datasets. 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.
- Optimize the skewed join stage only.
- Remove persistence solely from the unused intermediate.
- Focus changes on the spill-heavy aggregation.
- Tune output partitions for the affected export.
Explanation
Correct Answer
B:Keep the intervention within this boundary: Remove persistence solely from the unused intermediate. The reported failure mechanism is: Caching imposes memory cost without reuse benefit.
Incorrect Answers
A:Optimize the skewed join stage only. It is not the bounded choice for the stated condition: A one-pass DataFrame is cached even though it is never queried again; executors begin evicting hot datasets. The permitted change must remain: Remove persistence solely from the unused intermediate.
C:Focus changes on the spill-heavy aggregation. This does not enforce the required scope: Remove persistence solely from the unused intermediate. The specific failure is: Caching imposes memory cost without reuse benefit.
D:Tune output partitions for the affected export. This does not enforce the required scope: Remove persistence solely from the unused intermediate. The specific failure is: Caching imposes memory cost without reuse benefit.
Question 726
At Cloudhaven Apps, while optimizing an ETL application (fictional study case R280-C146-1), all tasks look fast on average, but one join partition takes 25 minutes and holds the stage open. 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 task duration percentiles and data-size histograms, then optimize the oversized partition.
- Reduce columns/rows early and adjust partitions or available memory after profiling.
- Coalesce or repartition to a measured useful output partition count and compact where supported.
- Inspect distribution and use a skew-aware strategy, such as salting compatible keys with final recombination.
Explanation
Correct Answer
A:All tasks look fast on average, but one join partition takes 25 minutes and holds the stage open. The underlying cause is: Mean task time hides long-tail skew and prevents targeted correction. The corrective step is: Review task duration percentiles and data-size histograms, then optimize the oversized partition. Validate the outcome: The long tail shrinks without altering join outputs.
Incorrect Answers
B:Reduce columns/rows early and adjust partitions or available memory after profiling. That would not resolve the reported problem: All tasks look fast on average, but one join partition takes 25 minutes and holds the stage open. The source-supported intervention is: Review task duration percentiles and data-size histograms, then optimize the oversized partition.
C:Coalesce or repartition to a measured useful output partition count and compact where supported. The option targets a different stage or condition. The relevant failure is: Mean task time hides long-tail skew and prevents targeted correction. The needed repair is: Review task duration percentiles and data-size histograms, then optimize the oversized partition.
D:Inspect distribution and use a skew-aware strategy, such as salting compatible keys with final recombination. That would not resolve the reported problem: All tasks look fast on average, but one join partition takes 25 minutes and holds the stage open. The source-supported intervention is: Review task duration percentiles and data-size histograms, then optimize the oversized partition.
Question 727
At Bayshore Healthcare, during an internal acceptance test (fictional study case R280-C146-2), all tasks look fast on average, but one join partition takes 25 minutes and holds the stage open. 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.
- Mean task time hides long-tail skew and prevents targeted correction.
- Per-task aggregation state exceeds execution-memory budget due to partition sizes and grouping cardinality.
- Excessive partition count creates small files and scheduling overhead disproportionate to the dataset size.
- Skewed group key distribution places disproportionate data in one partition.
Explanation
Correct Answer
A:The failure is explained by: Mean task time hides long-tail skew and prevents targeted correction. All tasks look fast on average, but one join partition takes 25 minutes and holds the stage open. Correcting it would require: Review task duration percentiles and data-size histograms, then optimize the oversized partition.
Incorrect Answers
B:Per-task aggregation state exceeds execution-memory budget due to partition sizes and grouping cardinality. That explanation needs evidence of another fault. The specific mechanism here is: Mean task time hides long-tail skew and prevents targeted correction.
C:Excessive partition count creates small files and scheduling overhead disproportionate to the dataset size. The observed failure instead follows from: Mean task time hides long-tail skew and prevents targeted correction. The alternative does not explain the same dependency.
D:Skewed group key distribution places disproportionate data in one partition. That explanation needs evidence of another fault. The specific mechanism here is: Mean task time hides long-tail skew and prevents targeted correction.
Question 728
At Stonebridge Research, after a routine data refresh (fictional study case R280-C146-1), all tasks look fast on average, but one join partition takes 25 minutes and holds the stage open. 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 max, p95 and median task input sizes and execution times.
- Correlate memory and disk spill metrics with group cardinality.
- Compare partition/file count, median file size and stage scheduler time.
- Compare shuffle partition size distribution and hot-key frequency.
Explanation
Correct Answer
A:Inspect max, p95 and median task input sizes and execution times. This gathers evidence about the stated mechanism: Mean task time hides long-tail skew and prevents targeted correction. The existing symptom is: All tasks look fast on average, but one join partition takes 25 minutes and holds the stage open.
Incorrect Answers
B:Correlate memory and disk spill metrics with group cardinality. That does not establish whether the stated cause is present: Mean task time hides long-tail skew and prevents targeted correction. The diagnostic is: Inspect max, p95 and median task input sizes and execution times.
C:Compare partition/file count, median file size and stage scheduler time. That does not establish whether the stated cause is present: Mean task time hides long-tail skew and prevents targeted correction. The diagnostic is: Inspect max, p95 and median task input sizes and execution times.
D:Compare shuffle partition size distribution and hot-key frequency. That does not establish whether the stated cause is present: Mean task time hides long-tail skew and prevents targeted correction. The diagnostic is: Inspect max, p95 and median task input sizes and execution times.
Question 729
At Cedarline Telecommunications, while debugging a failed notebook (fictional study case R280-C146-2), all tasks look fast on average, but one join partition takes 25 minutes and holds the stage open. 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.
- Spills decrease while all aggregates reconcile.
- The long tail shrinks without altering join outputs.
- File count falls while records and query results remain unchanged.
- Worst-task duration declines with exact regional sums.
Explanation
Correct Answer
B:The long tail shrinks without altering join outputs. This demonstrates the intended effect of: Review task duration percentiles and data-size histograms, then optimize the oversized partition. The prior failure was: All tasks look fast on average, but one join partition takes 25 minutes and holds the stage open.
Incorrect Answers
A:Spills decrease while all aggregates reconcile. The alternative cannot demonstrate that the issue has been corrected: All tasks look fast on average, but one join partition takes 25 minutes and holds the stage open. The required result is: The long tail shrinks without altering join outputs.
C:File count falls while records and query results remain unchanged. Implementation or a check alone is not proof of success. The measurable end state is: The long tail shrinks without altering join outputs.
D:Worst-task duration declines with exact regional sums. This is not the observed recovery outcome. Acceptance requires: The long tail shrinks without altering join outputs.
Question 730
At Cobalt Analytics, during a performance incident (fictional study case R280-C146-1), all tasks look fast on average, but one join partition takes 25 minutes and holds the stage open. 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 changes on the spill-heavy aggregation.
- Tune output partitions for the affected export.
- Modify only the skewed group-by path.
- Optimize the skewed join stage only.
Explanation
Correct Answer
D:Keep the intervention within this boundary: Optimize the skewed join stage only. The reported failure mechanism is: Mean task time hides long-tail skew and prevents targeted correction.
Incorrect Answers
A:Focus changes on the spill-heavy aggregation. The action does not preserve the identified scope boundary: Optimize the skewed join stage only.
B:Tune output partitions for the affected export. This does not enforce the required scope: Optimize the skewed join stage only. The specific failure is: Mean task time hides long-tail skew and prevents targeted correction.
C:Modify only the skewed group-by path. The action does not preserve the identified scope boundary: Optimize the skewed join stage only.