Certified Associate Developer for Apache Spark Practice Test 77
Question 760
At Stonebridge Research, while debugging a failed notebook (fictional study case R280-C152-1), after enabling skew join handling, the UI shows extra tasks for hot partitions and operators fear rows were duplicated. 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 the operational expectation, not source data.
- Review only the skew-aware join changes.
- Fix the source layout and query for the affected table.
- Enable/tune AQE for this workload under measured change control.
Explanation
Correct Answer
B:The approved limit is: Review only the skew-aware join changes. It avoids applying the corrective step beyond the stated failure: After enabling skew join handling, the UI shows extra tasks for hot partitions and operators fear rows were duplicated.
Incorrect Answers
A:Correct the operational expectation, not source data. The action does not preserve the identified scope boundary: Review only the skew-aware join changes.
C:Fix the source layout and query for the affected table. The action does not preserve the identified scope boundary: Review only the skew-aware join changes.
D:Enable/tune AQE for this workload under measured change control. This does not enforce the required scope: Review only the skew-aware join changes. The specific failure is: AQE may split large partitions or replicate a small join side while preserving logical join semantics.
Question 761
At Cedarline Telecommunications, before a production rollout (fictional study case R280-C153-1), a job has `spark.sql.shuffle.partitions=200` but AQE executes fewer reducer tasks. 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.
- Improve time filtering and source partition layout in addition to eligible adaptive operations.
- Enable supported AQE features and evaluate skew splitting with matching result checks.
- Tune advisory partition size or coalescing policy using observed stage metrics.
- Use adaptive-plan metrics to assess final partitions instead of treating initial config as an exact task count.
Explanation
Correct Answer
D:A job has `spark.sql.shuffle.partitions=200` but AQE executes fewer reducer tasks. The underlying cause is: Runtime partition coalescing can change the final number of partitions from the initial plan. The corrective step is: Use adaptive-plan metrics to assess final partitions instead of treating initial config as an exact task count. Validate the outcome: Monitoring correctly explains partition changes with identical output.
Incorrect Answers
A:Improve time filtering and source partition layout in addition to eligible adaptive operations. The option targets a different stage or condition. The relevant failure is: Runtime partition coalescing can change the final number of partitions from the initial plan. The needed repair is: Use adaptive-plan metrics to assess final partitions instead of treating initial config as an exact task count.
B:Enable supported AQE features and evaluate skew splitting with matching result checks. The option targets a different stage or condition. The relevant failure is: Runtime partition coalescing can change the final number of partitions from the initial plan. The needed repair is: Use adaptive-plan metrics to assess final partitions instead of treating initial config as an exact task count.
C:Tune advisory partition size or coalescing policy using observed stage metrics. The option targets a different stage or condition. The relevant failure is: Runtime partition coalescing can change the final number of partitions from the initial plan. The needed repair is: Use adaptive-plan metrics to assess final partitions instead of treating initial config as an exact task count.
Question 762
At Cobalt Analytics, while optimizing an ETL application (fictional study case R280-C153-2), a job has `spark.sql.shuffle.partitions=200` but AQE executes fewer reducer tasks. 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.
- AQE focuses on runtime plan optimization and does not replace suitable source partitioning and predicate pushdown.
- The application disabled adaptive query execution and thus cannot apply its runtime skew partition optimizations.
- AQE partition coalescing settings favor consolidation beyond the workload's useful concurrency.
- Runtime partition coalescing can change the final number of partitions from the initial plan.
Explanation
Correct Answer
D:Investigation should distinguish this specific mechanism: Runtime partition coalescing can change the final number of partitions from the initial plan. The related symptom is: A job has `spark.sql.shuffle.partitions=200` but AQE executes fewer reducer tasks. The discriminating check is: Compare initial shuffle plan with adaptive final-stage task count.
Incorrect Answers
A:AQE focuses on runtime plan optimization and does not replace suitable source partitioning and predicate pushdown. That explanation needs evidence of another fault. The specific mechanism here is: Runtime partition coalescing can change the final number of partitions from the initial plan.
B:The application disabled adaptive query execution and thus cannot apply its runtime skew partition optimizations. The observed failure instead follows from: Runtime partition coalescing can change the final number of partitions from the initial plan. The alternative does not explain the same dependency.
C:AQE partition coalescing settings favor consolidation beyond the workload's useful concurrency. The observed failure instead follows from: Runtime partition coalescing can change the final number of partitions from the initial plan. The alternative does not explain the same dependency.
Question 763
At Summit Supply, during an internal acceptance test (fictional study case R280-C153-1), a job has `spark.sql.shuffle.partitions=200` but AQE executes fewer reducer tasks. 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 scanned files/bytes with adaptive plan metrics.
- Inspect adaptive plan and partition statistics under test load.
- Compare adaptive partition count, task duration and CPU utilization.
- Compare initial shuffle plan with adaptive final-stage task count.
Explanation
Correct Answer
D:The needed observation is: Compare initial shuffle plan with adaptive final-stage task count. The suspected failure is: Runtime partition coalescing can change the final number of partitions from the initial plan. The repair should only follow that check.
Incorrect Answers
A:Compare scanned files/bytes with adaptive plan metrics. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Compare initial shuffle plan with adaptive final-stage task count.
B:Inspect adaptive plan and partition statistics under test load. That does not establish whether the stated cause is present: Runtime partition coalescing can change the final number of partitions from the initial plan. The diagnostic is: Compare initial shuffle plan with adaptive final-stage task count.
C:Compare adaptive partition count, task duration and CPU utilization. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Compare initial shuffle plan with adaptive final-stage task count.
Question 764
At Granite Insurance, after a routine data refresh (fictional study case R280-C153-2), a job has `spark.sql.shuffle.partitions=200` but AQE executes fewer reducer tasks. 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.
- Historical scans shrink for selective queries without losing records.
- Large skewed tasks are reduced while output remains identical.
- Monitoring correctly explains partition changes with identical output.
- Post-shuffle parallelism meets latency target without excessive overhead.
Explanation
Correct Answer
C:Acceptance requires: Monitoring correctly explains partition changes with identical output. That directly tests whether the mechanism was corrected: Runtime partition coalescing can change the final number of partitions from the initial plan.
Incorrect Answers
A:Historical scans shrink for selective queries without losing records. Implementation or a check alone is not proof of success. The measurable end state is: Monitoring correctly explains partition changes with identical output.
B:Large skewed tasks are reduced while output remains identical. This is not the observed recovery outcome. Acceptance requires: Monitoring correctly explains partition changes with identical output.
D:Post-shuffle parallelism meets latency target without excessive overhead. The alternative cannot demonstrate that the issue has been corrected: A job has `spark.sql.shuffle.partitions=200` but AQE executes fewer reducer tasks. The required result is: Monitoring correctly explains partition changes with identical output.
Question 765
At Elmwood Manufacturing, while debugging a failed notebook (fictional study case R280-C153-1), a job has `spark.sql.shuffle.partitions=200` but AQE executes fewer reducer tasks. 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.
- Correct the operational expectation, not source data.
- Tune only adaptive post-shuffle partition sizing.
Explanation
Correct Answer
C:Keep scope tied to the actual issue: A job has `spark.sql.shuffle.partitions=200` but AQE executes fewer reducer tasks. The bounded intervention is: Correct the operational expectation, not source data. Confirm: Monitoring correctly explains partition changes with identical output.
Incorrect Answers
A:Fix the source layout and query for the affected table. It is not the bounded choice for the stated condition: A job has `spark.sql.shuffle.partitions=200` but AQE executes fewer reducer tasks. The permitted change must remain: Correct the operational expectation, not source data.
B:Enable/tune AQE for this workload under measured change control. It is not the bounded choice for the stated condition: A job has `spark.sql.shuffle.partitions=200` but AQE executes fewer reducer tasks. The permitted change must remain: Correct the operational expectation, not source data.
D:Tune only adaptive post-shuffle partition sizing. The action does not preserve the identified scope boundary: Correct the operational expectation, not source data.
Question 766
At Lakeside Devices, before a production rollout (fictional study case R280-C154-1), a query repeatedly scans unpartitioned years of data, but the team expects AQE alone to prune historical files. 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.
- Improve time filtering and source partition layout in addition to eligible adaptive operations.
- Enable supported AQE features and evaluate skew splitting with matching result checks.
- Tune advisory partition size or coalescing policy using observed stage metrics.
- Inspect the adaptive physical plan and choose strategy based on supported thresholds and actual side sizes.
Explanation
Correct Answer
A:A query repeatedly scans unpartitioned years of data, but the team expects AQE alone to prune historical files. The underlying cause is: AQE focuses on runtime plan optimization and does not replace suitable source partitioning and predicate pushdown. The corrective step is: Improve time filtering and source partition layout in addition to eligible adaptive operations. Validate the outcome: Historical scans shrink for selective queries without losing records.
Incorrect Answers
B:Enable supported AQE features and evaluate skew splitting with matching result checks. The option targets a different stage or condition. The relevant failure is: AQE focuses on runtime plan optimization and does not replace suitable source partitioning and predicate pushdown. The needed repair is: Improve time filtering and source partition layout in addition to eligible adaptive operations.
C:Tune advisory partition size or coalescing policy using observed stage metrics. The option targets a different stage or condition. The relevant failure is: AQE focuses on runtime plan optimization and does not replace suitable source partitioning and predicate pushdown. The needed repair is: Improve time filtering and source partition layout in addition to eligible adaptive operations.
D:Inspect the adaptive physical plan and choose strategy based on supported thresholds and actual side sizes. That would not resolve the reported problem: A query repeatedly scans unpartitioned years of data, but the team expects AQE alone to prune historical files. The source-supported intervention is: Improve time filtering and source partition layout in addition to eligible adaptive operations.
Question 767
At Bayfront Markets, while optimizing an ETL application (fictional study case R280-C154-2), a query repeatedly scans unpartitioned years of data, but the team expects AQE alone to prune historical files. 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.
- The application disabled adaptive query execution and thus cannot apply its runtime skew partition optimizations.
- AQE partition coalescing settings favor consolidation beyond the workload's useful concurrency.
- AQE conversion depends on runtime statistics, thresholds and join semantics.
- AQE focuses on runtime plan optimization and does not replace suitable source partitioning and predicate pushdown.
Explanation
Correct Answer
D:Investigation should distinguish this specific mechanism: AQE focuses on runtime plan optimization and does not replace suitable source partitioning and predicate pushdown. The related symptom is: A query repeatedly scans unpartitioned years of data, but the team expects AQE alone to prune historical files. The discriminating check is: Compare scanned files/bytes with adaptive plan metrics.
Incorrect Answers
A:The application disabled adaptive query execution and thus cannot apply its runtime skew partition optimizations. The observed failure instead follows from: AQE focuses on runtime plan optimization and does not replace suitable source partitioning and predicate pushdown. The alternative does not explain the same dependency.
B:AQE partition coalescing settings favor consolidation beyond the workload's useful concurrency. This is not the root cause established for the reported condition: A query repeatedly scans unpartitioned years of data, but the team expects AQE alone to prune historical files. The cause is: AQE focuses on runtime plan optimization and does not replace suitable source partitioning and predicate pushdown.
C:AQE conversion depends on runtime statistics, thresholds and join semantics. This is not the root cause established for the reported condition: A query repeatedly scans unpartitioned years of data, but the team expects AQE alone to prune historical files. The cause is: AQE focuses on runtime plan optimization and does not replace suitable source partitioning and predicate pushdown.
Question 768
At Orion Fintech, during an internal acceptance test (fictional study case R280-C154-1), a query repeatedly scans unpartitioned years of data, but the team expects AQE alone to prune historical files. 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 adaptive plan and partition statistics under test load.
- Compare adaptive partition count, task duration and CPU utilization.
- Compare estimated and runtime join-size statistics with final plan.
- Compare scanned files/bytes with adaptive plan metrics.
Explanation
Correct Answer
D:Diagnose the affected path with: Compare scanned files/bytes with adaptive plan metrics. This tests the case-specific cause: AQE focuses on runtime plan optimization and does not replace suitable source partitioning and predicate pushdown.
Incorrect Answers
A:Inspect adaptive plan and partition statistics under test load. The case requires a discriminating check before any change, not the offered alternative. Use: Compare scanned files/bytes with adaptive plan metrics.
B:Compare adaptive partition count, task duration and CPU utilization. The case requires a discriminating check before any change, not the offered alternative. Use: Compare scanned files/bytes with adaptive plan metrics.
C:Compare estimated and runtime join-size statistics with final plan. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Compare scanned files/bytes with adaptive plan metrics.
Question 769
At Westfield Insights, after a routine data refresh (fictional study case R280-C154-2), a query repeatedly scans unpartitioned years of data, but the team expects AQE alone to prune historical files. 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.
- Large skewed tasks are reduced while output remains identical.
- Post-shuffle parallelism meets latency target without excessive overhead.
- Historical scans shrink for selective queries without losing records.
- The chosen strategy follows real eligible conditions and preserves rows.
Explanation
Correct Answer
C:Historical scans shrink for selective queries without losing records. This is an observable state after the correction: Improve time filtering and source partition layout in addition to eligible adaptive operations. It confirms the original problem no longer occurs.
Incorrect Answers
A:Large skewed tasks are reduced while output remains identical. Implementation or a check alone is not proof of success. The measurable end state is: Historical scans shrink for selective queries without losing records.
B:Post-shuffle parallelism meets latency target without excessive overhead. The alternative cannot demonstrate that the issue has been corrected: A query repeatedly scans unpartitioned years of data, but the team expects AQE alone to prune historical files. The required result is: Historical scans shrink for selective queries without losing records.
D:The chosen strategy follows real eligible conditions and preserves rows. Implementation or a check alone is not proof of success. The measurable end state is: Historical scans shrink for selective queries without losing records.
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.