Certified Associate Developer for Apache Spark Practice Test 71
Question 700
At Cedarline Telecommunications, when reviewing an incremental load (fictional study case R280-C140-1), a reference table includes historical millions of rows, but only 200 current codes are needed for the join. 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.
- Adjust broadcast hint for this join only.
- Restrict reference processing to the active-code subset.
- Optimize only the fact/dimension join.
- Tune only the specific outer join.
Explanation
Correct Answer
B:The approved limit is: Restrict reference processing to the active-code subset. It avoids applying the corrective step beyond the stated failure: A reference table includes historical millions of rows, but only 200 current codes are needed for the join.
Incorrect Answers
A:Adjust broadcast hint for this join only. This does not enforce the required scope: Restrict reference processing to the active-code subset. The specific failure is: The broadcast is applied to an unnecessarily large unfiltered relation.
C:Optimize only the fact/dimension join. It is not the bounded choice for the stated condition: A reference table includes historical millions of rows, but only 200 current codes are needed for the join. The permitted change must remain: Restrict reference processing to the active-code subset.
D:Tune only the specific outer join. This does not enforce the required scope: Restrict reference processing to the active-code subset. The specific failure is: The broadcast is applied to an unnecessarily large unfiltered relation.
Question 701
At Elmwood Manufacturing, while optimizing an ETL application (fictional study case R280-C141-1), a report emits tens of thousands of tiny task outputs and the file listing overhead dominates downstream reads. 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.
- Inspect distribution and use a skew-aware strategy, such as salting compatible keys with final recombination.
- Remove unnecessary repartitioning or choose a small measured count after filtering.
- Coalesce or repartition to a measured useful output partition count and compact where supported.
- Preserve multiple reasonably sized partitions or combine files after the distributed write only if truly required.
Explanation
Correct Answer
C:Coalesce or repartition to a measured useful output partition count and compact where supported. This addresses the documented mechanism: Excessive partition count creates small files and scheduling overhead disproportionate to the dataset size. Recovery is demonstrated when: File count falls while records and query results remain unchanged.
Incorrect Answers
A:Inspect distribution and use a skew-aware strategy, such as salting compatible keys with final recombination. That would not resolve the reported problem: A report emits tens of thousands of tiny task outputs and the file listing overhead dominates downstream reads. The source-supported intervention is: Coalesce or repartition to a measured useful output partition count and compact where supported.
B:Remove unnecessary repartitioning or choose a small measured count after filtering. The option targets a different stage or condition. The relevant failure is: Excessive partition count creates small files and scheduling overhead disproportionate to the dataset size. The needed repair is: Coalesce or repartition to a measured useful output partition count and compact where supported.
D:Preserve multiple reasonably sized partitions or combine files after the distributed write only if truly required. The recorded mechanism is: Excessive partition count creates small files and scheduling overhead disproportionate to the dataset size. The proposed action does not correct that mechanism; use: Coalesce or repartition to a measured useful output partition count and compact where supported.
Question 702
At Lakeside Devices, during an internal acceptance test (fictional study case R280-C141-2), a report emits tens of thousands of tiny task outputs and the file listing overhead dominates downstream reads. 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.
- Excessive partition count creates small files and scheduling overhead disproportionate to the dataset size.
- Skewed group key distribution places disproportionate data in one partition.
- The extra full shuffle provides no required distribution and creates mostly empty tasks.
- Forcing a single partition serializes final output and eliminates available parallel writers.
Explanation
Correct Answer
A:The reported symptom is: A report emits tens of thousands of tiny task outputs and the file listing overhead dominates downstream reads. Its direct cause is: Excessive partition count creates small files and scheduling overhead disproportionate to the dataset size. Test that conclusion using: Compare partition/file count, median file size and stage scheduler time.
Incorrect Answers
B:Skewed group key distribution places disproportionate data in one partition. That explanation needs evidence of another fault. The specific mechanism here is: Excessive partition count creates small files and scheduling overhead disproportionate to the dataset size.
C:The extra full shuffle provides no required distribution and creates mostly empty tasks. This is not the root cause established for the reported condition: A report emits tens of thousands of tiny task outputs and the file listing overhead dominates downstream reads. The cause is: Excessive partition count creates small files and scheduling overhead disproportionate to the dataset size.
D:Forcing a single partition serializes final output and eliminates available parallel writers. The observed failure instead follows from: Excessive partition count creates small files and scheduling overhead disproportionate to the dataset size. The alternative does not explain the same dependency.
Question 703
At Bayfront Markets, after a routine data refresh (fictional study case R280-C141-1), a report emits tens of thousands of tiny task outputs and the file listing overhead dominates downstream reads. 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 shuffle partition size distribution and hot-key frequency.
- Compare stage shuffles, task occupancy and result checksum.
- Compare final-stage task count and output I/O speed.
- Compare partition/file count, median file size and stage scheduler time.
Explanation
Correct Answer
D:Diagnose the affected path with: Compare partition/file count, median file size and stage scheduler time. This tests the case-specific cause: Excessive partition count creates small files and scheduling overhead disproportionate to the dataset size.
Incorrect Answers
A:Compare shuffle partition size distribution and hot-key frequency. That does not establish whether the stated cause is present: Excessive partition count creates small files and scheduling overhead disproportionate to the dataset size. The diagnostic is: Compare partition/file count, median file size and stage scheduler time.
B:Compare stage shuffles, task occupancy and result checksum. That does not establish whether the stated cause is present: Excessive partition count creates small files and scheduling overhead disproportionate to the dataset size. The diagnostic is: Compare partition/file count, median file size and stage scheduler time.
C:Compare final-stage task count and output I/O speed. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Compare partition/file count, median file size and stage scheduler time.
Question 704
At Orion Fintech, while debugging a failed notebook (fictional study case R280-C141-2), a report emits tens of thousands of tiny task outputs and the file listing overhead dominates downstream reads. 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.
- File count falls while records and query results remain unchanged.
- Worst-task duration declines with exact regional sums.
- Avoidable network work disappears while output values stay correct.
- The report completes with acceptable output layout and correct rows.
Explanation
Correct Answer
A:A passing check shows: File count falls while records and query results remain unchanged. This is evidence for the scoped change: Coalesce or repartition to a measured useful output partition count and compact where supported.
Incorrect Answers
B:Worst-task duration declines with exact regional sums. Implementation or a check alone is not proof of success. The measurable end state is: File count falls while records and query results remain unchanged.
C:Avoidable network work disappears while output values stay correct. The alternative cannot demonstrate that the issue has been corrected: A report emits tens of thousands of tiny task outputs and the file listing overhead dominates downstream reads. The required result is: File count falls while records and query results remain unchanged.
D:The report completes with acceptable output layout and correct rows. The alternative cannot demonstrate that the issue has been corrected: A report emits tens of thousands of tiny task outputs and the file listing overhead dominates downstream reads. The required result is: File count falls while records and query results remain unchanged.
Question 705
At Westfield Insights, during a performance incident (fictional study case R280-C141-1), a report emits tens of thousands of tiny task outputs and the file listing overhead dominates downstream reads. 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.
- Modify only the skewed group-by path.
- Correct partitioning only in this narrowed pipeline.
- Tune output partitions for the affected export.
- Avoid the single-writer bottleneck for this report.
Explanation
Correct Answer
C:Tune output partitions for the affected export. This limits the change while addressing: Excessive partition count creates small files and scheduling overhead disproportionate to the dataset size. The expected outcome is: File count falls while records and query results remain unchanged.
Incorrect Answers
A:Modify only the skewed group-by path. This does not enforce the required scope: Tune output partitions for the affected export. The specific failure is: Excessive partition count creates small files and scheduling overhead disproportionate to the dataset size.
B:Correct partitioning only in this narrowed pipeline. This does not enforce the required scope: Tune output partitions for the affected export. The specific failure is: Excessive partition count creates small files and scheduling overhead disproportionate to the dataset size.
D:Avoid the single-writer bottleneck for this report. It is not the bounded choice for the stated condition: A report emits tens of thousands of tiny task outputs and the file listing overhead dominates downstream reads. The permitted change must remain: Tune output partitions for the affected export.
Question 706
At Mapleford Engineering, while optimizing an ETL application (fictional study case R280-C142-1), a regional aggregation is blocked by a single task processing a hot customer region. 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 unnecessary repartitioning or choose a small measured count after filtering.
- 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.
- Inspect distribution and use a skew-aware strategy, such as salting compatible keys with final recombination.
Explanation
Correct Answer
D:Inspect distribution and use a skew-aware strategy, such as salting compatible keys with final recombination. The technical or governance gap is: Skewed group key distribution places disproportionate data in one partition. Check the affected state using: Compare shuffle partition size distribution and hot-key frequency.
Incorrect Answers
A:Remove unnecessary repartitioning or choose a small measured count after filtering. The recorded mechanism is: Skewed group key distribution places disproportionate data in one partition. The proposed action does not correct that mechanism; use: Inspect distribution and use a skew-aware strategy, such as salting compatible keys with final recombination.
B:Preserve multiple reasonably sized partitions or combine files after the distributed write only if truly required. The option targets a different stage or condition. The relevant failure is: Skewed group key distribution places disproportionate data in one partition. The needed repair is: Inspect distribution and use a skew-aware strategy, such as salting compatible keys with final recombination.
C:Remove the unnecessary cache or persist only repeatedly used intermediates. The recorded mechanism is: Skewed group key distribution places disproportionate data in one partition. The proposed action does not correct that mechanism; use: Inspect distribution and use a skew-aware strategy, such as salting compatible keys with final recombination.
Question 707
At Horizon Logistics, during an internal acceptance test (fictional study case R280-C142-2), a regional aggregation is blocked by a single task processing a hot customer region. 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.
- Skewed group key distribution places disproportionate data in one partition.
- The extra full shuffle provides no required distribution and creates mostly empty tasks.
- Forcing a single partition serializes final output and eliminates available parallel writers.
- Caching imposes memory cost without reuse benefit.
Explanation
Correct Answer
A:The failure is explained by: Skewed group key distribution places disproportionate data in one partition. A regional aggregation is blocked by a single task processing a hot customer region. Correcting it would require: Inspect distribution and use a skew-aware strategy, such as salting compatible keys with final recombination.
Incorrect Answers
B:The extra full shuffle provides no required distribution and creates mostly empty tasks. That explanation needs evidence of another fault. The specific mechanism here is: Skewed group key distribution places disproportionate data in one partition.
C:Forcing a single partition serializes final output and eliminates available parallel writers. This is not the root cause established for the reported condition: A regional aggregation is blocked by a single task processing a hot customer region. The cause is: Skewed group key distribution places disproportionate data in one partition.
D:Caching imposes memory cost without reuse benefit. This is not the root cause established for the reported condition: A regional aggregation is blocked by a single task processing a hot customer region. The cause is: Skewed group key distribution places disproportionate data in one partition.
Question 708
At Aspen Public Services, after a routine data refresh (fictional study case R280-C142-1), a regional aggregation is blocked by a single task processing a hot customer region. 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 shuffle partition size distribution and hot-key frequency.
- Compare stage shuffles, task occupancy and result checksum.
- Compare final-stage task count and output I/O speed.
- Inspect cache reuse counts and Storage tab evictions.
Explanation
Correct Answer
A:The needed observation is: Compare shuffle partition size distribution and hot-key frequency. The suspected failure is: Skewed group key distribution places disproportionate data in one partition. The repair should only follow that check.
Incorrect Answers
B:Compare stage shuffles, task occupancy and result checksum. That does not establish whether the stated cause is present: Skewed group key distribution places disproportionate data in one partition. The diagnostic is: Compare shuffle partition size distribution and hot-key frequency.
C:Compare final-stage task count and output I/O speed. That does not establish whether the stated cause is present: Skewed group key distribution places disproportionate data in one partition. The diagnostic is: Compare shuffle partition size distribution and hot-key frequency.
D:Inspect cache reuse counts and Storage tab evictions. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Compare shuffle partition size distribution and hot-key frequency.
Question 709
At Juniper Foods, while debugging a failed notebook (fictional study case R280-C142-2), a regional aggregation is blocked by a single task processing a hot customer region. 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.
- Avoidable network work disappears while output values stay correct.
- The report completes with acceptable output layout and correct rows.
- Worst-task duration declines with exact regional sums.
- The one-pass stage finishes with lower memory pressure.
Explanation
Correct Answer
C:A passing check shows: Worst-task duration declines with exact regional sums. This is evidence for the scoped change: Inspect distribution and use a skew-aware strategy, such as salting compatible keys with final recombination.
Incorrect Answers
A:Avoidable network work disappears while output values stay correct. Implementation or a check alone is not proof of success. The measurable end state is: Worst-task duration declines with exact regional sums.
B:The report completes with acceptable output layout and correct rows. The alternative cannot demonstrate that the issue has been corrected: A regional aggregation is blocked by a single task processing a hot customer region. The required result is: Worst-task duration declines with exact regional sums.
D:The one-pass stage finishes with lower memory pressure. Implementation or a check alone is not proof of success. The measurable end state is: Worst-task duration declines with exact regional sums.
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.