top of page
Search

Claude Code Certification Prep: Articles 29–32 Combined

  • Writer: Mark Kendall
    Mark Kendall
  • 1 day ago
  • 9 min read



Claude Code Certification Prep: Articles 29–32 Combined




What You Need to Know About Hooks, Subagents, MCP, and Structured Outputs



At this point in the certification journey, we are moving past the basic vocabulary.


We are now in the architecture layer.


This is where Claude Code stops being just a coding assistant and starts becoming part of a serious engineering operating model.


These four areas matter a lot:


Hooks.

Subagents.

MCP.

Structured outputs.


Each one solves a different problem.


And for the Claude Certified Architect exam, the key is not just knowing what they are.


The key is knowing when to use each one.


That is the architect mindset.


A developer may ask:


“How do I make Claude do this task?”


An architect asks:


“What is the right pattern for this workflow, what risk does it introduce, what context does Claude need, and how do we prove the result is reliable?”


That is the difference.


So let’s combine these four chapters into one clean certification view.





1. Hooks: The Enforcement Layer



Hooks are where Claude Code becomes part of a controlled engineering process.


A hook is an automation point that runs at a specific moment in the Claude Code workflow. It may run a command, call an endpoint, perform validation, check files, produce evidence, or stop a workflow when something is wrong.


The simple way to remember hooks is this:


Hooks enforce the rules.


They are useful when something must happen every time.


For example:


After Claude changes code, run tests.


Before Claude edits protected files, check permissions.


After implementation, generate a summary.


Before delivery, run security checks.


When a risky command appears, block or warn.


That is why hooks matter.


They turn AI-assisted development from “Claude wrote some code” into “Claude participated in a governed workflow.”


For Intent-Driven Engineering, hooks fit beautifully.


The pattern is:


Intent → Claude Code → Hooks → Validation → Evidence → Delivery Decision


The intent file explains what should happen.


Claude Code performs the work.


Hooks verify that the work follows the rules.


Evidence tells us whether the work is ready.


That is an architectural pattern, not just a tool trick.


For the exam, do not describe hooks as “scripts.”


That is too small.


Describe hooks as lifecycle control points used for quality, security, governance, automation, and evidence generation.


The big test question is usually:


“Do we need automatic enforcement at a repeatable point in the workflow?”


If yes, hooks may be the right answer.


But do not overuse them.


If the problem is unclear instructions, fix the prompt or CLAUDE.md.


If the problem is project guidance, improve the repo context.


If the problem is repeatable enforcement, then use hooks.


That distinction matters.





2. Subagents: The Specialization Layer



Subagents are not just “more AI.”


They are separation of concerns.


That is the real architectural idea.


A subagent is a specialized agent that handles a specific type of work. Instead of asking one Claude session to do everything, you divide the workflow into focused roles.


For example:


A repo analysis agent studies the codebase.


A frontend agent updates the UI.


A backend agent handles APIs.


A test agent writes and validates tests.


A security agent reviews sensitive areas.


A documentation agent updates the README, runbook, or architecture notes.


A PR evidence agent prepares the final delivery summary.


This is not about making the workflow fancy.


It is about making the workflow cleaner.


One giant agent doing everything can lose focus. It may carry too much context, mix responsibilities, forget constraints, or blur implementation and review.


Subagents reduce that risk by giving each agent a clearer job.


The simple way to remember subagents is this:


Subagents specialize the work.


They are useful when the task has distinct responsibilities, separate phases, different tools, or different review needs.


A strong pattern is:


Builder Agent → Reviewer Agent → Evidence Agent


The builder makes the change.


The reviewer checks the change.


The evidence agent summarizes what passed, what changed, and what still needs attention.


That is exactly how an architect should think.


Subagents are also important for context management.


Good agent design is good context design.


The test agent does not need every business strategy note.


The documentation agent does not need every shell command.


The security agent does not need to rewrite the UI.


The frontend agent does not need every database migration detail unless the task requires it.


Focused context creates better output.


For the exam, remember:


Use subagents when you need specialized responsibility, cleaner context, tool scoping, independent review, or repeatable roles.


Do not use subagents just because they sound advanced.


If the task is simple, one Claude Code session may be enough.


The architect chooses the simplest reliable design.





