Exam AI-200: Developing AI Cloud Solutions on Azure tests container hosting, data services, service integration, and secure, observable applications. The official skills summary weights data management at 30–35% and each other domain at 20–25%. These AI-200 mixed review questions connect container troubleshooting, vector workloads, Azure Functions, messaging, and distributed tracing.
This is the fifth and final planned set in our Azure AI Cloud Developer Associate AI-200 series (Questions 41-50). It follows AI-200 Questions 31-40 on security and observability. Every question is an original practice scenario mapped to the official exam objectives, not a copy of a real exam item.
Look for the boundary that controls each decision: an environment, a physical partition, a function binding, or a distributed trace. Diagnose the specific failure before changing unrelated settings.
Question 41: Limit a Back-End Endpoint
Two HTTP services run in the same Azure Container Apps environment, which has a public endpoint. The front-end service must call the ranking service through its ingress endpoint. Clients outside that environment must not reach the ranking service. Its target port and HTTPS behavior already work. Which ingress change meets the requirement with the least effort?
A) Keep external ingress and disable insecure HTTP connections.
B) Enable internal ingress limited to the Container Apps environment.
C) Keep external ingress and require session affinity for clients.
D) Disable all ingress to the ranking service’s application endpoint.
👁 Reveal Answer
Correct Answer: B
Explanation: B preserves the HTTP ingress endpoint while limiting access to other container apps in the same environment. The ingress external property is false for this internal visibility. A controls insecure HTTP behavior, not whether outside clients can reach the service over HTTPS. C controls session affinity rather than endpoint visibility. D removes the ingress endpoint that the front end is required to use, so it does not satisfy the connectivity requirement.
Reference: Configure ingress in Azure Container Apps: internal and external visibility
Question 42: Investigate a Stuck Pod
An AKS application pod named rank-worker is stuck in Pending in the ai namespace. The operator already has working cluster access and must inspect that pod’s events and container state before changing the deployment. Which read-only command provides the most directly relevant details?
A) kubectl get pods -n ai -o wide
B) kubectl get services -n ai -o wide
C) kubectl get nodes -o wide
D) kubectl describe pod rank-worker -n ai
👁 Reveal Answer
Correct Answer: D
Explanation: D describes the selected pod in the correct namespace, including its state, resource configuration, and events. The Events section can explain why a pod remains Pending without first modifying the workload. A provides a useful pod summary, IP address, and node information but not the detailed event history requested. B describes service listings rather than the failing pod. C lists cluster nodes without exposing that pod’s specific scheduling or container events.
Question 43: Interpret Uneven RU Use
A Cosmos DB for NoSQL container spans several physical partitions. Requests are being throttled, and the container’s normalized RU consumption is consistently 100%. Splitting the metric by PartitionKeyRangeId shows one range at 100% and the others below 30%. What does this evidence most strongly suggest before the team changes throughput?
A) Every physical partition has exhausted its available throughput.
B) The container’s total document storage has reached its capacity.
C) Request demand is concentrated on a hot physical partition.
D) Authentication failures are being reported as throughput usage.
👁 Reveal Answer
Correct Answer: C
Explanation: C matches the uneven utilization across partition key ranges. Each range maps to a physical partition, and the container metric reports the maximum utilization rather than an average. Investigate which logical partition keys drive the busy range. A contradicts the low utilization of the other ranges. B infers a storage limit from a throughput metric that does not establish it. D confuses authentication with the reported RU utilization and throttling evidence.
Reference: Monitor normalized request units: identify hot partitions
Question 44: Tune a Search-Time Candidate List
A retrieval API on Azure Database for PostgreSQL already uses a matching HNSW index on its embedding column. A benchmark must evaluate a larger dynamic candidate list during search, without rebuilding the index or changing the distance metric. Which configuration should the developer change for the test connection?
A) Increase the value of hnsw.ef_search.
B) Increase the value of ivfflat.probes.
C) Increase the index’s ef_construction value.
D) Increase the index’s m value.
👁 Reveal Answer
Correct Answer: A
Explanation: A configures the HNSW dynamic candidate list used during queries. The setting can apply to a connection or, with SET LOCAL inside a transaction, to that transaction’s searches. Measure the resulting behavior rather than assuming a guaranteed latency or recall improvement. B controls the lists probed by IVFFlat, not HNSW. C changes a graph-construction setting. D changes the graph’s maximum connections per layer. Neither C nor D is the requested search-time candidate setting.
Reference: Optimize pgvector performance: HNSW index and query options
Question 45: Read a Path Identifier
A Python v2 Azure Function uses the route template documents/{document_id} and receives its request as req. A caller sends GET /api/documents/chunk-72 with no query string or request body. The handler must read chunk-72 without changing the route or adding another function parameter. Which expression should it use?
A) req.params.get("document_id")
B) req.headers.get("document_id")
C) req.get_json().get("document_id")
D) req.route_params.get("document_id")
👁 Reveal Answer
Correct Answer: D
Explanation: D accesses the parameter captured by the HTTP route template. In Python v2, path parameters are read from the request’s route_params collection rather than added as separate handler arguments. A reads query-string parameters, but this request has no query string. B reads HTTP headers, not values captured from the URL path. C attempts to parse a JSON body that the caller did not provide and does not retrieve the route parameter.
Reference: Python Functions developer reference: reading route parameters
Question 46: Populate a Queue Output
A Python v2 HTTP function has a correctly configured queue_output binding whose arg_name is msg. The handler receives msg as func.Out[str], and payload is an already validated string. The function must create one Azure Queue storage message through that binding and still return a separate HTTP response. Which statement populates the queue output?
A) Assign the string to msg = payload.
B) Call msg.set(payload) before returning.
C) Write the string with logging.info(payload).
D) Return func.HttpResponse(payload) alone.
👁 Reveal Answer
Correct Answer: B
Explanation: B sets the value on the runtime-provided output binding object, which supplies the message to Queue storage. The handler can then return its separate HTTP response. A replaces the local variable instead of populating the Out object. C writes a log entry rather than assigning a queue output. D returns only the HTTP response body; it does not set the separately declared msg binding and therefore does not implement the required queue write.
Reference: Azure Queue storage output binding: Python v2 example
Question 47: Discover Modular Functions
A team places related Python v2 HTTP functions in http_blueprint.py using an object named bp of type func.Blueprint. The main function_app.py creates app as func.FunctionApp. The team wants the runtime to discover these handlers without copying their code into the main file. Which sequence completes the documented setup?
A) Define the blueprint handlers, import bp, then call app.register_functions(bp).
B) Define the blueprint handlers, import bp, then register a new empty Blueprint instead.
C) Define the blueprint handlers, register bp in the main file, then import bp afterward.
D) Define the blueprint handlers, import bp, then keep it as an unregistered module variable.
👁 Reveal Answer
Correct Answer: A
Explanation: A follows the blueprint pattern: define decorated handlers in a separate module, import its Blueprint object into function_app.py, and register it with the main FunctionApp. This keeps the code modular while exposing the functions through the app. B registers an empty object rather than the blueprint containing the handlers. C tries to use bp in the main file before importing it, so the name is unavailable at registration. D retains the object but omits the registration needed to connect its handlers to the app.
Reference: Python Functions developer reference: organizing with blueprints
Question 48: Build Compatible Dependencies
A developer prepares a code-only Python function app on Windows for deployment to a supported Linux Functions runtime. A required PyPI package includes platform-specific components. The project supports remote build, and installation completes within its limits. Which workflow avoids shipping Windows-built dependencies with the least build-environment administration?
A) Copy the Windows virtual environment, deploy it, and disable dependency building.
B) Install packages on Windows, package them, and request no build in Azure.
C) List packages in requirements.txt, exclude the local environment, and request remote build.
D) Omit the requirements file, upload source code, and rely on installed worker packages.
👁 Reveal Answer
Correct Answer: C
Explanation: C lets the platform install the declared dependencies in the compatible remote environment instead of reusing Windows artifacts. Remote build is the recommended code-only approach and installs packages listed in requirements.txt. A uploads a development environment built for the wrong platform. B likewise builds dependencies on Windows and bypasses the compatible remote build. D omits the package declaration, so the required application dependency is not reliably installed by deployment.
Reference: Deploy Python apps to Azure Functions: remote and local builds
Question 49: Retry an Uncertain Send
A nonpartitioned Service Bus Standard queue has duplicate detection enabled with a history window that covers the sender’s retries. A publisher loses the acknowledgment after a send and cannot tell whether the broker accepted it. The publisher must retry that business operation without adding a second queued copy if the first send succeeded. Which message strategy should it use?
A) Generate a fresh MessageId for each retry of the operation.
B) Reuse the same MessageId for each retry of the operation.
C) Reuse only the message body and generate a fresh MessageId.
D) Reuse only the subject and generate a fresh MessageId.
👁 Reveal Answer
Correct Answer: B
Explanation: B gives the broker the same application-controlled identifier for repeated sends of one operation. On this nonpartitioned queue, duplicate detection compares MessageId within the history window. A duplicate send can report success while the extra copy is discarded. A creates a distinct identifier that bypasses this match. C and D preserve other message fields but change the identifier used for detection. This producer-side protection does not establish exactly-once consumer processing.
Reference: Azure Service Bus duplicate detection: MessageId and history windows
Question 50: Interpret a Cross-Service Trace
A back-end workflow spans an API and a retrieval service. Their OpenTelemetry records use W3C trace context and belong to one correctly correlated request. An analyst needs to group all recorded spans for that request, not just direct siblings or spans from one service. Which identifier should be shared across those spans?
A) Each span’s own span ID.
B) Each span’s parent span ID.
C) Each span’s emitting service name.
D) Each span’s trace ID.
👁 Reveal Answer
Correct Answer: D
Explanation: D identifies the distributed trace as a whole, allowing recorded operations across service and process boundaries to be grouped. Individual spans have their own identifiers, and parent identifiers establish the tree’s relationships. A identifies one span rather than the entire request. B identifies an immediate parent and can differ at each level of the workflow. C identifies a service that may handle many requests, and it differs between the two services in this scenario.
Reference: Distributed tracing concepts: trace IDs and span IDs
Study Tips for Mixed Cloud Developer Review
- Inspect the boundary. Internal Container Apps ingress limits visibility to its environment, while AKS pod events reveal workload-specific failures.
- Measure before tuning. Split normalized RU use by physical partition and distinguish HNSW search settings from index-construction settings.
- Follow the binding path. Read path values from route_params, assign Out values with set, and register modular blueprints with the main app.
- Separate reliability scopes. Stable MessageId values support duplicate-send detection; a shared trace ID groups spans across a distributed request.
Keep Practicing for Azure AI Cloud Developer
Use these AI-200 mixed review questions to identify which domain needs another hands-on lab. Revisit AI-200 Questions 31-40 for security and observability, or return to AI-200 Questions 1-10 for container hosting and scaling. This set completes the planned 50-question series.
