Module 03 Knowledge Check
5 questions. Pass mark 4 out of 5. Answer every question before checking the answer key below, then retry after reading the feedback.
1. A GET that changes state…
- A. is acceptable if documented
- B. will be triggered by crawlers and prefetchers
- C. is faster than POST
- D. cannot be cached
2. Returning 200 with an error in the body…
- A. is a valid pattern
- B. makes your failures invisible to every intermediary
- C. simplifies clients
- D. is required by JSON:API
3. Money should be typed as…
- A. float, for arithmetic
- B. Decimal, serialised as a string
- C. int, in cents only
- D. str, always
4. A POST that creates a resource needs…
- A. nothing extra
- B. an idempotency key the client supplies
- C. a longer timeout
- D. a 200 response
5. The generated documentation cannot express…
- A. request shapes
- B. behavioural guarantees such as what you log
- C. status codes
- D. field descriptions
---
Answer Key and Explanations
Check these only after attempting every question.
1. B - will be triggered by crawlers and prefetchers
Safe means it changes nothing, and something will rely on that without asking.
2. B - makes your failures invisible to every intermediary
Proxies, retry libraries and monitoring all treat it as a success.
3. B - Decimal, serialised as a string
A float round trip can change 240.50 into something that is not 240.50.
4. B - an idempotency key the client supplies
Timeouts happen after the server has acted, so the client cannot know whether to retry.
5. B - behavioural guarantees such as what you log
Those have to be written down and tested separately.
Practical Check
Apply this module to your own work: complete the module activity for *HTTP Basics: Routes, Methods, Status Codes and JSON*, then write one sentence naming what your result shows and one naming what it does not.
Strong Answer Pattern
A strong answer names the task, the evidence used, the check performed, and the remaining limitation. It avoids "proved", "guaranteed", or "always" unless the evidence genuinely supports it.