3. MCP: The Enterprise Connection Layer



MCP stands for Model Context Protocol.


In plain English, MCP is how Claude connects to external tools and data sources.


This is where Claude Code moves beyond the local repo.


Most enterprise work does not live in one place.


Code may be in GitHub or GitLab.


Stories may be in Jira.


Architecture notes may be in Confluence.


Documents may be in SharePoint.


Designs may be in Figma.


Logs may be in CloudWatch, Splunk, Datadog, OpenSearch, or another observability platform.


Business rules may be buried across several systems.


If Claude only sees the repo, it is missing the full enterprise context.


MCP helps solve that.


The simple way to remember MCP is this:


MCP connects Claude to enterprise context.


That does not mean Claude should connect to everything.


That is bad architecture.


The architect has to decide:


What systems does Claude need?


Should access be read-only or write-capable?


What permissions are appropriate?


What data is sensitive?


What actions require approval?


What should be logged?


What happens if the MCP server fails?


What context is useful, and what context is just noise?


That is the architecture work.


MCP is powerful because it gives Claude access to the real systems surrounding the work. But it also introduces risk.


A read-only MCP server is safer than a write-enabled one.


A scoped MCP server is safer than a broad one.


A logged MCP interaction is safer than an invisible one.


A tool requiring approval is safer than one that acts automatically on sensitive systems.


For Intent-Driven Engineering, MCP is one of the biggest pieces.


The pattern becomes:


Intent → Repo Context → MCP Enterprise Context → Claude Code Execution → Validation → Evidence


The intent says what we want.


The repo gives code context.


MCP brings in enterprise context.


Claude performs the work.


Hooks validate it.


Evidence supports the delivery decision.


For the exam, the key is knowing when MCP is the correct solution.


If Claude needs access to Jira, Confluence, GitHub, logs, databases, internal APIs, or design systems, think MCP.


If Claude needs automatic validation, think hooks.


If Claude needs a specialized reviewer, think subagents.


If Claude needs a reusable capability, think skills.


Keep those boundaries clear.





4. Structured Outputs: The Reliability Layer



Structured outputs matter when Claude’s response needs to be consumed by another system.


A human can read a paragraph and understand it.


A system usually needs structure.


That is why JSON, schemas, required fields, consistent formats, and validation matter.


The simple way to remember structured outputs is this:


Structured outputs make Claude’s results machine-usable.


If Claude is only explaining something to a person, natural language may be fine.


But if Claude is feeding an API, creating a test report, generating a risk score, producing a CI/CD artifact, updating a dashboard, or triggering another workflow, then the output needs structure.


For example, instead of asking:


“Tell me if this PR is ready.”


An architect may require output like:

{

  "ready_for_pr": true,

  "tests_passed": true,

  "security_risk": "low",

  "changed_files": [],

  "required_human_review": false,

  "summary": ""

}

That structure can be validated.


It can be stored.


It can be passed to another tool.


It can be compared over time.


It can drive a decision.


That is why structured outputs are important for enterprise AI.


They turn Claude from a conversational assistant into part of a system workflow.


For Intent-Driven Engineering, structured outputs are critical because they support evidence.


A good delivery decision should not be based only on a paragraph that says, “Looks good.”


It should be based on evidence such as:


Tests passed.


Build passed.


Risk level.


Files changed.


Acceptance criteria covered.


Open issues.


Human review required.


Confidence score.


That evidence should be structured whenever another system needs to use it.


For the exam, remember:


Use structured outputs when Claude’s response must be validated, parsed, stored, compared, routed, or consumed by another system.


Do not use structured output for every conversation.


Use it when the workflow needs reliability.





The Big Comparison



This is the most important part.


These four concepts are easy to confuse.


Here is the clean version:


Hooks enforce.


Subagents specialize.


MCP connects.


Structured outputs standardize.


That is the memory line.


Hooks are for lifecycle enforcement.


Subagents are for role-based execution.


MCP is for external tools and enterprise context.


Structured outputs are for reliable machine-readable results.


When you see a certification scenario, ask what problem is being described.


If the problem is repeatable validation, use hooks.


If the problem is too many responsibilities in one workflow, use subagents.


If the problem is missing enterprise data or tool access, use MCP.


