Question 500
An AKS cluster must keep three replicas of a stateless retrieval API running and replace failed pods. An AKS deployment fails to serve traffic because the Service selector does not match the labels on any pod. Which course of action addresses the stated issues?
- Align the Service selector with the intended workload's pod labels; do not define a Kubernetes Deployment with the desired replica count.
- Create a Kubernetes Service selecting the appropriate pod labels; align the Service selector with the intended workload's pod labels.
- Define a Kubernetes Deployment with the desired replica count; create a Kubernetes Service selecting the appropriate pod labels.
- Define a Kubernetes Deployment with the desired replica count; align the Service selector with the intended workload's pod labels.
Explanation
Correct Answer
D:A Deployment controller reconciles actual pods with the declarative replica target. a Kubernetes Service with no matching endpoints cannot forward to its healthy pods.
Incorrect Answers
A:Align the Service selector with the intended workload's pod labels; do not define a Kubernetes Deployment with the desired replica count: a Kubernetes Service with no matching endpoints cannot forward to its healthy pods; requirement 1 requires: defining a Kubernetes Deployment with the desired replica count.
B:Define a Kubernetes Deployment with the desired replica count.
C:A Service exposes a stable name and virtual address across changing pod endpoints; Requirement 2 requires: align the Service selector with the intended workload's pod labels.
Question 501
A publisher is supposed to send training jobs to one Service Bus queue but can also read every message from the namespace. A Service Bus listener receives an unauthorized error even though its Azure identity token is valid. Which response best addresses these needs?
- Narrow its broker authorization to the required Data Sender access; use a managed identity with an appropriate Service Bus Data Receiver role.
- Verify the identity's Service Bus data-plane role assignment at the entity scope; do not Narrow its broker authorization to the required Data Sender access.
- Use a managed identity with an appropriate Service Bus Data Receiver role; verify the identity's Service Bus data-plane role assignment at the entity scope.
- Narrow its broker authorization to the required Data Sender access; verify the identity's Service Bus data-plane role assignment at the entity scope.
Explanation
Correct Answer
D:Producers need send permission, not broad consumer or administrative privileges. authentication success does not imply the broker grants receive rights on the target queue.
Incorrect Answers
A:Verify the identity's Service Bus data-plane role assignment at the entity scope.
B:Authentication success does not imply the broker grants receive rights on the target queue; Requirement 1 requires: narrow its broker authorization to the required Data Sender access.
C:Use a managed identity with an appropriate Service Bus Data Receiver role; verify the identity's Service Bus data-plane role assignment at the entity scope: narrow its broker authorization to the required Data Sender access.
Question 502
A container needs a database password but a code review prohibits storing the value as a literal App Service setting. A containerized worker prints the full configuration dictionary, including secret values, whenever startup fails. What is the most appropriate plan for this situation?
- Supply environment-specific settings through App Service application settings; Change startup diagnostics to redact secrets and log only safe configuration identifiers.
- Use an App Service Key Vault reference with an authorized managed identity; Supply environment-specific settings through App Service application settings.
- Change startup diagnostics to redact secrets and log only safe configuration identifiers; do not use an App Service Key Vault reference with an authorized managed identity.
- Use an App Service Key Vault reference with an authorized managed identity; Change startup diagnostics to redact secrets and log only safe configuration identifiers.
Explanation
Correct Answer
D:The runtime can resolve the secret from Key Vault without committing its plaintext into deployment configuration. configuration troubleshooting should not disclose credentials into broadly readable logs.
Incorrect Answers
A:Supply environment-specific settings through App Service application settings; Change startup diagnostics to redact secrets and log only safe configuration identifiers: use an App Service Key Vault reference with an authorized managed identity.
B:Change startup diagnostics to redact secrets and log only safe configuration identifiers.
C:Configuration troubleshooting should not disclose credentials into broadly readable logs; requirement 1 requires: using an App Service Key Vault reference with an authorized managed identity.
Question 503
An embeddings table stores 3072-dimensional vectors, and a chosen HNSW index fails because the supported index type has a lower dimension limit. A query uses a pgvector HNSW index but recall misses expected nearby passages when ef_search is too low. Which course of action addresses the stated issues?
- Create a suitable vector_cosine_ops index matching the query operator; Tune hnsw.ef_search and compare latency and recall with an exact baseline.
- Tune hnsw.ef_search and compare latency and recall with an exact baseline; do not select a supported dimensionality strategy or different retrieval design within index limits.
- Select a supported dimensionality strategy or different retrieval design within index limits; Tune hnsw.ef_search and compare latency and recall with an exact baseline.
- Select a supported dimensionality strategy or different retrieval design within index limits; create a suitable vector_cosine_ops index matching the query operator.
Explanation
Correct Answer
C:Storing a vector and building an approximate index are subject to different dimension constraints. exploring more HNSW candidates usually improves recall at the expense of query work.
Incorrect Answers
A:Create a suitable vector_cosine_ops index matching the query operator; Tune hnsw.ef_search and compare latency and recall with an exact baseline: select a supported dimensionality strategy or different retrieval design within index limits.
B:Exploring more HNSW candidates usually improves recall at the expense of query work; requirement 1 requires: selecting a supported dimensionality strategy or different retrieval design within index limits.
D:Tune hnsw.ef_search and compare latency and recall with an exact baseline.
Question 504
A Service Bus consumer completes messages before its database write and loses jobs when the database later fails. A transient downstream outage leaves Service Bus work in progress, and the worker wants another instance to retry promptly. Which response best addresses these needs?
- Move message settlement until after the durable database operation succeeds; Abandon the failed locked message and use bounded retries.
- Receive in PeekLock mode and Complete only after processing succeeds; Abandon the failed locked message and use bounded retries.
- Abandon the failed locked message and use bounded retries; do not Move message settlement until after the durable database operation succeeds.
- Move message settlement until after the durable database operation succeeds; Receive in PeekLock mode and Complete only after processing succeeds.
Explanation
Correct Answer
A:Completion removes the queued work, so it must follow the operation that makes processing durable. abandoning releases a message for another delivery without falsely recording successful processing.
Incorrect Answers
B:Receive in PeekLock mode and Complete only after processing succeeds; Abandon the failed locked message and use bounded retries: move message settlement until after the durable database operation succeeds.
C:Abandoning releases a message for another delivery without falsely recording successful processing; Requirement 1 requires: move message settlement until after the durable database operation succeeds.
D:Abandon the failed locked message and use bounded retries.
Question 505
A high-volume inference API records every span, making telemetry cost unacceptable while retaining useful aggregate behavior. Only errors should be retained at higher detail while successful high-volume requests can be sampled more sparsely. What is the most appropriate plan for this situation?
- Configure an appropriate OpenTelemetry sampling policy and document its tradeoffs; use a suitable trace sampling strategy that preserves required error visibility.
- Configure a supported OTLP exporter and reachable collector endpoint; use a suitable trace sampling strategy that preserves required error visibility.
- Configure an appropriate OpenTelemetry sampling policy and document its tradeoffs; configure a supported OTLP exporter and reachable collector endpoint.
- Use a suitable trace sampling strategy that preserves required error visibility; do not configure an appropriate OpenTelemetry sampling policy and document its tradeoffs.
Explanation
Correct Answer
A:Sampling limits exported telemetry but means not every request is retained. sampling strategy should reflect troubleshooting goals instead of applying one arbitrary rate to all signals.
Incorrect Answers
B:Configure a supported OTLP exporter and reachable collector endpoint; use a suitable trace sampling strategy that preserves required error visibility: configure an appropriate OpenTelemetry sampling policy and document its tradeoffs.
C:Use a suitable trace sampling strategy that preserves required error visibility.
D:Sampling strategy should reflect troubleshooting goals instead of applying one arbitrary rate to all signals; requirement 1 requires: configuring an appropriate OpenTelemetry sampling policy and document its tradeoffs.
Question 506
A news summarization subscription should receive only documents marked language=en, not every topic publication. A topic consumer unexpectedly receives the same publication under two rules, causing duplicate downstream jobs. Which course of action addresses the stated issues?
- Review overlapping subscription rules and their message actions or filters; do not apply an appropriate SQL filter to that Service Bus subscription.
- Publish to a Service Bus topic with separate subscriptions for each consumer; review overlapping subscription rules and their message actions or filters.
- Apply an appropriate SQL filter to that Service Bus subscription; publish to a Service Bus topic with separate subscriptions for each consumer.
- Apply an appropriate SQL filter to that Service Bus subscription; review overlapping subscription rules and their message actions or filters.
Explanation
Correct Answer
D:Subscription filters select matching messages at the broker before delivery. multiple matching rules can produce unintended duplicated subscription deliveries under supported configurations.
Incorrect Answers
A:Multiple matching rules can produce unintended duplicated subscription deliveries under supported configurations; requirement 1 requires: applying an appropriate SQL filter to that Service Bus subscription.
B:Apply an appropriate SQL filter to that Service Bus subscription.
C:Review overlapping subscription rules and their message actions or filters.
Question 507
An application sends jobs to Azure Storage Queue but currently uses an HTTP endpoint to check for new messages. A Function needs to write a result to blob storage but its code embeds the storage account key in each handler. Which response best addresses these needs?
- Implement a Storage Queue trigger bound to the target queue; configure an appropriate output binding or SDK client using managed identity.
- Use a supported Blob Storage trigger on the intended container and path; configure an appropriate output binding or SDK client using managed identity.
- Implement a Storage Queue trigger bound to the target queue; use a supported Blob Storage trigger on the intended container and path.
- Configure an appropriate output binding or SDK client using managed identity; do not implement a Storage Queue trigger bound to the target queue.
Explanation
Correct Answer
A:A queue trigger lets the runtime manage polling and execution for queued jobs. binding or client configuration centralizes storage authorization and avoids committed keys.
Incorrect Answers
B:Use a supported Blob Storage trigger on the intended container and path; configure an appropriate output binding or SDK client using managed identity: implement a Storage Queue trigger bound to the target queue.
C:Configure an appropriate output binding or SDK client using managed identity.
D:Binding or client configuration centralizes storage authorization and avoids committed keys; requirement 1 requires: implementing a Storage Queue trigger bound to the target queue.
Question 508
A Container App can obtain an Entra token but Key Vault rejects its secret retrieval with an authorization error. A local development tool uses a developer login to fetch test secrets, while production must not inherit that developer credential. What is the most appropriate plan for this situation?
- Assign the required Key Vault secrets-reader data-plane permission to the app identity; authenticate to Key Vault with the application's managed identity instead of a stored client secret.
- Assign the required Key Vault secrets-reader data-plane permission to the app identity; use a credential chain locally and a dedicated managed identity in production.
- Authenticate to Key Vault with the application's managed identity instead of a stored client secret; use a credential chain locally and a dedicated managed identity in production.
- Use a credential chain locally and a dedicated managed identity in production; do not assign the required Key Vault secrets-reader data-plane permission to the app identity.
Explanation
Correct Answer
B:A valid token is insufficient unless the principal has permission to read the secret. environment-appropriate identities avoid copying a human developer's access into deployed applications.
Incorrect Answers
A:Use a credential chain locally and a dedicated managed identity in production.
C:Authenticate to Key Vault with the application's managed identity instead of a stored client secret; use a credential chain locally and a dedicated managed identity in production: assign the required Key Vault secrets-reader data-plane permission to the app identity.
D:Environment-appropriate identities avoid copying a human developer's access into deployed applications; requirement 1 requires: assigning the required Key Vault secrets-reader data-plane permission to the app identity.
Question 509
A KQL query compares application timestamps in local time with UTC Log Analytics event times and falsely reports missing events. A deployment occurred at 15:00 UTC and operators need to compare error rates before and after the exact release. Which course of action addresses the stated issues?
- Normalize timestamps to a consistent UTC basis before comparing them; Bound the KQL query with an explicit incident time range.
- Normalize timestamps to a consistent UTC basis before comparing them; Partition the KQL aggregation into pre- and post-deployment time windows.
- Partition the KQL aggregation into pre- and post-deployment time windows; do not Normalize timestamps to a consistent UTC basis before comparing them.
- Bound the KQL query with an explicit incident time range; Partition the KQL aggregation into pre- and post-deployment time windows.
Explanation
Correct Answer
B:Misaligned time zones can make real correlated records appear outside the search window. The second works because a controlled time split makes it possible to compare behavior around the release boundary. Both parts are needed to meet the stated constraints.
Incorrect Answers
A:Partition the KQL aggregation into pre- and post-deployment time windows. A controlled time split makes it possible to compare behavior around the release boundary.
C:A controlled time split makes it possible to compare behavior around the release boundary; Requirement 1 requires: normalize timestamps to a consistent UTC basis before comparing them.
D:Normalize timestamps to a consistent UTC basis before comparing them.
Question 510
A service keeps a local App Configuration provider that refreshes normally, but dependent components retain their old configuration object references after refresh callbacks. A deployment needs several configuration keys to change together without clients seeing a mixed intermediate state. Which response best addresses these needs?
- Rebind affected components to updated options when the configuration refresh callback fires; Invoke the App Configuration refresher on a controlled schedule inside the long-running worker.
- Update related settings and then change a sentinel key that triggers coordinated refresh; do not Rebind affected components to updated options when the configuration refresh callback fires.
- Rebind affected components to updated options when the configuration refresh callback fires; update related settings and then change a sentinel key that triggers coordinated refresh.
- Invoke the App Configuration refresher on a controlled schedule inside the long-running worker; update related settings and then change a sentinel key that triggers coordinated refresh.
Explanation
Correct Answer
C:Central refresh coordination lowers request volume while preserving controlled update visibility. sentinel-based refresh can delay reloading until the related changes are ready.
Incorrect Answers
A:Update related settings and then change a sentinel key that triggers coordinated refresh.
B:Sentinel-based refresh can delay reloading until the related changes are ready; Requirement 1 requires: rebind affected components to updated options when the configuration refresh callback fires.
D:Invoke the App Configuration refresher on a controlled schedule inside the long-running worker; update related settings and then change a sentinel key that triggers coordinated refresh: rebind affected components to updated options when the configuration refresh callback fires.
Developing AI Cloud Solutions on Azure (AI-200) Practice Tests