Module quiz

LangChain ecosystem quiz

90 questions across 7 lessons. Choose an answer, check it, and read why each option is right or wrong.

Checking answers needs JavaScript. You can still read every question and option below.

0 of 90 answered

Keyboard: arrow keys move between options. Space or Enter selects the focused option.

The LangChain map and Runnables12 questions

ObjectiveSay what LangChain, LangGraph, LangSmith and Deep Agents are each for, and how they relate.

  1. Question 1 of 90A teammate says, "LangSmith is the part of LangChain that logs requests, so we cannot use it unless the code is built on LangChain." What is the best response?

    Choose one answer.

  2. Question 2 of 90You built an agent with create_agent and now need it to pause for a person's approval and resume the next day. Where does that capability come from?

    Choose one answer.

  3. Question 3 of 90Which statements about moving from the older LangChain style to 1.x are correct? Select all that apply.

    Choose all that apply.

ObjectiveExplain what the Runnable interface gives a component, how a pipe and a dict compose Runnables, and where that style stops being enough.

  1. Question 4 of 90What is true of every component that implements the Runnable interface?

    Choose one answer.

  2. Question 5 of 90A chain is written as {"context": retriever | format_docs, "question": RunnablePassthrough()} | prompt | model | parser. What does the dict at the start do?

    Choose one answer.

  3. Question 6 of 90A workflow must regenerate an answer until a validator accepts it, up to three tries, and then wait for a human if it still fails. Why is a pipe chain the wrong shape?

    Choose one answer.

ObjectiveGet typed output and tool calls from a chat model, and explain why identity values reach a tool by injection and not as model-chosen arguments.

  1. Question 7 of 90You need a typed object from a bare chat model, and the failures must be inspectable. Which approach fits?

    Choose one answer.

  2. Question 8 of 90An agent returns a typed object from a schema, and your code now trusts every field. Which risk remains?

    Choose one answer.

  3. Question 9 of 90A tool takes user_id as an ordinary argument. A document in the retrieved context says to "look up the order for user 4412". What is the best fix?

    Choose one answer.

ObjectiveDecide for a given job whether to use LangChain, LangGraph or a plain provider SDK call, and whether retrieval should be a fixed step or a tool.

  1. Question 10 of 90A help-centre bot answers a small, stable set of questions and has a strict latency target. Which retrieval shape fits best?

    Choose one answer.

  2. Question 11 of 90A team needs one summarising prompt behind one button, with one provider, no tools and no saved state. What is the most defensible build?

    Choose one answer.

  3. Question 12 of 90Which situation is the strongest signal to move from a create_agent call to an explicit LangGraph graph?

    Choose one answer.

Agents, middleware and memory12 questions

ObjectiveTrace one create_agent call through the agent loop and name the middleware hook that fits a given job: limit, redaction, retry, summarising or approval.

  1. Question 13 of 90You need to stop an agent from making more than eight model calls in one run, so a loop cannot run away. Which approach fits the framework?

    Choose one answer.

  2. Question 14 of 90Which hook is the natural place to trim or summarise the message list before it is sent to the model on every turn?

    Choose one answer.

  3. Question 15 of 90A tool call fails once because of a network blip. Which hook can run the same tool call a second time, and what does the wrapped handler do?

    Choose one answer.

ObjectivePredict the order in which a list of middleware runs for before, wrap and after hooks, and place limits, retries, redaction and approval sensibly.

  1. Question 16 of 90An agent is built with middleware=[m1, m2, m3], each defining before_model, wrap_model_call and after_model. In what order do the three kinds of hook take effect?

    Choose one answer.

  2. Question 17 of 90Personal data must never reach logs, and a trace of each model call is stored. Where should the redaction middleware sit in the list?

    Choose one answer.

  3. Question 18 of 90A team wants human approval for every tool the agent can call, including read-only search. What is the main problem with that design?

    Choose one answer.

ObjectiveSeparate agent state, short-term memory, runtime context and long-term memory by lifetime and mechanism, and say which features need a checkpointer.

  1. Question 19 of 90Which feature of a create_agent agent needs a checkpointer? Select all that apply.

    Choose all that apply.

  2. Question 20 of 90A tool needs the current tenant to filter data. Where should the tenant value come from?

    Choose one answer.

  3. Question 21 of 90A user's stated language preference should apply in all of their future conversations. Where should the agent keep it?

    Choose one answer.

