Skip to content

AI-300 · Domain 4: Implement generative AI quality assurance and observability · 14% of the exam

Task 4.2: Implement observability for generative AI applications and agents

Continuous monitoring in Foundry, latency, throughput and response times, token consumption and cost metrics, and logging, tracing and debugging for production troubleshooting.

Study it

Sample questions

Try each one before opening the answer. Every option is explained, with the Microsoft documentation page that proves it.

Question 1 · choose 1

Prompt agents in a Foundry project show no traces. A Foundry User engineer can't turn tracing on, and the on-call team must be able to read traces for 180 days. What should happen?

  1. AA Foundry Owner connects Application Insights; on-call gets Log Analytics Reader and 180-day retention
  2. BThe engineer turns on tracing in the agent's settings, and Foundry keeps every trace for 180 days by default
  3. CA Foundry Owner connects Application Insights, and the on-call team reads traces with its Foundry User role
  4. DTracing is always on; the team only needs to give the on-call engineers the Foundry Owner role
Show the answer and why
  • AA Foundry Owner connects Application Insights; on-call gets Log Analytics Reader and 180-day retention

    Correct

    Tracing starts when an owner connects Application Insights, and retention follows that resource.

  • BThe engineer turns on tracing in the agent's settings, and Foundry keeps every trace for 180 days by default

    Incorrect

    Only an owner role enables tracing, and Foundry doesn't keep traces itself.

  • CA Foundry Owner connects Application Insights, and the on-call team reads traces with its Foundry User role

    Incorrect

    Reading traces needs read permission on the connected Application Insights resource.

  • DTracing is always on; the team only needs to give the on-call engineers the Foundry Owner role

    Incorrect

    Tracing is off by default, and Owner isn't the role for reading telemetry.

Tracing is off by default; no trace data is collected until a Foundry Account Owner or Foundry Owner enables it by connecting an Application Insights resource. Viewing traces needs read permission on the connected Application Insights or Log Analytics workspace, such as Log Analytics Reader, and Application Insights and Log Analytics configuration governs retention.

Question 2 · choose 1

An operator can see request metrics for model deployments but finds no request logs to query in Azure Monitor logs. What must be configured?

  1. AThe Monitoring Reader role for the operator on the Foundry resource
  2. BTracing turned on in each Foundry project, with Application Insights connected
  3. CA metric alert rule on the Model Requests metric for each deployment
  4. DA diagnostic setting sending RequestResponse logs to a Log Analytics workspace
Show the answer and why
  • AThe Monitoring Reader role for the operator on the Foundry resource

    Incorrect

    Monitoring Reader lets the operator see metrics; logs still need routing.

  • BTracing turned on in each Foundry project, with Application Insights connected

    Incorrect

    Traces are separate from the resource's request logs.

  • CA metric alert rule on the Model Requests metric for each deployment

    Incorrect

    Alerts don't create log data.

  • DA diagnostic setting sending RequestResponse logs to a Log Analytics workspace

    Correct

    Logs are generated but kept only when a diagnostic setting routes them.

Azure Monitor collects metrics automatically, but resource logs must be routed to Azure Monitor logs by a diagnostic setting before you can save or query them. Categories include RequestResponse for inference requests and Audit for administrative operations. Viewing metrics needs at least Monitoring Reader; configuring diagnostic settings needs Monitoring Contributor or equivalent.

Question 3 · choose 1

Clients see many 429 responses during a spike, but the Model Availability Rate metric stays near 100%. Why?

  1. AThe metric averages over 24 hours, which hides short spikes of 429s
  2. BThe metric counts only server errors (500 and above) against availability
  3. CThe metric excludes provisioned deployments from its availability figures
  4. DThe metric refreshes only once per day, after the spike has passed
Show the answer and why
  • AThe metric averages over 24 hours, which hides short spikes of 429s

    Incorrect

    The metric's definition, not its window, explains it.

  • BThe metric counts only server errors (500 and above) against availability

    Correct

    Throttling 429s aren't server errors in this calculation.

  • CThe metric excludes provisioned deployments from its availability figures

    Incorrect

    It covers model deployments generally.

  • DThe metric refreshes only once per day, after the spike has passed

    Incorrect

    Metrics are near real time.

Model Availability Rate is calculated as (Total Calls - Server Errors) / Total Calls, where server errors are HTTP responses of 500 or higher, so 429 throttling responses don't reduce it.

Question 4 · choose 2

