Question 1
A team wants to enforce rate limits, log every request and response to a table, and track token usage for an LLM endpoint used by several applications. Which capability provides this?
- A cluster policy on the notebooks that call the endpoint
- A Lakeflow job that polls the endpoint every minute
- A Delta Sharing share for each application
- Mosaic AI Gateway configured on the serving endpoint — Correct
Correct answer
Mosaic AI Gateway configured on the serving endpoint
Explanation
AI Gateway adds rate limiting, usage tracking, payload logging (inference tables), guardrails and traffic routing to endpoints.
Question 2
A team wants to use a model from an external provider such as OpenAI or Anthropic, while centrally managing credentials and access in Databricks. What should be configured?
- A notebook that stores the provider's API key in plain text
- A Delta Sharing recipient for the provider
- A Lakehouse Federation connection to the provider's API
- An external model endpoint in Model Serving — Correct
Correct answer
An external model endpoint in Model Serving
Explanation
External models are served through Databricks endpoints, with credentials stored securely and access governed centrally.
Question 3
Which statement about the Foundation Model APIs on Databricks is correct?
- They cannot be called from SQL
- They require downloading model weights to a notebook
- They only support embedding models
- Hosted models behind OpenAI-compatible endpoints — Correct
Correct answer
Hosted models behind OpenAI-compatible endpoints
Explanation
Foundation Model APIs host chat, completion and embedding models accessible via REST, SDKs and ai_query.
Question 4
Which two items should be versioned to reproduce a RAG application's behavior? (Choose TWO.)
- The color of the UI theme
- The browser used for testing
- The prompt and agent code — Correct
- The chunk table version and index configuration — Correct
- The names of the developers' laptops
Correct answer
The prompt and agent code; The chunk table version and index configuration
Explanation
Behavior depends on code, prompts, models and data; all should be versioned.
Question 5
Which approach reduces cost for an LLM application that repeatedly answers identical frequent questions?
- Response caching — Correct
- Disable rate limits
- Use more chunks per request
- Increase max_tokens
Correct answer
Response caching
Explanation
Caching avoids recomputing identical responses.
Question 6
Which approach supports a safe rollout of a new agent version?
- Replace the old version for all users at once and delete it so rollback is impossible
- Route a small share of traffic to the new version and monitor before expanding — Correct
- Deploy it to a separate workspace that users cannot reach
- Release it to all users without evaluation, since production traffic is the best test
Correct answer
Route a small share of traffic to the new version and monitor before expanding
Explanation
Gradual rollout with monitoring limits impact if issues occur.
Question 7
A model serving endpoint should automatically scale down when unused to save cost for an internal pilot with sporadic use. Which setting fits?
- Disabling autoscaling with a fixed large size
- Adding fallbacks
- Provisioned throughput at maximum size
- Scale to zero — Correct
Correct answer
Scale to zero
Explanation
Scale to zero reduces cost for idle endpoints, at the price of cold starts.
Question 8
What does validating an agent before deployment typically include?
- Only checking that the notebook has no syntax errors in its cells
- Running VACUUM on the chunk table
- Loading it and running sample predictions — Correct
- Only checking the model's file size on disk
Correct answer
Loading it and running sample predictions
Explanation
Pre-deployment validation loads the logged model and checks it on representative inputs.
Question 9
Which SQL function sends a prompt to a model serving endpoint from a query, for example to summarize each row's text?
- vector_search
- http_request with format => 'llm'
- ai_similarity
- ai_query — Correct
Correct answer
ai_query
Explanation
ai_query calls a serving endpoint (foundation, external or custom) for each row.
Question 10
Which interface should a custom Python agent implement so that it can be logged with MLflow and deployed with Databricks agent tooling?
- A Spark ML Transformer with a transform method
- A SQL UDF registered in Unity Catalog
- An MLflow interface such as ResponsesAgent — Correct
- A Flask app with a /predict route
Correct answer
An MLflow interface such as ResponsesAgent
Explanation
MLflow agent interfaces define standard request and response schemas compatible with serving, evaluation and the Review App.