Skip to content

01 — Quiz: runtime lifecycle

Pick an answer. The quiz checks it and shows the explanation.

Part 1

#

1. Put these steps in order:

  1. result added to context
  2. PreToolUse hook runs
  3. model requests a tool
  4. host loads CLAUDE.md
  5. model writes the final answer
  6. MCP client sends tools/call
#

2. Model, host, or MCP server? Who does each of these?

  1. decides to run npm test
  2. runs it
  3. calls the GitHub REST API
  4. enforces a deny rule
  5. turns the tool request into JSON-RPC
#

3. True or false: "Every time Claude uses a GitHub MCP tool, the server first sends the full tool list."

#

4. You connected a GitHub MCP server with 80 tools, but they take up almost no context. Why? What happens when one tool is needed?

#

5. How do Read config.yaml and a GitHub MCP call differ?

#

6. You have a deny rule Bash(git push --force:*). Claude reasons: "the user wants it fixed, force-push the branch." What happens?

#

7. Your MCP server moves from stdio to HTTP. What changes? What stays?

#

8. npm start fails with "PAYMENTS_DB_URL is not set". Then Claude calls a GitHub tool instead of answering. Why?

#

9. You said "never touch prod" in chat. After auto-compaction, Claude seems to forget it. Why, and what fixes it?

#

10. The nightly backup job fails. Claude reads backup.tf, uses an AWS MCP tool, runs aws s3 ls, then answers. Which description of who runs each step, which controls apply, and where the results go is right?

Part 2 — Retest

#

1. The GitHub server connected at start. Claude calls its tools 4 times. The tools didn't change. How many tools/list requests happen during those 4 calls?

#

2. Tool search is on. Only list_buckets' name is in context. What happens first?

#

3. You ran claude mcp add --transport stdio db -- npx -y @bytebase/dbhub --dsn .... Who connects to PostgreSQL?

#

4. A built-in Read on a 400-line file. Does the result use context?

#

5. You read a file 20 minutes ago. No compaction since. Is it still in context?

Quiz Progress

0 / 0 questions answered (0%)

0 correct