AI-200 · 25% of the exam
Secure, Monitor, and Troubleshoot Azure Solutions practice questions
10 free Secure, Monitor, and Troubleshoot Azure Solutions questions for the Microsoft Certified: Azure AI Cloud Developer Associate (AI-200) exam, each with the correct answer and an explanation for every option.
What this domain covers
Securing and operating Azure solutions: identity for apps, secrets, monitoring and diagnosing problems.
- Exam weight
- 25%
- On a real exam
- ≈ 13 questions
- In our bank
- 150 questions
Topics that come up most
- Managed identities and Entra app registrations
- Azure Key Vault from code
- Application Insights telemetry
- Azure Monitor logs and alerts
- Diagnosing throttling and failures
How to study it
Default to managed identities and Key Vault in every scenario; answers that store keys in config are almost always wrong.
Sample Secure, Monitor, and Troubleshoot Azure Solutions questions
Try each one before opening the answer. Original questions written to the official exam objectives.
Question 1
A team's AI inference service runs in Azure Container Apps with a custom KEDA-based scale rule. Replica counts rise and fall in a pattern the team doesn't understand. They want to review past scale decisions and the scaler events behind them. The environment sends logs to a Log Analytics workspace. What should they do?
- AQuery the ContainerAppSystemLogs table for the revision, filtered to entries where EventSource is KEDA
- BOpen the Run history tab of the app's Azure Monitor autoscale setting and review each scale action
- CQuery the ContainerAppConsoleLogs table for the revision to see the scaler's stdout and stderr output
- DChart the Replica count metric in metrics explorer, split by revision, over the affected time range
Show answer and explanation
Answer: A) Query the ContainerAppSystemLogs table for the revision, filtered to entries where EventSource is KEDA
Azure Container Apps scales through KEDA, and KEDA's scale events are recorded in ContainerAppSystemLogs (EventSource == "KEDA"). Query that table to see why each scale-out or scale-in happened. Metrics show only the resulting replica count, and Azure Monitor autoscale history doesn't apply to Container Apps.
- ACorrect. Container Apps uses KEDA for scaling, and the KEDA scale log is in the ContainerAppSystemLogs table. Filtering by revision and EventSource == "KEDA" shows the type, reason, and message for each scaler event over time.
- BIncorrect. Container Apps doesn't use Azure Monitor autoscale settings; its scaling is driven by declarative scale rules implemented with KEDA. So there is no Azure Monitor autoscale run history for these decisions.
- CIncorrect. Console logs contain the stdout and stderr output of your own containers and Dapr sidecars. Platform scaling events come from the service and appear in system logs, not console logs.
- DIncorrect. The Replica count metric shows how many active replicas a revision had over time, so it shows that scaling happened. It doesn't record the scaler events or reasons behind each change, which is what the team needs.
Question 2
An application gets HTTP 429 responses from an Azure OpenAI deployment. The developers want their custom retry logic to wait exactly as long as the service recommends instead of using a fixed delay. Per the Azure OpenAI documentation, which response header should the retry logic read?
- Aretry-after-ms
- Bx-ratelimit-remaining-tokens
- Cx-ratelimit-limit-tokens
- Dx-ratelimit-remaining-requests
Show answer and explanation
Answer: A) retry-after-ms
Azure OpenAI 429 responses include a retry-after-ms header with the recommended wait in milliseconds before retrying. The x-ratelimit-limit-* and x-ratelimit-remaining-* headers report limits and remaining capacity, not a retry delay.
- ACorrect. Azure OpenAI includes retry-after-ms in 429 responses as the recommended wait time, in milliseconds, before retrying. The documentation advises using this value when it's present and falling back to exponential backoff with jitter when it isn't.
- BIncorrect. This header reports how many tokens remain before the rate limit is reached. It helps with proactive throttling but doesn't give a wait time.
- CIncorrect. This header reports the maximum tokens per minute currently allowed for the deployment. It can reveal a temporary rate-limit adjustment but doesn't say how long to wait.
- DIncorrect. This header reports how many requests remain before the request-based limit is reached. It's a count, not a recommended retry delay.
Question 3
A team has used Azure Chaos Studio Experiments (classic) to confirm that their AI application degrades gracefully when only the vector store fails. They now want to check that their fallback logic still works when the vector store and the cache fail at the same time. How should they structure the experiment?
- APut each dependency's fault action in its own branch within the same step, so both faults are injected at the same time
- BPut each dependency's fault action in its own step, so the experiment covers both faults in a single run
- CConfigure Azure Monitor availability tests against both dependency endpoints and review the results
- DRun an Azure Load Testing test that sends peak request volume to the application's front end
Show answer and explanation
Answer: A) Put each dependency's fault action in its own branch within the same step, so both faults are injected at the same time
In Chaos Studio Experiments (classic), steps run one after the other and the branches within a step run at the same time. To test overlapping dependency failures, put each fault in a parallel branch of the same step.
- ACorrect. In Experiments (classic), the branches within a step run at the same time. Putting each fault in a separate branch of one step injects both failures together, which exercises interactions that a single-dependency test never reaches.
- BIncorrect. Steps in an experiment run one after the other, so the two faults would happen in sequence rather than overlapping. That doesn't test the case where both dependencies fail at once.
- CIncorrect. Availability tests check whether endpoints respond, but they don't inject failures. They can't show how the application behaves when both dependencies are down.
- DIncorrect. A load test measures behavior under heavy traffic. It doesn't make the vector store and cache unavailable, so it doesn't validate fallback logic for a compound dependency failure.
Question 4
Developers in a company's branch offices call an Azure OpenAI resource over the internet from on-premises workstations. Security requires that the resource's public endpoint accept requests only from the offices' public egress addresses and reject all other internet traffic. What should be configured?
- ASet networking to selected networks and add the offices' public CIDR blocks as IP rules
- BCreate a private endpoint for the resource and disable public network access
- CAttach a network security group that allows the office ranges on port 443
- DAdd a virtual network rule with a Cognitive Services service endpoint on a subnet
Show answer and explanation
Answer: A) Set networking to selected networks and add the offices' public CIDR blocks as IP rules
To allow only specific public internet sources, set the resource's network default action to deny (Selected Networks and Private Endpoints) and add IP network rules for those public ranges. Private endpoints, NSGs, and virtual network rules solve different problems.
- ACorrect. Switching the resource to Selected Networks and Private Endpoints changes the default action to deny. Adding IP network rules for the offices' public IPv4 addresses or CIDR ranges then lets only those sources reach the public endpoint and blocks general internet traffic.
- BIncorrect. A private endpoint gives private connectivity from clients in a virtual network. Disabling public access blocks the public endpoint completely, so the offices, which connect over the internet, couldn't reach it at all.
- CIncorrect. NSGs filter traffic for subnets and network interfaces inside an Azure virtual network. They don't control inbound access to a PaaS resource's public endpoint.
- DIncorrect. Virtual network rules admit traffic from specific Azure virtual network subnets that use a service endpoint. They don't admit on-premises clients identified by public IP addresses. That's what IP network rules are for.
Question 5
A security team is investigating a possible credential compromise. They need to find out which identity read a specific secret in Azure Key Vault and exactly when. Since the vault was created, a diagnostic setting has been sending its AuditEvent log category to a Log Analytics workspace. What should they examine?
- AThe vault's AuditEvent resource logs in Log Analytics, filtered to SecretGet operations on that secret's URI, using the identity and time fields
- BThe Azure activity log for the key vault, filtered to operations on the vault during the suspected time window
- CThe vault's platform metrics, such as Total service API hits, split by operation over the suspected time window
- DThe secret's version list and attributes, such as each version's created and updated timestamps
Show answer and explanation
Answer: A) The vault's AuditEvent resource logs in Log Analytics, filtered to SecretGet operations on that secret's URI, using the identity and time fields
Only Key Vault resource logs (the AuditEvent category) record which identity read a secret and when. They're collected only after a diagnostic setting routes them somewhere, such as Log Analytics, which the scenario says was already in place.
- ACorrect. Key Vault AuditEvent logs record each data-plane operation (for example, SecretGet) with the time in UTC, the identity from the presented token, the caller IP address, and the request URI. Because the diagnostic setting was already collecting them, the team can query them with KQL.
- BIncorrect. The activity log holds subscription-level events seen from outside the resource, such as creating or updating the vault. It doesn't record individual secret reads.
- CIncorrect. Platform metrics are aggregated numbers for tracking performance and volume. They show how many requests occurred, not which identity read a particular secret.
- DIncorrect. Version attributes show when the secret was created or changed. They don't record who retrieved the secret or when it was read.
Question 6
A company has three Azure Policy definitions for its AI resources: allowed locations, customer-managed keys required, and diagnostic settings that send logs to a Log Analytics workspace. Governance staff want to assign the three as one item, track compliance for them together, and later add more related policies without increasing the number of assignments they manage. What should they create?
- AAn initiative definition (policySet) that contains the three policy definitions, assigned at the required scope
- BThree separate policy assignments at the management group, one for each policy definition
- CParameters added to the allowed-locations definition so it also covers keys and diagnostics
- DA management group that contains every subscription with AI resources
Show answer and explanation
Answer: A) An initiative definition (policySet) that contains the three policy definitions, assigned at the required scope
An Azure Policy initiative (policySet) groups related policy definitions so they can be assigned and tracked as one item. Policies added to it later are covered by the existing assignment.
- ACorrect. An initiative definition groups a set of policy definitions as one item that you assign and evaluate together. Policies added to the initiative later become part of its existing assignments, so the number of assignments doesn't grow.
- BIncorrect. Separate assignments work, but each one has to be managed and tracked on its own, and every new policy would need another assignment. That is the opposite of what the company wants.
- CIncorrect. Parameters make a single definition reusable with different values, such as different allowed locations. They don't merge separate rules for keys and diagnostics into the same definition.
- DIncorrect. A management group organizes subscriptions into a scope that you can assign policies to. It groups resources, not policy definitions, so you would still need separate assignments for each policy.
Question 7
A team protects the Azure Key Vault that stores their AI application's secrets with soft delete and purge protection. A compliance auditor now requires an offline copy of several specific secrets that can later be restored into a secondary key vault. Which approach meets this requirement?
- ABack up each secret individually, for example with az keyvault secret backup, and restore the encrypted blob into a vault in the same subscription and Azure geography
- BRely on soft delete, because deleted secrets stay in a recoverable state inside the vault for the retention period
- CRun a single full-vault backup operation, then restore the resulting file into a vault in any subscription or region
- DDownload each secret's backup blob, decrypt it on premises, and store the plaintext values in an offline HSM
Show answer and explanation
Answer: A) Back up each secret individually, for example with az keyvault secret backup, and restore the encrypted blob into a vault in the same subscription and Azure geography
Soft delete and purge protection only protect against deletion inside the existing vault. When you need an offline copy, back up each object separately. The resulting encrypted blob can only be restored into a vault in the same subscription and Azure geography.
- ACorrect. Key Vault backups are per object (secret, key, or certificate) and download as an encrypted blob. Microsoft lists an offline copy for regulatory or compliance reasons as a valid reason to use backups. The blob can only be restored into a key vault in the same Azure subscription and Azure geography.
- BIncorrect. Soft delete and purge protection guard against accidental or malicious deletion inside the existing vault. They don't create an offline copy that can be stored separately and restored into another vault.
- CIncorrect. Key Vault can't back up an entire vault in one operation; each key, secret, and certificate has to be backed up separately. A restore also has to target a vault in the same subscription and Azure geography, not any subscription or region.
- DIncorrect. The backup blob is encrypted and can't be decrypted outside Azure. You can only get usable data from it by restoring it into a key vault.
Question 8
A team wants code-level visibility into their AI web application's performance. They need to track request latency, exception rates, and failed or slow dependency calls (such as outbound calls to Azure OpenAI) made by the application. Which Azure capability is designed for this?
- AApplication Insights
- BAzure Service Health
- CNetwork Watcher connection monitor
- DAzure Advisor
Show answer and explanation
Answer: A) Application Insights
Application Insights is the APM feature of Azure Monitor. It tracks request latency, exceptions and dependency calls from within an instrumented application, which Service Health, Network Watcher and Advisor do not do.
- ACorrect. Application Insights is Azure Monitor's application performance monitoring (APM) feature. Once the app is instrumented (for example, with the Azure Monitor OpenTelemetry Distro), it collects request, exception and dependency telemetry and shows it in the Performance, Failures and Application map views.
- BIncorrect. Service Health reports Azure platform incidents, planned maintenance and advisories that affect your subscriptions. It does not collect telemetry from your own application code.
- CIncorrect. Connection monitor checks network reachability and latency between endpoints at the network level. It does not record application requests, exceptions or SDK dependency calls from inside the code.
- DIncorrect. Azure Advisor gives best-practice recommendations on cost, security, reliability and performance. It is not a source of live request, exception or dependency telemetry.
Question 9
Before launch, a team deployed a generally available Azure OpenAI model in Microsoft Foundry as a Standard deployment and set its versionUpgradeOption to NoAutoUpgrade. After launch, they treat the configuration as finished and never review it again. What happens when that model version reaches its retirement date?
- AThe deployment stops serving requests, and inference calls to the retired model version return HTTP 410 Gone.
- BThe service upgrades the deployment to the replacement model on retirement day, regardless of the upgrade setting.
- CExisting deployments keep serving inference indefinitely; only new customers are blocked from creating deployments.
- DThe subscription owner can request an extension that keeps the retired version running until the team migrates.
Show answer and explanation
Answer: A) The deployment stops serving requests, and inference calls to the retired model version return HTTP 410 Gone.
A Standard deployment set to NoAutoUpgrade stops working when its model version retires, and inference returns 410 Gone. Model lifecycle changes are one reason a configuration needs regular review after launch, for example by watching Service Health advisories and the Models API.
- ACorrect. With NoAutoUpgrade, the deployment never auto-upgrades and stops working at retirement. Retired models are removed from service, and all inference requests return 410 Gone. The team needed to watch retirement notices and migrate before that date.
- BIncorrect. Automatic upgrade at retirement depends on the upgrade option (for example, OnceCurrentVersionExpired). NoAutoUpgrade explicitly means the deployment never auto-upgrades.
- CIncorrect. That describes the Deprecated stage, which comes before retirement. Once a model is Retired, existing deployments stop working too.
- DIncorrect. Microsoft states that retirement dates can't be extended. Teams have to plan migration using the published retirement schedule and the Models API.
Question 10
A finance team wants to be notified partway through the month if their Azure OpenAI spending trend means they're likely to exceed the monthly budget, before the actual accrued cost reaches it. Which Cost Management configuration meets this requirement?
- AA monthly budget with an alert condition of type Forecasted, set at 100% of the budget amount
- BA monthly budget with an alert condition of type Actual, set at 100% of the budget amount
- CA cost anomaly alert scoped to the subscription that hosts the Azure OpenAI resource
- DA credit alert that fires when a set percentage of the Azure Prepayment balance is used
Show answer and explanation
Answer: A) A monthly budget with an alert condition of type Forecasted, set at 100% of the budget amount
Cost Management budgets support both actual and forecasted alert conditions. A forecasted alert fires when projected spending exceeds the threshold, so the team is warned before actual costs reach the budget.
- ACorrect. Forecasted budget alerts use forecasted cost predictions. They're generated when the projected cost exceeds the threshold, which warns the team that spending is likely to exceed the budget before actual costs get there.
- BIncorrect. Actual-cost budget alerts fire based on cost already accrued. A 100% actual threshold only fires once the budget has already been reached, not when the trend first predicts an overrun.
- CIncorrect. Anomaly alerts notify you when Cost Management detects unusual spending. They don't compare a projected end-of-period total against a budget amount.
- DIncorrect. Credit alerts track how much Azure Prepayment has been consumed, are generated automatically at 90% and 100%, and are available only for Enterprise Agreements. They don't project spending against a monthly budget.
Secure, Monitor, and Troubleshoot Azure Solutions: FAQs
How much of the AI-200 exam is Secure, Monitor, and Troubleshoot Azure Solutions?
Secure, Monitor, and Troubleshoot Azure Solutions is 25% of the AI-200 exam by the official exam guide's weighting, which on a 50-question form works out to roughly 13 questions. The real exam's exact split varies by form.
What does the Secure, Monitor, and Troubleshoot Azure Solutions domain cover?
Securing and operating Azure solutions: identity for apps, secrets, monitoring and diagnosing problems.
How should I study Secure, Monitor, and Troubleshoot Azure Solutions for AI-200?
Default to managed identities and Key Vault in every scenario; answers that store keys in config are almost always wrong.
Where can I practise more Secure, Monitor, and Troubleshoot Azure Solutions questions?
This page has 10 free Secure, Monitor, and Troubleshoot Azure Solutions questions with answers. CertRidge's AI-200 question bank has 150 questions in this domain. Every practice exam result breaks your score down by domain, and Review Mode re-drills the questions you missed.
Get Secure, Monitor, and Troubleshoot Azure Solutions exam-ready
The full AI-200 bank has 150 Secure, Monitor, and Troubleshoot Azure Solutions questions. Timed practice exams match the real exam's length and domain weights, every result shows your score per domain, and Review Mode re-drills the questions you missed.
Not affiliated with Microsoft; questions are original and never copied from the real exam.