Certified Associate Developer for Apache Spark Practice Test 76
Question 750
At Valleywide Travel, while debugging a failed notebook (fictional study case R280-C150-1), an engineer promises AQE always converts a join to broadcast regardless of relation size and join type. 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.
- Document and tune the specific join, not universal planner behavior.
- Limit work to adaptive plan monitoring for this query.
- Review only the skew-aware join changes.
- Correct the operational expectation, not source data.
Explanation
Correct Answer
A:The approved limit is: Document and tune the specific join, not universal planner behavior. It avoids applying the corrective step beyond the stated failure: An engineer promises AQE always converts a join to broadcast regardless of relation size and join type.
Incorrect Answers
B:Limit work to adaptive plan monitoring for this query. This does not enforce the required scope: Document and tune the specific join, not universal planner behavior. The specific failure is: AQE conversion depends on runtime statistics, thresholds and join semantics.
C:Review only the skew-aware join changes. It is not the bounded choice for the stated condition: An engineer promises AQE always converts a join to broadcast regardless of relation size and join type. The permitted change must remain: Document and tune the specific join, not universal planner behavior.
D:Correct the operational expectation, not source data. The action does not preserve the identified scope boundary: Document and tune the specific join, not universal planner behavior.
Question 751
At Harbor Data Labs, before a production rollout (fictional study case R280-C151-1), one test run picks sort-merge while another picks broadcast when source-filter selectivity varies. 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.
- Verify key-level counts and interpret physical task changes as runtime optimization, not automatically duplicate records.
- Verify result equivalence and monitor runtime plans instead of assuming one fixed static join method.
- Use adaptive-plan metrics to assess final partitions instead of treating initial config as an exact task count.
- Improve time filtering and source partition layout in addition to eligible adaptive operations.
Explanation
Correct Answer
B:Verify result equivalence and monitor runtime plans instead of assuming one fixed static join method. The technical or governance gap is: AQE may re-optimize at runtime based on materialized shuffle statistics. Check the affected state using: Capture adaptive plans and input cardinalities for both runs.
Incorrect Answers
A:Verify key-level counts and interpret physical task changes as runtime optimization, not automatically duplicate records. The option targets a different stage or condition. The relevant failure is: AQE may re-optimize at runtime based on materialized shuffle statistics. The needed repair is: Verify result equivalence and monitor runtime plans instead of assuming one fixed static join method.
C:Use adaptive-plan metrics to assess final partitions instead of treating initial config as an exact task count. That would not resolve the reported problem: One test run picks sort-merge while another picks broadcast when source-filter selectivity varies. The source-supported intervention is: Verify result equivalence and monitor runtime plans instead of assuming one fixed static join method.
D:Improve time filtering and source partition layout in addition to eligible adaptive operations. The recorded mechanism is: AQE may re-optimize at runtime based on materialized shuffle statistics. The proposed action does not correct that mechanism; use: Verify result equivalence and monitor runtime plans instead of assuming one fixed static join method.
Question 752
At Oakline Transportation, while optimizing an ETL application (fictional study case R280-C151-2), one test run picks sort-merge while another picks broadcast when source-filter selectivity varies. 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 may re-optimize at runtime based on materialized shuffle statistics.
- AQE may split large partitions or replicate a small join side while preserving logical join semantics.
- Runtime partition coalescing can change the final number of partitions from the initial plan.
- AQE focuses on runtime plan optimization and does not replace suitable source partitioning and predicate pushdown.
Explanation
Correct Answer
A:One test run picks sort-merge while another picks broadcast when source-filter selectivity varies. The supporting root cause is: AQE may re-optimize at runtime based on materialized shuffle statistics. The appropriate remedy is: Verify result equivalence and monitor runtime plans instead of assuming one fixed static join method.
Incorrect Answers
B:AQE may split large partitions or replicate a small join side while preserving logical join semantics. The observed failure instead follows from: AQE may re-optimize at runtime based on materialized shuffle statistics. The alternative does not explain the same dependency.
C:Runtime partition coalescing can change the final number of partitions from the initial plan. That explanation needs evidence of another fault. The specific mechanism here is: AQE may re-optimize at runtime based on materialized shuffle statistics.
D:AQE focuses on runtime plan optimization and does not replace suitable source partitioning and predicate pushdown. This is not the root cause established for the reported condition: One test run picks sort-merge while another picks broadcast when source-filter selectivity varies. The cause is: AQE may re-optimize at runtime based on materialized shuffle statistics.
Question 753
At Rosehill Diagnostics, during an internal acceptance test (fictional study case R280-C151-1), one test run picks sort-merge while another picks broadcast when source-filter selectivity varies. 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 original and adaptive results and inspect skew join plan.
- Compare initial shuffle plan with adaptive final-stage task count.
- Compare scanned files/bytes with adaptive plan metrics.
- Capture adaptive plans and input cardinalities for both runs.
Explanation
Correct Answer
D:The needed observation is: Capture adaptive plans and input cardinalities for both runs. The suspected failure is: AQE may re-optimize at runtime based on materialized shuffle statistics. The repair should only follow that check.
Incorrect Answers
A:Compare original and adaptive results and inspect skew join plan. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Capture adaptive plans and input cardinalities for both runs.
B:Compare initial shuffle plan with adaptive final-stage task count. That does not establish whether the stated cause is present: AQE may re-optimize at runtime based on materialized shuffle statistics. The diagnostic is: Capture adaptive plans and input cardinalities for both runs.
C:Compare scanned files/bytes with adaptive plan metrics. That does not establish whether the stated cause is present: AQE may re-optimize at runtime based on materialized shuffle statistics. The diagnostic is: Capture adaptive plans and input cardinalities for both runs.
Question 754
At Redwood Transit, after a routine data refresh (fictional study case R280-C151-2), one test run picks sort-merge while another picks broadcast when source-filter selectivity varies. 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.
- Final rows are correct while straggler time improves.
- Different physical strategies yield the same logical result within the budget.
- Monitoring correctly explains partition changes with identical output.
- Historical scans shrink for selective queries without losing records.
Explanation
Correct Answer
B:Acceptance requires: Different physical strategies yield the same logical result within the budget. That directly tests whether the mechanism was corrected: AQE may re-optimize at runtime based on materialized shuffle statistics.
Incorrect Answers
A:Final rows are correct while straggler time improves. This is not the observed recovery outcome. Acceptance requires: Different physical strategies yield the same logical result within the budget.
C:Monitoring correctly explains partition changes with identical output. This is not the observed recovery outcome. Acceptance requires: Different physical strategies yield the same logical result within the budget.
D:Historical scans shrink for selective queries without losing records. This is not the observed recovery outcome. Acceptance requires: Different physical strategies yield the same logical result within the budget.
Question 755
At Meadowvale Robotics, while debugging a failed notebook (fictional study case R280-C151-1), one test run picks sort-merge while another picks broadcast when source-filter selectivity varies. 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.
- Limit work to adaptive plan monitoring for this query.
- Review only the skew-aware join changes.
- Correct the operational expectation, not source data.
- Fix the source layout and query for the affected table.
Explanation
Correct Answer
A:Limit work to adaptive plan monitoring for this query. This limits the change while addressing: AQE may re-optimize at runtime based on materialized shuffle statistics. The expected outcome is: Different physical strategies yield the same logical result within the budget.
Incorrect Answers
B:Review only the skew-aware join changes. This does not enforce the required scope: Limit work to adaptive plan monitoring for this query. The specific failure is: AQE may re-optimize at runtime based on materialized shuffle statistics.
C:Correct the operational expectation, not source data. The action does not preserve the identified scope boundary: Limit work to adaptive plan monitoring for this query.
D:Fix the source layout and query for the affected table. It is not the bounded choice for the stated condition: One test run picks sort-merge while another picks broadcast when source-filter selectivity varies. The permitted change must remain: Limit work to adaptive plan monitoring for this query.
Question 756
At Northridge Retail, before a production rollout (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. 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.
- Use adaptive-plan metrics to assess final partitions instead of treating initial config as an exact task count.
- Verify key-level counts and interpret physical task changes as runtime optimization, not automatically duplicate records.
- 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.
Explanation
Correct Answer
B:The failure mechanism is: AQE may split large partitions or replicate a small join side while preserving logical join semantics. Apply the bounded change: Verify key-level counts and interpret physical task changes as runtime optimization, not automatically duplicate records. The acceptance test must show: Final rows are correct while straggler time improves.
Incorrect Answers
A:Use adaptive-plan metrics to assess final partitions instead of treating initial config as an exact task count. The recorded mechanism is: AQE may split large partitions or replicate a small join side while preserving logical join semantics. The proposed action does not correct that mechanism; use: Verify key-level counts and interpret physical task changes as runtime optimization, not automatically duplicate records.
C: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: AQE may split large partitions or replicate a small join side while preserving logical join semantics. The needed repair is: Verify key-level counts and interpret physical task changes as runtime optimization, not automatically duplicate records.
D:Enable supported AQE features and evaluate skew splitting with matching result checks. That would not resolve the reported problem: After enabling skew join handling, the UI shows extra tasks for hot partitions and operators fear rows were duplicated. The source-supported intervention is: Verify key-level counts and interpret physical task changes as runtime optimization, not automatically duplicate records.
Question 757
At Northstar Payments, while optimizing an ETL application (fictional study case R280-C152-2), after enabling skew join handling, the UI shows extra tasks for hot partitions and operators fear rows were duplicated. 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.
- Runtime partition coalescing can change the final number of partitions from the initial plan.
- AQE may split large partitions or replicate a small join side while preserving logical join semantics.
- 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.
Explanation
Correct Answer
B:The reported symptom is: After enabling skew join handling, the UI shows extra tasks for hot partitions and operators fear rows were duplicated. Its direct cause is: AQE may split large partitions or replicate a small join side while preserving logical join semantics. Test that conclusion using: Compare original and adaptive results and inspect skew join plan.
Incorrect Answers
A:Runtime partition coalescing can change the final number of partitions from the initial plan. That explanation needs evidence of another fault. The specific mechanism here is: AQE may split large partitions or replicate a small join side while preserving logical join semantics.
C:AQE focuses on runtime plan optimization and does not replace suitable source partitioning and predicate pushdown. The observed failure instead follows from: AQE may split large partitions or replicate a small join side while preserving logical join semantics. The alternative does not explain the same dependency.
D:The application disabled adaptive query execution and thus cannot apply its runtime skew partition optimizations. The observed failure instead follows from: AQE may split large partitions or replicate a small join side while preserving logical join semantics. The alternative does not explain the same dependency.
Question 758
At Cloudhaven Apps, during an internal acceptance test (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. 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 initial shuffle plan with adaptive final-stage task count.
- Compare scanned files/bytes with adaptive plan metrics.
- Inspect adaptive plan and partition statistics under test load.
- Compare original and adaptive results and inspect skew join plan.
Explanation
Correct Answer
D:Use this focused test: Compare original and adaptive results and inspect skew join plan. The test distinguishes the reported condition from alternatives by checking: AQE may split large partitions or replicate a small join side while preserving logical join semantics.
Incorrect Answers
A:Compare initial shuffle plan with adaptive final-stage task count. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Compare original and adaptive results and inspect skew join plan.
B:Compare scanned files/bytes with adaptive plan metrics. That does not establish whether the stated cause is present: AQE may split large partitions or replicate a small join side while preserving logical join semantics. The diagnostic is: Compare original and adaptive results and inspect skew join plan.
C:Inspect adaptive plan and partition statistics under test load. That does not establish whether the stated cause is present: AQE may split large partitions or replicate a small join side while preserving logical join semantics. The diagnostic is: Compare original and adaptive results and inspect skew join plan.
Question 759
At Bayshore Healthcare, after a routine data refresh (fictional study case R280-C152-2), after enabling skew join handling, the UI shows extra tasks for hot partitions and operators fear rows were duplicated. 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.
- Monitoring correctly explains partition changes with identical output.
- Final rows are correct while straggler time improves.
- Historical scans shrink for selective queries without losing records.
- Large skewed tasks are reduced while output remains identical.
Explanation
Correct Answer
B:Acceptance requires: Final rows are correct while straggler time improves. That directly tests whether the mechanism was corrected: AQE may split large partitions or replicate a small join side while preserving logical join semantics.
Incorrect Answers
A:Monitoring correctly explains partition changes with identical output. Implementation or a check alone is not proof of success. The measurable end state is: Final rows are correct while straggler time improves.
C:Historical scans shrink for selective queries without losing records. This is not the observed recovery outcome. Acceptance requires: Final rows are correct while straggler time improves.
D:Large skewed tasks are reduced while output remains identical. The alternative cannot demonstrate that the issue has been corrected: After enabling skew join handling, the UI shows extra tasks for hot partitions and operators fear rows were duplicated. The required result is: Final rows are correct while straggler time improves.
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.