Quiz on accessing Claude with the API
Time: 5–10 minutes
Self-assessment covering everything in the API fundamentals module. Rate your current confidence on each topic — the result is a map of what to revisit before heading into prompt evaluation.
1.I can trace a Claude request through the five-step lifecycle from client to API and back.
2.I can explain why API keys must never live in client-side code.
3.I can construct a valid messages array and make a single-turn API request.
4.I can manage multi-turn conversation history using append-and-replay helpers.
5.I can write a system prompt that reliably shapes Claude's persona and behaviour.
6.I can pick an appropriate temperature value for a given task.
7.I can implement streaming responses using client.messages.stream() and retrieve the final message.
8.I can extract clean, parseable JSON from Claude using the prefill + stop_sequence pattern.
You now have a solid foundation in Claude's API fundamentals and are ready to learn systematic prompt evaluation.