Home › Studies › AI-103 › Plan & Manage › Quotas, Monitoring & Security

Quotas, Monitoring & Security

TPM and PTU quota · 429 and retry · cost tracking · Foundry observability · AI Search health · Entra ID, RBAC, private endpoints

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

Quota, rate limits and capacity

Deployment typeBillingLatency SLAFits
StandardPay per tokenNoneDevelopment, testing and production with variable or unpredictable traffic
Priority processingPay per token (priority tier rate)Defined latency target per modelLatency-sensitive production without a long-term commitment
Provisioned (PTU)Per PTU per hour (or Azure reservations)Defined latency target per modelMission-critical, high-scale production needing guaranteed throughput and consistent latency
BatchPay per token (discounted batch rate)NoneBulk work with no latency requirement; results return asynchronously

Handling throttling (429)

  1. Watch the rate-limit response headers (for example x-ratelimit-remaining-requests and x-ratelimit-remaining-tokens) to slow down before you hit a 429.
  2. On a 429, wait for retry-after-ms if it is present. Otherwise use exponential backoff with random jitter and a maximum number of retries.
  3. Don't resend in a tight loop: unsuccessful requests still count toward the per-minute limit.
  4. Reduce prompt size and cap generated output to what the scenario needs, because actual tokens count toward TPM.

The Python openai client retries 429 and transient errors with exponential backoff by default (two retries). Raise it with max_retries. If you wrap calls in a custom retry library such as tenacity, set max_retries=0 on the client so retries don't multiply.

Cost footprint

Monitoring quality, safety and drift

Foundry observability has three parts: evaluation, monitoring and tracing. Monitoring is integrated with Azure Monitor Application Insights.

Post-production signalWhat it does
Operational metricsRegular measurement of key agent metrics: token consumption, latency, error rates
Continuous evaluationQuality and safety evaluation of production traffic at a sampled rate
Scheduled evaluationScheduled evaluation with test datasets to detect system drift
Scheduled red teamingScheduled adversarial testing for safety and security vulnerabilities
Azure Monitor alertsNotifications when outputs fail quality thresholds or produce harmful content

AI Search ingestion and relevance health

Indexer statusMeaning
In ProgressActive run; Docs Succeeded grows as it goes. High-volume indexers can look In Progress all the time
SuccessRun finished. Can succeed even when some documents fail, if errors stay below Max failed items
FailedErrors exceeded Max failed items and indexing stops
ResetChange tracking was reset; the indexer re-runs in full over all documents

Identity, roles and private networking

RoleUse it for
Foundry Agent ConsumerOnly interact with agent endpoints; least privilege for agent consumers
Foundry UserBuild and test agents in a project (data actions plus reader access)
Foundry Project ManagerEverything Foundry User does, publish agents, and assign Foundry User to others
Foundry Account OwnerManage accounts, projects and models and assign roles; cannot build in projects
Foundry OwnerFull access to manage and build; highly privileged

Foundry roles were renamed from Azure AI User, Azure AI Owner, Azure AI Account Owner and Azure AI Project Manager. Don't use the Azure AI Developer role for Foundry work: it is scoped to Azure Machine Learning workspaces and Foundry hubs.

CLI and PowerShell

TaskAzure CLIPowerShell
Retry 429s with the Python client (SDK exponential backoff)client = AzureOpenAI( azure_endpoint="https://<your-resource>.openai.azure.com/", api_key="<your-api-key>", api_version="2024-10-21", max_retries=5 # up to 5 retries with automatic exponential backoff )-
Disable local (key) authentication on a Foundry Tools resource-Set-AzCognitiveServicesAccount -ResourceGroupName "my-resource-group" -Name "my-resource-name" -DisableLocalAuth $true
Check whether local authentication is disabled (DisableLocalAuth property)-Get-AzCognitiveServicesAccount

Exam Tips

Tick each tip once you can answer it without looking.

“A deployment returns HTTP 429 although you set a large max output tokens” → Rate limits count actual input and generated tokens, not the configured maximum; the TPM or RPM limit was reached. Back off and retry.. Trap: A higher max output token value doesn't reserve tokens against TPM.

“429 appears when traffic arrives in bursts, though the per-minute average is under RPM” → RPM is evaluated over short windows (typically 1 or 10 seconds); spread requests evenly.. Trap: Assuming a one-minute total is all that matters.

“Retry on 429 with a custom library (tenacity)” → Set max_retries=0 on the client so retries don't multiply; use retry-after-ms or exponential backoff with jitter and a retry cap.. Trap: Tight retry loops: failed requests still count toward the limit.

“Quota page can't show usage for a developer” → Cognitive Services Usages Reader at the subscription scope.. Trap: A resource group or resource-level assignment doesn't authorize the subscription-scoped Usages API.

“Predictable high-volume chat, needs guaranteed throughput and low latency” → Provisioned deployment (PTU).. Trap: Standard is for variable traffic; Batch has no latency target.

“PTU deployment fails though you have PTU quota” → Quota isn't capacity: capacity in the region was insufficient. Check capacity or another region.. Trap: Requesting more quota doesn't create capacity.

“Estimate Foundry cost before building” → Azure pricing calculator, adding each service (Foundry has no single page).. Trap: Looking for a Foundry page in the calculator.

“Compare estimate to actual cost after a test workload” → Cost Management: group by Resource, then Meter, at the same scope as the estimate.. Trap: Reconciling minute by minute; use trend windows and a full billing cycle.

“Detect quality drift in a deployed agent over time” → Scheduled evaluation with test datasets; continuous evaluation samples live traffic; alerts notify on failures.. Trap: Red team scans are scheduled adversarial tests, a different signal.

“Agent Monitoring Dashboard shows no data” → Connect an Application Insights resource to the project.. Trap: Dashboard data isn't stored in the Foundry project itself.

“Indexer shows Success but some documents are missing” → Success is allowed while errors stay below Max failed items; open the run's errors and warnings.. Trap: Failed means errors exceeded Max failed items and indexing stopped.

“Search queries get 503 under load; indexing returns 207” → 503 is throttling; 207 means some items failed. Add replicas for queries, partitions for indexing.. Trap: Adding partitions to fix query throttling.

“Production app calls a model with a key stored in code” → Switch to Microsoft Entra ID (managed identity); disable local auth with the policy and test for HTTP 401.. Trap: Assuming disabling keys is instant.

“Users only need to call an agent endpoint” → Foundry Agent Consumer.. Trap: Foundry User also allows building in the project.

“Foundry resource must be reachable only from your network” → Private endpoint in the VNet's region, approved, with DNS resolving to the private IP; PNA disabled.. Trap: Only private endpoints in an Approved state can send traffic.

“Search indexer must read Blob Storage without keys” → Managed identity for the search service with a role on the storage account.. Trap: Connection strings with account keys.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Foundry Setup & DeploymentsResponsible AI & Agent Governance →