Certified Associate Developer for Apache Spark Practice Test 67
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.
Question 661
At Redwood Transit, while optimizing an ETL application (fictional study case R280-C133-1), an engineer records every invalid row string in a collection accumulator and crashes the driver. 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.
- 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.
- Compute billing totals with deterministic Spark aggregations instead of accumulator updates.
- Aggregate bounded error counts and write invalid rows to a controlled distributed sink.
Explanation
Correct Answer
D:Aggregate bounded error counts and write invalid rows to a controlled distributed sink. This addresses the documented mechanism: Accumulators are unsuitable for unbounded row-level data collection. Recovery is demonstrated when: Diagnostics remain bounded and complete invalid records are auditable.
Incorrect Answers
A:Recreate the broadcast from a validated new version and retire the old reference. That would not resolve the reported problem: An engineer records every invalid row string in a collection accumulator and crashes the driver. The source-supported intervention is: Aggregate bounded error counts and write invalid rows to a controlled distributed sink.
B:Use a Spark broadcast variable for the immutable lookup where size and security permit. That would not resolve the reported problem: An engineer records every invalid row string in a collection accumulator and crashes the driver. The source-supported intervention is: Aggregate bounded error counts and write invalid rows to a controlled distributed sink.
C:Compute billing totals with deterministic Spark aggregations instead of accumulator updates. The option targets a different stage or condition. The relevant failure is: Accumulators are unsuitable for unbounded row-level data collection. The needed repair is: Aggregate bounded error counts and write invalid rows to a controlled distributed sink.
Question 662
At Meadowvale Robotics, during an internal acceptance test (fictional study case R280-C133-2), an engineer records every invalid row string in a collection accumulator and crashes the driver. 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.
- Broadcast variables do not auto-update when the source file changes.
- Closure shipping repeatedly transmits bulky read-only metadata instead of a shared broadcast reference.
- Accumulators are for diagnostics and their update semantics can be affected by task execution/retries.
- Accumulators are unsuitable for unbounded row-level data collection.
Explanation
Correct Answer
D:The failure is explained by: Accumulators are unsuitable for unbounded row-level data collection. An engineer records every invalid row string in a collection accumulator and crashes the driver. Correcting it would require: Aggregate bounded error counts and write invalid rows to a controlled distributed sink.
Incorrect Answers
A:Broadcast variables do not auto-update when the source file changes. This is not the root cause established for the reported condition: An engineer records every invalid row string in a collection accumulator and crashes the driver. The cause is: Accumulators are unsuitable for unbounded row-level data collection.
B:Closure shipping repeatedly transmits bulky read-only metadata instead of a shared broadcast reference. That explanation needs evidence of another fault. The specific mechanism here is: Accumulators are unsuitable for unbounded row-level data collection.
C:Accumulators are for diagnostics and their update semantics can be affected by task execution/retries. The observed failure instead follows from: Accumulators are unsuitable for unbounded row-level data collection. The alternative does not explain the same dependency.
Question 663
At Northridge Retail, after a routine data refresh (fictional study case R280-C133-1), an engineer records every invalid row string in a collection accumulator and crashes the driver. 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 broadcast content version with current source checksum.
- Inspect task serialized-size warnings and executor memory before/after.
- Measure accumulator size and compare quarantined row count.
- Compare task retry logs with accumulator and aggregate values.
Explanation
Correct Answer
C:Use this focused test: Measure accumulator size and compare quarantined row count. The test distinguishes the reported condition from alternatives by checking: Accumulators are unsuitable for unbounded row-level data collection.
Incorrect Answers
A:Compare broadcast content version with current source checksum. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Measure accumulator size and compare quarantined row count.
B:Inspect task serialized-size warnings and executor memory before/after. That does not establish whether the stated cause is present: Accumulators are unsuitable for unbounded row-level data collection. The diagnostic is: Measure accumulator size and compare quarantined row count.
D:Compare task retry logs with accumulator and aggregate values. That does not establish whether the stated cause is present: Accumulators are unsuitable for unbounded row-level data collection. The diagnostic is: Measure accumulator size and compare quarantined row count.
Question 664
At Northstar Payments, while debugging a failed notebook (fictional study case R280-C133-2), an engineer records every invalid row string in a collection accumulator and crashes the driver. 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.
- Subsequent tasks use refreshed categories consistently.
- Diagnostics remain bounded and complete invalid records are auditable.
- Equivalent lookup results use less task overhead.
- Billable counts reconcile exactly under fault injection.
Explanation
Correct Answer
B:Diagnostics remain bounded and complete invalid records are auditable. This is an observable state after the correction: Aggregate bounded error counts and write invalid rows to a controlled distributed sink. It confirms the original problem no longer occurs.
Incorrect Answers
A:Subsequent tasks use refreshed categories consistently. The alternative cannot demonstrate that the issue has been corrected: An engineer records every invalid row string in a collection accumulator and crashes the driver. The required result is: Diagnostics remain bounded and complete invalid records are auditable.
C:Equivalent lookup results use less task overhead. The alternative cannot demonstrate that the issue has been corrected: An engineer records every invalid row string in a collection accumulator and crashes the driver. The required result is: Diagnostics remain bounded and complete invalid records are auditable.
D:Billable counts reconcile exactly under fault injection. The alternative cannot demonstrate that the issue has been corrected: An engineer records every invalid row string in a collection accumulator and crashes the driver. The required result is: Diagnostics remain bounded and complete invalid records are auditable.
Question 665
At Cloudhaven Apps, during a performance incident (fictional study case R280-C133-1), an engineer records every invalid row string in a collection accumulator and crashes the driver. 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.
- Redesign only the error collection path.
- Broadcast only the approved immutable mapping.
- Remove accumulator reliance from business totals.
Explanation
Correct Answer
B:The approved limit is: Redesign only the error collection path. It avoids applying the corrective step beyond the stated failure: An engineer records every invalid row string in a collection accumulator and crashes the driver.
Incorrect Answers
A:Refresh only the affected broadcast mapping. The action does not preserve the identified scope boundary: Redesign only the error collection path.
C:Broadcast only the approved immutable mapping. It is not the bounded choice for the stated condition: An engineer records every invalid row string in a collection accumulator and crashes the driver. The permitted change must remain: Redesign only the error collection path.
D:Remove accumulator reliance from business totals. It is not the bounded choice for the stated condition: An engineer records every invalid row string in a collection accumulator and crashes the driver. The permitted change must remain: Redesign only the error collection path.
Question 666
At Bayshore Healthcare, while optimizing an ETL application (fictional study case R280-C134-1), a DataFrame job continues categorizing customers using a broadcast map built before a reference-data refresh. 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 Spark broadcast variable for the immutable lookup where size and security permit.
- Compute billing totals with deterministic Spark aggregations instead of accumulator updates.
- Recreate the broadcast from a validated new version and retire the old reference.
- Treat broadcast metadata as immutable and rebuild/broadcast a new version when updates are required.
Explanation
Correct Answer
C:Recreate the broadcast from a validated new version and retire the old reference. This addresses the documented mechanism: Broadcast variables do not auto-update when the source file changes. Recovery is demonstrated when: Subsequent tasks use refreshed categories consistently.
Incorrect Answers
A:Use a Spark broadcast variable for the immutable lookup where size and security permit. That would not resolve the reported problem: A DataFrame job continues categorizing customers using a broadcast map built before a reference-data refresh. The source-supported intervention is: Recreate the broadcast from a validated new version and retire the old reference.
B:Compute billing totals with deterministic Spark aggregations instead of accumulator updates. The recorded mechanism is: Broadcast variables do not auto-update when the source file changes. The proposed action does not correct that mechanism; use: Recreate the broadcast from a validated new version and retire the old reference.
D:Treat broadcast metadata as immutable and rebuild/broadcast a new version when updates are required. The recorded mechanism is: Broadcast variables do not auto-update when the source file changes. The proposed action does not correct that mechanism; use: Recreate the broadcast from a validated new version and retire the old reference.
Question 667
At Stonebridge Research, during an internal acceptance test (fictional study case R280-C134-2), a DataFrame job continues categorizing customers using a broadcast map built before a reference-data refresh. 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.
- Closure shipping repeatedly transmits bulky read-only metadata instead of a shared broadcast reference.
- Broadcast variables do not auto-update when the source file changes.
- Accumulators are for diagnostics and their update semantics can be affected by task execution/retries.
- Broadcast variables are read-only snapshots distributed to executors, not a shared mutable cache.
Explanation
Correct Answer
B:A DataFrame job continues categorizing customers using a broadcast map built before a reference-data refresh. The supporting root cause is: Broadcast variables do not auto-update when the source file changes. The appropriate remedy is: Recreate the broadcast from a validated new version and retire the old reference.
Incorrect Answers
A:Closure shipping repeatedly transmits bulky read-only metadata instead of a shared broadcast reference. That explanation needs evidence of another fault. The specific mechanism here is: Broadcast variables do not auto-update when the source file changes.
C:Accumulators are for diagnostics and their update semantics can be affected by task execution/retries. This is not the root cause established for the reported condition: A DataFrame job continues categorizing customers using a broadcast map built before a reference-data refresh. The cause is: Broadcast variables do not auto-update when the source file changes.
D:Broadcast variables are read-only snapshots distributed to executors, not a shared mutable cache. That explanation needs evidence of another fault. The specific mechanism here is: Broadcast variables do not auto-update when the source file changes.
Question 668
At Cedarline Telecommunications, after a routine data refresh (fictional study case R280-C134-1), a DataFrame job continues categorizing customers using a broadcast map built before a reference-data refresh. 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 task serialized-size warnings and executor memory before/after.
- Compare broadcast content version with current source checksum.
- Compare task retry logs with accumulator and aggregate values.
- Compare broadcast version IDs across controlled executions.
Explanation
Correct Answer
B:A DataFrame job continues categorizing customers using a broadcast map built before a reference-data refresh. The useful diagnostic is: Compare broadcast content version with current source checksum. That can confirm or refute: Broadcast variables do not auto-update when the source file changes.
Incorrect Answers
A:Inspect task serialized-size warnings and executor memory before/after. That does not establish whether the stated cause is present: Broadcast variables do not auto-update when the source file changes. The diagnostic is: Compare broadcast content version with current source checksum.
C:Compare task retry logs with accumulator and aggregate values. The case requires a discriminating check before any change, not the offered alternative. Use: Compare broadcast content version with current source checksum.
D:Compare broadcast version IDs across controlled executions. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Compare broadcast content version with current source checksum.
Question 669
At Cobalt Analytics, while debugging a failed notebook (fictional study case R280-C134-2), a DataFrame job continues categorizing customers using a broadcast map built before a reference-data refresh. 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.
- Equivalent lookup results use less task overhead.
- Billable counts reconcile exactly under fault injection.
- Subsequent tasks use refreshed categories consistently.
- All tasks consume a consistent approved mapping version.
Explanation
Correct Answer
C:The verification result must be: Subsequent tasks use refreshed categories consistently. It is stronger evidence than merely performing: Compare broadcast content version with current source checksum.
Incorrect Answers
A:Equivalent lookup results use less task overhead. Implementation or a check alone is not proof of success. The measurable end state is: Subsequent tasks use refreshed categories consistently.
B:Billable counts reconcile exactly under fault injection. The alternative cannot demonstrate that the issue has been corrected: A DataFrame job continues categorizing customers using a broadcast map built before a reference-data refresh. The required result is: Subsequent tasks use refreshed categories consistently.
D:All tasks consume a consistent approved mapping version. Implementation or a check alone is not proof of success. The measurable end state is: Subsequent tasks use refreshed categories consistently.
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.