Question 530
A consumer span is always a child of whichever unrelated request was last handled by a pooled worker. An event processor handles a batch containing unrelated messages, and developers try to assign the entire batch to one message's trace. Which course of action addresses the stated issues?
- Create an appropriate producer span around the broker send and inject propagation metadata; Model batch processing with appropriate span links or separate contexts for the incoming messages.
- Extract the incoming message trace context for each independently processed message; create an appropriate producer span around the broker send and inject propagation metadata.
- Model batch processing with appropriate span links or separate contexts for the incoming messages; do not Extract the incoming message trace context for each independently processed message.
- Extract the incoming message trace context for each independently processed message; Model batch processing with appropriate span links or separate contexts for the incoming messages.
Explanation
Correct Answer
D:Reusing stale context misattributes a message to the wrong business operation. independent message parents should not be falsely represented as one single ancestor.
Incorrect Answers
A:Create an appropriate producer span around the broker send and inject propagation metadata; Model batch processing with appropriate span links or separate contexts for the incoming messages: extract the incoming message trace context for each independently processed message.
B:Model batch processing with appropriate span links or separate contexts for the incoming messages.
C:Independent message parents should not be falsely represented as one single ancestor; Requirement 1 requires: extract the incoming message trace context for each independently processed message.
Question 531
A small write workload is idle most of the day but sustains short, predictable traffic bursts that need automatic throughput adjustment. A query suddenly consumes far more RUs after it starts returning thousands of large document fields. Which response best addresses these needs?
- Select an appropriate Cosmos DB autoscale throughput configuration; Project only required fields and inspect query metrics before raising throughput.
- Select an appropriate Cosmos DB autoscale throughput configuration; Respect retry-after information and add bounded backoff for throttled requests.
- Respect retry-after information and add bounded backoff for throttled requests; Project only required fields and inspect query metrics before raising throughput.
- Project only required fields and inspect query metrics before raising throughput; do not select an appropriate Cosmos DB autoscale throughput configuration.
Explanation
Correct Answer
A:Autoscale adapts provisioned RU/s within its configured range rather than requiring manual peak changes. reducing returned data and query work can lower RU consumption without buying unnecessary capacity.
Incorrect Answers
B:Project only required fields and inspect query metrics before raising throughput.
C:Respect retry-after information and add bounded backoff for throttled requests; Project only required fields and inspect query metrics before raising throughput: select an appropriate Cosmos DB autoscale throughput configuration.
D:Reducing returned data and query work can lower RU consumption without buying unnecessary capacity; requirement 1 requires: selecting an appropriate Cosmos DB autoscale throughput configuration.
Question 532
A stuck AKS process remains Running but stops responding and never restarts itself. A Deployment rollout briefly removes all available API pods because update surge and unavailability are set carelessly. What is the most appropriate plan for this situation?
- Configure a suitable liveness probe for the application; Set rolling-update maxSurge and maxUnavailable to preserve the required capacity.
- Add an appropriate readiness probe that succeeds only after initialization; Set rolling-update maxSurge and maxUnavailable to preserve the required capacity.
- Set rolling-update maxSurge and maxUnavailable to preserve the required capacity; do not configure a suitable liveness probe for the application.
- Configure a suitable liveness probe for the application; add an appropriate readiness probe that succeeds only after initialization.
Explanation
Correct Answer
A:A liveness failure can restart an unhealthy container rather than leave it indefinitely unresponsive. deployment strategy budgets govern how many pods may be unavailable during replacement.
Incorrect Answers
B:Add an appropriate readiness probe that succeeds only after initialization; Set rolling-update maxSurge and maxUnavailable to preserve the required capacity: configure a suitable liveness probe for the application.
C:Deployment strategy budgets govern how many pods may be unavailable during replacement; requirement 1 requires: configuring a suitable liveness probe for the application.
D:Set rolling-update maxSurge and maxUnavailable to preserve the required capacity.
Question 533
Container Apps replicas run successfully, but a gateway cannot reach a backend app after a new ingress configuration. A new Container Apps revision serves errors only after a configuration secret was updated. Which course of action addresses the stated issues?
- Verify internal ingress, target port and environment service discovery for the backend; compare the revision's secret references and runtime settings with the prior working revision.
- Verify internal ingress, target port and environment service discovery for the backend; inspect revision system logs and registry identity or image-reference failures.
- Inspect revision system logs and registry identity or image-reference failures; compare the revision's secret references and runtime settings with the prior working revision.
- Compare the revision's secret references and runtime settings with the prior working revision; do not verify internal ingress, target port and environment service discovery for the backend.
Explanation
Correct Answer
A:Working containers do not imply that their ingress and DNS paths are correctly configured. a revision can start yet fail requests when its runtime configuration differs from the validated release.
Incorrect Answers
B:Compare the revision's secret references and runtime settings with the prior working revision.
C:Inspect revision system logs and registry identity or image-reference failures; compare the revision's secret references and runtime settings with the prior working revision: verify internal ingress, target port and environment service discovery for the backend.
D:A revision can start yet fail requests when its runtime configuration differs from the validated release; Requirement 1 requires: verify internal ingress, target port and environment service discovery for the backend.
Question 534
A configuration management script should update feature flags, but its identity only has read permission on the store. An application cannot retrieve configuration after App Configuration is moved behind private networking. Which response best addresses these needs?
- Use managed identity with the App Configuration Data Reader role; configure a supported private endpoint and linked private DNS for the client path.
- Assign a suitably scoped App Configuration Data Owner or write-capable role; configure a supported private endpoint and linked private DNS for the client path.
- Configure a supported private endpoint and linked private DNS for the client path; do not assign a suitably scoped App Configuration Data Owner or write-capable role.
- Assign a suitably scoped App Configuration Data Owner or write-capable role; use managed identity with the App Configuration Data Reader role.
Explanation
Correct Answer
B:Read-only roles cannot publish configuration changes. config-store authorization and private network reachability are independent requirements.
Incorrect Answers
A:Use managed identity with the App Configuration Data Reader role; configure a supported private endpoint and linked private DNS for the client path: assign a suitably scoped App Configuration Data Owner or write-capable role.
C:Config-store authorization and private network reachability are independent requirements; requirement 1 requires: assigning a suitably scoped App Configuration Data Owner or write-capable role.
D:Configure a supported private endpoint and linked private DNS for the client path.
Question 535
A Function works locally but fails after publishing because its connection variables live only in local.settings.json. A new Function release must preserve the previous working version so operators can restore it after a failed deployment. What is the most appropriate plan for this situation?
- Package and deploy the required Python dependencies for the target Functions runtime; use supported deployment slots or versioned deployment artifacts with a documented rollback.
- Configure the required application settings in the deployed Function App; Package and deploy the required Python dependencies for the target Functions runtime.
- Configure the required application settings in the deployed Function App; use supported deployment slots or versioned deployment artifacts with a documented rollback.
- Use supported deployment slots or versioned deployment artifacts with a documented rollback; do not configure the required application settings in the deployed Function App.
Explanation
Correct Answer
C:Local settings are for development and are not automatically copied into production configuration. controlled release history makes rollback possible without hand-editing live function files.
Incorrect Answers
A:Package and deploy the required Python dependencies for the target Functions runtime; use supported deployment slots or versioned deployment artifacts with a documented rollback: configure the required application settings in the deployed Function App.
B:Use supported deployment slots or versioned deployment artifacts with a documented rollback.
D:Controlled release history makes rollback possible without hand-editing live function files; requirement 1 requires: configuring the required application settings in the deployed Function App.
Question 536
An embeddings table uses one non-unique row per document but refresh jobs need to replace exact chunk identities safely. A retrieval system stores tenant, classification and language only in unparsed text, making exact metadata filtering fragile. Which course of action addresses the stated issues?
- Use the pgvector vector column type with the required fixed dimension; Model queryable filter fields in typed relational columns or suitable indexed JSONB.
- Define a stable composite key for document and chunk identifiers; Model queryable filter fields in typed relational columns or suitable indexed JSONB.
- Define a stable composite key for document and chunk identifiers; use the pgvector vector column type with the required fixed dimension.
- Model queryable filter fields in typed relational columns or suitable indexed JSONB; do not define a stable composite key for document and chunk identifiers.
Explanation
Correct Answer
B:Unique chunk identities enable predictable upserts and attribution to source documents. structured metadata enables reliable predicates before or alongside similarity retrieval.
Incorrect Answers
A:Use the pgvector vector column type with the required fixed dimension; Model queryable filter fields in typed relational columns or suitable indexed JSONB: define a stable composite key for document and chunk identifiers.
C:Model queryable filter fields in typed relational columns or suitable indexed JSONB.
D:Structured metadata enables reliable predicates before or alongside similarity retrieval; requirement 1 requires: defining a stable composite key for document and chunk identifiers.
Question 537
One long-running Python API process repeatedly instantiates a new CosmosClient for every request and suffers unnecessary connection overhead. A data ingestion service must read one tenant's Cosmos DB document using its known partition key and id. Which response best addresses these needs?
- Reuse a properly configured CosmosClient instance across requests; use an Azure identity credential with supported Cosmos DB data-plane role authorization.
- Use an Azure identity credential with supported Cosmos DB data-plane role authorization; use a point read with the document id and partition key.
- Reuse a properly configured CosmosClient instance across requests; use a point read with the document id and partition key.
- Use a point read with the document id and partition key; do not Reuse a properly configured CosmosClient instance across requests.
Explanation
Correct Answer
C:Long-lived client objects reuse connection resources instead of creating them for every operation. point reads avoid the RU cost of a general query when both the id and partition key are known.
Incorrect Answers
A:Use a point read with the document id and partition key.
B:Use an Azure identity credential with supported Cosmos DB data-plane role authorization; use a point read with the document id and partition key: reuse a properly configured CosmosClient instance across requests.
D:Point reads avoid the RU cost of a general query when both the id and partition key are known; Requirement 1 requires: reuse a properly configured CosmosClient instance across requests.
Question 538
A Container App's replicas remain at their minimum during a compute-heavy operation even when CPU usage is sustained. An application performs costly startup initialization every time KEDA scales from zero, violating its latency target. What is the most appropriate plan for this situation?
- Replace the irrelevant rule with a properly configured HTTP concurrency scaling rule; Maintain a nonzero minimum replica count for latency-sensitive serving traffic.
- Maintain a nonzero minimum replica count for latency-sensitive serving traffic; do not configure an appropriate supported CPU-based scale rule and replica limits.
- Configure an appropriate supported CPU-based scale rule and replica limits; Maintain a nonzero minimum replica count for latency-sensitive serving traffic.
- Configure an appropriate supported CPU-based scale rule and replica limits; replace the irrelevant rule with a properly configured HTTP concurrency scaling rule.
Explanation
Correct Answer
C:A compute signal can scale replicas when request concurrency is not a reliable workload proxy. keeping warm capacity trades idle resource cost for reduced cold-start delay.
Incorrect Answers
A:Replace the irrelevant rule with a properly configured HTTP concurrency scaling rule; Maintain a nonzero minimum replica count for latency-sensitive serving traffic: configure an appropriate supported CPU-based scale rule and replica limits.
B:Keeping warm capacity trades idle resource cost for reduced cold-start delay; requirement 1 requires: configuring an appropriate supported CPU-based scale rule and replica limits.
D:Maintain a nonzero minimum replica count for latency-sensitive serving traffic.
Question 539
A Function is triggered by every event on a shared Event Grid topic although only model status updates are relevant. A new Function deployment receives no events because the storage topic subscription still points at a deleted Function endpoint. Which course of action addresses the stated issues?
- Narrow its Event Grid subscription with matching event filters; update and validate the Event Grid subscription's Function destination.
- Narrow its Event Grid subscription with matching event filters; configure an Event Grid trigger and matching event subscription.
- Configure an Event Grid trigger and matching event subscription; update and validate the Event Grid subscription's Function destination.
- Update and validate the Event Grid subscription's Function destination; do not Narrow its Event Grid subscription with matching event filters.
Explanation
Correct Answer
A:Filtering upstream prevents irrelevant events from invoking the handler. events reach the deployed function only when the subscription targets its live endpoint.
Incorrect Answers
B:Update and validate the Event Grid subscription's Function destination.
C:Configure an Event Grid trigger and matching event subscription; update and validate the Event Grid subscription's Function destination: narrow its Event Grid subscription with matching event filters.
D:Events reach the deployed function only when the subscription targets its live endpoint; Requirement 1 requires: narrow its Event Grid subscription with matching event filters.
Question 540
An embedding model produces 768 floats, but its table column is defined as vector(1536). A team wants to compare text embeddings using cosine distance but its SQL uses the Euclidean operator without review. Which response best addresses these needs?
- Use the pgvector cosine-distance operator for the intended metric; do not align the pgvector column dimension and data migration with the actual model output.
- Align the pgvector column dimension and data migration with the actual model output; enable the supported vector extension in the intended database.
- Enable the supported vector extension in the intended database; use the pgvector cosine-distance operator for the intended metric.
- Align the pgvector column dimension and data migration with the actual model output; use the pgvector cosine-distance operator for the intended metric.
Explanation
Correct Answer
D:Mismatched vector dimensions prevent valid inserts and comparisons. distance operators encode different geometry and can produce different ranking results.
Incorrect Answers
A:Distance operators encode different geometry and can produce different ranking results; Requirement 1 requires: align the pgvector column dimension and data migration with the actual model output.
B:Use the pgvector cosine-distance operator for the intended metric.
C:Enable the supported vector extension in the intended database; use the pgvector cosine-distance operator for the intended metric: align the pgvector column dimension and data migration with the actual model output.
Developing AI Cloud Solutions on Azure (AI-200) Practice Tests