AI-200 Developing AI Cloud Solutions on Azure Practice Questions
Prepare for AI-200 with more than an answer.
- Exam fee
- $165 USD
- Level
- Associate (Intermediate)
- Valid for
- 1 year
Domains covered on the exam 4
- Develop containerized solutions on Azure22.5%
- Develop AI solutions by using Azure data management services27.5%
- Connect to and consume Azure services22.5%
- Secure, monitor, troubleshoot Azure solutions22.5%
- 1
True or False: In Azure Cosmos DB for NoSQL, you can alter the
vectorEmbeddingspolicy of an existing container to change the vector distance function fromcosinetodotproductwithout creating a new container.Show answer details
Correct answer: B
Vector embedding policies and vector indexes in Azure Cosmos DB for NoSQL are immutable once the container has been created. If you need to modify the path, data type, dimension count, or distance function (
cosine,dotproduct, oreuclidean), you must create a new container with the updated policy and migrate your data. - 2
A solution architect is designing a real-time embedding generation pipeline using Azure Cosmos DB for NoSQL. When documents are inserted or modified in the
CustomerFeedbackcontainer, a Change Feed Processor (CFP) worker service must compute new embeddings and write them back. Another independent audit service also needs to read the change feed ofCustomerFeedbackfrom the beginning. Both services share a single lease container namedleases. What configuration must be applied to ensure the two worker services operate independently without conflicting over partition leases?flowchart TD SourceContainer[(Monitored Container: CustomerFeedback)] --> CFP_AI[AI Embedding Worker Unit] SourceContainer --> CFP_Audit[Audit Service Worker Unit] CFP_AI --> LeaseContainer[(Shared Lease Container: leases)] CFP_Audit --> LeaseContainerShow answer details
Correct answer: C
When multiple independent deployment units (applications or microservices) share the same lease container to monitor the same source container, each deployment unit must specify a distinct
leasePrefix. TheleasePrefixscopes lease document IDs in the lease container so that each service maintains its own independent checkpoints and partition locks without interfering with each other. - 3
A Python developer is building an asynchronous ingestion service for an Azure Cosmos DB for NoSQL database. The service must monitor a container for newly inserted knowledge articles to trigger an external Azure OpenAI embedding workflow. The developer searches for the high-level
ChangeFeedProcessorBuilderclass in theazure-cosmosPython SDK but cannot locate it. What architectural reality in Azure Cosmos DB explains this, and what is the recommended Python approach?Show answer details
Correct answer: D
In Azure Cosmos DB, the push-based Change Feed Processor (CFP) with automated lease management and distributed partition balancing is provided exclusively in the .NET and Java SDKs. Python and Node.js applications must use the change feed pull model (
query_items_change_feed/ change feed iterator), which requires the application to handle continuation tokens and checkpoints explicitly. - 4
A machine learning engineering team is deploying Python-based backend inference services to Azure. The team wants to build container images directly from application source code within Azure Container Registry (ACR) without authoring or maintaining a Dockerfile, and without running a local Docker daemon. Which Azure CLI command should the team execute?
Show answer details
Correct answer: C
The
az acr pack buildcommand leverages Cloud Native Buildpacks directly within Azure Container Registry to compile application source code into a container image without requiring a Dockerfile. In contrast,az acr buildperforms a quick task build that requires a Dockerfile.az acr runexecutes commands inside an existing container image in ACR Tasks, andaz acr importis used to import already-built images from external container registries. - 5
A cloud architect is designing an automated container build pipeline using Azure Container Registry (ACR) Tasks for an enterprise RAG application. The solution must automatically recompile and tag the backend container image whenever the underlying Ubuntu-based runtime base image is patched by the vendor, and must also execute a multi-step task defined in a YAML configuration file. Which TWO capabilities should the architect configure? (Select TWO)
Show answer details
Correct answer: B, E
Multi-step tasks in ACR Tasks are declared using YAML files and support built-in run variables such as
{{.Run.ID}},{{.Run.Registry}}, and{{.Values}}to parameterize and tag image outputs.ACR Tasks includes native support for base image update triggers (
--base-image-trigger-enabled true), which automatically trigger application image builds when an upstream OS or framework base image is updated in the registry. Multi-step tasks in ACR Tasks are declared using YAML files and support built-in run variables such as{{.Run.ID}},{{.Run.Registry}}, and{{.Values}}to parameterize and tag image outputs. Polling via cron or deploying custom container instances introduces unnecessary complexity when native ACR triggers exist. - 6
An organization deploys an AI text-generation API to Azure Container Apps in multiple revision mode. The engineering team deploys a new revision named
api-service--v2containing an updated model prompt template. Before shifting any production user traffic tov2, QA engineers must perform integration tests directly againstv2via an HTTPS endpoint without routing any incoming public traffic from the primary application domain. What should the engineer do to provide a dedicated access URL tov2?flowchart LR PublicUsers[Public Users] --> MainURL[Main Ingress URL] MainURL -->|100% Traffic| Rev1[Revision: api-service--v1] QAEngineers[QA Engineers] -.-> DedicatedURL[Dedicated Revision URL?] DedicatedURL -.-> Rev2[Revision: api-service--v2]Show answer details
Correct answer: B
In Azure Container Apps (when configured in multiple revision mode), assigning a revision label (
az containerapp revision label add) provides a direct, predictable sub-domain URL (e.g.,https:// --- . . .azurecontainerapps.io) specifically to that revision. This allows engineers to test the revision directly without allocating any percentage of the production traffic split. Allocating 1% traffic routes live end users, single revision mode does not support staging slots, and internal ingress prevents external QA access.
