Claude Architect · 강의

모의시험 전체 풀이

풀이 과정과 해설이 포함된 문제로 연습합니다

레슨 4/413개 단계

모의시험 전체 풀이은(는) CoddyKit의 무료 Claude Architect 강의입니다. 이것은 4개 중 4번째 강의입니다. 아래에서 전체 강의를 무료로 읽을 수 있으며, 내장 코드 에디터와 24/7 AI 튜터와 함께 브라우저에서 직접 실습할 수 있습니다. 이 강의는 Claude Architect 학습 경로의 일부이며, 진행 상황이 웹과 CoddyKit 앱에 동기화됩니다. Claude Architect 강의에는 총 4개의 강의가 포함되어 있습니다.

이 강의의 일부는 아직 번역되지 않았으며 영어로 표시됩니다.

How This Walkthrough Works

You are about to work a full mock exam end to end. The Claude Certified Architect exam is scenario-based: each question gives you a realistic architecture situation and four options, exactly one correct. You see 4 of the 8 reference scenarios, scored on a 100-1000 scale with 720 to pass.

  • No penalty for guessing — never leave a blank. An eliminated-then-guessed answer beats an empty one.
  • Weight your prep by domain: D1 Agent Architecture 27%, D3 Claude Code 20%, D4 Prompt Engineering 20%, D2 Tool/MCP 18%, D5 Context & Reliability 15%.

For each question below we will read the stem, eliminate distractors, and justify the key. The skill you are building is distractor elimination, not recall.

The Elimination Method

Most wrong answers on this exam are named anti-patterns. If you memorize the anti-pattern list, you can often eliminate two or three options before you even reason about the correct one.

Top distractors to flag on sight:

  • Parsing text for words like "done" to end an agent loop.
  • Using an iteration cap as the primary stop mechanism.
  • Enforcing critical business rules with prompts alone.
  • Same-session self-review and single-pass multi-file review.
  • Escalating on sentiment or model self-rated confidence.
  • Requiring schema fields that may be absent.

Read every option, mentally tag each against this list, then choose what remains.

Q1 — The Agentic Loop Stop Condition

Scenario 1, Customer Support Agent. A support agent calls tools in a loop. The team asks how the loop should decide it is finished.

  • A) Scan the assistant's text for "resolved" or "done".
  • B) Stop after a fixed cap of 10 iterations.
  • C) Inspect stop_reason; continue while it is tool_use, terminate on end_turn.
  • D) Stop as soon as any tool returns a result.

Work it: A is text-parsing (anti-pattern). B treats the cap as the primary stop (caps are only a safety net). D stops too early — one tool result rarely completes the task. The loop is model-driven via stop_reason.

Answer: C.

while True:
    resp = client.messages.create(
        model="claude-sonnet-4-5",
        max_tokens=1024,
        system=SYSTEM,
        messages=messages,
        tools=TOOLS,
    )
    if resp.stop_reason == "end_turn":
        break  # model decided it is done
    if resp.stop_reason == "tool_use":
        messages.append({"role": "assistant", "content": resp.content})
        messages.append({"role": "user", "content": run_tools(resp)})
    # iteration cap (not shown) is only a safety net

Q1 — Why stop_reason Wins

The exam tests this repeatedly because it is the foundation of agentic design. Decisions are model-driven; hard code is reserved for guarantees. The model emits a structured stop_reason on every turn — that is the contract, so consume it instead of inventing a heuristic over free text.

  • end_turn — task complete, exit the loop.
  • tool_use — run the requested tools, append results to history, request again.
  • max_tokens — output was truncated; raise the budget or continue.
  • stop_sequence — a configured stop string was hit.

The iteration cap is your seatbelt against a runaway loop. It protects you; it does not decide for you.

Q2 — Enforcing a Refund Policy

Scenario 1 continued. Policy: refunds over $500 must be blocked. Where does this rule belong?

  • A) In the system prompt: "Never issue a refund above $500."
  • B) In a PostToolUse / outgoing-call hook that deterministically blocks the action.
  • C) Ask the model to rate its own confidence before refunding.
  • D) A few-shot example showing a denied $600 refund.

