Certified Associate Developer for Apache Spark Practice Test 68
Question 670
At Summit Supply, during a performance incident (fictional study case R280-C134-1), a DataFrame job continues categorizing customers using a broadcast map built before a reference-data refresh. 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.
- Refresh only the affected broadcast mapping.
- Broadcast only the approved immutable mapping.
- Remove accumulator reliance from business totals.
- Change only the lookup-version refresh process.
Explanation
Correct Answer
A:Keep the intervention within this boundary: Refresh only the affected broadcast mapping. The reported failure mechanism is: Broadcast variables do not auto-update when the source file changes.
Incorrect Answers
B:Broadcast only the approved immutable mapping. This does not enforce the required scope: Refresh only the affected broadcast mapping. The specific failure is: Broadcast variables do not auto-update when the source file changes.
C:Remove accumulator reliance from business totals. The action does not preserve the identified scope boundary: Refresh only the affected broadcast mapping.
D:Change only the lookup-version refresh process. The action does not preserve the identified scope boundary: Refresh only the affected broadcast mapping.
Question 671
At Granite Insurance, while reconciling a reporting dataset (fictional study case R280-C135-1), a join query broadcasts the massive events table rather than the 2 MB country reference, causing memory pressure. 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.
- Broadcast the small reference relation and allow the large fact side to remain partitioned.
- Add a measured broadcast hint for the small compatible dimension after verifying its size.
- Choose a valid join strategy for full-outer semantics and inspect the actual plan.
- Remove or condition the hint and monitor dimension statistics before planning.
Explanation
Correct Answer
A:A join query broadcasts the massive events table rather than the 2 MB country reference, causing memory pressure. The underlying cause is: The broadcast hint selects a build side too large for safe replication. The corrective step is: Broadcast the small reference relation and allow the large fact side to remain partitioned. Validate the outcome: The join returns correct rows without oversized broadcast OOM.
Incorrect Answers
B:Add a measured broadcast hint for the small compatible dimension after verifying its size. The option targets a different stage or condition. The relevant failure is: The broadcast hint selects a build side too large for safe replication. The needed repair is: Broadcast the small reference relation and allow the large fact side to remain partitioned.
C:Choose a valid join strategy for full-outer semantics and inspect the actual plan. The recorded mechanism is: The broadcast hint selects a build side too large for safe replication. The proposed action does not correct that mechanism; use: Broadcast the small reference relation and allow the large fact side to remain partitioned.
D:Remove or condition the hint and monitor dimension statistics before planning. The option targets a different stage or condition. The relevant failure is: The broadcast hint selects a build side too large for safe replication. The needed repair is: Broadcast the small reference relation and allow the large fact side to remain partitioned.
Question 672
At Elmwood Manufacturing, during a pipeline migration (fictional study case R280-C135-2), a join query broadcasts the massive events table rather than the 2 MB country reference, causing memory pressure. 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.
- Automatic statistics or threshold choices fail to choose a beneficial broadcast strategy.
- The broadcast hint selects a build side too large for safe replication.
- Not every join type and build side is supported for a broadcast hash join.
- Broadcast planning assumptions were not updated after dimension growth.
Explanation
Correct Answer
B:Investigation should distinguish this specific mechanism: The broadcast hint selects a build side too large for safe replication. The related symptom is: A join query broadcasts the massive events table rather than the 2 MB country reference, causing memory pressure. The discriminating check is: Examine join physical plan and estimated build-side bytes.
Incorrect Answers
A:Automatic statistics or threshold choices fail to choose a beneficial broadcast strategy. This is not the root cause established for the reported condition: A join query broadcasts the massive events table rather than the 2 MB country reference, causing memory pressure. The cause is: The broadcast hint selects a build side too large for safe replication.
C:Not every join type and build side is supported for a broadcast hash join. The observed failure instead follows from: The broadcast hint selects a build side too large for safe replication. The alternative does not explain the same dependency.
D:Broadcast planning assumptions were not updated after dimension growth. The observed failure instead follows from: The broadcast hint selects a build side too large for safe replication. The alternative does not explain the same dependency.
Question 673
At Lakeside Devices, after a Spark runtime upgrade (fictional study case R280-C135-1), a join query broadcasts the massive events table rather than the 2 MB country reference, causing memory pressure. 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 join plan, shuffle metrics and runtime in a representative workload.
- Compare physical join implementation and output under null keys.
- Examine join physical plan and estimated build-side bytes.
- Compare actual relation bytes with join hint and task memory metrics.
Explanation
Correct Answer
C:The needed observation is: Examine join physical plan and estimated build-side bytes. The suspected failure is: The broadcast hint selects a build side too large for safe replication. The repair should only follow that check.
Incorrect Answers
A:Compare join plan, shuffle metrics and runtime in a representative workload. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Examine join physical plan and estimated build-side bytes.
B:Compare physical join implementation and output under null keys. The case requires a discriminating check before any change, not the offered alternative. Use: Examine join physical plan and estimated build-side bytes.
D:Compare actual relation bytes with join hint and task memory metrics. The case requires a discriminating check before any change, not the offered alternative. Use: Examine join physical plan and estimated build-side bytes.
Question 674
At Bayfront Markets, when validating a daily batch (fictional study case R280-C135-2), a join query broadcasts the massive events table rather than the 2 MB country reference, causing memory pressure. 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.
- Network shuffle drops with identical join output.
- The full outer result remains complete without unsupported strategy promises.
- The join returns correct rows without oversized broadcast OOM.
- The join completes without broadcast memory failure and matches prior semantics.
Explanation
Correct Answer
C:The verification result must be: The join returns correct rows without oversized broadcast OOM. It is stronger evidence than merely performing: Examine join physical plan and estimated build-side bytes.
Incorrect Answers
A:Network shuffle drops with identical join output. This is not the observed recovery outcome. Acceptance requires: The join returns correct rows without oversized broadcast OOM.
B:The full outer result remains complete without unsupported strategy promises. The alternative cannot demonstrate that the issue has been corrected: A join query broadcasts the massive events table rather than the 2 MB country reference, causing memory pressure. The required result is: The join returns correct rows without oversized broadcast OOM.
D:The join completes without broadcast memory failure and matches prior semantics. Implementation or a check alone is not proof of success. The measurable end state is: The join returns correct rows without oversized broadcast OOM.
Question 675
At Orion Fintech, when reviewing an incremental load (fictional study case R280-C135-1), a join query broadcasts the massive events table rather than the 2 MB country reference, causing memory pressure. 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.
- Optimize only the fact/dimension join.
- Tune only the specific outer join.
- Scope strategy correction to this growing dimension.
Explanation
Correct Answer
A:Keep scope tied to the actual issue: A join query broadcasts the massive events table rather than the 2 MB country reference, causing memory pressure. The bounded intervention is: Adjust broadcast hint for this join only. Confirm: The join returns correct rows without oversized broadcast OOM.
Incorrect Answers
B:Optimize only the fact/dimension join. This does not enforce the required scope: Adjust broadcast hint for this join only. The specific failure is: The broadcast hint selects a build side too large for safe replication.
C:Tune only the specific outer join. It is not the bounded choice for the stated condition: A join query broadcasts the massive events table rather than the 2 MB country reference, causing memory pressure. The permitted change must remain: Adjust broadcast hint for this join only.
D:Scope strategy correction to this growing dimension. The action does not preserve the identified scope boundary: Adjust broadcast hint for this join only.
Question 676
At Westfield Insights, while reconciling a reporting dataset (fictional study case R280-C136-1), a tiny dimension joins a huge fact table with a full shuffle despite sufficient broadcast capacity. 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.
- Choose a valid join strategy for full-outer semantics and inspect the actual plan.
- Remove or condition the hint and monitor dimension statistics before planning.
- Keep the required left-outer relationship and broadcast only a supported small right-hand dimension when useful.
- Add a measured broadcast hint for the small compatible dimension after verifying its size.
Explanation
Correct Answer
D:The failure mechanism is: Automatic statistics or threshold choices fail to choose a beneficial broadcast strategy. Apply the bounded change: Add a measured broadcast hint for the small compatible dimension after verifying its size. The acceptance test must show: Network shuffle drops with identical join output.
Incorrect Answers
A:Choose a valid join strategy for full-outer semantics and inspect the actual plan. The option targets a different stage or condition. The relevant failure is: Automatic statistics or threshold choices fail to choose a beneficial broadcast strategy. The needed repair is: Add a measured broadcast hint for the small compatible dimension after verifying its size.
B:Remove or condition the hint and monitor dimension statistics before planning. The recorded mechanism is: Automatic statistics or threshold choices fail to choose a beneficial broadcast strategy. The proposed action does not correct that mechanism; use: Add a measured broadcast hint for the small compatible dimension after verifying its size.
C:Keep the required left-outer relationship and broadcast only a supported small right-hand dimension when useful. The option targets a different stage or condition. The relevant failure is: Automatic statistics or threshold choices fail to choose a beneficial broadcast strategy. The needed repair is: Add a measured broadcast hint for the small compatible dimension after verifying its size.
Question 677
At Mapleford Engineering, during a pipeline migration (fictional study case R280-C136-2), a tiny dimension joins a huge fact table with a full shuffle despite sufficient broadcast capacity. 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.
- Not every join type and build side is supported for a broadcast hash join.
- Broadcast planning assumptions were not updated after dimension growth.
- Automatic statistics or threshold choices fail to choose a beneficial broadcast strategy.
- Join semantics determine row preservation independently of optimization strategy.
Explanation
Correct Answer
C:The reported symptom is: A tiny dimension joins a huge fact table with a full shuffle despite sufficient broadcast capacity. Its direct cause is: Automatic statistics or threshold choices fail to choose a beneficial broadcast strategy. Test that conclusion using: Compare join plan, shuffle metrics and runtime in a representative workload.
Incorrect Answers
A:Not every join type and build side is supported for a broadcast hash join. The observed failure instead follows from: Automatic statistics or threshold choices fail to choose a beneficial broadcast strategy. The alternative does not explain the same dependency.
B:Broadcast planning assumptions were not updated after dimension growth. This is not the root cause established for the reported condition: A tiny dimension joins a huge fact table with a full shuffle despite sufficient broadcast capacity. The cause is: Automatic statistics or threshold choices fail to choose a beneficial broadcast strategy.
D:Join semantics determine row preservation independently of optimization strategy. The observed failure instead follows from: Automatic statistics or threshold choices fail to choose a beneficial broadcast strategy. The alternative does not explain the same dependency.
Question 678
At Horizon Logistics, after a Spark runtime upgrade (fictional study case R280-C136-1), a tiny dimension joins a huge fact table with a full shuffle despite sufficient broadcast capacity. 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 physical join implementation and output under null keys.
- Compare actual relation bytes with join hint and task memory metrics.
- Compare join plan, shuffle metrics and runtime in a representative workload.
- Compare unmatched left keys and output rows before/after optimization.
Explanation
Correct Answer
C:Use this focused test: Compare join plan, shuffle metrics and runtime in a representative workload. The test distinguishes the reported condition from alternatives by checking: Automatic statistics or threshold choices fail to choose a beneficial broadcast strategy.
Incorrect Answers
A:Compare physical join implementation and output under null keys. The case requires a discriminating check before any change, not the offered alternative. Use: Compare join plan, shuffle metrics and runtime in a representative workload.
B:Compare actual relation bytes with join hint and task memory metrics. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Compare join plan, shuffle metrics and runtime in a representative workload.
D:Compare unmatched left keys and output rows before/after optimization. The case requires a discriminating check before any change, not the offered alternative. Use: Compare join plan, shuffle metrics and runtime in a representative workload.
Question 679
At Aspen Public Services, when validating a daily batch (fictional study case R280-C136-2), a tiny dimension joins a huge fact table with a full shuffle despite sufficient broadcast capacity. 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 full outer result remains complete without unsupported strategy promises.
- The join completes without broadcast memory failure and matches prior semantics.
- Network shuffle drops with identical join output.
- Unmatched left rows remain and matched rows are enriched efficiently.
Explanation
Correct Answer
C:The verification result must be: Network shuffle drops with identical join output. It is stronger evidence than merely performing: Compare join plan, shuffle metrics and runtime in a representative workload.
Incorrect Answers
A:The full outer result remains complete without unsupported strategy promises. Implementation or a check alone is not proof of success. The measurable end state is: Network shuffle drops with identical join output.
B:The join completes without broadcast memory failure and matches prior semantics. This is not the observed recovery outcome. Acceptance requires: Network shuffle drops with identical join output.
D:Unmatched left rows remain and matched rows are enriched efficiently. This is not the observed recovery outcome. Acceptance requires: Network shuffle drops with identical join output.
Question 680
At Juniper Foods, when reviewing an incremental load (fictional study case R280-C136-1), a tiny dimension joins a huge fact table with a full shuffle despite sufficient broadcast capacity. 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 only the fact/dimension join.
- Tune only the specific outer join.
- Scope strategy correction to this growing dimension.
- Change join strategy without altering logical join type.
Explanation
Correct Answer
A:Keep scope tied to the actual issue: A tiny dimension joins a huge fact table with a full shuffle despite sufficient broadcast capacity. The bounded intervention is: Optimize only the fact/dimension join. Confirm: Network shuffle drops with identical join output.
Incorrect Answers
B:Tune only the specific outer join. The action does not preserve the identified scope boundary: Optimize only the fact/dimension join.
C:Scope strategy correction to this growing dimension. The action does not preserve the identified scope boundary: Optimize only the fact/dimension join.
D:Change join strategy without altering logical join type. It is not the bounded choice for the stated condition: A tiny dimension joins a huge fact table with a full shuffle despite sufficient broadcast capacity. The permitted change must remain: Optimize only the fact/dimension join.