Certified Associate Developer for Apache Spark Practice Test 66
Question 650
At Willowbank Software, during a performance incident (fictional study case R280-C130-1), a billing pipeline increments an accumulator inside tasks and expects precisely-once totals despite retries. 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 only the lookup-version refresh process.
- Refactor only the stable reference enrichment.
- Remove accumulator reliance from business totals.
- Redesign only the error collection path.
Explanation
Correct Answer
C:Keep scope tied to the actual issue: A billing pipeline increments an accumulator inside tasks and expects precisely-once totals despite retries. The bounded intervention is: Remove accumulator reliance from business totals. Confirm: Billable counts reconcile exactly under fault injection.
Incorrect Answers
A:Change only the lookup-version refresh process. This does not enforce the required scope: Remove accumulator reliance from business totals. The specific failure is: Accumulators are for diagnostics and their update semantics can be affected by task execution/retries.
B:Refactor only the stable reference enrichment. This does not enforce the required scope: Remove accumulator reliance from business totals. The specific failure is: Accumulators are for diagnostics and their update semantics can be affected by task execution/retries.
D:Redesign only the error collection path. It is not the bounded choice for the stated condition: A billing pipeline increments an accumulator inside tasks and expects precisely-once totals despite retries. The permitted change must remain: Remove accumulator reliance from business totals.
Question 651
At Seabrook Education, while optimizing an ETL application (fictional study case R280-C131-1), a worker tries to edit a broadcast dictionary and expects other tasks to see the change. 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 a versioned broadcast lookup or a broadcast join with the dimension DataFrame.
- Aggregate bounded error counts and write invalid rows to a controlled distributed sink.
- Treat broadcast metadata as immutable and rebuild/broadcast a new version when updates are required.
- Recreate the broadcast from a validated new version and retire the old reference.
Explanation
Correct Answer
C:The failure mechanism is: Broadcast variables are read-only snapshots distributed to executors, not a shared mutable cache. Apply the bounded change: Treat broadcast metadata as immutable and rebuild/broadcast a new version when updates are required. The acceptance test must show: All tasks consume a consistent approved mapping version.
Incorrect Answers
A:Use a versioned broadcast lookup or a broadcast join with the dimension DataFrame. The option targets a different stage or condition. The relevant failure is: Broadcast variables are read-only snapshots distributed to executors, not a shared mutable cache. The needed repair is: Treat broadcast metadata as immutable and rebuild/broadcast a new version when updates are required.
B:Aggregate bounded error counts and write invalid rows to a controlled distributed sink. The option targets a different stage or condition. The relevant failure is: Broadcast variables are read-only snapshots distributed to executors, not a shared mutable cache. The needed repair is: Treat broadcast metadata as immutable and rebuild/broadcast a new version when updates are required.
D:Recreate the broadcast from a validated new version and retire the old reference. The option targets a different stage or condition. The relevant failure is: Broadcast variables are read-only snapshots distributed to executors, not a shared mutable cache. The needed repair is: Treat broadcast metadata as immutable and rebuild/broadcast a new version when updates are required.
Question 652
At Bluewater Energy, during an internal acceptance test (fictional study case R280-C131-2), a worker tries to edit a broadcast dictionary and expects other tasks to see the change. 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 work issues redundant network calls instead of reusing a stable small lookup.
- Broadcast variables are read-only snapshots distributed to executors, not a shared mutable cache.
- Accumulators are unsuitable for unbounded row-level data collection.
- Broadcast variables do not auto-update when the source file changes.
Explanation
Correct Answer
B:Broadcast variables are read-only snapshots distributed to executors, not a shared mutable cache. This accounts for the observed condition: A worker tries to edit a broadcast dictionary and expects other tasks to see the change. The relevant verification is: Compare broadcast version IDs across controlled executions.
Incorrect Answers
A:The work issues redundant network calls instead of reusing a stable small lookup. The observed failure instead follows from: Broadcast variables are read-only snapshots distributed to executors, not a shared mutable cache. The alternative does not explain the same dependency.
C:Accumulators are unsuitable for unbounded row-level data collection. That explanation needs evidence of another fault. The specific mechanism here is: Broadcast variables are read-only snapshots distributed to executors, not a shared mutable cache.
D:Broadcast variables do not auto-update when the source file changes. This is not the root cause established for the reported condition: A worker tries to edit a broadcast dictionary and expects other tasks to see the change. The cause is: Broadcast variables are read-only snapshots distributed to executors, not a shared mutable cache.
Question 653
At Meridian Commerce, after a routine data refresh (fictional study case R280-C131-1), a worker tries to edit a broadcast dictionary and expects other tasks to see the change. 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.
- Count external calls and compare join outputs on a sample.
- Measure accumulator size and compare quarantined row count.
- Compare broadcast content version with current source checksum.
- Compare broadcast version IDs across controlled executions.
Explanation
Correct Answer
D:The needed observation is: Compare broadcast version IDs across controlled executions. The suspected failure is: Broadcast variables are read-only snapshots distributed to executors, not a shared mutable cache. The repair should only follow that check.
Incorrect Answers
A:Count external calls and compare join outputs on a sample. That does not establish whether the stated cause is present: Broadcast variables are read-only snapshots distributed to executors, not a shared mutable cache. The diagnostic is: Compare broadcast version IDs across controlled executions.
B:Measure accumulator size and compare quarantined row count. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Compare broadcast version IDs across controlled executions.
C:Compare broadcast content version with current source checksum. The case requires a discriminating check before any change, not the offered alternative. Use: Compare broadcast version IDs across controlled executions.
Question 654
At Copperline Finance, while debugging a failed notebook (fictional study case R280-C131-2), a worker tries to edit a broadcast dictionary and expects other tasks to see the change. 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.
- Enrichment yields identical values with far fewer network requests.
- All tasks consume a consistent approved mapping version.
- Diagnostics remain bounded and complete invalid records are auditable.
- Subsequent tasks use refreshed categories consistently.
Explanation
Correct Answer
B:All tasks consume a consistent approved mapping version. This demonstrates the intended effect of: Treat broadcast metadata as immutable and rebuild/broadcast a new version when updates are required. The prior failure was: A worker tries to edit a broadcast dictionary and expects other tasks to see the change.
Incorrect Answers
A:Enrichment yields identical values with far fewer network requests. Implementation or a check alone is not proof of success. The measurable end state is: All tasks consume a consistent approved mapping version.
C:Diagnostics remain bounded and complete invalid records are auditable. The alternative cannot demonstrate that the issue has been corrected: A worker tries to edit a broadcast dictionary and expects other tasks to see the change. The required result is: All tasks consume a consistent approved mapping version.
D:Subsequent tasks use refreshed categories consistently. Implementation or a check alone is not proof of success. The measurable end state is: All tasks consume a consistent approved mapping version.
Question 655
At Pinecrest Media, during a performance incident (fictional study case R280-C131-1), a worker tries to edit a broadcast dictionary and expects other tasks to see the change. 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 only the lookup-version refresh process.
- Refactor only the stable reference enrichment.
- Redesign only the error collection path.
- Refresh only the affected broadcast mapping.
Explanation
Correct Answer
A:The relevant boundary is: Change only the lookup-version refresh process. The correction remains: Treat broadcast metadata as immutable and rebuild/broadcast a new version when updates are required.
Incorrect Answers
B:Refactor only the stable reference enrichment. This does not enforce the required scope: Change only the lookup-version refresh process. The specific failure is: Broadcast variables are read-only snapshots distributed to executors, not a shared mutable cache.
C:Redesign only the error collection path. It is not the bounded choice for the stated condition: A worker tries to edit a broadcast dictionary and expects other tasks to see the change. The permitted change must remain: Change only the lookup-version refresh process.
D:Refresh only the affected broadcast mapping. This does not enforce the required scope: Change only the lookup-version refresh process. The specific failure is: Broadcast variables are read-only snapshots distributed to executors, not a shared mutable cache.
Question 656
At Ironlake Networks, while optimizing an ETL application (fictional study case R280-C132-1), a tiny reference map is repeatedly fetched from a remote service in a Python UDF for each fact row. 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.
- Aggregate bounded error counts and write invalid rows to a controlled distributed sink.
- Use a versioned broadcast lookup or a broadcast join with the dimension DataFrame.
- Recreate the broadcast from a validated new version and retire the old reference.
- Use a Spark broadcast variable for the immutable lookup where size and security permit.
Explanation
Correct Answer
B:A tiny reference map is repeatedly fetched from a remote service in a Python UDF for each fact row. The underlying cause is: The work issues redundant network calls instead of reusing a stable small lookup. The corrective step is: Use a versioned broadcast lookup or a broadcast join with the dimension DataFrame. Validate the outcome: Enrichment yields identical values with far fewer network requests.
Incorrect Answers
A:Aggregate bounded error counts and write invalid rows to a controlled distributed sink. The option targets a different stage or condition. The relevant failure is: The work issues redundant network calls instead of reusing a stable small lookup. The needed repair is: Use a versioned broadcast lookup or a broadcast join with the dimension DataFrame.
C:Recreate the broadcast from a validated new version and retire the old reference. That would not resolve the reported problem: A tiny reference map is repeatedly fetched from a remote service in a Python UDF for each fact row. The source-supported intervention is: Use a versioned broadcast lookup or a broadcast join with the dimension DataFrame.
D:Use a Spark broadcast variable for the immutable lookup where size and security permit. That would not resolve the reported problem: A tiny reference map is repeatedly fetched from a remote service in a Python UDF for each fact row. The source-supported intervention is: Use a versioned broadcast lookup or a broadcast join with the dimension DataFrame.
Question 657
At Valleywide Travel, during an internal acceptance test (fictional study case R280-C132-2), a tiny reference map is repeatedly fetched from a remote service in a Python UDF for each fact row. 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.
- Accumulators are unsuitable for unbounded row-level data collection.
- Broadcast variables do not auto-update when the source file changes.
- The work issues redundant network calls instead of reusing a stable small lookup.
- Closure shipping repeatedly transmits bulky read-only metadata instead of a shared broadcast reference.
Explanation
Correct Answer
C:A tiny reference map is repeatedly fetched from a remote service in a Python UDF for each fact row. The supporting root cause is: The work issues redundant network calls instead of reusing a stable small lookup. The appropriate remedy is: Use a versioned broadcast lookup or a broadcast join with the dimension DataFrame.
Incorrect Answers
A:Accumulators are unsuitable for unbounded row-level data collection. The observed failure instead follows from: The work issues redundant network calls instead of reusing a stable small lookup. The alternative does not explain the same dependency.
B:Broadcast variables do not auto-update when the source file changes. This is not the root cause established for the reported condition: A tiny reference map is repeatedly fetched from a remote service in a Python UDF for each fact row. The cause is: The work issues redundant network calls instead of reusing a stable small lookup.
D:Closure shipping repeatedly transmits bulky read-only metadata instead of a shared broadcast reference. This is not the root cause established for the reported condition: A tiny reference map is repeatedly fetched from a remote service in a Python UDF for each fact row. The cause is: The work issues redundant network calls instead of reusing a stable small lookup.
Question 658
At Harbor Data Labs, after a routine data refresh (fictional study case R280-C132-1), a tiny reference map is repeatedly fetched from a remote service in a Python UDF for each fact row. 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.
- Measure accumulator size and compare quarantined row count.
- Count external calls and compare join outputs on a sample.
- Compare broadcast content version with current source checksum.
- Inspect task serialized-size warnings and executor memory before/after.
Explanation
Correct Answer
B:Count external calls and compare join outputs on a sample. This gathers evidence about the stated mechanism: The work issues redundant network calls instead of reusing a stable small lookup. The existing symptom is: A tiny reference map is repeatedly fetched from a remote service in a Python UDF for each fact row.
Incorrect Answers
A:Measure accumulator size and compare quarantined row count. The case requires a discriminating check before any change, not the offered alternative. Use: Count external calls and compare join outputs on a sample.
C:Compare broadcast content version with current source checksum. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Count external calls and compare join outputs on a sample.
D:Inspect task serialized-size warnings and executor memory before/after. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Count external calls and compare join outputs on a sample.
Question 659
At Oakline Transportation, while debugging a failed notebook (fictional study case R280-C132-2), a tiny reference map is repeatedly fetched from a remote service in a Python UDF for each fact row. 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.
- Diagnostics remain bounded and complete invalid records are auditable.
- Subsequent tasks use refreshed categories consistently.
- Equivalent lookup results use less task overhead.
- Enrichment yields identical values with far fewer network requests.
Explanation
Correct Answer
D:A passing check shows: Enrichment yields identical values with far fewer network requests. This is evidence for the scoped change: Use a versioned broadcast lookup or a broadcast join with the dimension DataFrame.
Incorrect Answers
A:Diagnostics remain bounded and complete invalid records are auditable. This is not the observed recovery outcome. Acceptance requires: Enrichment yields identical values with far fewer network requests.
B:Subsequent tasks use refreshed categories consistently. The alternative cannot demonstrate that the issue has been corrected: A tiny reference map is repeatedly fetched from a remote service in a Python UDF for each fact row. The required result is: Enrichment yields identical values with far fewer network requests.
C:Equivalent lookup results use less task overhead. This is not the observed recovery outcome. Acceptance requires: Enrichment yields identical values with far fewer network requests.
Question 660
At Rosehill Diagnostics, during a performance incident (fictional study case R280-C132-1), a tiny reference map is repeatedly fetched from a remote service in a Python UDF for each fact row. 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.
- Redesign only the error collection path.
- Refactor only the stable reference enrichment.
- Refresh only the affected broadcast mapping.
- Broadcast only the approved immutable mapping.
Explanation
Correct Answer
B:The relevant boundary is: Refactor only the stable reference enrichment. The correction remains: Use a versioned broadcast lookup or a broadcast join with the dimension DataFrame.
Incorrect Answers
A:Redesign only the error collection path. This does not enforce the required scope: Refactor only the stable reference enrichment. The specific failure is: The work issues redundant network calls instead of reusing a stable small lookup.
C:Refresh only the affected broadcast mapping. It is not the bounded choice for the stated condition: A tiny reference map is repeatedly fetched from a remote service in a Python UDF for each fact row. The permitted change must remain: Refactor only the stable reference enrichment.
D:Broadcast only the approved immutable mapping. The action does not preserve the identified scope boundary: Refactor only the stable reference enrichment.