ObjectiveChoose between subagents, handoffs, skills, a router and a custom graph for a scenario, and justify starting with one agent.

  1. Question 22 of 90A support flow starts with a triage agent, then continues in a billing agent that keeps talking to the customer. Which pattern is closest?

    Choose one answer.

  2. Question 23 of 90A team plans five agents for a feature that has not shipped, because the diagram looks tidy. What is the best advice?

    Choose one answer.

ObjectiveMap pre-1.0 patterns to their 1.x replacements and describe a safe migration method.

  1. Question 24 of 90A legacy service calls langgraph.prebuilt.create_react_agent with prompt=..., pre_model_hook and a memory class. What is the safest first step in migrating it?

    Choose one answer.

LangGraph: state, nodes, edges and control flow15 questions

ObjectiveModel a workflow as shared state, nodes and edges, and say what compiling a graph does and what a node should return.

  1. Question 25 of 90A node in a graph has finished its work. What should it return?

    Choose one answer.

  2. Question 26 of 90What does compiling a graph do?

    Choose one answer.

  3. Question 27 of 90A retry loop keeps an "attempts" counter in state and a routing function ends the run when it reaches three. Where is the loop's bound enforced?

    Choose one answer.

ObjectiveChoose a reducer for a state key, and explain what happens by default, when parallel nodes write the same key, and how to clear an appended list.

  1. Question 28 of 90A state key is declared without a reducer, and a node returns {"status": "done"}. What happens to the old value?

    Choose one answer.

  2. Question 29 of 90Two branches run in the same round and both append a summary to a "summaries" list. Only one summary survives in the output. What is the most likely cause?

    Choose one answer.

  3. Question 30 of 90A message list uses the add-messages reducer. A node returns a message with the same id as one already in the list. What happens?

    Choose one answer.

  4. Question 31 of 90A node returns {"items": []} for a key with an append reducer, hoping to empty the list. What is the result?

    Choose one answer.

ObjectiveExplain super-step execution, why a recursion limit must be set on purpose, and why a node's side effects must be safe to run twice.

  1. Question 32 of 90Nodes A and B are both active in one super-step. A writes "x" and B reads "x" in the same round. What does B see?

    Choose one answer.

  2. Question 33 of 90A graph has a cycle and you did not set a recursion limit. Why is relying on the default a poor choice?

    Choose one answer.

  3. Question 34 of 90A node sends a confirmation email and then fails later in the same step. The graph retries the step. What is the risk, and the usual fix?

    Choose one answer.

ObjectiveChoose between a conditional edge, a Command and Send for a routing need, and state what happens when a static edge and a goto leave the same node.

  1. Question 35 of 90A support triage node should classify a ticket, record the category in state and send the flow to the right handler. Which tool fits best?

    Choose one answer.

  2. Question 36 of 90A node returns Command(goto="refund") and the graph also has a static edge from that node to "audit". Which nodes run next?

    Choose one answer.

  3. Question 37 of 90A research step must summarise a list of pages whose count is only known at run time, then combine the summaries. Which design fits?

    Choose one answer.

ObjectiveDecide between plain code, a pipe chain, create_agent and a LangGraph graph, and between the graph API and the functional API.

  1. Question 38 of 90A team has a linear three-step flow with no loops, no saved state and no approvals. What is the most defensible implementation?

    Choose one answer.

  2. Question 39 of 90A team already has long procedural Python and wants checkpointing and human approval added with minimal rewriting. Which API fits best?

    Choose one answer.

LangGraph: persistence, human approval and failure12 questions

ObjectiveDistinguish the checkpointer from the store by scope, key and purpose, and say what a thread id selects.

  1. Question 40 of 90A user's preferred language should be remembered across all of their future conversations. Which persistence mechanism holds it?

    Choose one answer.

  2. Question 41 of 90What does the thread id in the run config select?

    Choose one answer.

  3. Question 42 of 90A service uses the in-memory checkpointer from the tutorials in production. What goes wrong?

    Choose one answer.