A and D are prompt-only — about 90% reliable, which is unacceptable when failure has financial or legal consequences. C is confidence-based gating (anti-pattern). A hook is 100% deterministic enforcement.

Answer: B.

# Outgoing-call hook: deterministic, runs before the action executes
def on_process_refund(call):
    amount = call.input["amount_usd"]
    if amount > 500:
        return {"block": True,
                "reason": "Refund > $500 requires human approval"}
    return {"block": False}

Q2 — Hooks vs Prompts, The Rule

Internalize the decision boundary the exam loves:

  • Hooks = 100% deterministic. Use them when failure has financial, legal, or safety cost.
  • Prompts = ~90% probabilistic. Fine for tone, formatting, soft guidance.

A related correct pattern is the programmatic precondition: block process_refund until get_customer has returned a verified identity. That is a deterministic guarantee prompt guidance cannot give you. Whenever an option says "instruct the model to always..." for a hard rule, suspect a distractor.

Q3 — Multi-Agent Context Passing

Scenario 3, Multi-Agent Research System. A hub-and-spoke coordinator delegates subtasks to subagents. A subagent keeps producing off-topic results. Most likely cause?

  • A) Subagents do not inherit the coordinator's conversation history, and the prompt omitted the needed context.
  • B) The Task calls ran in parallel instead of sequentially.
  • C) The coordinator forgot to parse the subagent's text for "complete".
  • D) The subagent had only 4 tools instead of 18.

B is fine — parallel Task calls are a feature. C is a text-parsing anti-pattern. D is backwards (4-5 tools is optimal; 18+ degrades selection). The defining fact: subagents start with no history; pass all context explicitly.

Answer: A.

coordinator_tools = ["Task"]  # must include Task to delegate

# Each subagent prompt must carry ALL context it needs:
subagent_prompt = f"""Research question: {question}
Known facts so far: {case_facts}
Return: findings with source URL, doc name, quote, date."""
# Multiple Task calls in one response run in parallel.

Q3 — Coordinator Responsibilities

The coordinator in hub-and-spoke owns five jobs: decompose, delegate, aggregate, route, and handle errors. Two exam-favorite details ride along with this scenario:

  • Define each subagent with least privilege — name, description, system_prompt, allowed_tools scoped to its role.
  • On a subagent failure, return partial results plus a coverage annotation ("source X unreachable") rather than aborting the whole workflow or silently dropping the gap.

Research answers also carry provenance: claim → source URL, doc name, quote, publication date. Conflicting stats get annotated, not arbitrarily resolved — dates often explain the conflict.

Q4 — CI/CD Review Configuration

Scenario 5, Claude Code for CI/CD. You add an automated code review to a pre-merge pipeline. Which setup is correct?

  • A) Run interactively and pipe the TUI output to a log.
  • B) Use -p with --output-format json in a fresh isolated session, separate from any generation context.
  • C) Submit the diff to the Message Batches API to save 50%.
  • D) Reuse the same session that generated the code so it has full context.

A is not non-interactive. C is wrong — Batch has no latency SLA and is for non-blocking jobs, never a pre-merge gate. D is same-session self-review (the author won't challenge its own reasoning). Independent isolated review wins.

Answer: B.

# Non-interactive review in a pipeline, parseable output, isolated session
claude -p "Review this diff. Flag a comment ONLY when it contradicts the code." \
  --output-format json \
  < pr.diff > review.json

# Re-run: include prior results, report only new/unfixed issues

Q4 — Batch API: Know the Boundary

The Batch API distractor appears across multiple scenarios, so lock the rule down. Message Batches are 50% cheaper with up to a 24-hour window, no latency SLA, and no multi-turn tool calling.

  • Right use: overnight audits, bulk report generation, non-blocking enrichment. Correlate with custom_id; re-submit only the failures.
  • Wrong use: anything blocking or time-sensitive — pre-merge checks, live support replies, an interactive agent turn.

To cut false positives in CI review, give explicit criteria ("flag only when a comment contradicts the code") instead of vague guidance like "be more precise."

Q5 — Structured Extraction Schema

Scenario 6, Structured Data Extraction. You extract invoice data via a tool-use JSON Schema. An invoice sometimes has no purchase_order field. How do you model it?

  • A) Mark purchase_order required so the model never skips it.
  • B) Leave it optional; require only fields that are always present.
  • C) Force tool_choice: "auto" so the model can answer in prose.
  • D) Drop schema validation and retry on any parse failure.

