Practice for the Claude Certified Architect Foundations exam with 15 exam-style practice questions, instant answer reveals, and concise explanations of every correct answer. Topics include: You are integrating Claude Code into your Continuous Integration/Continuous Deployment (CI/CD) pipeline. The system runs. Follow @CertPunch and visit certpunch.com for more certification practice exams and study content.
Prefer hands-on? Take this round as an interactive practice test — answer every question, get instant feedback, and see your score: Start the Claude Certified Architect Foundations practice test →
What you will practice
- You are integrating Claude Code into your Continuous Integration/Continuous Deployment (CI/CD) pipeline. The…
- You are integrating Claude Code into your Continuous Integration/Continuous Deployment (CI/CD) pipeline. The…
- You are building a customer support resolution agent using the Claude Agent SDK. The agent handles high-ambig…
- You are integrating Claude Code into your Continuous Integration/Continuous Deployment (CI/CD) pipeline. The…
- You are building a multi-agent research system using the Claude Agent SDK. A coordinator agent delegates to s…
- You are using Claude Code to accelerate software development. Your team uses it for code generation, refactor…
Answers and explanations
Tap a question to expand the answer and the exam reasoning. Try to commit to your own pick first.
Q1. You are integrating Claude Code into your Continuous Integration/Continuous Deployment (CI/CD) pipeline. The system runs automated code reviews, generates test cases, and provides feedback on pull requests. You need to design prompts that…
Answer: D. Add a PreToolUse command hook that denies approval commands when the passing artifact is absent.
A PreToolUse command hook runs before execution, providing deterministic control to block forbidden actions. PostToolUse fires too late, while relying on system prompts leaves enforcement up to unpredictable model compliance.
Q2. You are integrating Claude Code into your Continuous Integration/Continuous Deployment (CI/CD) pipeline. The system runs automated code reviews, generates test cases, and provides feedback on pull requests. You need to design prompts that…
Answer: D. Change the tool wrapper to return compact, review-specific tool_result payloads with only the fields needed.
Tool results consume context window space, so shaping tool output before returning it preserves room for critical evidence. Prompt caching reduces latency, but cached tokens still count against the context limit.
Q3. You are building a customer support resolution agent using the Claude Agent SDK. The agent handles high-ambiguity requests like returns, billing disputes, and account issues. It has access to your backend systems through custom Model Conte…
Answer: D. Add an application-side guard that blocks over-threshold process_refund calls and routes the case to escalate_to_human.
The application boundary is the correct place to enforce non-negotiable business rules for client-executed tools. Validating the outgoing tool call before execution deterministically prevents high-impact errors that relying on prompts cannot guarantee.
Q4. You are integrating Claude Code into your Continuous Integration/Continuous Deployment (CI/CD) pipeline. The system runs automated code reviews, generates test cases, and provides feedback on pull requests. You need to design prompts that…
Answer: B. Sample high-confidence findings within strata for change type, component, language, and finding category, then label errors and novel patterns separately.
Stratified sampling preserves visibility into high-confidence outputs while focusing limited reviewer capacity on meaningful production segments. Sampling by change type or language helps reveal hidden pockets of poor performance that aggregate metrics miss.
Q5. You are building a multi-agent research system using the Claude Agent SDK. A coordinator agent delegates to specialized subagents: one searches the web, one analyzes documents, one synthesizes findings, and one generates reports. The syste…
Answer: B. Return categorized tool_result errors with retryability, cause, attempted input, and suggested recovery.
Claude reasons directly from tool result content. Categorized errors allow the coordinator to distinguish retryable failures from valid empty results. Masking failures as empty sets removes the context needed for proper recovery.
Q6. You are using Claude Code to accelerate software development. Your team uses it for code generation, refactoring, debugging, and documentation. You need to integrate it into your development workflow with custom slash commands, CLAUDE.md c…
Answer: C. Add three representative before-and-after examples, including edge cases, in a clearly tagged examples section.
Concrete input and output examples teach the desired transformation boundary much better than prose alone. Plan mode outlines strategy but does not enforce the specific formatting rules needed for consistent transformations.
Q7. You are building a customer support resolution agent using the Claude Agent SDK. The agent handles high-ambiguity requests like returns, billing disputes, and account issues. It has access to your backend systems through custom Model Conte…
Answer: D. Run Claude Code with the -p or –print flag and provide the review prompt non-interactively.
The print flag processes a prompt and exits without waiting for terminal input. Configuration files tell Claude what to know but do not prevent unattended pipelines from hanging when the system requests human interaction.
Q8. You are integrating Claude Code into your Continuous Integration/Continuous Deployment (CI/CD) pipeline. The system runs automated code reviews, generates test cases, and provides feedback on pull requests. You need to design prompts that…
Answer: D. Move topic-specific guidance into Markdown files under .claude/rules/ and add paths frontmatter for rules that apply only to matching files.
Path scoped rules load only when Claude works with matching file patterns preventing deployment noise during test reviews. Imports still expand into context at launch so they organize files for humans without reducing actual context size.
Q9. You are using Claude Code to accelerate software development. Your team uses it for code generation, refactoring, debugging, and documentation. You need to integrate it into your development workflow with custom slash commands, CLAUDE.md c…
Answer: D. Define a programmatic agents map keyed by subagent type, set each description and prompt, and give the documentation subagent a read-only tools allowlist.
The AgentDefinition uses the map key for routing and the tools field as a strict allowlist. Top level settings auto approve tools but do not restrict the subagent from using others making it unsafe for read only tasks.
Q10. You are integrating Claude Code into your Continuous Integration/Continuous Deployment (CI/CD) pipeline. The system runs automated code reviews, generates test cases, and provides feedback on pull requests. You need to design prompts that…
Answer: C. Pass each prior subagent's complete structured findings directly into the review synthesis subagent's prompt.
Subagents are isolated instances so you must pass required facts into their prompts explicitly. Inferring details from parent history fails because the synthesis agent lacks access to that earlier conversation context.
Q11. You are integrating Claude Code into your Continuous Integration/Continuous Deployment (CI/CD) pipeline. The system runs automated code reviews, generates test cases, and provides feedback on pull requests. You need to design prompts that…
Answer: B. Include the changed files, key diff excerpts, failing test output, and review criteria in the subagent prompt.
Non fork subagents start with isolated context so the delegation prompt must carry the necessary facts. Compacting the parent conversation does not pass context down and the agent cannot read transcripts automatically.
Q12. You are building a multi-agent research system using the Claude Agent SDK. A coordinator agent delegates to specialized subagents: one searches the web, one analyzes documents, one synthesizes findings, and one generates reports. The syste…
Answer: D. Run an explicit prompt chain with source-level review passes, then run a separate integration pass over the reviewed findings.
Prompt chaining creates inspectable intermediate artifacts for logging and dedicated conflict reconciliation. Relying on confidence scores or duplicating overloaded reviewers does not solve the underlying context rot degrading accuracy.
Q13. You are integrating Claude Code into your Continuous Integration/Continuous Deployment (CI/CD) pipeline. The system runs automated code reviews, generates test cases, and provides feedback on pull requests. You need to design prompts that…
Answer: A. Return an insufficient information result and require a supporting quote before posting the finding.
Returning an insufficient information result correctly handles the missing supporting quote, as the provided source lacks transcript policy. Retrying the prompt cannot create policy evidence that was never supplied in the context.
Q14. You are building a customer support resolution agent using the Claude Agent SDK. The agent handles high-ambiguity requests like returns, billing disputes, and account issues. It has access to your backend systems through custom Model Conte…
Answer: A. Return tool results for both calls, flag lookup_order with is_error: true, and continue from partial context.
Flagging the timed-out tool with is_error true preserves the tool result protocol while giving Claude accurate context to escalate or retry. Masking the timeout as an empty list tricks the model into assuming no orders exist, causing flawed logic.
Q15. You are building a multi-agent research system using the Claude Agent SDK. A coordinator agent delegates to specialized subagents: one searches the web, one analyzes documents, one synthesizes findings, and one generates reports. The syste…
Answer: A. Run independent reviewer agents on section-specific claim-source bundles, then run a separate integration pass for conflicts and coverage gaps.
Running independent reviewer agents on section-specific bundles reduces self-reinforcing context errors. Relying on a single integration pass by the synthesis agent misses cross-section contradictions because it lacks independent verification.
More Claude Certified Architect Foundations drills and other practice exams are on @CertPunch. New rounds drop every few days at certpunch.com.