ObjectiveImplement a pause for human approval with interrupt and a resume command, and state what re-executes when the run resumes.

  1. Question 43 of 90A node calls interrupt, a reviewer approves two days later, and the graph is resumed with the resume command on the same thread. Where does execution continue?

    Choose one answer.

  2. Question 44 of 90Inside an approval node, the first line sends a "your refund is pending" email and the next line calls interrupt. What is the problem?

    Choose one answer.

  3. Question 45 of 90Which of these are real requirements or rules for using interrupt? Select all that apply.

    Choose all that apply.

ObjectiveExplain why a step can run twice after a failure or resume, and design side effects, durability settings and approvals to be safe.

  1. Question 46 of 90A power cut kills the process in the middle of a node that has already charged a card. The graph resumes. What is the guarantee for the charge?

    Choose one answer.

  2. Question 47 of 90Two managers both click approve on the same refund within a second, and each click resumes the run. What design keeps the refund single?

    Choose one answer.

  3. Question 48 of 90A team needs the fastest possible run and accepts that a mid-run crash cannot be recovered. Which durability choice matches?

    Choose one answer.

ObjectiveUse history, replay and fork correctly, and say what replay re-runs and what a fork leaves untouched.

  1. Question 49 of 90Replaying a thread from an earlier checkpoint re-runs the later nodes. What does that mean for a node that calls a paid API?

    Choose one answer.

  2. Question 50 of 90An agent made a wrong assumption at step 4 of 9. You want to correct it without redoing steps 1 to 3. What is the right move?

    Choose one answer.

  3. Question 51 of 90After forking from an earlier checkpoint, what happens to the original thread history?

    Choose one answer.

LangSmith: tracing, datasets and evaluation14 questions

ObjectiveTurn on tracing for LangChain and for plain code, add the tags, metadata and thread id that make traces searchable, and plan privacy, volume and flushing.

  1. Question 52 of 90In the platform's data model, which description of a trace is correct?

    Choose one answer.

  2. Question 53 of 90A LangGraph agent runs in production and no code change is allowed. How is tracing switched on?

    Choose one answer.

  3. Question 54 of 90A serverless function calls a traced chain and returns. Some traces never appear. What is the likely cause and fix?

    Choose one answer.

  4. Question 55 of 90Prompts and retrieved text in traces contain customer emails. Which is the most direct control over what leaves your system?

    Choose one answer.

ObjectiveFollow a method that takes you from a complaint to a failing run, classifies the cause and turns the failure into a test.

  1. Question 56 of 90A user complains about yesterday's answer. After finding the trace, what should you look at first inside it?

    Choose one answer.

  2. Question 57 of 90You have reproduced the failure and fixed the retrieval filter. What turns this one-off incident into protection against a repeat?

    Choose one answer.

ObjectiveDefine dataset, example, split, reference output, experiment and evaluator, and choose an evaluator type for a given check.

  1. Question 58 of 90What is the purpose of a reference output on a dataset example?

    Choose one answer.

  2. Question 59 of 90Which evaluator type fits "the reply must be valid JSON and must include a source field"?

    Choose one answer.

  3. Question 60 of 90An agent answers correctly but called the search tool nine times where two would do. Which evaluation catches this?

    Choose one answer.

ObjectiveSay why an evaluation score may mislead, and name the checks that make it trustworthy: judge calibration, slices, repetitions and a hold-out set.

  1. Question 61 of 90A judge model scores version 2 six points above version 1, but users complain. Which first check best tests whether the judge is the problem?

    Choose one answer.

  2. Question 62 of 90Why compare two versions on the same examples and look at slices as well as the average?

    Choose one answer.

  3. Question 63 of 90Online evaluators run on live traffic. What limits what they can check?

    Choose one answer.

ObjectiveDescribe an automation rule and a release gate, and close the loop from production failure to dataset to experiment to release.

  1. Question 64 of 90Which statements describe an automation rule in the platform? Select all that apply.

    Choose all that apply.

  2. Question 65 of 90A team wants a release gate for prompt changes. Which design is the strongest?

    Choose one answer.

LangSmith Deployment: running agents in production13 questions