A forces the model to fabricate an absent field — the classic schema trap. C doesn't guarantee structured output. The correct move: never require a possibly-absent field, and use tool_choice: "any" to guarantee a tool call.

Answer: B.

tools = [{
    "name": "extract_invoice",
    "input_schema": {
        "type": "object",
        "properties": {
            "invoice_id": {"type": "string"},
            "total": {"type": "number"},
            "purchase_order": {"type": "string"}  # may be absent
        },
        "required": ["invoice_id", "total"]  # NOT purchase_order
    }
}]
# tool_choice={"type": "any"} guarantees a structured tool call

Q12 — Exam-Style Question

Put it together. Read the stem, eliminate against the anti-pattern list, then commit.

Recap — The Decision Reflexes

You just worked five scenario questions. Carry these reflexes into the real exam:

  • Loop control: drive on stop_reason (end_turn), never text-parsing; caps are a safety net only.
  • Hard rules: hooks and programmatic preconditions for financial/legal/safety; prompts only for soft guidance.
  • Multi-agent: subagents inherit no history — pass context explicitly; return partial results with coverage annotations.
  • CI/CD: -p --output-format json, isolated/independent review; Batch API only for non-blocking jobs.
  • Schemas: never require a possibly-absent field; tool_choice: "any" guarantees structure; retry-with-feedback fixes format/arithmetic, not absent data.

Answer every question, eliminate the named anti-patterns first, and 720 is well within reach. Go pass it.

무료로 시작

AI 튜터와 함께 Python을(를) 배우세요 — 무료

브라우저에서 실제 코드를 작성하고 실행하며, 24/7 AI 튜터로부터 즉각적인 도움을 받고, 웹이나 앱에서 중단한 부분부터 계속 학습하세요.

코스
26
레슨
104

자주 묻는 질문

“모의시험 전체 풀이” 강의는 무료인가요?

네 — “모의시험 전체 풀이” 전체 내용을 이 웹사이트에서 무료로 읽을 수 있습니다. 인터랙티브하게 실습하려면(내장 코드 에디터와 24/7 AI 튜터), CoddyKit PRO로 업그레이드하면 Claude Architect 강의 전체를 잠금 해제할 수 있습니다. Claude Architect 강의에는 총 4개의 강의가 포함되어 있습니다.

“모의시험 전체 풀이”에서 뭘 배우나요?

풀이 과정과 해설이 포함된 문제로 연습합니다 브라우저에서 직접 실행하는 실습 코드로 Claude Architect을(를) 배우며, 24/7 AI 튜터가 강의를 진행하면서 질문에 답변해줍니다.

Claude Architect을(를) 시작하는 데 경험이 필요한가요?

사전 경험은 필요하지 않습니다. CoddyKit의 Claude Architect은(는) 초급자부터 고급 학습자까지를 위해 구성되어 있으므로, 여기서 시작하거나 처음부터 시작할 수 있으며 자신의 속도대로 진행할 수 있습니다. 이것은 4개 중 4번째 강의입니다.

“모의시험 전체 풀이” 강의는 얼마나 걸리나요?

대부분의 CoddyKit 강의는 약 5~10분이 소요됩니다. 각 강의는 간결하고 인터랙티브하여 꾸준한 진행이 가능하며, 웹과 앱에서 중단한 부분부터 바로 시작할 수 있습니다.

이 Claude Architect 강의에서 코드를 작성하고 실행할 수 있나요?

네. 모든 Claude Architect 강의에는 내장 코드 에디터가 포함되어 있으므로, 브라우저에서 바로 실제 코드를 작성하고 실행한 후 즉시 AI 피드백을 받을 수 있습니다 — 로컬 설정이 필요 없습니다.

이 강의의 모든 강의

  1. 시나리오 문제 채점 방식
  2. 시나리오 프롬프트 읽기
  3. 오답 제거하기
  4. 모의시험 전체 풀이
← Claude Architect(으)로 돌아가기