
By the end of this course you call Claude from your own code, give it tools so it can look up a customer's order, and keep the cost under control, and you prepare for the Claude Certified Developer Foundations exam along the way. Everything happens on one project, ShopAssist, a support assistant for an online store that grows section by section. First you see how a language model writes its answer and what it can see in one request; in the next section you send your first request to Claude from your own code, with your own API key or for free.
Who runs the Claude Certified Developer Foundations exam, and the exam from December 7, 2026: 70 questions, 60 of them scored, in 120 minutes, with a passing score of 720 on a scale from 100 to 1,000, which is a scaled score, not a percent. You see the eight domains with their weights and which ones are the largest, and you work through one question in the exam's style. If your exam is on December 6 or earlier, the article after this lecture lists its 53 questions and weights.
The exam changes on December 7, 2026, and this course covers both versions. The page lists what stays the same, what changes (70 questions instead of 53, new domain weights, added topics), how lecture titles show which version a lecture is for, and which lectures to take for your exam date.
A customer asks if a blue jacket can be returned, and the reply sounds certain, but Claude looks nothing up. It cuts the message into tokens, turns each into numbers - a position on a map of meaning that the context moves - and writes the reply one likely token at a time. Without the order facts it may name a 14-day window, and with them it says 10 days are left, so facts go into the request and code checks what must be right.
The same request about the blue jacket gets two replies with different words, and both are correct. The context window limits what the model sees in one request, sampling adds some chance to each next token, and so you test what every good reply must contain, not one exact string.
A map of what Anthropic builds around the models: the Claude API, the SDKs that wrap it, Claude Code, the Agent SDK, MCP, Anthropic's own apps and the big clouds. Every door leads to the same model families, so when two doors behave differently, you look at what each one adds around the model.
One web request carries everything: a POST to the messages endpoint, with headers for the API key and the API version, and data that names the model, the length limit and the messages. Back come the reply, the stop reason and the usage, and you check the stop reason before a reply cut off in the middle reaches a customer.
A customer asks about the blue jacket just when Anthropic's side is busy for a moment, and a client SDK handles it: it wraps the same API request and adds typed errors, retries with a growing pause and a time limit. You also see why a second API key gives no extra room, and why the major SDK version stays fixed.
Where the code of the practice lectures lives and how to run it on your own computer: get the repository, set up Python, add your API key and check that the first script works. It also says what the lectures with Claude Code need.
The first script keeps the API key in a .env file, creates the client, sends one question about returning a jacket after twenty days, and prints the reply text, the stop reason and the token usage. Then max_tokens drops from 300 to 20: the answer breaks off after a few words, and the stop reason says max_tokens.
Learn how the hands-on labs work in this course, how to open and run the Jupyter notebook, complete the coding tasks, and follow along with the lesson videos - no local setup or API key required.
The customer writes again, "How do I send it back?", and Claude answers as if it never heard of the jacket, because the API keeps nothing between requests. So your backend keeps the conversation as a list of messages with the roles user and assistant and sends all of it every time, and the input tokens grow with each turn.
Two questions go out as separate requests, and Claude does not know the second one is about a jacket bought twenty days ago. A history list and a small helper make each request carry both sides of the conversation: over three turns the answers stay on the same return, and the input tokens grow from 69 to more than 200.
The store wants a chat page, and a call to Claude straight from the browser would give the API key to every visitor. Of the four parts (the chat page, the backend, the Claude API and the store's data) only the backend calls Claude, and the customer's text stays apart from your instructions, as data and never as commands.
A small FastAPI server goes between a chat page and Claude: the browser posts the message to /chat, and the server adds the system prompt and the history, calls Claude and returns the reply. The follow-up question "can I still return it?" gets a yes because the server kept the history, and the API key never reaches the page.
The store accepts returns within 30 days, and you choose where that rule lives: rules that always hold go in the system prompt, the question and the order record in the user message. A lamp delivered 45 days ago shows the limit: an instruction only makes a behavior more likely, so code checks every rule that must never break.
A system prompt with a role and a scope makes Claude politely decline a poem about jackets, but a rule that must always hold goes in code. A gate stops a refund question until the customer confirms the email of the order, and the trace shows that no request goes to Claude for the blocked refund.
One new line in the system prompt, answer in at most two sentences, fixes the length but breaks the lamp case, and an eval catches it with a test set, graders and a baseline from the old prompt. An exam-style question at the end asks how a team proves that a prompt change made no other replies worse.
Six return questions with expected yes or no answers become a test set, and the first prompt scores five out of six: Claude accepts a return of underwear, because the prompt never mentions it. One added sentence brings the score to six out of six, and two scores on the same cases show that the change helped.
The head of support asks for "a smart assistant", and you turn that wish into requirements with numbers: 95 percent of the test set passes, no refund above 100 dollars goes out without a person, and the reply starts within two seconds. Each one gets a place that checks it: the prompt, the code or the infrastructure.
Someone edits the system prompt by hand on the live server, and ShopAssist promises a return for a lamp delivered 45 days ago that the code then refuses. You see the four phases of a system's life and why every prompt and model change goes through the same pipeline and test set, with versions that make a rollback take minutes.
A customer sends a photo of the shipping label and no order number, and the image travels as one more content block in the same message, to the same endpoint and model. Claude may read seven digits where there are eight, so your code checks the format and that the order exists before anything uses the number.
A photo of a shipping label goes to Claude as a base64 image block, placed before a text block with the question, and Claude reads the order number and the city, Dublin. The input tokens show the cost of a picture: 338, and almost all of it is the image.
The return policy is a long PDF, and the head of support wants every answer about returns to show the exact rule behind it. You choose between a document block, the Files API and data read at the moment it is needed by size, reuse and freshness, and turn on citations to get the exact words and the page behind an answer.
Fifty return emails wait for an answer, and one after another they take more than four minutes, so async code sends the requests side by side. You decide what happens when one call fails, and a semaphore caps the calls at ten at once, so the backlog leaves room in the rate limit for the live chat.
A customer asks about the blue jacket and the chat stays empty for several seconds, so the reply is streamed in pieces while Claude writes it: the first words arrive sooner, but the total time and the price stay the same. You follow the fixed order of server-sent events and handle a stream that breaks in the middle.
A question about returning a jacket runs twice with a timer: messages.create shows the whole reply at once after a few seconds, and messages.stream prints the words piece by piece. The first words come much sooner, the whole reply takes about as long as before, and the final message brings the stop reason and the usage.
The store runs on Amazon's cloud, the head of finance wants Claude on the same bill, and the security reviewer wants no new secret to store. Through Bedrock, Google Cloud or Microsoft Foundry the models and the request stay the same, a cloud identity replaces the API key, and features and retirement dates follow the platform.
Two customers chat at the same time, and the second one gets an answer about the first customer's jacket: a data leak caused by one shared list of messages. Each conversation gets its own session on the server, found by a long random session key, while the browser holds only that key.
Exam-style decisions where one requirement limits the choice, marked by small words such as only, while preserving and without: streaming or async, and which cloud platform. The closing question is about a company on Amazon's cloud that must call Claude without storing any new secret.
A customer asks ShopAssist where an order is, and Claude cannot see the store's data, so it asks your code with a tool_use block and gets back a tool result with the same ID. After this round trip you know why every check, such as the 30-day return window, stays in your own code.
ShopAssist gets its first tool: an order lookup function and the description that Claude reads. The first request stops with tool_use, the script runs the function and sends back a tool result, and the second reply ends with end_turn and says the jacket was delivered twenty days ago, so about ten days are left to return it.
A friendly paragraph does not tell the backend which order a customer means, so the reply gets a schema: required fields, an enum of four request types and an order number that may be null. Structured outputs or strict tool use make the shape certain, but the values can still be wrong, so code checks them.
Two customer emails about returns go to Claude with a JSON schema in the output format: the order ID, the item and a reason from four allowed values. Both replies parse without guessing, but the email with no order number comes back with the order ID unknown: well formed, but useless until your code checks the values.
A system prompt that grew line by line gives long replies and a delivery date that no record shows. You rebuild it as a note for a capable new colleague: the task, the context, each rule with its reason, a rule for missing data, long documents first and the customer's text cleaned and kept inside tags.
A warm tone or the line where a refund goes to the support team is hard to describe, so you show Claude example replies and see what it copies by accident, such as opening every reply with an order number. The result is a rule: three to five varied examples, one edge case, and a token cost paid in every request.
A customer charged twice for a lamp gets an answer about the closed return window, and a quick prompt fix repairs it but breaks two cases that passed before. You work in small rounds - one change, the whole test set, a comparison with the baseline - and keep a holdout set that shows when the prompt fits the tests, not the task.
At turn 40 ShopAssist asks a confirmed customer to prove who they are again, and every request costs more, yet a bigger window fixes neither problem. Pruning cuts a 3,000-token order record to about 50 tokens, compaction turns old turns into a short summary, and exact facts live in a note your code writes every turn.
A refund record fits its schema, but the order number says unknown and the amount is 120 dollars for a lamp that costs 60. You check each value in code, plan for a missing text block, extra text and a reply cut off, and retry a failed check with the exact error before a person takes the case.
Three return emails go through the extraction, and the schema accepts an order number with only four digits. You add null for a missing number, a value check in code and a loop of up to three attempts that sends Claude its own answer and the exact error, so the second attempt passes the check.
ShopAssist tells a customer that return shipping is always free, a rule the store's policy never had. You build a grounded request: the documents first, an instruction to answer only from them, and permission to say "not found". Then citations give the exact words of the source, and a check in code keeps a policy answer without a source away from the customer.
A three-page return policy fits in every request, but a help center with thousands of articles does not. You compare sending the whole set of documents with searching first and sending only the matching passages, and decide by the size of the corpus, the cost of each request and how often the documents change. A search that misses ends in "not found", not in a guess.
A 10 percent coupon rule broken in one long chat, a ticket record that breaks about one time in fifty and requests that keep growing are sorted by one question: does the fix change what Claude reads, or what your code does? An exam-style question about a billing chat full of old invoice data is worked option by option.
A folder of five customer emails goes through the same checked extraction, and each record is saved to a JSON file with its file name and a status. The run ends with five requests saved and two that need review, because a missing order number is never forced: that record goes to a person.
Returning a blue jacket takes three tools in a row: find the customer, look up the order, start the return. Your code repeats one round until the stop reason says end_turn, runs every tool_use block in a reply, finds each function through a dispatcher and keeps max turns only as a safety net.
A customer asks to return a jacket, and the script now has two tools: the order lookup and the tool that starts a return. A while loop calls Claude, reads the stop reason, runs each requested tool and sends the results back in one message, until turn three ends with end_turn and the return label number.
A customer asks about a double charge and Claude checks the delivery, and one wrong digit in an order number gets "Sorry, something went wrong." You fix both with what a tool tells Claude: a description that says when to use it, narrow tools with no overlap, not found returned as data and a structured error with five fields.
An order ID that does not exist and a lamp delivered forty-five days ago that still gets a return label run through the loop. The lookup now answers found false as a normal result, and the return tool checks the thirty-day window and refuses with a structured error: category business, not retryable.
Client tools run in your code with their secret keys and a timeout, and server tools like web search run on Anthropic's platform and cannot reach a private order system. Tools are then sorted by risk: a 60-dollar refund goes out at once, and a 150-dollar refund stops at a gate in code and waits for the support team.
The store's developers want the order tools inside Claude Code, so an MCP server describes itself to an MCP client. You sort what a server offers by who chooses it - the model picks tools, the application picks resources, the user picks prompts - and match stdio or Streamable HTTP to where the server runs.
Three copies of the order tools mean a fix reaches only one application, so one MCP server in Python replaces them, with each tool definition built from the function name, the docstring and the argument types. It runs over stdio for one developer or remotely with authentication for a team, and .mcp.json shares it through Git.
The two order tools move out of one script into an MCP server named shopassist, which you register in Claude Code with claude mcp add. In print mode, with only the needed tools allowed, the jacket lookup answers twenty days and the lamp return comes back refused with the structured error.
Two new needs test the idea that an MCP server is always the answer: a return check that developers run the same way every time in Claude Code, and live tracking data that two applications need. You decide by who needs it, who keeps it working, live data and context cost, and the first becomes a skill, the second an MCP server.
Some answer options sound safe but are too big, like an MCP server for a single app or a person approving every order lookup, and one rule picks the smallest option that meets the requirement for certain. An exam-style question about an assistant that can delete a customer's stored files is worked option by option.
One test opens the work on agents: can you write the steps down before you see the customer's message? A jacket return can, so it runs as a workflow, while a missing refund plus a strange charge needs an agent, at the price of latency, tokens and harder testing.
One run asks for the same order lookup again and again, and another tells the customer a return has started when no tool started it. A harness around the loop handles both with budgets for turns, tokens and time, a check and a log entry at every tool call, and a comparison of the reply with the log.
An agent finds where ShopAssist's code checks the 30-day return window and adds a test, started with one query call and a few options. The Agent SDK is a library in your own process, the allowed tools list only approves in advance while disallowed tools blocks, and the result message says how the run ended.
A prompt that says never delete files only makes that likely, and one delete command with a path that is too wide is enough. A PreToolUse hook reads the command itself and answers allow, deny or ask, with a deny that wins even over the allowed tools list, and a PostToolUse hook can hide a printed API key from Claude.
A short Python script starts an agent with query, lets it count the lines of a file with a shell command, and prints its tool calls, turns and stop reason. Then a PreToolUse hook on the shell tool denies any command with rm or .env: the delete of review.json never runs, and the agent reports 57 lines and a blocked delete.
One email asks to return a blue jacket and to explain a double charge on a lamp, and a single agent with seven tools mixes up the two orders. A coordinator splits the work between an order subagent and a billing subagent that start with an empty context, so each task must carry every fact and each report has a fixed shape.
A customer says they were charged twice for an order, and you build three agents on one function: an order agent with one tool, a billing agent with two, and a coordinator with no data tools. In the run, the coordinator passes the order facts to the billing agent, which refunds one of two identical 60-dollar charges.
An agent works through a backlog of 50 return emails, and by email twenty its context is so crowded that a lamp refund from email three gets buried. The fix is a small working context, short notes of facts and decisions in long-term memory outside the window, and noisy work kept in a subagent or a separate workflow step.
The team lead asks whether ShopAssist should use an agent framework. You see what Strands Agents, LangGraph and PydanticAI each add on top of the same loop, tools and memory, what they cost in a hidden request, slower support for new API features and one more library, and why to start on the API or the Agent SDK.
An agent that answers return emails day and night can run on the store's own servers with the Agent SDK or at Anthropic as Claude Managed Agents. Four questions about the data, the people, the network and the data rules decide it, and in both designs the order record still goes to the model.
Three agent decisions on new companies: workflow or agent for delivery complaints, one agent or a coordinator for an assistant with fourteen tools, and self-hosted or Anthropic-hosted for a team with nobody on call at night. It ends with one exam-style question about warranty claims that always take the same five steps.
ShopAssist opens a lamp order for someone who never said who they are. A hook before every tool call now blocks the lookup with a permission error until the customer gives an email, and a verified customer past the 30-day window is handed to a person with the escalate tool and a ticket number.
An agent mixes up two orders, and its trace has dozens of steps. You read the trace from the start, find the first wrong step and name its sign: a run that does not end properly, one agent flooded by a noisy job, a fact forgotten between sessions, or instructions lost in a long run. Each sign points to the missing pattern, and a bigger model or a bigger limit fixes none of them.
One model should not both sort 2,000 messages a day and judge a disputed refund. Haiku takes small, fast steps, Sonnet is the balanced default, Opus takes hard reasoning, and the Models API shows what each model supports.
A lamp was charged twice, the bank shows a third charge, and ShopAssist answers too quickly. You see extended and adaptive thinking as the exam names them, why the thinking block must go back unchanged during tool use, and why switching thinking off is not a cheap mode: on the current Opus, Sonnet and Fable models the request returns a 400 error.
The bill grows toward a monthly budget of 2,000 dollars, and customers wait a long time in double-charge chats. Effort sets how much the model thinks, calls tools and writes, so a simple jacket question can run at low effort, while fast mode writes up to two and a half times faster at twice the price with the same reasoning.
ShopAssist must pass 95 percent of its test set, start replies within two seconds and fit a budget of 2,000 dollars a month. You compare Haiku, Sonnet and Opus on your own test set and take the cheapest option that passes, then add model routing for the sort step and escalation when a check in code fails.
Someone moves ShopAssist to a newer model, no request fails, and a week later the logs show order lookups before the customer is confirmed. You see loud breaking changes that return a 400 error, quiet ones that change behavior and token counts, and a migration that changes the pinned model ID only after the test set passes.
The head of finance asks what one conversation and one month cost. From the usage field of every response you build a cost model: about five cents per chat and about 60,000 chats a month give nearly 3,000 dollars against a budget of 2,000, and token budgets per request and per conversation help bring it down.
A return policy of about 2,000 tokens travels in all six requests of every chat. A cache breakpoint after the stable start turns five of the six into cheap reads, and you see why the cache never stores answers, how the time in the first line of the system prompt causes a miss, and how usage shows writes and reads.
A return policy of almost 2,000 tokens goes into the system prompt as a block marked with cache_control. Three questions show the numbers in usage: the first request writes almost 1,900 tokens to the cache with only 14 input tokens for the question, and the next two read the policy from the cache.
Prompt caching is on, yet the bill went up: usage shows cache writes on every request and no reads. You place breakpoints three ways: a single one after the stable start, layered ones that follow how often each part changes, and a rolling one that moves forward with a conversation. You also work out what the cached start costs compared with the full price.
A test set of 2,000 cases must run overnight before each morning release, and nobody waits for the replies. The Message Batches API runs them at half the price within 24 hours and matches each result to its case by a custom ID, but a batch item gets one reply, so the agent loop and your own tools do not run inside it.
Three choices on new companies: a lower effort or a smaller model when replies are slow, fast mode or Haiku for a slow message sort on Opus, and prompt caching or a batch for a warranty manual sent with every chat request. It ends with one exam-style question about long agent runs on Opus while customers wait in the chat.
On a Friday, two small changes go live at once with no review and no test, and all weekend ShopAssist tells customers their order status is unknown. Pull requests, CI checks and a separate review pass by Claude would have stopped it, and a person still approves every change.
About thirty files call Claude through an old major version of the Python SDK, too many to change safely in one prompt. The upgrade starts in plan mode and then runs on a branch one step at a time, with tests after each step and a small pull request for each part.
Claude Code runs the tests on a laptop without a question, but the same review step stops in CI because the approval sat in local settings that never travel with the repository. You see which settings scope wins, why deny always wins, and how a prompt version in every log makes a rollback one line.
Developers explain the same project facts to Claude Code at the start of every session, until /init writes a first CLAUDE.md. You decide what stays in that file, what moves to a CLAUDE.md in one folder or to a rule with a paths field, and why blocking an action still needs a deny rule or a hook.
A return check typed by hand every morning loses its order lookup, and Claude Code guesses the delivery date. The check becomes a skill with a description that says when to use it, and you see that the allowed-tools field approves tools in advance and blocks nothing.
One search for the 30-day return check opens dozens of files and fills the main session's context. A subagent does such work in its own context and returns a short report, so the task you write for it must carry every fact it needs.
Three files go into a real project: a short CLAUDE.md with team conventions, a rule whose paths match the tool files, and the order check skill. A claude -p question after each one shows the new file at work, and the skill's own lookup finds that the lamp was delivered 45 days ago, past the 30-day window.
When each developer copies the team's Claude Code setup by hand, a fix in one copy never reaches the others. A plugin packs skills, subagents, hooks and MCP servers into one unit, but its hooks and servers run with your permissions, so you install only from a trusted source and keep versions pinned.
A prompt gives warm, short replies in claude.ai, but through the API the replies get longer and some never mention the 30-day return window. The app had added a project file, personal settings and memory, while the API sends only what your code sends, so each team rule must live where the right surface reads it.
Yesterday's hour of work on the refund code seems lost, and Claude Code asks for a yes before every edit. The continue and resume flags open the session again, six permission modes decide when Claude Code asks, and deny rules hold in every mode.
A review by Claude Code becomes a CI check with no person at the terminal: -p runs one task and exits, and JSON output with a schema gives a verdict that a script can read. Flags set the tools and the mode in advance, and the bare flag is for a branch you do not trust.
A short CI script sends a git diff to Claude Code with -p, JSON output and a schema, and the review returns request changes for a new tool that breaks the project's conventions. The exit code is still zero, so two lines of Python turn the verdict into exit code one and the pipeline stops.
A team repeats the same prompt release routine every week, and each step needs a home in Claude Code. Three questions choose the mechanism: who starts the step, must it happen every time, and does it need its own context window. You place the steps into a rule, a skill, a slash command, a hook and a subagent, then share the set through Git or a plugin.
Three questions pick the place for a fact, a ban or a rule: who must read it, when it must load, and whether it must hold for certain. You use them on CLAUDE.md, rules with paths, skills and settings scopes, then work an exam-style question about a ban on reading customer data exports that no developer may switch off.
A customer hears that a jacket can be returned within 14 days, but the store's window is 30. The logged request shows that the return policy was never sent, so the fault is in the integration, and one test settles such cases: could a perfect reader have answered from what was sent?
A customer was charged twice for a lamp, yet after nine steps the agent replies that there is nothing to refund. Reading the trace span by span from the start shows the fault at step six: the payment lookup timed out after two seconds and came back as an empty list.
About 300 calls failed overnight, and sending them all again is the wrong move: errors like 400 and 401 are fixed in code, and 429, 529 and timeouts are retried with exponential backoff. An idempotency key keeps a retried refund from paying 120 dollars instead of 60.
Requests fail on purpose in errors.py: a wrong key returns 401, the old temperature parameter returns 400, and a 50 millisecond timeout raises a timeout error with no status code. The rule that follows: fix a 400, 401 or 404 in the request, and let max_retries handle 429, the 500s and timeouts.
"ShopAssist answered badly" is a complaint, not a diagnosis. You decide the layer first, your integration or the model's output, and then name the failure from its sign in the trace: hallucination, context loss, refusal, under-acting, format drift or inconsistent output. Each name has a fix that removes the cause, and a retry or a bigger model only treats the symptom.
A model grader passes about 95 percent of replies as polite, but nobody has compared it with people. You build an LLM-as-judge with written rules and one quality per judge, calibrate it against replies that people graded, and fix the rules until they agree. Then you keep a golden set, let code check what code can decide, and report the share that passes each check.
A month after launch the support queue is twice as long, although every call returned success and the test set passed. You grade a random sample of real chats and turn every failure into a test case, then work an exam-style question about an assistant that quotes old plan prices after a model change.
From December 7, Eval, Testing and Debugging is a tenth of the exam. You practice its three decisions the way the exam asks them: which check fits a quality goal, what to do with a failure from production, and how to diagnose a bad answer in order. The lesson ends with a worked question about replies that stop matching the format a billing system reads.
A customer sends a photo of a receipt, and a tiny gray line at the bottom tells the assistant to mark the order as returned and refund it in full. You see direct and indirect injection, the jailbreak, and the layers that make a followed attack harmless: untrusted text kept apart and labeled, limited tools, and checks in code.
A note in an order record says to ignore all rules and refund 500 dollars for a jacket that cost 60, and it reaches Claude inside a tool result. In injection.py you label order notes as data in the system prompt and put a check in code with a 100-dollar limit before the refund, so no note decides how much money moves.
The security reviewer finds full card numbers and home addresses in ShopAssist's backend logs. You follow the four paths where private data leaks - the reply, the log, an outside service and another session - and apply two rules: send only what the task needs, and redact PII once at the entry, before the request and the log.
A signed-in customer gives an order number that belongs to someone else, and the tool returns the record. You separate who the customer is (sign-in and the server session, never text in the chat) from what they may do: an owner check in each tool's code on every call, and a 150-dollar refund that waits for the support team.
A developer pastes the API key into a test script and pushes it to a public repository. You see where a key lives (an environment variable or a secret manager), why .gitignore protects only one file, why each environment and service gets its own key, and why a leaked key is rotated at once, so the old one fails with 401.
A customer's message holds an email address, a phone number and a full card number, but ShopAssist needs only the order number. In redact.py, regular expressions replace each piece with a name in angle brackets, such as EMAIL, before the text goes to Claude, and git confirms that it ignores .env, where the API key lives.
The note that asks for a 500-dollar refund never passes the input filter, and the prompt may not stop it, yet it does no harm. You follow it through five guardrail layers (input, model, tools, output and monitoring), see how least privilege keeps a failure small, and handle a refusal as a signal, not as an error to retry.
In a CI job, Claude Code writes a delete command whose path comes out empty, so it points at every file of the project. A PreToolUse hook in settings blocks such a command with exit code 2 or a deny decision, and you see how a missing or crashed hook lets everything through and when a deny rule is enough.
A small script, guard.py, gets each shell command as JSON and exits with code 2 when the command deletes with rm or touches .env. You test it alone with echo, register it in the project's settings.json, and run Claude Code with -p on a task that asks for both: Claude reports the block, and the scratch file is still there.
One test picks the answer in a security question: assume the model was fooled, and keep the defense that still holds. You apply it to blocking a delete, hiding a card number at the entry, and the key and permissions of a CI agent, then work one exam-style question about a pull request review in CI option by option.
Prepare for the Claude Certified Developer - Foundations (CCDV-F) exam while building a practical Claude-powered application from the ground up. The exam guide describes what Anthropic expects from a developer who builds on Claude, so the course is also a structured map of the field: it covers everything the exam checks, no more and no less. No course can promise a pass. This one gives you a clear plan, with real practice behind the key ideas.
Updated for the exam change on December 7, 2026. The course covers both versions of the exam: the one you take through December 6 and the one you take from December 7. Lecture titles show which lectures are for one version only, and an article at the start of the course lists what changes.
This course is designed around the implementation skills tested in the certification exam. Instead of only learning Claude concepts, you will build ShopAssist, a realistic customer support application for an online store. The project starts with Claude API fundamentals and gradually evolves into a production-style AI system with multi-turn conversations, structured outputs, backend tools, MCP integrations, agentic workflows, evaluation, debugging, security controls, and production optimization.
The course covers all eight certification domains:
Domain 1: Agents and Workflows. You will learn when to use deterministic workflows or agents, how agent loops and their harnesses work, how to build with the Claude Agent SDK and its hooks, how coordinators and subagents communicate, and how agent frameworks and deployment models differ.
Domain 2: Applications and Integration. You will work with REST APIs, client SDKs, the Messages API, application state, images and documents, streaming, asynchronous execution, cloud platforms, requirements, system lifecycle, Git and code review, configuration management, and production integration patterns.
Domain 3: Claude Code. You will learn repository setup, CLAUDE, rules, settings, Skills, commands, subagents, Agent Memory, plugins, sessions, permission modes, and headless runs in scripts and CI.
Domain 4: Eval, Testing, and Debugging. You will build evaluation workflows, grade Claude outputs, distinguish model failures from integration failures, analyze traces, choose recovery strategies, and prevent regressions.
Domain 5: Model Selection and Optimization. You will compare Claude model families, reasoning modes, latency and quality trade-offs, model versioning, token budgets, cost modeling, prompt caching, and realtime versus batch processing.
Domain 6: Prompt and Context Engineering. You will learn instruction placement, few-shot prompting, structured output, context management, defensive output handling, and techniques for preventing context drift and bloat.
Domain 7: Security and Safety. You will learn prompt-injection defense, handling untrusted input, protecting personally identifiable information, authentication, authorization, secrets management, least privilege, hooks, and layered guardrails.
Domain 8: Tools and MCPs. You will learn tool contracts, tool execution, built-in and custom tools, Skills, MCP server architecture, reusable MCP integrations, and safe backend operations.
Throughout the course, ShopAssist connects these concepts into one practical application. You will see how requirements affect model choice, how Claude requests real backend operations, how application code enforces sensitive rules, how failures are debugged, and how evaluation and monitoring help keep behavior reliable over time.
For the exam itself, seven Exam Lens lessons practice the decisions of a section the way the exam asks them, three Key Distinctions lessons sort the pairs of ideas that wrong answers are built on, and one lesson gives a routine for reading an exam question. Eleven exam-style questions are worked option by option along the way. A five-question quiz closes each of the first ten sections, and the course ends with two full practice exams of 53 questions each and a four-page cheat sheet.
The exam is open to people at companies in the Claude Partner Network. The same skills matter to every developer who builds on Claude, so the course works as a map of the field whether or not you sit the exam.
By the end of the course, you will understand how the CCDV-F exam topics connect to real Claude development. You will also have a practical mental model for building Claude-powered applications that are testable, maintainable, secure, cost-aware, and closer to production-ready.
The course has about 11 hours of video over 11 sections: 81 concept lessons and 24 hands-on practice lessons recorded in VS Code. It follows the official Exam Guide v1.0 (July 2026) and is kept current as the exam and Claude change.