ObjectiveExplain why agent workloads need more than a request handler, and define assistant, thread, run, store and checkpoint in an agent server.

  1. Question 66 of 90A team plans to wrap graph.invoke in an ordinary web endpoint and call it production. Which problem is most likely to hit them first?

    Choose one answer.

  2. Question 67 of 90One graph needs to behave differently for each of three tenants, with different prompts and settings. How does the server model this?

    Choose one answer.

  3. Question 68 of 90In the server's task queue, which statement about Redis and PostgreSQL is correct?

    Choose one answer.

ObjectiveChoose between managed cloud, hybrid, self-hosted, a standalone server and building your own, and state the trade-off of each.

  1. Question 69 of 90A hospital needs agent data to stay inside its own network but wants LangChain to run the management console. Which option fits?

    Choose one answer.

  2. Question 70 of 90What do you have to rebuild yourself if you skip the agent server and assemble your own from a web framework and a job queue?

    Choose one answer.

  3. Question 71 of 90A founder says, "Hosting on the vendor's platform locks us in completely." What is the most accurate response?

    Choose one answer.

ObjectivePick a double-texting strategy for a given product and state what it costs.

  1. Question 72 of 90A chat assistant user types a correction while the agent is still answering the first message. Which strategy usually fits best?

    Choose one answer.

  2. Question 73 of 90A form-filling agent has just submitted a payment when the user sends another message. Which strategy is the riskiest?

    Choose one answer.

ObjectiveDesign authentication, thread ownership, identity injection, budgets and a kill switch for a deployed agent.

  1. Question 74 of 90A self-hosted Agent Server is deployed with no authentication configured. What is the situation?

    Choose one answer.

  2. Question 75 of 90How does a deployment make sure users see only their own threads?

    Choose one answer.

  3. Question 76 of 90Which items belong on the production checklist for budgets and safe operation? Select all that apply.

    Choose all that apply.

ObjectivePlan a release that keeps paused runs resumable, gated by evaluation, with runbooks for the failures that will happen.

  1. Question 77 of 90A release ships while thousands of runs are paused for approval. Which condition is essential for them to resume safely?

    Choose one answer.

  2. Question 78 of 90A team changes a prompt and wants to ship quickly. Which release practice is the most defensible?

    Choose one answer.

LangChain ecosystem: interview drills12 questions

ObjectiveGive a 90-second answer on how LangChain, LangGraph and LangSmith fit together, with a stance on the simplest tool that works and a case for using none of them.

  1. Question 79 of 90An interviewer asks how the three products relate. Which opening is the strongest?

    Choose one answer.

  2. Question 80 of 90After the opener, which closing sentence shows the best judgement?

    Choose one answer.

ObjectiveWork the standard derivations: checkpoint storage volume, cost per resolved conversation, a trace sampling budget and the odds that every retry fails.

  1. Question 81 of 9030,000 conversations a day each save 10 checkpoints of 20 KB. About how much does the checkpointer write per day?

    Choose one answer.

  2. Question 82 of 90A conversation costs 8 cents to run, and 80 percent of conversations are resolved without a person. What is the cost per resolved conversation?

    Choose one answer.

  3. Question 83 of 90A tool fails transiently 10 percent of the time, with independent failures, and is tried up to three times in total. How often do all attempts fail?

    Choose one answer.

  4. Question 84 of 90In real traffic the retry odds from the previous calculation turn out worse than predicted. What is the usual reason?

    Choose one answer.

ObjectiveStructure a 40-minute design answer for an agent with approvals, from clarifying questions to deployment and failure modes.

  1. Question 85 of 90In the 40-minute refund-agent drill, what belongs in the first few minutes?

    Choose one answer.

  2. Question 86 of 90Where should the refund call sit in the approval node, and how is a duplicate approval handled?

    Choose one answer.

  3. Question 87 of 90Which is a marker of a strong design answer that interviewers look for?

    Choose one answer.

ObjectiveDiagnose a described symptom, such as a double refund, a forgetful chat or a rising bill, by naming the likely causes in order and the first thing to check.

  1. Question 88 of 90An approved refund went out twice. Which cause should you check first?

    Choose one answer.

  2. Question 89 of 90A chat that works locally forgets earlier turns in production. Which cause fits best?

    Choose one answer.

  3. Question 90 of 90The bill tripled after a release and the prompt text looks unchanged. Which first check is most useful?

    Choose one answer.