Question 80
A LangGraph node pauses with interrupt() to request a reviewer’s decision. What supplies the resumed decision?
- Append approval text to an inaccessible log file.
- Change an unrelated thread’s display title.
- Resume the paused thread using the framework’s supported Command resume value.
- Create a new graph with no saved state.
Explanation
Correct Answer
C:The supported resume value becomes the return value of interrupt() in the paused thread. It supplies the requested reviewer decision without replacing the entire graph state.
Incorrect Answers
A:A log entry is not automatically delivered through the framework’s interruption-resumption mechanism.
B:A title update does not supply the paused execution’s expected resume value.
D:A new execution does not resume the original node’s waiting decision or preserved task state.
Question 81
A LangGraph node performs an external write before interrupt(). On resumption, node code can run again from its start. What design precaution follows?
- Delete the checkpointer after presenting the review request.
- Make pre-interrupt effects idempotent or move them into separately checkpointed work.
- Place more external writes before the interrupt.
- Assume Python resumes at an arbitrary machine instruction.
Explanation
Correct Answer
B:Node re-entry can repeat earlier code. Explicit effect handling prevents a resumed human decision from causing unintended duplicate mutations.
Incorrect Answers
A:Removing saved state undermines resumption and does not make previously executed side effects safe.
C:Additional pre-interrupt effects increase replay exposure rather than addressing it.
D:Framework resumption follows documented node semantics, not preservation of a suspended interpreter instruction pointer.
Question 82
An application needs a user’s approved preferences in several distinct task threads. What storage concept fits this requirement?
- A process-local variable that disappears on restart.
- Only the latest node checkpoint of an unrelated thread.
- A model-family name used as the memory key.
- A scoped long-term store accessible across authorized threads.
Explanation
Correct Answer
D:Preferences shared across tasks differ from one thread’s execution checkpoint. The store still needs user ownership and update controls.
Incorrect Answers
A:Transient process memory cannot provide durable cross-session preferences when the worker is replaced.
B:Thread snapshots preserve execution state; they are not a general shared preference interface.
C:A model name does not distinguish users or establish the ownership of stored preferences.
Question 83
A planner discovers that a required supplier cannot meet the deadline. What should a plan-execute system do?
- Change the deadline without user authorization.
- Continue the original plan because plans are immutable facts.
- Restart completed unrelated steps automatically.
- Replan affected steps while preserving the user’s original constraints.
Explanation
Correct Answer
D:New evidence can invalidate an implementation path without changing the goal. Replanning should adjust actions, not silently discard the deadline.
Incorrect Answers
A:That alters a governing requirement rather than finding a compliant alternative.
B:A plan is a proposal based on assumptions. Following it after a prerequisite fails does not make it feasible.
C:Unaffected work may remain valid. Repeating it adds cost without resolving the failed supplier dependency.
Question 84
A specialist cannot finish because a required dataset is missing. Which handoff is most useful?
- Invent plausible dataset contents to satisfy the format.
- Return a blocked status naming the missing input and any completed findings.
- Keep retrying the same absent file indefinitely.
- Return an empty success object.
Explanation
Correct Answer
B:This lets the coordinator obtain the dependency or adjust scope without mistaking partial work for completion.
Incorrect Answers
A:Fabrication supplies unsupported evidence and conceals the actual reason the assignment cannot finish.
C:Repeated access cannot create missing input; the coordinator needs an explicit actionable blocker.
D:An empty success hides the dependency failure and can mislead downstream aggregation.
Question 85
A tool reports that the requested booking date is already past. What recovery differs from a transient network retry?
- Retry the identical request with exponential backoff forever.
- Switch network endpoints while retaining the same date.
- Report the booking completed after several failures.
- Request or determine a valid date under the user’s instructions.
Explanation
Correct Answer
D:The date violates a business rule. An unchanged network retry cannot make it eligible; recovery requires a valid date obtained under the user's instructions.
Incorrect Answers
A:Waiting does not move a past date into the future or repair its invalid business meaning.
B:Changing transport does not resolve the date constraint enforced by the booking service.
C:Repeated rejection is not evidence of success and must not be concealed from the user.
Question 86
An upstream dependency fails consistently across many agent runs. What protects the system from repeatedly calling it during the outage?
- A circuit breaker with controlled recovery probes.
- Unlimited immediate retries from every run.
- Increasing the number of worker agents.
- Caching the word “success” for all failed operations.
Explanation
Correct Answer
A:Temporarily suppressing known-failing calls reduces wasted work. Limited probes determine when normal traffic can resume.
Incorrect Answers
B:Retries amplify pressure and consume resources while the underlying dependency remains unavailable.
C:More callers do not repair the dependency and can intensify the failure load.
D:Fabricated results hide the outage and make agents reason from actions that never completed.
Question 87
A workflow reserves stock, then fails to create shipment. The services do not share a transaction. What should the design define?
- Repeat the reservation before investigating shipment failure.
- Assume the failed shipment automatically rolls back stock.
- Delete the conversation and consider the reservation undone.
- A compensation or recovery procedure for the completed reservation.
Explanation
Correct Answer
D:The partial effect remains after the later failure. Explicit compensation or reconciliation restores a valid business state across separate services.
Incorrect Answers
A:Another reservation can compound the partial effect instead of resolving it.
B:Independent services do not share rollback semantics unless an actual mechanism provides them.
C:Removing agent history does not reverse an external inventory operation.
Question 88
Four independent workers run; three succeed and one fails. The final answer requires all four results. What should the join step do?
- Represent the missing result explicitly and apply a targeted recovery policy.
- Fill the missing result using another worker’s output.
- Label the aggregate complete because most workers succeeded.
- Discard successful outputs and hide the failed branch.
Explanation
Correct Answer
A:The aggregate is incomplete. Retaining successful outputs avoids unnecessary repetition while the failed branch is retried or escalated.
Incorrect Answers
B:Independent assignments are not interchangeable; copying a result invents coverage for the failed branch.
C:A majority is insufficient when the task explicitly requires every branch’s result.
D:This loses useful work and conceals the reason the required aggregate cannot be completed.
Question 89
Agents generate tool jobs faster than workers can execute them. Which mechanism prevents uncontrolled queue growth?
- Increase retries whenever the queue grows.
- Apply backpressure with bounded queues and admission controls.
- Hide queue length from monitoring.
- Store every new job indefinitely without limits.
Explanation
Correct Answer
B:The producer must slow or reject excess work when capacity is exhausted. This bounds resource use and makes overload visible.
Incorrect Answers
A:Retries create more work and can worsen overload rather than match production to execution capacity.
C:Removing visibility does not change throughput and makes capacity failures harder to detect.
D:Unbounded retention can exhaust memory or storage while latency continues to increase.
Question 90
A planner assigns database writes to a read-only specialist. What should coordination do?
- Treat the planner’s assignment as a permission grant.
- Tell the specialist to bypass its read-only credentials.
- Pretend the specialist completed the write after reading data.
- Check worker capabilities before assignment and route authorized write work appropriately.
Explanation
Correct Answer
D:A role description must match executable permissions. Capability-aware assignment prevents plans that cannot be carried out by their designated workers.
Incorrect Answers
A:Planning intent cannot override the worker’s actual access restrictions.
B:That violates the intended boundary rather than correcting the assignment.
C:Reading does not perform mutation, and reporting otherwise fabricates an outcome.