Certified Associate Developer for Apache Spark Practice Test 86
Question 850
At Northstar Payments, when validating a daily batch (fictional study case R280-C170-1), a stream reading incoming JSON files changes its schema as new files arrive and fails during type evolution. 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 mode only for the aggregate output query.
- Configure checkpoint for the one file-sink query.
- Constrain schema evolution to this streaming source.
- Convert only the live event ingestion job.
Explanation
Correct Answer
C:The approved limit is: Constrain schema evolution to this streaming source. It avoids applying the corrective step beyond the stated failure: A stream reading incoming JSON files changes its schema as new files arrive and fails during type evolution.
Incorrect Answers
A:Change mode only for the aggregate output query. This does not enforce the required scope: Constrain schema evolution to this streaming source. The specific failure is: File-stream schema should be controlled and source changes handled deliberately.
B:Configure checkpoint for the one file-sink query. It is not the bounded choice for the stated condition: A stream reading incoming JSON files changes its schema as new files arrive and fails during type evolution. The permitted change must remain: Constrain schema evolution to this streaming source.
D:Convert only the live event ingestion job. This does not enforce the required scope: Constrain schema evolution to this streaming source. The specific failure is: File-stream schema should be controlled and source changes handled deliberately.
Question 851
At Cloudhaven Apps, while reconciling a reporting dataset (fictional study case R280-C171-1), a metric intended to group events by their occurrence timestamps uses ingestion arrival time and shifts late records into the wrong window. 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.
- 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.
- 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.
Explanation
Correct Answer
C:The observed defect follows from: The selected time column represents processing rather than true event time. The appropriate correction is: Window on the typed event timestamp and apply a lateness policy if stateful. Confirm the result by verifying: Late events contribute to the intended event-time window within policy.
Incorrect Answers
A:Preserve the key through projection until grouping is complete. The recorded mechanism is: The selected time column represents processing rather than true event time. The proposed action does not correct that mechanism; use: Window on the typed event timestamp and apply a lateness policy if stateful.
B:Aggregate or otherwise bound the stream and sort a batch result or supported completed window instead. That would not resolve the reported problem: A metric intended to group events by their occurrence timestamps uses ingestion arrival time and shifts late records into the wrong window. The source-supported intervention is: Window on the typed event timestamp and apply a lateness policy if stateful.
D:Deduplicate by a stable event ID using a watermark policy compatible with allowed lateness, then aggregate. That would not resolve the reported problem: A metric intended to group events by their occurrence timestamps uses ingestion arrival time and shifts late records into the wrong window. The source-supported intervention is: Window on the typed event timestamp and apply a lateness policy if stateful.
Question 852
At Bayshore Healthcare, during a pipeline migration (fictional study case R280-C171-2), a metric intended to group events by their occurrence timestamps uses ingestion arrival time and shifts late records into the wrong window. 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.
- A required grouping key was removed by an early projection.
- The selected time column represents processing rather than true event time.
- Global sorting of an unbounded streaming DataFrame is restricted without compatible aggregation/output semantics.
- Aggregation counts repeated records unless valid deduplication runs before it.
Explanation
Correct Answer
B:The failure is explained by: The selected time column represents processing rather than true event time. A metric intended to group events by their occurrence timestamps uses ingestion arrival time and shifts late records into the wrong window. Correcting it would require: Window on the typed event timestamp and apply a lateness policy if stateful.
Incorrect Answers
A:A required grouping key was removed by an early projection. The observed failure instead follows from: The selected time column represents processing rather than true event time. The alternative does not explain the same dependency.
C:Global sorting of an unbounded streaming DataFrame is restricted without compatible aggregation/output semantics. The observed failure instead follows from: The selected time column represents processing rather than true event time. The alternative does not explain the same dependency.
D:Aggregation counts repeated records unless valid deduplication runs before it. The observed failure instead follows from: The selected time column represents processing rather than true event time. The alternative does not explain the same dependency.
Question 853
At Stonebridge Research, after a Spark runtime upgrade (fictional study case R280-C171-1), a metric intended to group events by their occurrence timestamps uses ingestion arrival time and shifts late records into the wrong window. 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 streaming schema at each transformation and test key counts.
- Inspect streaming plan constraints and output mode.
- Compare raw event times and assigned windows for delayed samples.
- Replay repeated and out-of-order event IDs and compare per-window counts.
Explanation
Correct Answer
C:The needed observation is: Compare raw event times and assigned windows for delayed samples. The suspected failure is: The selected time column represents processing rather than true event time. The repair should only follow that check.
Incorrect Answers
A:Inspect streaming schema at each transformation and test key counts. That does not establish whether the stated cause is present: The selected time column represents processing rather than true event time. The diagnostic is: Compare raw event times and assigned windows for delayed samples.
B:Inspect streaming plan constraints and output mode. That does not establish whether the stated cause is present: The selected time column represents processing rather than true event time. The diagnostic is: Compare raw event times and assigned windows for delayed samples.
D:Replay repeated and out-of-order event IDs and compare per-window counts. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Compare raw event times and assigned windows for delayed samples.
Question 854
At Cedarline Telecommunications, when validating a daily batch (fictional study case R280-C171-2), a metric intended to group events by their occurrence timestamps uses ingestion arrival time and shifts late records into the wrong window. 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.
- Keyed metrics are computed with original account IDs.
- Ordering occurs where supported without blocking continuous ingestion.
- Each logical event contributes once within accepted lateness limits.
- Late events contribute to the intended event-time window within policy.
Explanation
Correct Answer
D:Late events contribute to the intended event-time window within policy. This demonstrates the intended effect of: Window on the typed event timestamp and apply a lateness policy if stateful. The prior failure was: A metric intended to group events by their occurrence timestamps uses ingestion arrival time and shifts late records into the wrong window.
Incorrect Answers
A:Keyed metrics are computed with original account IDs. Implementation or a check alone is not proof of success. The measurable end state is: Late events contribute to the intended event-time window within policy.
B:Ordering occurs where supported without blocking continuous ingestion. The alternative cannot demonstrate that the issue has been corrected: A metric intended to group events by their occurrence timestamps uses ingestion arrival time and shifts late records into the wrong window. The required result is: Late events contribute to the intended event-time window within policy.
C:Each logical event contributes once within accepted lateness limits. Implementation or a check alone is not proof of success. The measurable end state is: Late events contribute to the intended event-time window within policy.
Question 855
At Cobalt Analytics, when reviewing an incremental load (fictional study case R280-C171-1), a metric intended to group events by their occurrence timestamps uses ingestion arrival time and shifts late records into the wrong window. 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 projection only in the affected stream.
- Remove unsupported global sort from the live stream.
- Change window column and watermark for this stream only.
- Deduplicate only the affected clickstream key.
Explanation
Correct Answer
C:Keep the intervention within this boundary: Change window column and watermark for this stream only. The reported failure mechanism is: The selected time column represents processing rather than true event time.
Incorrect Answers
A:Adjust projection only in the affected stream. This does not enforce the required scope: Change window column and watermark for this stream only. The specific failure is: The selected time column represents processing rather than true event time.
B:Remove unsupported global sort from the live stream. The action does not preserve the identified scope boundary: Change window column and watermark for this stream only.
D:Deduplicate only the affected clickstream key. It is not the bounded choice for the stated condition: A metric intended to group events by their occurrence timestamps uses ingestion arrival time and shifts late records into the wrong window. The permitted change must remain: Change window column and watermark for this stream only.
Question 856
At Summit Supply, while reconciling a reporting dataset (fictional study case R280-C172-1), a streaming pipeline selects only value and time, dropping `account_id` before a later keyed aggregation. 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 or otherwise bound the stream and sort a batch result or supported completed window instead.
- 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.
- Upsert by group/window key or choose a compatible final-output mode after watermark completion.
Explanation
Correct Answer
C:Preserve the key through projection until grouping is complete. The technical or governance gap is: A required grouping key was removed by an early projection. Check the affected state using: Inspect streaming schema at each transformation and test key counts.
Incorrect Answers
A:Aggregate or otherwise bound the stream and sort a batch result or supported completed window instead. That would not resolve the reported problem: A streaming pipeline selects only value and time, dropping `account_id` before a later keyed aggregation. The source-supported intervention is: Preserve the key through projection until grouping is complete.
B:Deduplicate by a stable event ID using a watermark policy compatible with allowed lateness, then aggregate. That would not resolve the reported problem: A streaming pipeline selects only value and time, dropping `account_id` before a later keyed aggregation. The source-supported intervention is: Preserve the key through projection until grouping is complete.
D:Upsert by group/window key or choose a compatible final-output mode after watermark completion. The option targets a different stage or condition. The relevant failure is: A required grouping key was removed by an early projection. The needed repair is: Preserve the key through projection until grouping is complete.
Question 857
At Granite Insurance, during a pipeline migration (fictional study case R280-C172-2), a streaming pipeline selects only value and time, dropping `account_id` before a later keyed aggregation. 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.
- A required grouping key was removed by an early projection.
Explanation
Correct Answer
D:Investigation should distinguish this specific mechanism: A required grouping key was removed by an early projection. The related symptom is: A streaming pipeline selects only value and time, dropping `account_id` before a later keyed aggregation. The discriminating check is: Inspect streaming schema at each transformation and test key counts.
Incorrect Answers
A:Global sorting of an unbounded streaming DataFrame is restricted without compatible aggregation/output semantics. The observed failure instead follows from: A required grouping key was removed by an early projection. The alternative does not explain the same dependency.
B:Aggregation counts repeated records unless valid deduplication runs before it. This is not the root cause established for the reported condition: A streaming pipeline selects only value and time, dropping `account_id` before a later keyed aggregation. The cause is: A required grouping key was removed by an early projection.
C:Update mode emits changed intermediate aggregates, not immutable final facts to append and re-sum. This is not the root cause established for the reported condition: A streaming pipeline selects only value and time, dropping `account_id` before a later keyed aggregation. The cause is: A required grouping key was removed by an early projection.
Question 858
At Elmwood Manufacturing, after a Spark runtime upgrade (fictional study case R280-C172-1), a streaming pipeline selects only value and time, dropping `account_id` before a later keyed aggregation. 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 streaming plan constraints and output mode.
- Replay repeated and out-of-order event IDs and compare per-window counts.
- Inspect streaming schema at each transformation and test key counts.
- Compare successive updates for one key to the consumer's stored totals.
Explanation
Correct Answer
C:Use this focused test: Inspect streaming schema at each transformation and test key counts. The test distinguishes the reported condition from alternatives by checking: A required grouping key was removed by an early projection.
Incorrect Answers
A:Inspect streaming plan constraints and output mode. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Inspect streaming schema at each transformation and test key counts.
B:Replay repeated and out-of-order event IDs and compare per-window counts. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Inspect streaming schema at each transformation and test key counts.
D: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 schema at each transformation and test key counts.
Question 859
At Lakeside Devices, when validating a daily batch (fictional study case R280-C172-2), a streaming pipeline selects only value and time, dropping `account_id` before a later keyed aggregation. 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.
- Ordering occurs where supported without blocking continuous ingestion.
- Each logical event contributes once within accepted lateness limits.
- Keyed metrics are computed with original account IDs.
- The consumer has the latest correct count rather than duplicate cumulative updates.
Explanation
Correct Answer
C:A passing check shows: Keyed metrics are computed with original account IDs. This is evidence for the scoped change: Preserve the key through projection until grouping is complete.
Incorrect Answers
A:Ordering occurs where supported without blocking continuous ingestion. Implementation or a check alone is not proof of success. The measurable end state is: Keyed metrics are computed with original account IDs.
B:Each logical event contributes once within accepted lateness limits. The alternative cannot demonstrate that the issue has been corrected: A streaming pipeline selects only value and time, dropping `account_id` before a later keyed aggregation. The required result is: Keyed metrics are computed with original account IDs.
D:The consumer has the latest correct count rather than duplicate cumulative updates. This is not the observed recovery outcome. Acceptance requires: Keyed metrics are computed with original account IDs.
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.