Skip to course content
Free FastAPI backend course

FastAPI for AI Backend Development

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…

2. Returning 200 with an error in the body…

3. Money should be typed as…

4. A POST that creates a resource needs…

5. The generated documentation cannot express…

---

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.