Certified Associate Developer for Apache Spark Practice Test 87
Question 860
At Bayfront Markets, when reviewing an incremental load (fictional study case R280-C172-1), a streaming pipeline selects only value and time, dropping `account_id` before a later keyed aggregation. 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.
- Remove unsupported global sort from the live stream.
- Deduplicate only the affected clickstream key.
- Repair the consumer merge contract for this stream.
- Adjust projection only in the affected stream.
Explanation
Correct Answer
D:Keep the intervention within this boundary: Adjust projection only in the affected stream. The reported failure mechanism is: A required grouping key was removed by an early projection.
Incorrect Answers
A:Remove unsupported global sort from the live stream. The action does not preserve the identified scope boundary: Adjust projection only in the affected stream.
B:Deduplicate only the affected clickstream key. The action does not preserve the identified scope boundary: Adjust projection only in the affected stream.
C:Repair the consumer merge contract for this stream. This does not enforce the required scope: Adjust projection only in the affected stream. The specific failure is: A required grouping key was removed by an early projection.
Question 861
At Orion Fintech, while reconciling a reporting dataset (fictional study case R280-C173-1), an engineer globally sorts an unbounded streaming input before output and encounters an unsupported-operation error. 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.
- Deduplicate by a stable event ID using a watermark policy compatible with allowed lateness, then aggregate.
- Upsert by group/window key or choose a compatible final-output mode after watermark completion.
- Aggregate or otherwise bound the stream and sort a batch result or supported completed window instead.
- Window on the typed event timestamp and apply a lateness policy if stateful.
Explanation
Correct Answer
C:The failure mechanism is: Global sorting of an unbounded streaming DataFrame is restricted without compatible aggregation/output semantics. Apply the bounded change: Aggregate or otherwise bound the stream and sort a batch result or supported completed window instead. The acceptance test must show: Ordering occurs where supported without blocking continuous ingestion.
Incorrect Answers
A:Deduplicate by a stable event ID using a watermark policy compatible with allowed lateness, then aggregate. The option targets a different stage or condition. The relevant failure is: Global sorting of an unbounded streaming DataFrame is restricted without compatible aggregation/output semantics. The needed repair is: Aggregate or otherwise bound the stream and sort a batch result or supported completed window instead.
B:Upsert by group/window key or choose a compatible final-output mode after watermark completion. The recorded mechanism is: Global sorting of an unbounded streaming DataFrame is restricted without compatible aggregation/output semantics. The proposed action does not correct that mechanism; use: Aggregate or otherwise bound the stream and sort a batch result or supported completed window instead.
D:Window on the typed event timestamp and apply a lateness policy if stateful. The option targets a different stage or condition. The relevant failure is: Global sorting of an unbounded streaming DataFrame is restricted without compatible aggregation/output semantics. The needed repair is: Aggregate or otherwise bound the stream and sort a batch result or supported completed window instead.
Question 862
At Westfield Insights, during a pipeline migration (fictional study case R280-C173-2), an engineer globally sorts an unbounded streaming input before output and encounters an unsupported-operation error. 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.
- Global sorting of an unbounded streaming DataFrame is restricted without compatible aggregation/output semantics.
- Aggregation counts repeated records unless valid deduplication runs before it.
- 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.
Explanation
Correct Answer
A:The reported symptom is: An engineer globally sorts an unbounded streaming input before output and encounters an unsupported-operation error. Its direct cause is: Global sorting of an unbounded streaming DataFrame is restricted without compatible aggregation/output semantics. Test that conclusion using: Inspect streaming plan constraints and output mode.
Incorrect Answers
B:Aggregation counts repeated records unless valid deduplication runs before it. The observed failure instead follows from: Global sorting of an unbounded streaming DataFrame is restricted without compatible aggregation/output semantics. The alternative does not explain the same dependency.
C:Update mode emits changed intermediate aggregates, not immutable final facts to append and re-sum. That explanation needs evidence of another fault. The specific mechanism here is: Global sorting of an unbounded streaming DataFrame is restricted without compatible aggregation/output semantics.
D:The selected time column represents processing rather than true event time. The observed failure instead follows from: Global sorting of an unbounded streaming DataFrame is restricted without compatible aggregation/output semantics. The alternative does not explain the same dependency.
Question 863
At Mapleford Engineering, after a Spark runtime upgrade (fictional study case R280-C173-1), an engineer globally sorts an unbounded streaming input before output and encounters an unsupported-operation error. 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.
- Replay repeated and out-of-order event IDs and compare per-window counts.
- Compare successive updates for one key to the consumer's stored totals.
- Inspect streaming plan constraints and output mode.
- Compare raw event times and assigned windows for delayed samples.
Explanation
Correct Answer
C:An engineer globally sorts an unbounded streaming input before output and encounters an unsupported-operation error. The useful diagnostic is: Inspect streaming plan constraints and output mode. That can confirm or refute: Global sorting of an unbounded streaming DataFrame is restricted without compatible aggregation/output semantics.
Incorrect Answers
A:Replay repeated and out-of-order event IDs and compare per-window counts. The case requires a discriminating check before any change, not the offered alternative. Use: Inspect streaming plan constraints and output mode.
B:Compare successive updates for one key to the consumer's stored totals. The case requires a discriminating check before any change, not the offered alternative. Use: Inspect streaming plan constraints and output mode.
D:Compare raw event times and assigned windows for delayed samples. The case requires a discriminating check before any change, not the offered alternative. Use: Inspect streaming plan constraints and output mode.
Question 864
At Horizon Logistics, when validating a daily batch (fictional study case R280-C173-2), an engineer globally sorts an unbounded streaming input before output and encounters an unsupported-operation error. 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.
- Each logical event contributes once within accepted lateness limits.
- The consumer has the latest correct count rather than duplicate cumulative updates.
- Late events contribute to the intended event-time window within policy.
- Ordering occurs where supported without blocking continuous ingestion.
Explanation
Correct Answer
D:Ordering occurs where supported without blocking continuous ingestion. This is an observable state after the correction: Aggregate or otherwise bound the stream and sort a batch result or supported completed window instead. It confirms the original problem no longer occurs.
Incorrect Answers
A:Each logical event contributes once within accepted lateness limits. The alternative cannot demonstrate that the issue has been corrected: An engineer globally sorts an unbounded streaming input before output and encounters an unsupported-operation error. The required result is: Ordering occurs where supported without blocking continuous ingestion.
B:The consumer has the latest correct count rather than duplicate cumulative updates. This is not the observed recovery outcome. Acceptance requires: Ordering occurs where supported without blocking continuous ingestion.
C:Late events contribute to the intended event-time window within policy. This is not the observed recovery outcome. Acceptance requires: Ordering occurs where supported without blocking continuous ingestion.
Question 865
At Aspen Public Services, when reviewing an incremental load (fictional study case R280-C173-1), an engineer globally sorts an unbounded streaming input before output and encounters an unsupported-operation error. 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.
- Deduplicate only the affected clickstream key.
- Repair the consumer merge contract for this stream.
- Remove unsupported global sort from the live stream.
- Change window column and watermark for this stream only.
Explanation
Correct Answer
C:Remove unsupported global sort from the live stream. This limits the change while addressing: Global sorting of an unbounded streaming DataFrame is restricted without compatible aggregation/output semantics. The expected outcome is: Ordering occurs where supported without blocking continuous ingestion.
Incorrect Answers
A:Deduplicate only the affected clickstream key. This does not enforce the required scope: Remove unsupported global sort from the live stream. The specific failure is: Global sorting of an unbounded streaming DataFrame is restricted without compatible aggregation/output semantics.
B:Repair the consumer merge contract for this stream. This does not enforce the required scope: Remove unsupported global sort from the live stream. The specific failure is: Global sorting of an unbounded streaming DataFrame is restricted without compatible aggregation/output semantics.
D:Change window column and watermark for this stream only. The action does not preserve the identified scope boundary: Remove unsupported global sort from the live stream.
Question 866
At Juniper Foods, while reconciling a reporting dataset (fictional study case R280-C174-1), clickstream retries duplicate event IDs, inflating five-minute window counts. 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.
- Upsert by group/window key or choose a compatible final-output mode after watermark completion.
- Window on the typed event timestamp and apply a lateness policy if stateful.
- Deduplicate by a stable event ID using a watermark policy compatible with allowed lateness, then aggregate.
- Preserve the key through projection until grouping is complete.
Explanation
Correct Answer
C:Deduplicate by a stable event ID using a watermark policy compatible with allowed lateness, then aggregate. The technical or governance gap is: Aggregation counts repeated records unless valid deduplication runs before it. Check the affected state using: Replay repeated and out-of-order event IDs and compare per-window counts.
Incorrect Answers
A:Upsert by group/window key or choose a compatible final-output mode after watermark completion. The recorded mechanism is: Aggregation counts repeated records unless valid deduplication runs before it. The proposed action does not correct that mechanism; use: Deduplicate by a stable event ID using a watermark policy compatible with allowed lateness, then aggregate.
B:Window on the typed event timestamp and apply a lateness policy if stateful. That would not resolve the reported problem: Clickstream retries duplicate event IDs, inflating five-minute window counts. The source-supported intervention is: Deduplicate by a stable event ID using a watermark policy compatible with allowed lateness, then aggregate.
D:Preserve the key through projection until grouping is complete. That would not resolve the reported problem: Clickstream retries duplicate event IDs, inflating five-minute window counts. The source-supported intervention is: Deduplicate by a stable event ID using a watermark policy compatible with allowed lateness, then aggregate.
Question 867
At Silverpeak Bioinformatics, during a pipeline migration (fictional study case R280-C174-2), clickstream retries duplicate event IDs, inflating five-minute window counts. 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.
- Aggregation counts repeated records unless valid deduplication runs before it.
- A required grouping key was removed by an early projection.
Explanation
Correct Answer
C:Aggregation counts repeated records unless valid deduplication runs before it. This accounts for the observed condition: Clickstream retries duplicate event IDs, inflating five-minute window counts. The relevant verification is: Replay repeated and out-of-order event IDs and compare per-window counts.
Incorrect Answers
A:Update mode emits changed intermediate aggregates, not immutable final facts to append and re-sum. That explanation needs evidence of another fault. The specific mechanism here is: Aggregation counts repeated records unless valid deduplication runs before it.
B:The selected time column represents processing rather than true event time. The observed failure instead follows from: Aggregation counts repeated records unless valid deduplication runs before it. The alternative does not explain the same dependency.
D:A required grouping key was removed by an early projection. The observed failure instead follows from: Aggregation counts repeated records unless valid deduplication runs before it. The alternative does not explain the same dependency.
Question 868
At Willowbank Software, after a Spark runtime upgrade (fictional study case R280-C174-1), clickstream retries duplicate event IDs, inflating five-minute window counts. 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 successive updates for one key to the consumer's stored totals.
- Replay repeated and out-of-order event IDs and compare per-window counts.
- Compare raw event times and assigned windows for delayed samples.
- Inspect streaming schema at each transformation and test key counts.
Explanation
Correct Answer
B:Diagnose the affected path with: Replay repeated and out-of-order event IDs and compare per-window counts. This tests the case-specific cause: Aggregation counts repeated records unless valid deduplication runs before it.
Incorrect Answers
A:Compare successive updates for one key to the consumer's stored totals. That does not establish whether the stated cause is present: Aggregation counts repeated records unless valid deduplication runs before it. The diagnostic is: Replay repeated and out-of-order event IDs and compare per-window counts.
C:Compare raw event times and assigned windows for delayed samples. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Replay repeated and out-of-order event IDs and compare per-window counts.
D:Inspect streaming schema at each transformation and test key counts. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Replay repeated and out-of-order event IDs and compare per-window counts.
Question 869
At Seabrook Education, when validating a daily batch (fictional study case R280-C174-2), clickstream retries duplicate event IDs, inflating five-minute window counts. 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.
- Each logical event contributes once within accepted lateness limits.
Explanation
Correct Answer
D:Each logical event contributes once within accepted lateness limits. This demonstrates the intended effect of: Deduplicate by a stable event ID using a watermark policy compatible with allowed lateness, then aggregate. The prior failure was: Clickstream retries duplicate event IDs, inflating five-minute window counts.
Incorrect Answers
A:The consumer has the latest correct count rather than duplicate cumulative updates. This is not the observed recovery outcome. Acceptance requires: Each logical event contributes once within accepted lateness limits.
B:Late events contribute to the intended event-time window within policy. This is not the observed recovery outcome. Acceptance requires: Each logical event contributes once within accepted lateness limits.
C:Keyed metrics are computed with original account IDs. The alternative cannot demonstrate that the issue has been corrected: Clickstream retries duplicate event IDs, inflating five-minute window counts. The required result is: Each logical event contributes once within accepted lateness limits.
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.