100% Latest & Updated Microsoft AI-200 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 570
A function performs AI embedding inference and regularly times out on large documents. After deciding to move long-running processing to a supported asynchronous or durable orchestration pattern, what configuration is most relevant?
- Configure the output binding with the correct Service Bus entity and authorized connection.
- Create the HTTP trigger with the intended route and authorization level.
- Configure automatic message lock renewal or explicitly renew the received message lock during processing.
- Keep the HTTP Function short and enqueue the long-running job for background processing.
Explanation
Correct Answer
D:Keep the HTTP Function short and enqueue the long-running job for background processing. This is the actionable setup step for the selected design. Long-running asynchronous work should not depend on the client's short-lived HTTP connection.
Incorrect Answers
A:Configure the output binding with the correct Service Bus entity and authorized connection. Instead, keep the HTTP Function short and enqueue the long-running job for background processing.
B:Create the HTTP trigger with the intended route and authorization level. Instead, keep the HTTP Function short and enqueue the long-running job for background processing.
C:Configure automatic message lock renewal or explicitly renew the received message lock during processing. Instead, keep the HTTP Function short and enqueue the long-running job for background processing.
Question 571
A function performs AI embedding inference and regularly times out on large documents. Which validation result is the strongest evidence that the intended behavior works?
- The initial request returns quickly with a job identifier and the job completes asynchronously.
- Uploading a matching blob triggers the function and records the object's name.
- A request with a valid query returns only matching data while invalid input receives a clear validation error.
- Replaying the same event does not duplicate the indexed document or billing action.
Explanation
Correct Answer
A:The initial request returns quickly with a job identifier and the job completes asynchronously. This is direct acceptance evidence for the specified behavior rather than merely proof of deployment. Long-running asynchronous work should not depend on the client's short-lived HTTP connection.
Incorrect Answers
B:Uploading a matching blob triggers the function and records the object's name. Here, the initial request returns quickly with a job identifier and the job completes asynchronously.
C:A request with a valid query returns only matching data while invalid input receives a clear validation error. Here, the initial request returns quickly with a job identifier and the job completes asynchronously.
D:Replaying the same event does not duplicate the indexed document or billing action. Here, the initial request returns quickly with a job identifier and the job completes asynchronously.
Question 572
A function performs AI embedding inference and regularly times out on large documents. Production telemetry shows: HTTP callers time out before an expensive embedding job finishes. Which underlying issue should be investigated first?
- A trigger declaration or code structure prevents the Functions worker from discovering the function.
- The application performs long-running work synchronously within the HTTP request lifecycle.
- The Function App lacks the required VNet path, DNS resolution or network permit for the private endpoint.
- The handler does not record processed event identifiers or document versions.
Explanation
Correct Answer
B:The application performs long-running work synchronously within the HTTP request lifecycle. The described symptom and this root cause fit together. Long-running asynchronous work should not depend on the client's short-lived HTTP connection.
Incorrect Answers
A:A trigger declaration or code structure prevents the Functions worker from discovering the function. Here, the application performs long-running work synchronously within the HTTP request lifecycle.
C:The Function App lacks the required VNet path, DNS resolution or network permit for the private endpoint. Here, the application performs long-running work synchronously within the HTTP request lifecycle.
D:The handler does not record processed event identifiers or document versions. Here, the application performs long-running work synchronously within the HTTP request lifecycle.
Question 573
A model-serving function needs to catch failures of a downstream Cosmos DB call and return controlled error details. Which design decision should the team make first?
- Synchronize triggers or restart the Function App according to the deployment method.
- Make the handler idempotent using a stable message or business key.
- Monitor the queue's dead-letter count separately from active messages.
- Handle downstream exceptions inside the Function and emit structured error telemetry.
Explanation
Correct Answer
D:Handle downstream exceptions inside the Function and emit structured error telemetry. It directly addresses the architecture in this case. Serverless API boundaries should translate internal errors into controlled responses.
Incorrect Answers
A:Synchronize triggers or restart the Function App according to the deployment method. Trigger metadata may need synchronization or host reload after deployment changes. Here, handle downstream exceptions inside the Function and emit structured error telemetry.
B:Make the handler idempotent using a stable message or business key. Queue-triggered functions can be retried or redelivered and need idempotent business effects. Here, handle downstream exceptions inside the Function and emit structured error telemetry.
C:Monitor the queue's dead-letter count separately from active messages. Active and dead-lettered Service Bus messages are distinct operational metrics. Here, handle downstream exceptions inside the Function and emit structured error telemetry.
Question 574
A model-serving function needs to catch failures of a downstream Cosmos DB call and return controlled error details. Which concrete setup step puts this selected approach into operation: Handle downstream exceptions inside the Function and emit structured error telemetry.
- Catch the database SDK exception, return an appropriate API error and log a correlation ID.
- Keep the HTTP Function short and enqueue the long-running job for background processing.
- Check and persist the processing state keyed to the source document version before a second side effect.
- Set the event subscription's dead-letter destination to the designated storage container with valid access.
Explanation
Correct Answer
A:Catch the database SDK exception, return an appropriate API error and log a correlation ID. This is the actionable setup step for the selected design. Serverless API boundaries should translate internal errors into controlled responses.
Incorrect Answers
B:Keep the HTTP Function short and enqueue the long-running job for background processing. Here, catch the database SDK exception, return an appropriate API error and log a correlation ID.
C:Check and persist the processing state keyed to the source document version before a second side effect. Here, catch the database SDK exception, return an appropriate API error and log a correlation ID.
D:Set the event subscription's dead-letter destination to the designated storage container with valid access. Here, catch the database SDK exception, return an appropriate API error and log a correlation ID.
Question 575
A model-serving function needs to catch failures of a downstream Cosmos DB call and return controlled error details. What outcome should be checked before the engineering change is accepted?
- A successful function execution creates the output blob in the specified container.
- Clients receive a safe error code and operators can trace the failed dependency.
- The deployed host indexes functions and executes the expected trigger.
- Image handlers receive only image-related custom events and document handlers only document-related events.
Explanation
Correct Answer
B:Clients receive a safe error code and operators can trace the failed dependency. This is direct acceptance evidence for the specified behavior rather than merely proof of deployment. Serverless API boundaries should translate internal errors into controlled responses.
Incorrect Answers
A:A successful function execution creates the output blob in the specified container. Here, clients receive a safe error code and operators can trace the failed dependency.
C:The deployed host indexes functions and executes the expected trigger. Here, clients receive a safe error code and operators can trace the failed dependency.
D:Image handlers receive only image-related custom events and document handlers only document-related events. Here, clients receive a safe error code and operators can trace the failed dependency.
Question 576
A model-serving function needs to catch failures of a downstream Cosmos DB call and return controlled error details. After rollout the observed failure is: The function returns a raw exception stack trace containing internal connection details. What best explains it?
- The trigger metadata was not synchronized or the runtime did not load the latest package.
- The managed identity lacks the required resource permission or credential configuration.
- The handler lacks safe exception mapping and sanitization.
- The sender did not propagate any correlation or tracing context through the message.
Explanation
Correct Answer
C:The handler lacks safe exception mapping and sanitization. The described symptom and this root cause fit together. Serverless API boundaries should translate internal errors into controlled responses.
Incorrect Answers
A:The trigger metadata was not synchronized or the runtime did not load the latest package. Here, the handler lacks safe exception mapping and sanitization.
B:The managed identity lacks the required resource permission or credential configuration. Here, the handler lacks safe exception mapping and sanitization.
D:The sender did not propagate any correlation or tracing context through the message. Here, the handler lacks safe exception mapping and sanitization.
Question 577
A Function App needs distinct staging and production versions for testing before promotion. Which architecture most directly addresses the required outcome?
- Use supported Function App deployment slots when available in the selected hosting plan.
- Apply bounded concurrency for function processing and respect downstream rate limits.
- Use a supported Blob trigger for the Azure Functions handler.
- Design an idempotent subscriber because Event Grid delivery can be at least once.
Explanation
Correct Answer
A:Use supported Function App deployment slots when available in the selected hosting plan. It directly addresses the architecture in this case. Deployment slots can isolate staged versions but slot settings need deliberate stickiness.
Incorrect Answers
B:Apply bounded concurrency for function processing and respect downstream rate limits. Functions scaling and concurrency should be tuned to the rate limits of dependencies. Instead, use supported Function App deployment slots when available in the selected hosting plan.
C:Use a supported Blob trigger for the Azure Functions handler. Blob triggers must monitor the correct storage account and container path. Instead, use supported Function App deployment slots when available in the selected hosting plan.
D:Design an idempotent subscriber because Event Grid delivery can be at least once. Event Grid retries mean consumers must tolerate duplicate notifications. Instead, use supported Function App deployment slots when available in the selected hosting plan.
Question 578
A Function App needs distinct staging and production versions for testing before promotion. The team has selected this architecture: Use supported Function App deployment slots when available in the selected hosting plan. Which action correctly implements it?
- Configure supported concurrency settings and coordinate worker throughput with the model API's quotas.
- Deploy the candidate to a staging slot, validate settings, then perform a controlled swap.
- Define the Blob trigger path and configure the associated storage connection or identity.
- On recoverable failure, let the lock expire or explicitly abandon the message according to retry policy.
Explanation
Correct Answer
B:Deploy the candidate to a staging slot, validate settings, then perform a controlled swap. This is the actionable setup step for the selected design. Deployment slots can isolate staged versions but slot settings need deliberate stickiness.
Incorrect Answers
A:Configure supported concurrency settings and coordinate worker throughput with the model API's quotas. Instead, deploy the candidate to a staging slot, validate settings, then perform a controlled swap.
C:Define the Blob trigger path and configure the associated storage connection or identity. Instead, deploy the candidate to a staging slot, validate settings, then perform a controlled swap.
D:On recoverable failure, let the lock expire or explicitly abandon the message according to retry policy. Instead, deploy the candidate to a staging slot, validate settings, then perform a controlled swap.
Question 579
A Function App needs distinct staging and production versions for testing before promotion. After configuring the solution, which measurable result would demonstrate success?
- Transient throttling resolves without unbounded request amplification.
- Clients receive a safe error code and operators can trace the failed dependency.
- The production endpoint runs the validated function version with expected slot-specific settings.
- Only matching finance messages appear in that worker's subscription.
Explanation
Correct Answer
C:The production endpoint runs the validated function version with expected slot-specific settings. This is direct acceptance evidence for the specified behavior rather than merely proof of deployment. Deployment slots can isolate staged versions but slot settings need deliberate stickiness.
Incorrect Answers
A:Transient throttling resolves without unbounded request amplification. Here, the production endpoint runs the validated function version with expected slot-specific settings.
B:Clients receive a safe error code and operators can trace the failed dependency. Here, the production endpoint runs the validated function version with expected slot-specific settings.
D:Only matching finance messages appear in that worker's subscription. Here, the production endpoint runs the validated function version with expected slot-specific settings.
Question 580
A Function App needs distinct staging and production versions for testing before promotion. During a trial, the team sees this problem: After a swap, production unexpectedly connects to a staging database. Which cause is most consistent?
- Unbounded function concurrency exceeds the downstream service's permitted request rate.
- The production Function App setting still contains the test endpoint.
- The receiver abandons failures without using an appropriate dead-letter policy or delivery-count handling.
- An environment-specific setting was not marked sticky to its slot.
Explanation
Correct Answer
D:An environment-specific setting was not marked sticky to its slot. The described symptom and this root cause fit together. Deployment slots can isolate staged versions but slot settings need deliberate stickiness.
Incorrect Answers
A:Unbounded function concurrency exceeds the downstream service's permitted request rate. Here, an environment-specific setting was not marked sticky to its slot.
B:The production Function App setting still contains the test endpoint. Here, an environment-specific setting was not marked sticky to its slot.
C:The receiver abandons failures without using an appropriate dead-letter policy or delivery-count handling. Here, an environment-specific setting was not marked sticky to its slot.
Developing AI Cloud Solutions on Azure (AI-200) Practice Tests