Certified Associate Developer for Apache Spark Practice Test 70
Question 690
At Harbor Data Labs, when reviewing an incremental load (fictional study case R280-C138-1), a dimension expected to fit in 8 MB grows to hundreds of megabytes but a stale broadcast hint still forces replication. 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.
- Change join strategy without altering logical join type.
- Restrict reference processing to the active-code subset.
- Adjust broadcast hint for this join only.
- Scope strategy correction to this growing dimension.
Explanation
Correct Answer
D:Keep scope tied to the actual issue: A dimension expected to fit in 8 MB grows to hundreds of megabytes but a stale broadcast hint still forces replication. The bounded intervention is: Scope strategy correction to this growing dimension. Confirm: The join completes without broadcast memory failure and matches prior semantics.
Incorrect Answers
A:Change join strategy without altering logical join type. The action does not preserve the identified scope boundary: Scope strategy correction to this growing dimension.
B:Restrict reference processing to the active-code subset. It is not the bounded choice for the stated condition: A dimension expected to fit in 8 MB grows to hundreds of megabytes but a stale broadcast hint still forces replication. The permitted change must remain: Scope strategy correction to this growing dimension.
C:Adjust broadcast hint for this join only. It is not the bounded choice for the stated condition: A dimension expected to fit in 8 MB grows to hundreds of megabytes but a stale broadcast hint still forces replication. The permitted change must remain: Scope strategy correction to this growing dimension.
Question 691
At Oakline Transportation, while reconciling a reporting dataset (fictional study case R280-C139-1), an engineer switches a left outer join to an inner join just to obtain a fast broadcast plan, losing nonmatching fact records. 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.
- Filter/select the current reference rows first, then broadcast only if size merits it.
- Keep the required left-outer relationship and broadcast only a supported small right-hand dimension when useful.
- 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.
Explanation
Correct Answer
B:The observed defect follows from: Join semantics determine row preservation independently of optimization strategy. The appropriate correction is: Keep the required left-outer relationship and broadcast only a supported small right-hand dimension when useful. Confirm the result by verifying: Unmatched left rows remain and matched rows are enriched efficiently.
Incorrect Answers
A:Filter/select the current reference rows first, then broadcast only if size merits it. That would not resolve the reported problem: An engineer switches a left outer join to an inner join just to obtain a fast broadcast plan, losing nonmatching fact records. The source-supported intervention is: Keep the required left-outer relationship and broadcast only a supported small right-hand dimension when useful.
C:Broadcast the small reference relation and allow the large fact side to remain partitioned. That would not resolve the reported problem: An engineer switches a left outer join to an inner join just to obtain a fast broadcast plan, losing nonmatching fact records. The source-supported intervention is: Keep the required left-outer relationship and broadcast only a supported small right-hand dimension when useful.
D:Add a measured broadcast hint for the small compatible dimension after verifying its size. The recorded mechanism is: Join semantics determine row preservation independently of optimization strategy. The proposed action does not correct that mechanism; use: Keep the required left-outer relationship and broadcast only a supported small right-hand dimension when useful.
Question 692
At Rosehill Diagnostics, during a pipeline migration (fictional study case R280-C139-2), an engineer switches a left outer join to an inner join just to obtain a fast broadcast plan, losing nonmatching fact records. 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 broadcast is applied to an unnecessarily large unfiltered relation.
- Join semantics determine row preservation independently of optimization strategy.
- The broadcast hint selects a build side too large for safe replication.
- Automatic statistics or threshold choices fail to choose a beneficial broadcast strategy.
Explanation
Correct Answer
B:Join semantics determine row preservation independently of optimization strategy. This accounts for the observed condition: An engineer switches a left outer join to an inner join just to obtain a fast broadcast plan, losing nonmatching fact records. The relevant verification is: Compare unmatched left keys and output rows before/after optimization.
Incorrect Answers
A:The broadcast is applied to an unnecessarily large unfiltered relation. That explanation needs evidence of another fault. The specific mechanism here is: Join semantics determine row preservation independently of optimization strategy.
C:The broadcast hint selects a build side too large for safe replication. This is not the root cause established for the reported condition: An engineer switches a left outer join to an inner join just to obtain a fast broadcast plan, losing nonmatching fact records. The cause is: Join semantics determine row preservation independently of optimization strategy.
D:Automatic statistics or threshold choices fail to choose a beneficial broadcast strategy. That explanation needs evidence of another fault. The specific mechanism here is: Join semantics determine row preservation independently of optimization strategy.
Question 693
At Redwood Transit, after a Spark runtime upgrade (fictional study case R280-C139-1), an engineer switches a left outer join to an inner join just to obtain a fast broadcast plan, losing nonmatching fact records. 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 dimension input size before and after the selective filter.
- Examine join physical plan and estimated build-side bytes.
- Compare unmatched left keys and output rows before/after optimization.
- Compare join plan, shuffle metrics and runtime in a representative workload.
Explanation
Correct Answer
C:Use this focused test: Compare unmatched left keys and output rows before/after optimization. The test distinguishes the reported condition from alternatives by checking: Join semantics determine row preservation independently of optimization strategy.
Incorrect Answers
A:Compare dimension input size before and after the selective filter. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Compare unmatched left keys and output rows before/after optimization.
B:Examine join physical plan and estimated build-side bytes. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Compare unmatched left keys and output rows before/after optimization.
D:Compare join plan, shuffle metrics and runtime in a representative workload. The case requires a discriminating check before any change, not the offered alternative. Use: Compare unmatched left keys and output rows before/after optimization.
Question 694
At Meadowvale Robotics, when validating a daily batch (fictional study case R280-C139-2), an engineer switches a left outer join to an inner join just to obtain a fast broadcast plan, losing nonmatching fact records. 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 join uses the correct 200 codes and avoids excessive broadcast bytes.
- Unmatched left rows remain and matched rows are enriched efficiently.
- The join returns correct rows without oversized broadcast OOM.
- Network shuffle drops with identical join output.
Explanation
Correct Answer
B:Unmatched left rows remain and matched rows are enriched efficiently. This is an observable state after the correction: Keep the required left-outer relationship and broadcast only a supported small right-hand dimension when useful. It confirms the original problem no longer occurs.
Incorrect Answers
A:The join uses the correct 200 codes and avoids excessive broadcast bytes. This is not the observed recovery outcome. Acceptance requires: Unmatched left rows remain and matched rows are enriched efficiently.
C:The join returns correct rows without oversized broadcast OOM. The alternative cannot demonstrate that the issue has been corrected: An engineer switches a left outer join to an inner join just to obtain a fast broadcast plan, losing nonmatching fact records. The required result is: Unmatched left rows remain and matched rows are enriched efficiently.
D:Network shuffle drops with identical join output. Implementation or a check alone is not proof of success. The measurable end state is: Unmatched left rows remain and matched rows are enriched efficiently.
Question 695
At Northridge Retail, when reviewing an incremental load (fictional study case R280-C139-1), an engineer switches a left outer join to an inner join just to obtain a fast broadcast plan, losing nonmatching fact records. 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.
- Restrict reference processing to the active-code subset.
- Adjust broadcast hint for this join only.
- Optimize only the fact/dimension join.
- Change join strategy without altering logical join type.
Explanation
Correct Answer
D:The relevant boundary is: Change join strategy without altering logical join type. The correction remains: Keep the required left-outer relationship and broadcast only a supported small right-hand dimension when useful.
Incorrect Answers
A:Restrict reference processing to the active-code subset. It is not the bounded choice for the stated condition: An engineer switches a left outer join to an inner join just to obtain a fast broadcast plan, losing nonmatching fact records. The permitted change must remain: Change join strategy without altering logical join type.
B:Adjust broadcast hint for this join only. This does not enforce the required scope: Change join strategy without altering logical join type. The specific failure is: Join semantics determine row preservation independently of optimization strategy.
C:Optimize only the fact/dimension join. The action does not preserve the identified scope boundary: Change join strategy without altering logical join type.
Question 696
At Northstar Payments, while reconciling a reporting dataset (fictional study case R280-C140-1), a reference table includes historical millions of rows, but only 200 current codes are needed for the join. 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.
- Filter/select the current reference rows first, then broadcast only if size merits it.
- 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.
Explanation
Correct Answer
B:A reference table includes historical millions of rows, but only 200 current codes are needed for the join. The underlying cause is: The broadcast is applied to an unnecessarily large unfiltered relation. The corrective step is: Filter/select the current reference rows first, then broadcast only if size merits it. Validate the outcome: The join uses the correct 200 codes and avoids excessive broadcast bytes.
Incorrect Answers
A:Broadcast the small reference relation and allow the large fact side to remain partitioned. That would not resolve the reported problem: A reference table includes historical millions of rows, but only 200 current codes are needed for the join. The source-supported intervention is: Filter/select the current reference rows first, then broadcast only if size merits it.
C:Add a measured broadcast hint for the small compatible dimension after verifying its size. That would not resolve the reported problem: A reference table includes historical millions of rows, but only 200 current codes are needed for the join. The source-supported intervention is: Filter/select the current reference rows first, then broadcast only if size merits it.
D: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: The broadcast is applied to an unnecessarily large unfiltered relation. The needed repair is: Filter/select the current reference rows first, then broadcast only if size merits it.
Question 697
At Cloudhaven Apps, during a pipeline migration (fictional study case R280-C140-2), a reference table includes historical millions of rows, but only 200 current codes are needed for the join. 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 broadcast hint selects a build side too large for safe replication.
- The broadcast is applied to an unnecessarily large unfiltered relation.
- Automatic statistics or threshold choices fail to choose a beneficial broadcast strategy.
- Not every join type and build side is supported for a broadcast hash join.
Explanation
Correct Answer
B:Investigation should distinguish this specific mechanism: The broadcast is applied to an unnecessarily large unfiltered relation. The related symptom is: A reference table includes historical millions of rows, but only 200 current codes are needed for the join. The discriminating check is: Compare dimension input size before and after the selective filter.
Incorrect Answers
A:The broadcast hint selects a build side too large for safe replication. The observed failure instead follows from: The broadcast is applied to an unnecessarily large unfiltered relation. The alternative does not explain the same dependency.
C:Automatic statistics or threshold choices fail to choose a beneficial broadcast strategy. That explanation needs evidence of another fault. The specific mechanism here is: The broadcast is applied to an unnecessarily large unfiltered relation.
D:Not every join type and build side is supported for a broadcast hash join. That explanation needs evidence of another fault. The specific mechanism here is: The broadcast is applied to an unnecessarily large unfiltered relation.
Question 698
At Bayshore Healthcare, after a Spark runtime upgrade (fictional study case R280-C140-1), a reference table includes historical millions of rows, but only 200 current codes are needed for the join. 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.
- Examine join physical plan and estimated build-side bytes.
- Compare join plan, shuffle metrics and runtime in a representative workload.
- Compare physical join implementation and output under null keys.
- Compare dimension input size before and after the selective filter.
Explanation
Correct Answer
D:The needed observation is: Compare dimension input size before and after the selective filter. The suspected failure is: The broadcast is applied to an unnecessarily large unfiltered relation. The repair should only follow that check.
Incorrect Answers
A:Examine join physical plan and estimated build-side bytes. The case requires a discriminating check before any change, not the offered alternative. Use: Compare dimension input size before and after the selective filter.
B:Compare join plan, shuffle metrics and runtime in a representative workload. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Compare dimension input size before and after the selective filter.
C:Compare physical join implementation and output under null keys. That does not establish whether the stated cause is present: The broadcast is applied to an unnecessarily large unfiltered relation. The diagnostic is: Compare dimension input size before and after the selective filter.
Question 699
At Stonebridge Research, when validating a daily batch (fictional study case R280-C140-2), a reference table includes historical millions of rows, but only 200 current codes are needed for the join. 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 join returns correct rows without oversized broadcast OOM.
- Network shuffle drops with identical join output.
- The join uses the correct 200 codes and avoids excessive broadcast bytes.
- The full outer result remains complete without unsupported strategy promises.
Explanation
Correct Answer
C:The join uses the correct 200 codes and avoids excessive broadcast bytes. This is an observable state after the correction: Filter/select the current reference rows first, then broadcast only if size merits it. It confirms the original problem no longer occurs.
Incorrect Answers
A:The join returns correct rows without oversized broadcast OOM. The alternative cannot demonstrate that the issue has been corrected: A reference table includes historical millions of rows, but only 200 current codes are needed for the join. The required result is: The join uses the correct 200 codes and avoids excessive broadcast bytes.
B:Network shuffle drops with identical join output. The alternative cannot demonstrate that the issue has been corrected: A reference table includes historical millions of rows, but only 200 current codes are needed for the join. The required result is: The join uses the correct 200 codes and avoids excessive broadcast bytes.
D:The full outer result remains complete without unsupported strategy promises. This is not the observed recovery outcome. Acceptance requires: The join uses the correct 200 codes and avoids excessive broadcast bytes.
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.