Quiz: Using the Output in a Real Backend Service
Test applied understanding of exposing validated output as an endpoint, routing on results, storing AI output properly, chaining calls, background processing, and caching and idempotency from this chapter.
We'll cover the following...
We'll cover the following...
Technical Quiz
1.
A request body is missing a required field entirely. What happens when it reaches a FastAPI route expecting that field?
A.
The route function runs normally, treating the missing field as an empty string.
B.
FastAPI rejects the request automatically with a 422 status, and the route function never runs.
C.
The pipeline’s fallback object is returned as if the model call had failed.
D.
The server crashes with an unhandled exception.
1 / 10
...