D7: Secrets, API Keys & Identity Management
Claude Certified Developer – Foundations exam practice questions · 10 flashcards
Question
Where should API keys be stored?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Secrets, API Keys & Identity Management practice questions and answers
- Where should API keys be stored?In environment variables or a secrets manager, never in code or repos.
- Why never call the Claude API directly from a browser or mobile app?The API key would be exposed; route calls through your backend.
- Why use separate keys per environment?Limits blast radius and allows independent rotation and monitoring.
- What is key rotation?Periodically replacing keys, and immediately if exposed.
- What should you do if a key leaks?Revoke it immediately, issue a new one, and review usage logs.
- How do you prevent Claude Code from reading secrets?Deny permission rules for .env and secret files.
- What is access approval?Requiring an authorized person to approve granting access or high-risk actions.
- What is access level verification?Confirming the identity has the right role/permission before allowing an action.
- Why monitor authorized access?To detect misuse, anomalies or compromised credentials even when access is technically allowed.
- Why use short-lived credentials for tools where possible?They expire quickly, limiting damage if stolen.