API-Key Intake Checklist & Paper Drill
Two parts. Part 1 confirms your setup is clean and safe. Part 2 is ten scenarios that test whether you know the four rules well enough to apply them under pressure. Keep this sheet — Lesson 2.5 reuses the cap and posture lines.
The four rules — a reminder
Part 1 — Intake checklist (10 items)
Part 2 — Paper drill: ten scenarios
For each scenario: was the student’s handling OK or not? If not, which rule did they break? Write one sentence of reasoning.
SCENARIO 01
A student pastes their API key into a Discord support channel to ask why they’re getting an authentication error.
SCENARIO 02
A student creates a .env with their key, then creates a .gitignore that lists .env before any git commit.
SCENARIO 03
A student commits .env to a public GitHub repo, realizes a minute later, and force-pushes to remove the line but does not rotate the key.
SCENARIO 04
A student stores the key in their 1Password vault under an entry called “Anthropic API” and references it by name from a script that reads from 1Password’s CLI.
SCENARIO 05
A student posts a screenshot of their terminal on Twitter to show off a successful API call. The key scrolled off the top of the terminal before the screenshot — it’s not visible in the image.
SCENARIO 06
A student emails a zipped folder containing their project to a teacher. The zip includes .env.
SCENARIO 07
A student hard-codes the key as a Python string at the top of main.py, surrounded by a comment that says “DO NOT SHARE.”
SCENARIO 08
A student notices their .env was copied to a shared family Google Drive folder by accident three days ago. They delete the file from Drive but do not rotate the key.
SCENARIO 09
A student sets a $20 monthly cap, then runs a misconfigured loop that spends $19 in four minutes. The cap stops the run. They stop, audit what went wrong, fix it, and resume under the same cap.
SCENARIO 10
A student rotates their API key once a week out of caution, even though they have no evidence it has leaked.
Scoring yourself
All ten checklist items ticked — you have a clean cloud posture. If any item is blank, finish it before Lesson 2.4. On the scenarios: 8–10 correct is a pass; 6–7 is a caution (re-read the four rules); under 6 says to slow down and go back to the lesson. Answer key for the scenarios: scenarios 2, 4, 9, and 10 are OK (rule: none). Scenarios 1, 3, 5, 6, 7, and 8 all break at least one rule — map each to rule 1, 2, 3, or 4 and defend your call.