A team analyzes Foundry spending in Cost Management. Which two statements are true? (Choose TWO.)

  1. APer-project Foundry cost attribution for chargeback is generally available
  2. BGrouping cost analysis by Meter shows which model series drive the costs
  3. CHTTP 200 status codes alone decide whether a request is billed
  4. DMeters for most models from partners and community appear under the resource group, not the Foundry resource
  5. ECost records appear the same minute the request is served
Show the answer and why
  • APer-project Foundry cost attribution for chargeback is generally available

    Incorrect

    Project-level cost attribution is in preview.

  • BGrouping cost analysis by Meter shows which model series drive the costs

    Correct

    Meters break costs down by model input and output usage.

  • CHTTP 200 status codes alone decide whether a request is billed

    Incorrect

    Billing depends on billable processing and meter behavior.

  • DMeters for most models from partners and community appear under the resource group, not the Foundry resource

    Correct

    Scope cost analysis to the resource group to see them.

  • ECost records appear the same minute the request is served

    Incorrect

    Cost and usage records can appear with delay.

In Cost Management, scope cost analysis to the resource group and set Group by to Meter to see costs per model series; Azure OpenAI and Microsoft models appear as meters under each Foundry resource, while some partner and community models appear under the resource group. HTTP status codes alone don't determine billing, records can arrive with delay, and project-level cost attribution is in preview.

Question 5 · choose 1

Which Foundry Models metric counts the calls made to the model inference API over a period of time?

  1. AModel Availability Rate
  2. BModel Requests
  3. CTime To Response
  4. DProvisioned Utilization
Show the answer and why
  • AModel Availability Rate

    Incorrect

    It's a percentage, not a count of calls.

  • BModel Requests

    Correct

    It's the number of calls to the inference API.

  • CTime To Response

    Incorrect

    It measures latency, not a count of calls.

  • DProvisioned Utilization

    Incorrect

    It doesn't count calls to the inference API.

In the Models - Requests category, Model Requests is the number of calls made to the model inference API over a period of time, aggregated as a total count.

Question 6 · choose 1

Which tools does the monitoring article suggest for richer dashboards than the metrics explorer?

  1. AWorkbooks, Grafana and Power BI
  2. BOnly the Foundry portal Home page
  3. CAzure Resource Graph only
  4. DExcel exports of the activity log
Show the answer and why
  • AWorkbooks, Grafana and Power BI

    Correct

    These combine metrics, logs and other sources.

  • BOnly the Foundry portal Home page

    Incorrect

    The article lists other visualization tools.

  • CAzure Resource Graph only

    Incorrect

    Resource Graph queries resources, not metrics dashboards.

  • DExcel exports of the activity log

    Incorrect

    That isn't the documented option.

Beyond metrics explorer, Workbooks provide customizable reports with text, metrics and log queries, Grafana builds operational dashboards across sources, and Power BI can import log data from Azure Monitor for interactive visualizations.

Question 7 · choose 1

About how long after a billing event does model cost data appear in Azure portal cost analysis?

  1. AImmediately
  2. BAbout one week
  3. CAbout five hours
  4. DAt the end of the month only
Show the answer and why
  • AImmediately

    Incorrect

    Cost data lags the billing event.

  • BAbout one week

    Incorrect

    The delay is much shorter.

  • CAbout five hours

    Correct

    There's roughly a five-hour delay.

  • DAt the end of the month only

    Incorrect

    Data appears continuously with a delay.

Cost data in Azure portal cost analysis shows actual post-consumption charges for model consumption, with approximately a five-hour delay from the billing event.

Question 8 · choose 1

Where in the Foundry portal can a team see an overview of common usage figures for one deployed model?

  1. AThe project's Home page in the Foundry portal
  2. BThe chat history in the model's playground
  3. CThe Quota page for the resource's deployments
  4. DThe deployment's Metrics tab in Models + endpoints
Show the answer and why
  • AThe project's Home page in the Foundry portal

    Incorrect

    Home doesn't show per-deployment metrics.

  • BThe chat history in the model's playground

    Incorrect

    The playground is for testing prompts.

  • CThe Quota page for the resource's deployments

    Incorrect

    Quota shows allocations, not metrics.

  • DThe deployment's Metrics tab in Models + endpoints

    Correct

    The Metrics tab gives an overview of common metrics.

In the Foundry portal, under My assets select Models + endpoints, select the deployment and open its Metrics tab for an overview of common metrics; a link leads to Azure Cost Management for cost details.

Practice domain 4 →Practice all domains →