If the problem is inconsistent output or downstream automation, use structured outputs.


That is the architect answer.





How These Work Together



The real power is not in using one of these features alone.


The real power is combining them into a clean operating model.


A mature Claude Code workflow might look like this:


1. Intent file defines the objective.


The team writes down the feature, constraints, acceptance criteria, risk boundaries, and expected evidence.


2. Claude Code reads the repo.


Claude understands the local project structure, files, conventions, and implementation patterns.


3. MCP brings in enterprise context.


Claude retrieves the Jira story, architecture notes, design references, API docs, or observability data.


4. Subagents divide the work.


A frontend agent updates UI.


A backend agent handles service logic.


A test agent validates behavior.


A security agent reviews sensitive changes.


A documentation agent updates the supporting material.


5. Hooks enforce gates.


Tests run.


Security checks run.


Protected file rules are enforced.


Builds are validated.


Evidence is generated.


6. Structured outputs report the result.


Claude produces a machine-readable summary showing what changed, what passed, what failed, what risks remain, and whether the work is ready for PR.


That is not just Claude Code.


That is an AI engineering system.


That is the level you want to think at for the architect exam.





The Certification Mindset



The exam is not only asking:


“Do you know the tool?”


It is asking:


“Can you choose the right architecture?”


That means you need to avoid two traps.


The first trap is under-architecture.


That is when you use Claude Code casually for serious enterprise work without enough validation, governance, or evidence.


The second trap is over-architecture.


That is when you use subagents, MCP, hooks, and complex workflows for a task that only needed a clear prompt and a simple test run.


The best answer is usually the simplest reliable architecture.


That is the phrase to remember:


Simplest reliable architecture.


Not the simplest possible answer.


Not the most advanced possible answer.


The simplest design that handles the risk, context, workflow, and evidence requirements.


That is how architects think.





Practical Exam Scenarios



Here are the kinds of situations to watch for.



Scenario 1: Claude keeps forgetting project rules.



Best answer may be CLAUDE.md or better repo guidance.


Do not jump straight to hooks or subagents.



Scenario 2: Claude must run tests after every change.



This is a hook problem.


You need repeatable lifecycle enforcement.



Scenario 3: Claude needs to read Jira stories and Confluence architecture notes.



This is an MCP problem.


Claude needs external enterprise context.



Scenario 4: A large workflow needs implementation, testing, security review, and documentation.



This may be a subagent problem.


Separate the responsibilities.



Scenario 5: Claude’s output needs to feed a dashboard or deployment decision.



This is a structured output problem.


You need schema-valid, machine-readable evidence.



Scenario 6: Claude is making changes but nobody knows whether the result is safe.



This is probably a combination problem.


Use hooks for validation, structured outputs for evidence, and possibly subagents for independent review.





The One-Page Memory Sheet



For certification review, remember this:


Hooks

Use when the workflow needs automatic enforcement, validation, or evidence at a lifecycle point.


Subagents

Use when the workflow needs specialized roles, cleaner context, independent review, or separation of concerns.


MCP

Use when Claude needs governed access to external systems, tools, enterprise data, or operational context.


Structured Outputs

Use when Claude’s result must be parsed, validated, stored, routed, compared, or consumed by another system.


And remember the master line:


Hooks enforce.

Subagents specialize.

MCP connects.

Structured outputs standardize.


That is the whole four-chapter block.





Final Certification Takeaway



These four concepts are not random Claude Code features.


They are architecture controls.


Hooks give you enforcement.


Subagents give you specialization.


MCP gives you enterprise connection.


Structured outputs give you reliable system-to-system communication.


Together, they turn Claude Code from a helpful assistant into a disciplined engineering workflow.


And that is exactly what matters for the Claude Certified Architect exam.


The architect does not just ask Claude to produce code.


The architect designs the system around Claude so the work is contextual, controlled, validated, and ready for delivery.


That is the level we need to be thinking at now.

:::


This combined version is much better for the sprint. I’d treat this as the Article 29–32 certification bridge article, then next we can keep going with 33–36 combined in the same style.

 
 
 

Recent Posts

See All

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
Post: Blog2_Post

Subscribe Form

Thanks for submitting!

©2020 by LearnTeachMaster DevOps. Proudly created with Wix.com

bottom of page