Certified Associate Developer for Apache Spark Practice Test 72
Question 710
At Silverpeak Bioinformatics, during a performance incident (fictional study case R280-C142-1), a regional aggregation is blocked by a single task processing a hot customer region. 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 partitioning only in this narrowed pipeline.
- Avoid the single-writer bottleneck for this report.
- Modify only the skewed group-by path.
- Remove persistence solely from the unused intermediate.
Explanation
Correct Answer
C:Modify only the skewed group-by path. This limits the change while addressing: Skewed group key distribution places disproportionate data in one partition. The expected outcome is: Worst-task duration declines with exact regional sums.
Incorrect Answers
A:Correct partitioning only in this narrowed pipeline. It is not the bounded choice for the stated condition: A regional aggregation is blocked by a single task processing a hot customer region. The permitted change must remain: Modify only the skewed group-by path.
B:Avoid the single-writer bottleneck for this report. It is not the bounded choice for the stated condition: A regional aggregation is blocked by a single task processing a hot customer region. The permitted change must remain: Modify only the skewed group-by path.
D:Remove persistence solely from the unused intermediate. The action does not preserve the identified scope boundary: Modify only the skewed group-by path.
Question 711
At Willowbank Software, while optimizing an ETL application (fictional study case R280-C143-1), a query filters to 0.5% of records but then calls a large `repartition(600)` before local arithmetic. 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.
- Preserve multiple reasonably sized partitions or combine files after the distributed write only if truly required.
- Remove the unnecessary cache or persist only repeatedly used intermediates.
- Review task duration percentiles and data-size histograms, then optimize the oversized partition.
- Remove unnecessary repartitioning or choose a small measured count after filtering.
Explanation
Correct Answer
D:The failure mechanism is: The extra full shuffle provides no required distribution and creates mostly empty tasks. Apply the bounded change: Remove unnecessary repartitioning or choose a small measured count after filtering. The acceptance test must show: Avoidable network work disappears while output values stay correct.
Incorrect Answers
A:Preserve multiple reasonably sized partitions or combine files after the distributed write only if truly required. The recorded mechanism is: The extra full shuffle provides no required distribution and creates mostly empty tasks. The proposed action does not correct that mechanism; use: Remove unnecessary repartitioning or choose a small measured count after filtering.
B:Remove the unnecessary cache or persist only repeatedly used intermediates. The recorded mechanism is: The extra full shuffle provides no required distribution and creates mostly empty tasks. The proposed action does not correct that mechanism; use: Remove unnecessary repartitioning or choose a small measured count after filtering.
C:Review task duration percentiles and data-size histograms, then optimize the oversized partition. That would not resolve the reported problem: A query filters to 0.5% of records but then calls a large `repartition(600)` before local arithmetic. The source-supported intervention is: Remove unnecessary repartitioning or choose a small measured count after filtering.
Question 712
At Seabrook Education, during an internal acceptance test (fictional study case R280-C143-2), a query filters to 0.5% of records but then calls a large `repartition(600)` before local arithmetic. 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.
- Forcing a single partition serializes final output and eliminates available parallel writers.
- Caching imposes memory cost without reuse benefit.
- The extra full shuffle provides no required distribution and creates mostly empty tasks.
- Mean task time hides long-tail skew and prevents targeted correction.
Explanation
Correct Answer
C:Investigation should distinguish this specific mechanism: The extra full shuffle provides no required distribution and creates mostly empty tasks. The related symptom is: A query filters to 0.5% of records but then calls a large `repartition(600)` before local arithmetic. The discriminating check is: Compare stage shuffles, task occupancy and result checksum.
Incorrect Answers
A:Forcing a single partition serializes final output and eliminates available parallel writers. That explanation needs evidence of another fault. The specific mechanism here is: The extra full shuffle provides no required distribution and creates mostly empty tasks.
B:Caching imposes memory cost without reuse benefit. This is not the root cause established for the reported condition: A query filters to 0.5% of records but then calls a large `repartition(600)` before local arithmetic. The cause is: The extra full shuffle provides no required distribution and creates mostly empty tasks.
D:Mean task time hides long-tail skew and prevents targeted correction. The observed failure instead follows from: The extra full shuffle provides no required distribution and creates mostly empty tasks. The alternative does not explain the same dependency.
Question 713
At Bluewater Energy, after a routine data refresh (fictional study case R280-C143-1), a query filters to 0.5% of records but then calls a large `repartition(600)` before local arithmetic. 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 final-stage task count and output I/O speed.
- Inspect cache reuse counts and Storage tab evictions.
- Inspect max, p95 and median task input sizes and execution times.
- Compare stage shuffles, task occupancy and result checksum.
Explanation
Correct Answer
D:Diagnose the affected path with: Compare stage shuffles, task occupancy and result checksum. This tests the case-specific cause: The extra full shuffle provides no required distribution and creates mostly empty tasks.
Incorrect Answers
A:Compare final-stage task count and output I/O speed. The case requires a discriminating check before any change, not the offered alternative. Use: Compare stage shuffles, task occupancy and result checksum.
B:Inspect cache reuse counts and Storage tab evictions. The case requires a discriminating check before any change, not the offered alternative. Use: Compare stage shuffles, task occupancy and result checksum.
C:Inspect max, p95 and median task input sizes and execution times. That does not establish whether the stated cause is present: The extra full shuffle provides no required distribution and creates mostly empty tasks. The diagnostic is: Compare stage shuffles, task occupancy and result checksum.
Question 714
At Meridian Commerce, while debugging a failed notebook (fictional study case R280-C143-2), a query filters to 0.5% of records but then calls a large `repartition(600)` before local arithmetic. 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 report completes with acceptable output layout and correct rows.
- The one-pass stage finishes with lower memory pressure.
- The long tail shrinks without altering join outputs.
- Avoidable network work disappears while output values stay correct.
Explanation
Correct Answer
D:Avoidable network work disappears while output values stay correct. This demonstrates the intended effect of: Remove unnecessary repartitioning or choose a small measured count after filtering. The prior failure was: A query filters to 0.5% of records but then calls a large `repartition(600)` before local arithmetic.
Incorrect Answers
A:The report completes with acceptable output layout and correct rows. This is not the observed recovery outcome. Acceptance requires: Avoidable network work disappears while output values stay correct.
B:The one-pass stage finishes with lower memory pressure. This is not the observed recovery outcome. Acceptance requires: Avoidable network work disappears while output values stay correct.
C:The long tail shrinks without altering join outputs. This is not the observed recovery outcome. Acceptance requires: Avoidable network work disappears while output values stay correct.
Question 715
At Copperline Finance, during a performance incident (fictional study case R280-C143-1), a query filters to 0.5% of records but then calls a large `repartition(600)` before local arithmetic. 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 partitioning only in this narrowed pipeline.
- Avoid the single-writer bottleneck for this report.
- Remove persistence solely from the unused intermediate.
- Optimize the skewed join stage only.
Explanation
Correct Answer
A:The approved limit is: Correct partitioning only in this narrowed pipeline. It avoids applying the corrective step beyond the stated failure: A query filters to 0.5% of records but then calls a large `repartition(600)` before local arithmetic.
Incorrect Answers
B:Avoid the single-writer bottleneck for this report. The action does not preserve the identified scope boundary: Correct partitioning only in this narrowed pipeline.
C:Remove persistence solely from the unused intermediate. It is not the bounded choice for the stated condition: A query filters to 0.5% of records but then calls a large `repartition(600)` before local arithmetic. The permitted change must remain: Correct partitioning only in this narrowed pipeline.
D:Optimize the skewed join stage only. This does not enforce the required scope: Correct partitioning only in this narrowed pipeline. The specific failure is: The extra full shuffle provides no required distribution and creates mostly empty tasks.
Question 716
At Pinecrest Media, while optimizing an ETL application (fictional study case R280-C144-1), a large report uses `coalesce(1)` to create a single CSV and waits on one giant task. 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.
- Remove the unnecessary cache or persist only repeatedly used intermediates.
- Review task duration percentiles and data-size histograms, then optimize the oversized partition.
- Preserve multiple reasonably sized partitions or combine files after the distributed write only if truly required.
- Reduce columns/rows early and adjust partitions or available memory after profiling.
Explanation
Correct Answer
C:Preserve multiple reasonably sized partitions or combine files after the distributed write only if truly required. The technical or governance gap is: Forcing a single partition serializes final output and eliminates available parallel writers. Check the affected state using: Compare final-stage task count and output I/O speed.
Incorrect Answers
A:Remove the unnecessary cache or persist only repeatedly used intermediates. The option targets a different stage or condition. The relevant failure is: Forcing a single partition serializes final output and eliminates available parallel writers. The needed repair is: Preserve multiple reasonably sized partitions or combine files after the distributed write only if truly required.
B:Review task duration percentiles and data-size histograms, then optimize the oversized partition. That would not resolve the reported problem: A large report uses `coalesce(1)` to create a single CSV and waits on one giant task. The source-supported intervention is: Preserve multiple reasonably sized partitions or combine files after the distributed write only if truly required.
D:Reduce columns/rows early and adjust partitions or available memory after profiling. That would not resolve the reported problem: A large report uses `coalesce(1)` to create a single CSV and waits on one giant task. The source-supported intervention is: Preserve multiple reasonably sized partitions or combine files after the distributed write only if truly required.
Question 717
At Ironlake Networks, during an internal acceptance test (fictional study case R280-C144-2), a large report uses `coalesce(1)` to create a single CSV and waits on one giant task. 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.
- Caching imposes memory cost without reuse benefit.
- Forcing a single partition serializes final output and eliminates available parallel writers.
- 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.
Explanation
Correct Answer
B:A large report uses `coalesce(1)` to create a single CSV and waits on one giant task. The supporting root cause is: Forcing a single partition serializes final output and eliminates available parallel writers. The appropriate remedy is: Preserve multiple reasonably sized partitions or combine files after the distributed write only if truly required.
Incorrect Answers
A:Caching imposes memory cost without reuse benefit. That explanation needs evidence of another fault. The specific mechanism here is: Forcing a single partition serializes final output and eliminates available parallel writers.
C:Mean task time hides long-tail skew and prevents targeted correction. That explanation needs evidence of another fault. The specific mechanism here is: Forcing a single partition serializes final output and eliminates available parallel writers.
D: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: Forcing a single partition serializes final output and eliminates available parallel writers.
Question 718
At Valleywide Travel, after a routine data refresh (fictional study case R280-C144-1), a large report uses `coalesce(1)` to create a single CSV and waits on one giant task. 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 cache reuse counts and Storage tab evictions.
- Inspect max, p95 and median task input sizes and execution times.
- Correlate memory and disk spill metrics with group cardinality.
- Compare final-stage task count and output I/O speed.
Explanation
Correct Answer
D:Compare final-stage task count and output I/O speed. This gathers evidence about the stated mechanism: Forcing a single partition serializes final output and eliminates available parallel writers. The existing symptom is: A large report uses `coalesce(1)` to create a single CSV and waits on one giant task.
Incorrect Answers
A:Inspect cache reuse counts and Storage tab evictions. The case requires a discriminating check before any change, not the offered alternative. Use: Compare final-stage task count and output I/O speed.
B: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: Compare final-stage task count and output I/O speed.
C:Correlate memory and disk spill metrics with group cardinality. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Compare final-stage task count and output I/O speed.
Question 719
At Harbor Data Labs, while debugging a failed notebook (fictional study case R280-C144-2), a large report uses `coalesce(1)` to create a single CSV and waits on one giant task. 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 one-pass stage finishes with lower memory pressure.
- The long tail shrinks without altering join outputs.
- The report completes with acceptable output layout and correct rows.
- Spills decrease while all aggregates reconcile.
Explanation
Correct Answer
C:The verification result must be: The report completes with acceptable output layout and correct rows. It is stronger evidence than merely performing: Compare final-stage task count and output I/O speed.
Incorrect Answers
A:The one-pass stage finishes with lower memory pressure. Implementation or a check alone is not proof of success. The measurable end state is: The report completes with acceptable output layout and correct rows.
B:The long tail shrinks without altering join outputs. This is not the observed recovery outcome. Acceptance requires: The report completes with acceptable output layout and correct rows.
D:Spills decrease while all aggregates reconcile. Implementation or a check alone is not proof of success. The measurable end state is: The report completes with acceptable output layout and correct rows.
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.