forked from rohitg00/ai-engineering-from-scratch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquiz.json
More file actions
66 lines (66 loc) · 1.82 KB
/
Copy pathquiz.json
File metadata and controls
66 lines (66 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"lesson": "15-prompt-caching",
"title": "Prompt Caching and Context Caching",
"questions": [
{
"stage": "post",
"question": "What discount does Anthropic apply to cache reads versus the base input rate?",
"options": [
"25% off",
"50% off",
"75% off",
"90% off"
],
"correct": 3,
"explanation": ""
},
{
"stage": "post",
"question": "Why must dynamic timestamps go below the cache breakpoint, not above it?",
"options": [
"Caches only hit when the prefix is byte-identical; a changing timestamp breaks the match for everything after it",
"Timestamps confuse the tokenizer",
"They cost more tokens than static text",
"Anthropic explicitly rejects timestamps in cached blocks"
],
"correct": 0,
"explanation": ""
},
{
"stage": "post",
"question": "OpenAI's prompt caching is configured how?",
"options": [
"Explicit cache_control markers",
"A CachedContent API you create and reference",
"Automatic prefix matching with no configuration",
"A system-level flag you toggle per project"
],
"correct": 2,
"explanation": ""
},
{
"stage": "post",
"question": "For Anthropic, what write premium does the 1-hour extended TTL cost vs the 5-minute default?",
"options": [
"Same",
"2x the write premium (50% over baseline)",
"4x the write premium",
"No write premium"
],
"correct": 1,
"explanation": ""
},
{
"stage": "post",
"question": "How many reuses are needed to break even on Anthropic's 25% write premium?",
"options": [
"1",
"2",
"5",
"10"
],
"correct": 1,
"explanation": ""
}
]
}