AI-200 Exam Questions & Answers
Developing AI Cloud Solutions on Azure • Microsoft
100% money-back guarantee
Sample AI-200 Questions
Practice with real exam-style questions, each with the verified correct answer and explanation.
Your team is building an event-driven AI processing pipeline that triggers Azure Functions when messages arrive in an Azure Service Bus topic. Some messages fail processing and should be retried automatically. Other messages contain malformed data and repeatedly fail, blocking the pipeline.
How should you handle these scenarios?
The correct answer is to use the Service Bus dead-letter queue for messages that repeatedly fail and configure the Function binding retry policy for transient errors. The dead-letter queue automatically captures messages that exceed max delivery attempts, preventing them from blocking the pipeline. The Function binding retry policy handles transient failures gracefully.
Ignoring the dead-letter queue risks messages remaining in the subscription indefinitely. Moving messages to blob storage is a manual workaround that does not provide the automatic handling that dead-letter queues offer. Polling instead of event-driven processing defeats the purpose of using Service Bus and increases latency and cost.
You are developing a microservices-based application that uses Azure Container Apps. The application consists of several containerized services that handle tasks, such as processing orders, managing inventory, and generating reports. You deploy a new revision of the processing orders app.
Processing orders must be triggered by a web request and must always be available based on incoming web requests
You need to validate that the replica is ready to handle incoming requests.
What should you implement?
To validate that a replica is ready to handle incoming web requests:
Implement a liveness probe (or readiness probe) - Azure Container Apps supports health checks that monitor container readiness:
- Readiness Probe - Checks if the container is ready to accept traffic. Returns to load balancer whether the replica should receive traffic
- Liveness Probe - Checks if the container is still running and healthy
For a web request trigger that must always be available, configure a readiness probe on an HTTP endpoint that returns 200 OK only when the service is fully initialized and ready. This ensures Container Apps only routes incoming requests to healthy replicas, maintaining availability for the orders processing service.
An ACA app processes messages from an Azure Storage queue.
The app must scale automatically based on messages in a specific Azure Storage queue by using a Kubernetes Event-driven Autoscaler (KEDA) custom scale rule You need to configure the required scale rule values.
Which two values should you configure? Each correct answer presents part of the solution Choose two. NOTE: Each correct selection is worth one point.
For KEDA custom scale rules monitoring Azure Storage queue messages:
- queueLength - This parameter defines the target queue depth per replica. For example, if set to 10, KEDA scales to maintain an average of 10 messages per replica. If 100 messages exist, it scales to 10 replicas
- activationThreshold - This parameter defines the queue depth at which scaling begins. For example, if set to 5, the service doesn't scale up until the queue reaches 5 messages. This prevents unnecessary scaling for small message volumes
These two values together control when scaling activates and how aggressively it scales, allowing fine-tuned autoscaling behavior based on queue depth.
You are developing an Al-powered API that retrieves connection strings and API keys from Azure Key Vault.
You must configure a solution that provides the following security functionality:
* The API must authenticate to Key Vault without storing credentials in any application configuration files
* The identity used by tie API must have only the minimum permissions necessary to lead secrets.
* The configuration must minimize the blast radius if an identity or credent al is compromised.
You need to implement a secure access strategy for the API.
Which two actions should you perform? Each correct answer presents part of the solution. Choose two.
NOTE: Each correct selection is worth one point.
To implement secure access to Azure Key Vault for the API:
- Use Managed Identity for authentication - Managed Identity (system-assigned or user-assigned) eliminates the need to store credentials in configuration files. The identity is managed by Azure and credentials are issued automatically
- Create identities with minimal permissions - Use role-based access control (RBAC) to grant only the specific permission needed: 'Get' access to secrets. This minimizes blast radius if the identity is compromised
This combination ensures the API authenticates without stored credentials, operates with least-privilege access, and limits exposure in case of compromise. Avoid using connection strings or shared keys stored in configuration.
You optimize an Al inference API that uses Redis caching.
You must reduce the risk of serving outdated data while minimizing cache management overhead. You need to implement the caching strategy that satisfies the requirements. What should you do?
To reduce risk of serving outdated data while minimizing cache management overhead:
Implement time-based expiration (TTL) with Redis - Set an appropriate Time-To-Live on cached entries. This approach:
- Reduces outdated data risk - Entries automatically expire after the TTL period, ensuring stale data isn't served indefinitely
- Minimizes management overhead - No need for manual cache invalidation logic or event-based invalidation. Redis automatically removes expired entries
- Is simple to implement - Use Redis EXPIRE or set EX parameter during SET operations
For an AI inference API, a TTL of 5-15 minutes typically balances freshness with cache hit rates and reduces complexity compared to event-driven invalidation strategies.
Get access to all 142 verified questions with detailed answers.
Unlock All AI-200 Questions