Skip to course content
Free FastAPI backend course

FastAPI for AI Backend Development

Module 13 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. The service should depend on…

2. A real model client with no configuration should…

3. Model output should be…

4. Cost and version information belongs…

5. The budget check should run…

---

Answer Key and Explanations

Check these only after attempting every question.

1. B - an interface the vendor implements

That is what makes offline testing and provider changes cheap.

2. B - fail loudly

A silent fallback means a misconfigured production deployment serves fake predictions.

3. B - validated against a schema first

A confidence of 1.4 otherwise passes straight through and breaks your contract.

4. B - in a separable meta block

Top-level fields become part of the primary contract and cannot be removed later.

5. B - before the call, using an estimate

Checking afterwards means you have already spent it.

Practical Check

Apply this module to your own work: complete the module activity for *AI-Ready API Endpoints with Mock Model Services*, 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.