Certified Associate Developer for Apache Spark Practice Test 88
Question 870
At Bluewater Energy, when reviewing an incremental load (fictional study case R280-C174-1), clickstream retries duplicate event IDs, inflating five-minute window counts. 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.
- Repair the consumer merge contract for this stream.
- Deduplicate only the affected clickstream key.
- Change window column and watermark for this stream only.
- Adjust projection only in the affected stream.
Explanation
Correct Answer
B:Keep the intervention within this boundary: Deduplicate only the affected clickstream key. The reported failure mechanism is: Aggregation counts repeated records unless valid deduplication runs before it.
Incorrect Answers
A:Repair the consumer merge contract for this stream. The action does not preserve the identified scope boundary: Deduplicate only the affected clickstream key.
C:Change window column and watermark for this stream only. The action does not preserve the identified scope boundary: Deduplicate only the affected clickstream key.
D:Adjust projection only in the affected stream. The action does not preserve the identified scope boundary: Deduplicate only the affected clickstream key.
Question 871
At Meridian Commerce, while reconciling a reporting dataset (fictional study case R280-C175-1), a downstream consumer treats each update-mode group count as a new final row and sums successive updates together. 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.
- Window on the typed event timestamp and apply a lateness policy if stateful.
- Upsert by group/window key or choose a compatible final-output mode after watermark completion.
- Preserve the key through projection until grouping is complete.
- Aggregate or otherwise bound the stream and sort a batch result or supported completed window instead.
Explanation
Correct Answer
B:Upsert by group/window key or choose a compatible final-output mode after watermark completion. The technical or governance gap is: Update mode emits changed intermediate aggregates, not immutable final facts to append and re-sum. Check the affected state using: Compare successive updates for one key to the consumer's stored totals.
Incorrect Answers
A:Window on the typed event timestamp and apply a lateness policy if stateful. That would not resolve the reported problem: A downstream consumer treats each update-mode group count as a new final row and sums successive updates together. The source-supported intervention is: Upsert by group/window key or choose a compatible final-output mode after watermark completion.
C:Preserve the key through projection until grouping is complete. The recorded mechanism is: Update mode emits changed intermediate aggregates, not immutable final facts to append and re-sum. The proposed action does not correct that mechanism; use: Upsert by group/window key or choose a compatible final-output mode after watermark completion.
D:Aggregate or otherwise bound the stream and sort a batch result or supported completed window instead. That would not resolve the reported problem: A downstream consumer treats each update-mode group count as a new final row and sums successive updates together. The source-supported intervention is: Upsert by group/window key or choose a compatible final-output mode after watermark completion.
Question 872
At Copperline Finance, during a pipeline migration (fictional study case R280-C175-2), a downstream consumer treats each update-mode group count as a new final row and sums successive updates together. 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.
- Update mode emits changed intermediate aggregates, not immutable final facts to append and re-sum.
- The selected time column represents processing rather than true event time.
- A required grouping key was removed by an early projection.
- Global sorting of an unbounded streaming DataFrame is restricted without compatible aggregation/output semantics.
Explanation
Correct Answer
A:A downstream consumer treats each update-mode group count as a new final row and sums successive updates together. The supporting root cause is: Update mode emits changed intermediate aggregates, not immutable final facts to append and re-sum. The appropriate remedy is: Upsert by group/window key or choose a compatible final-output mode after watermark completion.
Incorrect Answers
B:The selected time column represents processing rather than true event time. That explanation needs evidence of another fault. The specific mechanism here is: Update mode emits changed intermediate aggregates, not immutable final facts to append and re-sum.
C:A required grouping key was removed by an early projection. This is not the root cause established for the reported condition: A downstream consumer treats each update-mode group count as a new final row and sums successive updates together. The cause is: Update mode emits changed intermediate aggregates, not immutable final facts to append and re-sum.
D:Global sorting of an unbounded streaming DataFrame is restricted without compatible aggregation/output semantics. That explanation needs evidence of another fault. The specific mechanism here is: Update mode emits changed intermediate aggregates, not immutable final facts to append and re-sum.
Question 873
At Pinecrest Media, after a Spark runtime upgrade (fictional study case R280-C175-1), a downstream consumer treats each update-mode group count as a new final row and sums successive updates together. 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 raw event times and assigned windows for delayed samples.
- Inspect streaming schema at each transformation and test key counts.
- Compare successive updates for one key to the consumer's stored totals.
- Inspect streaming plan constraints and output mode.
Explanation
Correct Answer
C:The needed observation is: Compare successive updates for one key to the consumer's stored totals. The suspected failure is: Update mode emits changed intermediate aggregates, not immutable final facts to append and re-sum. The repair should only follow that check.
Incorrect Answers
A:Compare raw event times and assigned windows for delayed samples. The case requires a discriminating check before any change, not the offered alternative. Use: Compare successive updates for one key to the consumer's stored totals.
B:Inspect streaming schema at each transformation and test key counts. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Compare successive updates for one key to the consumer's stored totals.
D:Inspect streaming plan constraints and output mode. The case requires a discriminating check before any change, not the offered alternative. Use: Compare successive updates for one key to the consumer's stored totals.
Question 874
At Ironlake Networks, when validating a daily batch (fictional study case R280-C175-2), a downstream consumer treats each update-mode group count as a new final row and sums successive updates together. 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 consumer has the latest correct count rather than duplicate cumulative updates.
- Late events contribute to the intended event-time window within policy.
- Keyed metrics are computed with original account IDs.
- Ordering occurs where supported without blocking continuous ingestion.
Explanation
Correct Answer
A:The verification result must be: The consumer has the latest correct count rather than duplicate cumulative updates. It is stronger evidence than merely performing: Compare successive updates for one key to the consumer's stored totals.
Incorrect Answers
B:Late events contribute to the intended event-time window within policy. Implementation or a check alone is not proof of success. The measurable end state is: The consumer has the latest correct count rather than duplicate cumulative updates.
C:Keyed metrics are computed with original account IDs. The alternative cannot demonstrate that the issue has been corrected: A downstream consumer treats each update-mode group count as a new final row and sums successive updates together. The required result is: The consumer has the latest correct count rather than duplicate cumulative updates.
D:Ordering occurs where supported without blocking continuous ingestion. Implementation or a check alone is not proof of success. The measurable end state is: The consumer has the latest correct count rather than duplicate cumulative updates.
Question 875
At Valleywide Travel, when reviewing an incremental load (fictional study case R280-C175-1), a downstream consumer treats each update-mode group count as a new final row and sums successive updates together. 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 window column and watermark for this stream only.
- Adjust projection only in the affected stream.
- Repair the consumer merge contract for this stream.
- Remove unsupported global sort from the live stream.
Explanation
Correct Answer
C:Keep scope tied to the actual issue: A downstream consumer treats each update-mode group count as a new final row and sums successive updates together. The bounded intervention is: Repair the consumer merge contract for this stream. Confirm: The consumer has the latest correct count rather than duplicate cumulative updates.
Incorrect Answers
A:Change window column and watermark for this stream only. It is not the bounded choice for the stated condition: A downstream consumer treats each update-mode group count as a new final row and sums successive updates together. The permitted change must remain: Repair the consumer merge contract for this stream.
B:Adjust projection only in the affected stream. It is not the bounded choice for the stated condition: A downstream consumer treats each update-mode group count as a new final row and sums successive updates together. The permitted change must remain: Repair the consumer merge contract for this stream.
D:Remove unsupported global sort from the live stream. The action does not preserve the identified scope boundary: Repair the consumer merge contract for this stream.
Question 876
At Harbor Data Labs, during a pipeline migration (fictional study case R280-C176-1), a continuous source deduplicates on event ID without a watermark, and state storage grows with every unique event. 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.
- Set watermark based on measured source delay and accuracy-versus-state trade-off.
- Document watermark behavior and test with out-of-order event-time sequences.
- Use watermark-aware deduplication with an explicitly accepted lateness horizon when supported.
- Deduplicate using the stable purchase-event key and appropriate event-time bounds.
Explanation
Correct Answer
C:Use watermark-aware deduplication with an explicitly accepted lateness horizon when supported. This addresses the documented mechanism: Deduplication retains unlimited seen keys without bounded event-time eviction. Recovery is demonstrated when: State remains bounded and duplicates inside the policy window are discarded.
Incorrect Answers
A:Set watermark based on measured source delay and accuracy-versus-state trade-off. The option targets a different stage or condition. The relevant failure is: Deduplication retains unlimited seen keys without bounded event-time eviction. The needed repair is: Use watermark-aware deduplication with an explicitly accepted lateness horizon when supported.
B:Document watermark behavior and test with out-of-order event-time sequences. The option targets a different stage or condition. The relevant failure is: Deduplication retains unlimited seen keys without bounded event-time eviction. The needed repair is: Use watermark-aware deduplication with an explicitly accepted lateness horizon when supported.
D:Deduplicate using the stable purchase-event key and appropriate event-time bounds. That would not resolve the reported problem: A continuous source deduplicates on event ID without a watermark, and state storage grows with every unique event. The source-supported intervention is: Use watermark-aware deduplication with an explicitly accepted lateness horizon when supported.
Question 877
At Oakline Transportation, after a Spark runtime upgrade (fictional study case R280-C176-2), a continuous source deduplicates on event ID without a watermark, and state storage grows with every unique event. 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.
- Allowed event-time lateness was set below observed legitimate delay.
- Watermarks advance based on maximum observed event time and engine behavior, not a perfect wall-clock SLA.
- Deduplication retains unlimited seen keys without bounded event-time eviction.
- The key subset defines identity at the customer level rather than the unique purchase event.
Explanation
Correct Answer
C:Investigation should distinguish this specific mechanism: Deduplication retains unlimited seen keys without bounded event-time eviction. The related symptom is: A continuous source deduplicates on event ID without a watermark, and state storage grows with every unique event. The discriminating check is: Monitor state size across test batches with late/duplicate IDs.
Incorrect Answers
A:Allowed event-time lateness was set below observed legitimate delay. That explanation needs evidence of another fault. The specific mechanism here is: Deduplication retains unlimited seen keys without bounded event-time eviction.
B:Watermarks advance based on maximum observed event time and engine behavior, not a perfect wall-clock SLA. The observed failure instead follows from: Deduplication retains unlimited seen keys without bounded event-time eviction. The alternative does not explain the same dependency.
D:The key subset defines identity at the customer level rather than the unique purchase event. This is not the root cause established for the reported condition: A continuous source deduplicates on event ID without a watermark, and state storage grows with every unique event. The cause is: Deduplication retains unlimited seen keys without bounded event-time eviction.
Question 878
At Rosehill Diagnostics, when validating a daily batch (fictional study case R280-C176-1), a continuous source deduplicates on event ID without a watermark, and state storage grows with every unique event. 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.
- Monitor state size across test batches with late/duplicate IDs.
- Plot source-to-arrival delay distribution and replay four-hour-late examples.
- Inspect event-time maxima and state eviction around late arrivals.
- Compare customer IDs and purchase IDs across multi-purchase fixtures.
Explanation
Correct Answer
A:Diagnose the affected path with: Monitor state size across test batches with late/duplicate IDs. This tests the case-specific cause: Deduplication retains unlimited seen keys without bounded event-time eviction.
Incorrect Answers
B:Plot source-to-arrival delay distribution and replay four-hour-late examples. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Monitor state size across test batches with late/duplicate IDs.
C:Inspect event-time maxima and state eviction around late arrivals. The case requires a discriminating check before any change, not the offered alternative. Use: Monitor state size across test batches with late/duplicate IDs.
D:Compare customer IDs and purchase IDs across multi-purchase fixtures. That does not establish whether the stated cause is present: Deduplication retains unlimited seen keys without bounded event-time eviction. The diagnostic is: Monitor state size across test batches with late/duplicate IDs.
Question 879
At Redwood Transit, when reviewing an incremental load (fictional study case R280-C176-2), a continuous source deduplicates on event ID without a watermark, and state storage grows with every unique event. 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.
- Accepted late events contribute correctly while state remains manageable.
- The system's late-data policy matches actual watermark semantics.
- State remains bounded and duplicates inside the policy window are discarded.
- Distinct purchases remain while retried duplicates are removed.
Explanation
Correct Answer
C:State remains bounded and duplicates inside the policy window are discarded. This demonstrates the intended effect of: Use watermark-aware deduplication with an explicitly accepted lateness horizon when supported. The prior failure was: A continuous source deduplicates on event ID without a watermark, and state storage grows with every unique event.
Incorrect Answers
A:Accepted late events contribute correctly while state remains manageable. Implementation or a check alone is not proof of success. The measurable end state is: State remains bounded and duplicates inside the policy window are discarded.
B:The system's late-data policy matches actual watermark semantics. Implementation or a check alone is not proof of success. The measurable end state is: State remains bounded and duplicates inside the policy window are discarded.
D:Distinct purchases remain while retried duplicates are removed. Implementation or a check alone is not proof of success. The measurable end state is: State remains bounded and duplicates inside the policy window are discarded.
Question 880
At Meadowvale Robotics, before a production rollout (fictional study case R280-C176-1), a continuous source deduplicates on event ID without a watermark, and state storage grows with every unique event. 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 event-time retention for the payment stream.
- Correct stream lateness design and documentation.
- Tune dedup state only for this stream.
- Correct keys for the purchase stream only.
Explanation
Correct Answer
C:Tune dedup state only for this stream. This limits the change while addressing: Deduplication retains unlimited seen keys without bounded event-time eviction. The expected outcome is: State remains bounded and duplicates inside the policy window are discarded.
Incorrect Answers
A:Change event-time retention for the payment stream. This does not enforce the required scope: Tune dedup state only for this stream. The specific failure is: Deduplication retains unlimited seen keys without bounded event-time eviction.
B:Correct stream lateness design and documentation. The action does not preserve the identified scope boundary: Tune dedup state only for this stream.
D:Correct keys for the purchase stream only. This does not enforce the required scope: Tune dedup state only for this stream. The specific failure is: Deduplication retains unlimited seen keys without bounded event-time eviction.