AI-Assisted Coding · Module 2 practice

Verify, then move on.

Questions and scenarios on strict prompting, the data contract, endpoint status codes, transition rules and the Break Test. Each answer points back to the page it comes from.

Decide what you would do

The assistant that hasn’t read your code

You open Cursor Chat on your Module 1 repository and ask it to generate the data model. It confidently describes a project with a database and a src/ folder you don’t have.

What should you do first?

Knowledge check

Check what stuck.

Choose the strongest answer from the supplied Module 2 material.

0/18 answered
01Why does Module 2 move the AI assistant from the browser into the editor?
02What is the gate before any code is generated in Module 2?
03How should inline completions be used, according to the notes?
04Why must TaskCreate and TaskUpdate not accept id, created_at or updated_at?
05A generated title validator checks for an empty string but doesn’t strip first. Which verify_a.py check is most likely to fail?
06verify_a.py prints a FAIL line about an extra field being accepted. What is the right next prompt?
07Why does Part 2.2 build one endpoint per prompt?
08What does the vague-versus-strict POST experiment show?
09GET /tasks?status=Done finds no matching tasks. What should it return?
10Which response is correct for a successful DELETE /tasks/{task_id}?
11A generated route calls storage.find_one(task_id). What is wrong?
12Why does the status-transition rule belong in the backend?
13A generated validator accepts any status that is a valid TaskStatus value. What is the core problem?
14The six-test matrix returns 200, 200, 422, 200, 422, 422. Which check is off, and what is a likely cause?
15In the generated tests, the missing-title test sends {"title": " "}. What is wrong?
16What is the purpose of the Break Test?
17You comment out validate_status_transition and every test still passes. What should you do?
18Which reflection log best meets the module’s expectations?