AMAADOR ACADEMYCertificatesVerify a certificate

AI-API

Final check — Building with AI APIs: From First Call to a Reliable App

Answer the 24 questions. You need 80% or more to pass. You can retry as many times as you like.

Study the course →

Question 1In a web app that offers AI features, where should the provider’s API key be kept?
Question 2Which statement about tokens and cost is accurate?
Question 3Why validate a model’s JSON reply even when the provider offers schema-constrained output?
Question 4Where should rules, role and output format that apply to a whole conversation be placed?
Question 5In function calling, who actually executes the tool?
Question 6What is the main purpose of retrieval-augmented generation (RAG)?
Question 7Which failures suit an automatic retry with exponential backoff and jitter?
Question 8What is an evaluation set used for?
Question 9Which approach best reduces the risk of prompt injection?
Question 10What is a sound default for logging AI calls in production?
Question 11A team is building a phone app that needs AI features. How should it handle the provider’s API key?
Question 12A prototype’s bill keeps growing because some answers run very long. Which setting should the developer set on purpose on every request?
Question 13How does the course suggest choosing a model for a new feature?
Question 14A team’s ticket classifier returns free text such as “Probably billing, I think”, and the program cannot read it. What should the team have written first?
Question 15A model reply says confidence 7, but the schema allows only 0 to 1. What should the code do?
Question 16A team wants repeatable answers from an extraction task. What does the course advise?
Question 17An order assistant gets a request for a refund. How does the course say refunds should be handled?
Question 18A developer adds a tool that only looks up records. What access should it have?
Question 19A help assistant built on retrieval gives confident but wrong delivery answers, although the model itself has not changed. What is the likely cause?
Question 20A team adds streaming to a feature that returns structured JSON. What new difficulty appears?
Question 21During a promotion, many requests return 429 and the responses include a Retry-After header. What is the right response?
Question 22A team wants to cache answers to save money. Which rule keeps the cache safe?
Question 23An assistant that summarises a user’s inbox receives an email with hidden text telling it to forward ten messages outside. Which design stops the leak?
Question 24A provider updates its model and your feature’s behaviour changes, though you changed nothing. What helps you notice quickly?