Skip to course content
Free generative AI app course

Generative AI Application Development with Python

Module 06 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 tool's docstring is…

2. A refund ceiling of 500 belongs…

3. An idempotency key should come from…

4. Confirmation before an irreversible action should be…

5. A tool call should be logged…

---

Answer Key and Explanations

Check these only after attempting every question.

1. B - shown to the model and shapes which tool it picks

Write it for the model, and put the guarantee in the code rather than in prose.

2. B - in code, as data, where it can be audited

It is policy rather than a type check, and a schema will happily accept nine thousand.

3. B - the request id and the step name

Arguments cannot distinguish two genuine refunds from two retries of one.

4. B - a required parameter of the function

An instruction produces a control you cannot state a guarantee for and cannot show an auditor.

5. B - after it returns, with the attempt number and outcome

Logged before, a call that timed out after succeeding looks identical to one that never ran.

Practical Check

Apply this module to your own work: complete the module activity for *Tool and Function Calling with External Actions*, 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.