Try it yourself
AI-200 Practice Labs
A safe, simulated Azure and Cloud Shell in your browser. Build and push images, roll out revisions, query Cosmos DB, search vectors in PostgreSQL and Redis, queue work in Service Bus and query logs with KQL.
- ✅ No Azure account
- ✅ No credit card
- ✅ Nothing to install
- ✅ Zero cost, zero risk
Azure Cloud Shell (practice)
learner@Azure:~$ az acr build -r contosoacr -t ragapi:1.0.0 .
Run ID: ca1 was successful after 41s
learner@Azure:~$ az containerapp revision list -n ragapi -g rg-dev -o table
ragapi--v1 Active 80% ragapi--v2 Active 20%
learner@Azure:~$ ▌
Guided labs
Lab 1 · Intermediate · ⏱ 10 min · ⌨️ Cloud Shell
Build images with Azure Container Registry
Your chat API needs an image before it can run anywhere. Build it in Azure without Docker on your laptop, look at what landed in the registry, then set up a task that rebuilds on every commit and every base-image patch.
Lab 2 · Intermediate · ⏱ 10 min · ⌨️ Cloud Shell
Run a container on App Service
Host the chat UI image on App Service. The first try fails twice, for two very common reasons: the app can't pull from your private registry, and it pings the wrong port. Fix both and read the log that proves it.
Lab 3 · Intermediate · ⏱ 12 min · ⌨️ Cloud Shell
Container Apps: revisions and traffic
Ship a new version of an API without a big-bang release. Create a container app, switch to multiple revisions, send 20% of users to the new one and check the logs from both sides: Cloud Shell and KQL.
Lab 4 · Intermediate · ⏱ 10 min · ⌨️ Cloud Shell
Scale a worker on queue length (KEDA)
An order worker should cost nothing when the queue is empty and fan out when orders pile up. Wire a Container Apps scale rule to a Service Bus queue, flood the queue and watch replicas go from zero to ten and back.
Lab 5 · Intermediate · ⏱ 14 min · ⌨️ Cloud Shell
AKS: deploy, break and fix
Deploy a small API to Kubernetes with manifests, watch it heal itself, then hit the two failures every developer meets: an image that doesn't exist and a container that crashes on start. Use describe, logs and rollout to fix them.
Lab 6 · Intermediate · ⏱ 12 min · ⌨️ Cloud Shell
Cosmos DB: partition keys, RUs and consistency
Every Cosmos DB call has a price in request units. Create an orders container, read data three ways from Python and compare the bill, then change consistency and indexing and watch the numbers move.
Lab 7 · Intermediate · ⏱ 12 min · ⌨️ Cloud Shell
Cosmos DB vector search with the change feed
Products arrive without embeddings. Let the change feed notice each new or edited product, write its embedding, and then answer shopper questions with VectorDistance over a DiskANN index.
Lab 8 · Intermediate · ⏱ 14 min · ⌨️ Cloud Shell
PostgreSQL + pgvector for RAG
Build the retrieval half of a RAG app on PostgreSQL. Connect with psql, get past the extension allow-list, load 5,000 chunks for three tenants, then make similarity search fast with HNSW and safe with a tenant filter.
Lab 9 · Intermediate · ⏱ 12 min · ⌨️ Cloud Shell
Azure Managed Redis: cache and vectors
Make a slow product lookup fast with the cache-aside pattern, watch keys expire, then turn the same cache into a vector store for support articles with RediSearch.
Lab 10 · Intermediate · ⏱ 12 min · ⌨️ Cloud Shell
Service Bus: queues, topics and dead letters
Send orders through a queue, find out what happens to a message your code can't read, then fan orders out to a topic where one subscription only wants the big ones.
Lab 11 · Intermediate · ⏱ 10 min · ⌨️ Cloud Shell
Event Grid: filters, retries and dead letters
Upload events go to a custom topic. One subscriber only cares about photos; another endpoint is flaky. Filter by subject, publish events, and make sure the ones that can't be delivered are kept instead of lost.
Lab 12 · Intermediate · ⏱ 12 min · ⌨️ Cloud Shell
Functions: HTTP in, Service Bus out
Build an order intake API with no server and almost no code: an HTTP-triggered function whose output binding drops each order on a Service Bus queue, connected with a managed identity instead of a connection string.
Lab 13 · Intermediate · ⏱ 14 min · ⌨️ Cloud Shell
Key Vault and App Configuration
Keep the Cosmos DB key out of code and out of app settings. Store it in an RBAC vault, let a web app read it through a Key Vault reference, then load settings, labels and a feature flag from App Configuration.
Lab 14 · Intermediate · ⏱ 14 min · ⌨️ Cloud Shell
Trace and query an AI app
A user says "the chat hung". Instrument the app with OpenTelemetry, find the failed request with KQL, follow its operation_Id to the slow model call, measure dependencies and set an alert so you hear about it first next time.
Free sandbox
No tasks, no rules. Create anything, break anything, and explore the portal and Cloud Shell freely. Nothing here costs real money.
Hands-On Labs for every exam section
Pick the AI-200 section you're studying and practise it straight away.
Domain 1: Containers
1.1 Implement container application hosting
1.2 Implement container-orchestrated solutions
Domain 2: Data for AI
2.1 Develop AI solutions by using Azure Cosmos DB for NoSQL
2.2 Develop AI solutions by using Azure Database for PostgreSQL
2.3 Integrate Azure Managed Redis in AI solutions
Domain 3: Messaging & Functions
3.1 Develop event- and message-based AI solutions
3.2 Develop and implement Azure Functions
Domain 4: Secure & Monitor
4.1 Implement secure Azure solutions
4.2 Monitor and troubleshoot Azure solutions
Ready for the real thing?
The simulator teaches the ideas and the clicks. When you want to try real Azure, Microsoft Learn's free AI-200 training modules include hands-on exercises. Explore Microsoft Learn.