Databricks Generative AI Engineer Associate · Section 6 · 12% of the exam
Use AI Gateway (Inference Tables, Usage Tables, and rate limiting) to track an LLM or agent deployed via Agent Framework
One of the objectives of the Databricks Certified Generative AI Engineer Associate exam, in the section “Evaluation and Monitoring”. Here is what it covers, the points to remember and a question to try.
What it covers
Once an agent is live, AI Gateway logs every request to an inference table, records token usage in system tables and enforces rate limits. MLflow traces capture each step, and production scorers (Agent Monitoring) grade sampled traffic. This lesson shows what each feature records, which endpoint types support it, how to query the logs, and how subject-matter-expert (SME) feedback becomes ground truth and better-aligned judges.
Points to remember
agents.deploy()creates a serving endpoint, the Review App, real-time MLflow tracing to the active experiment, an AI Gateway inference table and Beta production monitoring.- Since December 4, 2025,
payload_request_logsandpayload_assessment_logsare no longer populated automatically. Use MLflow 3 traces andmlflow.log_feedback(). - Legacy AI Gateway on agent endpoints supports payload logging only. Rate limits, usage tracking and guardrails go on the LLM endpoints the agent calls.
- Inference table:
<catalog>.<schema>.<prefix>_payloadwithrequest,response,status_code,execution_duration_ms,requester,served_entity_id. Delivery is best effort, usually within 1 hour. Payloads over 1 MiB are logged as null. - Usage tables:
system.serving.endpoint_usage(tokens, requester,usage_context) joined tosystem.serving.served_entitiesonserved_entity_id. Both are Public Preview and account-admin only by default.
Try a question
A developer enables an AI Gateway inference table on a pay-per-token Foundation Model APIs endpoint, sends a test request and immediately queries the _payload table, but finds no new row. What is the most likely explanation?
- ADelivery is best effort, and rows typically appear within an hour
- BInference tables record only requests that returned an error status code
- CThe table must be refreshed with
REFRESH TABLEbefore new rows become visible - DRows are written only after the endpoint has scaled to zero and back
Show the answer
A. For Foundation Model APIs, external models and agents, AI Gateway inference table logging is best effort, and logs are usually available within an hour. It is not real time. For agents deployed with MLflow 3, real-time traces in the MLflow experiment give near-immediate visibility.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Monitoring Live Agents: Inference Tables, AI Gateway, Agent Monitoring and SME Feedback teaches this objective (about 60 minutes), and 11 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.
More in this section
- Select an LLM choice (size and architecture) based on a set of quantitative evaluation metrics
- Select key metrics to monitor for a specific LLM deployment scenario
- Evaluate agent performance using MLflow scoring and tracing
- Use inference logging to assess deployed RAG application performance
- Use Databricks features to control LLM costs
- Use inference tables and Agent Monitoring to track a live LLM endpoint
- Identify evaluation judges that require ground truth
- Use Databricks custom Scorers for evaluating agents and LLMs
- Incorporate SME feedback to improve agent performance