Certified Associate Developer for Apache Spark Practice Test 81
Question 800
At Orion Fintech, after a routine data refresh (fictional study case R280-C160-1), executor logs show one partition repeatedly waiting on an external HTTP API while Spark CPU remains low. 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.
- Refactor the external lookup stage only.
- Restrict log review and fix to the failed application.
- Tune the affected executor-heavy stage.
- Tune this job's task parallelism and capacity.
Explanation
Correct Answer
A:Refactor the external lookup stage only. This limits the change while addressing: Synchronous network calls in the transformation create latency and uneven task completion. The expected outcome is: Tasks complete more evenly without losing enrichment correctness.
Incorrect Answers
B:Restrict log review and fix to the failed application. This does not enforce the required scope: Refactor the external lookup stage only. The specific failure is: Synchronous network calls in the transformation create latency and uneven task completion.
C:Tune the affected executor-heavy stage. This does not enforce the required scope: Refactor the external lookup stage only. The specific failure is: Synchronous network calls in the transformation create latency and uneven task completion.
D:Tune this job's task parallelism and capacity. The action does not preserve the identified scope boundary: Refactor the external lookup stage only.
Question 801
At Aspen Public Services, during a performance incident (fictional study case R280-C161-1), a streaming aggregation restarts after a crash and loses progress because no durable checkpoint was configured. 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 realistic service objectives and select supported trigger/processing architecture based on actual latency requirements.
- Configure a dedicated durable `checkpointLocation` for the query and test restart recovery.
- Include stable batch or event IDs and deduplicate at the sink under a tested idempotency protocol.
- Introduce an appropriate supported watermark or state timeout policy that respects accepted lateness.
Explanation
Correct Answer
B:A streaming aggregation restarts after a crash and loses progress because no durable checkpoint was configured. The underlying cause is: Stateful recovery requires an appropriate stable checkpoint location for offsets and query state. The corrective step is: Configure a dedicated durable `checkpointLocation` for the query and test restart recovery. Validate the outcome: Restarted processing resumes from persisted progress without unintended duplicate sink records.
Incorrect Answers
A:Set realistic service objectives and select supported trigger/processing architecture based on actual latency requirements. That would not resolve the reported problem: A streaming aggregation restarts after a crash and loses progress because no durable checkpoint was configured. The source-supported intervention is: Configure a dedicated durable `checkpointLocation` for the query and test restart recovery.
C:Include stable batch or event IDs and deduplicate at the sink under a tested idempotency protocol. The recorded mechanism is: Stateful recovery requires an appropriate stable checkpoint location for offsets and query state. The proposed action does not correct that mechanism; use: Configure a dedicated durable `checkpointLocation` for the query and test restart recovery.
D:Introduce an appropriate supported watermark or state timeout policy that respects accepted lateness. The recorded mechanism is: Stateful recovery requires an appropriate stable checkpoint location for offsets and query state. The proposed action does not correct that mechanism; use: Configure a dedicated durable `checkpointLocation` for the query and test restart recovery.
Question 802
At Juniper Foods, during a distributed-job recovery test (fictional study case R280-C161-2), a streaming aggregation restarts after a crash and loses progress because no durable checkpoint was configured. 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.
- Micro-batch execution occurs in triggers and does not guarantee per-event submillisecond latency.
- Exactly-once processing needs idempotent or transactional sink semantics; arbitrary HTTP side effects may repeat.
- Unbounded key state accumulates for a long-running query.
- Stateful recovery requires an appropriate stable checkpoint location for offsets and query state.
Explanation
Correct Answer
D:A streaming aggregation restarts after a crash and loses progress because no durable checkpoint was configured. The supporting root cause is: Stateful recovery requires an appropriate stable checkpoint location for offsets and query state. The appropriate remedy is: Configure a dedicated durable `checkpointLocation` for the query and test restart recovery.
Incorrect Answers
A:Micro-batch execution occurs in triggers and does not guarantee per-event submillisecond latency. The observed failure instead follows from: Stateful recovery requires an appropriate stable checkpoint location for offsets and query state. The alternative does not explain the same dependency.
B:Exactly-once processing needs idempotent or transactional sink semantics; arbitrary HTTP side effects may repeat. The observed failure instead follows from: Stateful recovery requires an appropriate stable checkpoint location for offsets and query state. The alternative does not explain the same dependency.
C:Unbounded key state accumulates for a long-running query. The observed failure instead follows from: Stateful recovery requires an appropriate stable checkpoint location for offsets and query state. The alternative does not explain the same dependency.
Question 803
At Silverpeak Bioinformatics, while reconciling a reporting dataset (fictional study case R280-C161-1), a streaming aggregation restarts after a crash and loses progress because no durable checkpoint was configured. 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 source-to-sink latency by trigger under representative load.
- Compare checkpoint directory state before/after a controlled driver restart.
- Replay a partially committed batch and inspect webhook event IDs.
- Track state-store rows and bytes over successive batches.
Explanation
Correct Answer
B:Compare checkpoint directory state before/after a controlled driver restart. This gathers evidence about the stated mechanism: Stateful recovery requires an appropriate stable checkpoint location for offsets and query state. The existing symptom is: A streaming aggregation restarts after a crash and loses progress because no durable checkpoint was configured.
Incorrect Answers
A:Measure source-to-sink latency by trigger under representative load. The case requires a discriminating check before any change, not the offered alternative. Use: Compare checkpoint directory state before/after a controlled driver restart.
C:Replay a partially committed batch and inspect webhook event IDs. The case requires a discriminating check before any change, not the offered alternative. Use: Compare checkpoint directory state before/after a controlled driver restart.
D:Track state-store rows and bytes over successive batches. The case requires a discriminating check before any change, not the offered alternative. Use: Compare checkpoint directory state before/after a controlled driver restart.
Question 804
At Willowbank Software, during a pipeline migration (fictional study case R280-C161-2), a streaming aggregation restarts after a crash and loses progress because no durable checkpoint was configured. 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.
- Restarted processing resumes from persisted progress without unintended duplicate sink records.
- Declared latency objective matches observed processing mode.
- Each logical notification is delivered once despite retry.
- State stays bounded while valid late events are accounted for by policy.
Explanation
Correct Answer
A:Restarted processing resumes from persisted progress without unintended duplicate sink records. This is an observable state after the correction: Configure a dedicated durable `checkpointLocation` for the query and test restart recovery. It confirms the original problem no longer occurs.
Incorrect Answers
B:Declared latency objective matches observed processing mode. Implementation or a check alone is not proof of success. The measurable end state is: Restarted processing resumes from persisted progress without unintended duplicate sink records.
C:Each logical notification is delivered once despite retry. Implementation or a check alone is not proof of success. The measurable end state is: Restarted processing resumes from persisted progress without unintended duplicate sink records.
D:State stays bounded while valid late events are accounted for by policy. Implementation or a check alone is not proof of success. The measurable end state is: Restarted processing resumes from persisted progress without unintended duplicate sink records.
Question 805
At Seabrook Education, after a Spark runtime upgrade (fictional study case R280-C161-1), a streaming aggregation restarts after a crash and loses progress because no durable checkpoint was configured. 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.
- Scope checkpoint storage to this unique streaming query.
- Adjust only this stream's trigger/latency contract.
- Harden the outbound webhook sink only.
- Set retention only for the affected stateful grouping.
Explanation
Correct Answer
A:Scope checkpoint storage to this unique streaming query. This limits the change while addressing: Stateful recovery requires an appropriate stable checkpoint location for offsets and query state. The expected outcome is: Restarted processing resumes from persisted progress without unintended duplicate sink records.
Incorrect Answers
B:Adjust only this stream's trigger/latency contract. It is not the bounded choice for the stated condition: A streaming aggregation restarts after a crash and loses progress because no durable checkpoint was configured. The permitted change must remain: Scope checkpoint storage to this unique streaming query.
C:Harden the outbound webhook sink only. It is not the bounded choice for the stated condition: A streaming aggregation restarts after a crash and loses progress because no durable checkpoint was configured. The permitted change must remain: Scope checkpoint storage to this unique streaming query.
D:Set retention only for the affected stateful grouping. It is not the bounded choice for the stated condition: A streaming aggregation restarts after a crash and loses progress because no durable checkpoint was configured. The permitted change must remain: Scope checkpoint storage to this unique streaming query.
Question 806
At Bluewater Energy, during a performance incident (fictional study case R280-C162-1), a dashboard promises every event appears in under 1 ms from a default micro-batch streaming pipeline. 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.
- Include stable batch or event IDs and deduplicate at the sink under a tested idempotency protocol.
- Set realistic service objectives and select supported trigger/processing architecture based on actual latency requirements.
- Introduce an appropriate supported watermark or state timeout policy that respects accepted lateness.
- Improve throughput, partitioning or compute capacity, and set a feasible trigger based on measurements.
Explanation
Correct Answer
B:The failure mechanism is: Micro-batch execution occurs in triggers and does not guarantee per-event submillisecond latency. Apply the bounded change: Set realistic service objectives and select supported trigger/processing architecture based on actual latency requirements. The acceptance test must show: Declared latency objective matches observed processing mode.
Incorrect Answers
A:Include stable batch or event IDs and deduplicate at the sink under a tested idempotency protocol. That would not resolve the reported problem: A dashboard promises every event appears in under 1 ms from a default micro-batch streaming pipeline. The source-supported intervention is: Set realistic service objectives and select supported trigger/processing architecture based on actual latency requirements.
C:Introduce an appropriate supported watermark or state timeout policy that respects accepted lateness. The option targets a different stage or condition. The relevant failure is: Micro-batch execution occurs in triggers and does not guarantee per-event submillisecond latency. The needed repair is: Set realistic service objectives and select supported trigger/processing architecture based on actual latency requirements.
D:Improve throughput, partitioning or compute capacity, and set a feasible trigger based on measurements. The recorded mechanism is: Micro-batch execution occurs in triggers and does not guarantee per-event submillisecond latency. The proposed action does not correct that mechanism; use: Set realistic service objectives and select supported trigger/processing architecture based on actual latency requirements.
Question 807
At Meridian Commerce, during a distributed-job recovery test (fictional study case R280-C162-2), a dashboard promises every event appears in under 1 ms from a default micro-batch streaming pipeline. 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.
- Micro-batch execution occurs in triggers and does not guarantee per-event submillisecond latency.
- Exactly-once processing needs idempotent or transactional sink semantics; arbitrary HTTP side effects may repeat.
- Unbounded key state accumulates for a long-running query.
- The workload's processing cost exceeds trigger interval; triggers cannot run infinitely in parallel to catch up.
Explanation
Correct Answer
A:The failure is explained by: Micro-batch execution occurs in triggers and does not guarantee per-event submillisecond latency. A dashboard promises every event appears in under 1 ms from a default micro-batch streaming pipeline. Correcting it would require: Set realistic service objectives and select supported trigger/processing architecture based on actual latency requirements.
Incorrect Answers
B:Exactly-once processing needs idempotent or transactional sink semantics; arbitrary HTTP side effects may repeat. This is not the root cause established for the reported condition: A dashboard promises every event appears in under 1 ms from a default micro-batch streaming pipeline. The cause is: Micro-batch execution occurs in triggers and does not guarantee per-event submillisecond latency.
C:Unbounded key state accumulates for a long-running query. The observed failure instead follows from: Micro-batch execution occurs in triggers and does not guarantee per-event submillisecond latency. The alternative does not explain the same dependency.
D:The workload's processing cost exceeds trigger interval; triggers cannot run infinitely in parallel to catch up. That explanation needs evidence of another fault. The specific mechanism here is: Micro-batch execution occurs in triggers and does not guarantee per-event submillisecond latency.
Question 808
At Copperline Finance, while reconciling a reporting dataset (fictional study case R280-C162-1), a dashboard promises every event appears in under 1 ms from a default micro-batch streaming pipeline. 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 a partially committed batch and inspect webhook event IDs.
- Track state-store rows and bytes over successive batches.
- Inspect batch duration, input rate, process rate and backlog.
- Measure source-to-sink latency by trigger under representative load.
Explanation
Correct Answer
D:Diagnose the affected path with: Measure source-to-sink latency by trigger under representative load. This tests the case-specific cause: Micro-batch execution occurs in triggers and does not guarantee per-event submillisecond latency.
Incorrect Answers
A:Replay a partially committed batch and inspect webhook event IDs. The case requires a discriminating check before any change, not the offered alternative. Use: Measure source-to-sink latency by trigger under representative load.
B:Track state-store rows and bytes over successive batches. That does not establish whether the stated cause is present: Micro-batch execution occurs in triggers and does not guarantee per-event submillisecond latency. The diagnostic is: Measure source-to-sink latency by trigger under representative load.
C:Inspect batch duration, input rate, process rate and backlog. That does not establish whether the stated cause is present: Micro-batch execution occurs in triggers and does not guarantee per-event submillisecond latency. The diagnostic is: Measure source-to-sink latency by trigger under representative load.
Question 809
At Pinecrest Media, during a pipeline migration (fictional study case R280-C162-2), a dashboard promises every event appears in under 1 ms from a default micro-batch streaming pipeline. 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 notification is delivered once despite retry.
- State stays bounded while valid late events are accounted for by policy.
- Declared latency objective matches observed processing mode.
- Source lag declines while event totals remain correct.
Explanation
Correct Answer
C:A passing check shows: Declared latency objective matches observed processing mode. This is evidence for the scoped change: Set realistic service objectives and select supported trigger/processing architecture based on actual latency requirements.
Incorrect Answers
A:Each logical notification is delivered once despite retry. This is not the observed recovery outcome. Acceptance requires: Declared latency objective matches observed processing mode.
B:State stays bounded while valid late events are accounted for by policy. Implementation or a check alone is not proof of success. The measurable end state is: Declared latency objective matches observed processing mode.
D:Source lag declines while event totals remain correct. The alternative cannot demonstrate that the issue has been corrected: A dashboard promises every event appears in under 1 ms from a default micro-batch streaming pipeline. The required result is: Declared latency objective matches observed processing mode.
Question 810
At Ironlake Networks, after a Spark runtime upgrade (fictional study case R280-C162-1), a dashboard promises every event appears in under 1 ms from a default micro-batch streaming pipeline. 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 only this stream's trigger/latency contract.
- Harden the outbound webhook sink only.
- Set retention only for the affected stateful grouping.
- Tune the overloaded stream's processing path.
Explanation
Correct Answer
A:The relevant boundary is: Adjust only this stream's trigger/latency contract. The correction remains: Set realistic service objectives and select supported trigger/processing architecture based on actual latency requirements.
Incorrect Answers
B:Harden the outbound webhook sink only. The action does not preserve the identified scope boundary: Adjust only this stream's trigger/latency contract.
C:Set retention only for the affected stateful grouping. It is not the bounded choice for the stated condition: A dashboard promises every event appears in under 1 ms from a default micro-batch streaming pipeline. The permitted change must remain: Adjust only this stream's trigger/latency contract.
D:Tune the overloaded stream's processing path. It is not the bounded choice for the stated condition: A dashboard promises every event appears in under 1 ms from a default micro-batch streaming pipeline. The permitted change must remain: Adjust only this stream's trigger/latency contract.