{
"type": "quiz",
"passThreshold": 0.7,
"questions": [
{
"id": "q1",
"text": "You accidentally push your Anthropic API key to a public GitHub repository. What should you do FIRST?",
"points": 10,
"options": [
{"id": "a", "text": "Delete the file containing the key and push a new commit"},
{"id": "b", "text": "Make the repository private immediately"},
{"id": "c", "text": "Revoke the key immediately in the Anthropic dashboard and generate a new one"},
{"id": "d", "text": "Contact GitHub support to remove the commit from history"}
],
"correctAnswers": ["c"]
},
{
"id": "q2",
"text": "What is the key structural difference between how Anthropic and OpenAI handle system prompts?",
"points": 10,
"options": [
{"id": "a", "text": "Anthropic does not support system prompts at all"},
{"id": "b", "text": "Anthropic passes the system prompt as a separate top-level parameter, while OpenAI includes it as a message with role 'system' in the messages array"},
{"id": "c", "text": "OpenAI requires system prompts while Anthropic makes them optional"},
{"id": "d", "text": "Both handle system prompts identically"}
],
"correctAnswers": ["b"]
},
{
"id": "q3",
"text": "In the Anthropic Messages API, what parameter is requi
This lesson is part of Building with AI APIs — a paid course (NZ$39.00). Enrol to unlock the full lesson, audio, and completion tracking.
New to Lalapanzi.ai? We have a growing library of free courses — no sign-in required to start learning.