Claude Certified Architect — Professional · Free practice question 11 of 12
Vault credentials in Managed Agents
An agent running on Claude Managed Agents at Selwood Tech must call a third-party API with a secret key. Which approach keeps the secret out of the agent's sandbox?
- A.Ask the user to paste the key into the session chat at the start of every run.
- B.Store it as a vault credential, which Anthropic substitutes at egress so the sandbox only sees a placeholder.
- C.Write the key into the agent's system prompt so the agent can include it in requests.
- D.Upload the key as a file in the session container so the agent can read it when needed.
Show answer and explanation
Correct answer: B. Store it as a vault credential, which Anthropic substitutes at egress so the sandbox only sees a placeholder.
Why: Anthropic's Managed Agents documentation describes vault credentials that are stored by Anthropic and substituted at egress, so the sandbox holds only a placeholder (unless a service echoes the secret back). Prompts, container files and chat messages all put the secret where the model and logs can see it.
More free Claude Certified Architect — Professional questions
- Adaptive thinking on current models
- Key batch results by custom_id
- Mid-conversation system messages keep the cache
- Reuse uploaded files by ID
- Prioritize use cases by value and feasibility
- Adversarial and integration testing
- Watch tail latency, not averages
- Read-only roles behind MCP servers
- Plan mode for unfamiliar code
- Minimize sensitive data sent to the model
- Pick a light model for high-volume moderation