Question 350
A Function App uses a Service Bus connection string embedded in its application repository and needs secure queue consumption. A publisher is supposed to send training jobs to one Service Bus queue but can also read every message from the namespace. Which course of action addresses the stated issues?
- Verify the identity's Service Bus data-plane role assignment at the entity scope; Narrow its broker authorization to the required Data Sender access.
- Use a managed identity with an appropriate Service Bus Data Receiver role; Narrow its broker authorization to the required Data Sender access.
- Narrow its broker authorization to the required Data Sender access; do not use a managed identity with an appropriate Service Bus Data Receiver role.
- 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.
Explanation
Correct Answer
B:Identity-based queue authorization avoids shipping a reusable access key in code. producers need send permission, not broad consumer or administrative privileges.
Incorrect Answers
A:Authentication success does not imply the broker grants receive rights on the target queue; requirement 1 requires: using a managed identity with an appropriate Service Bus Data Receiver role.
C:Producers need send permission, not broad consumer or administrative privileges; requirement 1 requires: using a managed identity with an appropriate Service Bus Data Receiver role.
D:Narrow its broker authorization to the required Data Sender access.
Question 351
A team builds a large IVFFlat index before inserting most embeddings and observes poor recall after data growth. A nightly vector refresh deletes and reinserts every row, making an otherwise incremental pipeline cause prolonged index churn. Which response best addresses these needs?
- Load representative vector data before constructing and tuning the IVFFlat index; Throttle ingestion concurrency and monitor storage, CPU and replication progress.
- Throttle ingestion concurrency and monitor storage, CPU and replication progress; Upsert only changed chunk embeddings using stable identifiers.
- Load representative vector data before constructing and tuning the IVFFlat index; Upsert only changed chunk embeddings using stable identifiers.
- Upsert only changed chunk embeddings using stable identifiers; do not Load representative vector data before constructing and tuning the IVFFlat index.
Explanation
Correct Answer
C:IVFFlat partitions are better trained on representative data than an almost-empty initial set. incremental updates reduce unnecessary vector writes and index maintenance.
Incorrect Answers
A:Upsert only changed chunk embeddings using stable identifiers.
B:Bounded writes protect capacity while indexing and replication catch up; Requirement 1 requires: load representative vector data before constructing and tuning the IVFFlat index.
D:Incremental updates reduce unnecessary vector writes and index maintenance; Requirement 1 requires: load representative vector data before constructing and tuning the IVFFlat index.
Question 352
A multitenant retrieval API constructs Cosmos SQL with direct string concatenation from user-supplied query text. A read-heavy service repeatedly downloads large documents only to extract the title and document identifier. What is the most appropriate plan for this situation?
- Consume the query iterator's continuation tokens until the intended result set is complete; Project the required fields in its SQL SELECT instead of returning full documents.
- Use parameterized Cosmos DB SQL queries for untrusted values; Consume the query iterator's continuation tokens until the intended result set is complete.
- Project the required fields in its SQL SELECT instead of returning full documents; do not use parameterized Cosmos DB SQL queries for untrusted values.
- Use parameterized Cosmos DB SQL queries for untrusted values; Project the required fields in its SQL SELECT instead of returning full documents.
Explanation
Correct Answer
D:Query parameters separate caller input from query syntax and improve correctness and safety. narrow projections reduce transfer and deserialization work for metadata-only reads.
Incorrect Answers
A:Cosmos query results are paged, so one response may not contain every matching item; requirement 1 requires: using parameterized Cosmos DB SQL queries for untrusted values.
B:Project the required fields in its SQL SELECT instead of returning full documents.
C:Narrow projections reduce transfer and deserialization work for metadata-only reads; requirement 1 requires: using parameterized Cosmos DB SQL queries for untrusted values.
Question 353
A Function invocation fails in Azure but local execution succeeded, and operators cannot tell which exception was raised. A Service Bus-triggered Function scales out rapidly and overwhelms a downstream API with concurrent calls. Which course of action addresses the stated issues?
- Tune host concurrency and scale limits to protect the dependent API; do not inspect Function logs and Application Insights traces for the failing invocation.
- Inspect Function logs and Application Insights traces for the failing invocation; Tune host concurrency and scale limits to protect the dependent API.
- Check function_app.py decorator discovery and runtime configuration for the Python model; Tune host concurrency and scale limits to protect the dependent API.
- Inspect Function logs and Application Insights traces for the failing invocation; check function_app.py decorator discovery and runtime configuration for the Python model.
Explanation
Correct Answer
B:Correlated telemetry identifies invocation errors and dependencies in the deployed environment. function trigger throughput must account for downstream capacity and retry behavior.
Incorrect Answers
A:Function trigger throughput must account for downstream capacity and retry behavior; requirement 1 requires: inspecting Function logs and Application Insights traces for the failing invocation.
C:Unsupported function registration prevents the runtime from indexing trigger definitions; requirement 1 requires: inspecting Function logs and Application Insights traces for the failing invocation.
D:Tune host concurrency and scale limits to protect the dependent API.
Question 354
An AKS pod needs read-only access to Key Vault without attaching a shared secret to its manifest. AKS pods fail with ImagePullBackOff when reading a private ACR repository despite the image name being correct. Which response best addresses these needs?
- Use an approved secret delivery integration with tightly controlled identity and repository access; Give the cluster's image-pull identity the required registry access.
- Configure AKS Workload Identity and grant the service account's identity scoped Key Vault access; use an approved secret delivery integration with tightly controlled identity and repository access.
- Configure AKS Workload Identity and grant the service account's identity scoped Key Vault access; Give the cluster's image-pull identity the required registry access.
- Give the cluster's image-pull identity the required registry access; do not configure AKS Workload Identity and grant the service account's identity scoped Key Vault access.
Explanation
Correct Answer
C:Federated workload identity permits short-lived service authorization without an embedded secret. The second works because the node or managed image-pull identity must authenticate to ACR before starting the pod. Both parts are needed to meet the stated constraints.
Incorrect Answers
A:Git-tracked plaintext credentials remain exposed even if the pod can otherwise start; requirement 1 requires: configuring AKS Workload Identity and grant the service account's identity scoped Key Vault access.
B:Give the cluster's image-pull identity the required registry access. The node or managed image-pull identity must authenticate to ACR before starting the pod.
D:The node or managed image-pull identity must authenticate to ACR before starting the pod; requirement 1 requires: configuring AKS Workload Identity and grant the service account's identity scoped Key Vault access.
Question 355
A new App Service container starts but receives 503 responses; no container stdout is visible during investigation. An API container completes initialization after a long model load, but the platform marks it unhealthy before it becomes ready. What is the most appropriate plan for this situation?
- Enable App Service container logging and inspect startup and application output; enable App Service HTTPS-only enforcement and verify secure endpoint behavior.
- Enable App Service container logging and inspect startup and application output; Set appropriate startup readiness behavior and supported warm-up limits for the application.
- Enable App Service HTTPS-only enforcement and verify secure endpoint behavior; Set appropriate startup readiness behavior and supported warm-up limits for the application.
- Set appropriate startup readiness behavior and supported warm-up limits for the application; do not enable App Service container logging and inspect startup and application output.
Explanation
Correct Answer
B:Startup logs expose process and binding failures that an HTTP error alone cannot identify. readiness configuration must reflect legitimate initialization time without masking persistent failures.
Incorrect Answers
A:Set appropriate startup readiness behavior and supported warm-up limits for the application.
C:The hosting platform can reject or redirect cleartext HTTP before application handlers run; Requirement 1 requires: enable App Service container logging and inspect startup and application output.
D:Readiness configuration must reflect legitimate initialization time without masking persistent failures; Requirement 1 requires: enable App Service container logging and inspect startup and application output.
Question 356
A knowledge-base table stores document embeddings in a free-form text column, preventing native distance operators and vector indexes. An embeddings table uses one non-unique row per document but refresh jobs need to replace exact chunk identities safely. Which course of action addresses the stated issues?
- 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.
- Use the pgvector vector column type with the required fixed dimension; define a stable composite key for document and chunk identifiers.
- Define a stable composite key for document and chunk identifiers; do not use the pgvector vector column type with the required fixed dimension.
Explanation
Correct Answer
C:A typed vector column supports distance operators and appropriate approximate indexes. unique chunk identities enable predictable upserts and attribution to source documents.
Incorrect Answers
A:Structured metadata enables reliable predicates before or alongside similarity retrieval; requirement 1 requires: using the pgvector vector column type with the required fixed dimension.
B:Define a stable composite key for document and chunk identifiers.
D:Unique chunk identities enable predictable upserts and attribution to source documents; requirement 1 requires: using the pgvector vector column type with the required fixed dimension.
Question 357
An application uses managed identity successfully but cannot connect after Key Vault public network access is disabled. An Azure Function uses a Key Vault private endpoint but resolves the public address instead of the private IP. Which response best addresses these needs?
- Disable unnecessary public access and restrict permitted Key Vault network paths; Repair the private DNS zone link and endpoint name resolution for the Function VNet.
- Provide permitted private endpoint connectivity and correct private DNS resolution; Disable unnecessary public access and restrict permitted Key Vault network paths.
- Provide permitted private endpoint connectivity and correct private DNS resolution; Repair the private DNS zone link and endpoint name resolution for the Function VNet.
- Repair the private DNS zone link and endpoint name resolution for the Function VNet; do not Provide permitted private endpoint connectivity and correct private DNS resolution.
Explanation
Correct Answer
C:Vault RBAC cannot compensate for a network path that is not allowed to reach the endpoint. a private endpoint is effective only when clients resolve and route to its private address.
Incorrect Answers
A:Creating a private endpoint does not automatically remove all other permitted access routes; Requirement 1 requires: provide permitted private endpoint connectivity and correct private DNS resolution.
B:Repair the private DNS zone link and endpoint name resolution for the Function VNet.
D:A private endpoint is effective only when clients resolve and route to its private address; Requirement 1 requires: provide permitted private endpoint connectivity and correct private DNS resolution.
Question 358
A production app must receive new model-endpoint configuration only after validation in a staging environment. A business feature should be enabled only for a controlled pilot group rather than every user. What is the most appropriate plan for this situation?
- Record configuration revision identifiers and retain an auditable change history; use a targeted App Configuration feature filter for the approved cohort.
- Use staged labels or dedicated stores and promote approved values through change control; Record configuration revision identifiers and retain an auditable change history.
- Use staged labels or dedicated stores and promote approved values through change control; use a targeted App Configuration feature filter for the approved cohort.
- Use a targeted App Configuration feature filter for the approved cohort; do not use staged labels or dedicated stores and promote approved values through change control.
Explanation
Correct Answer
C:Separating release stages prevents unvalidated runtime settings from appearing in production. cohort targeting permits measured release without changing code for all clients.
Incorrect Answers
A:Versioned configuration records support correlation between rollout and observed failures; requirement 1 requires: using staged labels or dedicated stores and promote approved values through change control.
B:Use a targeted App Configuration feature filter for the approved cohort.
D:Cohort targeting permits measured release without changing code for all clients; requirement 1 requires: using staged labels or dedicated stores and promote approved values through change control.
Question 359
An Azure deployment log accidentally prints a Key Vault secret value during a failed release. A microservice loads a storage account master key even though it needs read access to one container. Which course of action addresses the stated issues?
- Rotate the disclosed secret and remove sensitive values from diagnostic output; Revoke or rotate the exposed App Configuration credential and update clients.
- Use a managed identity and narrowly scoped Blob Data Reader rights; do not Rotate the disclosed secret and remove sensitive values from diagnostic output.
- Revoke or rotate the exposed App Configuration credential and update clients; use a managed identity and narrowly scoped Blob Data Reader rights.
- Rotate the disclosed secret and remove sensitive values from diagnostic output; use a managed identity and narrowly scoped Blob Data Reader rights.
Explanation
Correct Answer
D:Suppressing the log after exposure does not invalidate a secret that may already be copied. data-plane role assignment reduces access beyond the required blob operations.
Incorrect Answers
A:Use a managed identity and narrowly scoped Blob Data Reader rights.
B:Data-plane role assignment reduces access beyond the required blob operations; Requirement 1 requires: rotate the disclosed secret and remove sensitive values from diagnostic output.
C:A credential can remain disclosed through history or external copies after deletion from current code; Requirement 1 requires: rotate the disclosed secret and remove sensitive values from diagnostic output.
Question 360
A batch service receives intermittent Cosmos DB 429 responses when request volume exceeds provisioned request units. A small write workload is idle most of the day but sustains short, predictable traffic bursts that need automatic throughput adjustment. Which response best addresses these needs?
- Respect retry-after information and add bounded backoff for throttled requests; 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; Project only required fields and inspect query metrics before raising throughput.
- Select an appropriate Cosmos DB autoscale throughput configuration; do not Respect retry-after information and add bounded backoff for throttled requests.
Explanation
Correct Answer
A:A 429 signals RU throttling; immediate unlimited retries aggravate capacity pressure. autoscale adapts provisioned RU/s within its configured range rather than requiring manual peak changes.
Incorrect Answers
B:Reducing returned data and query work can lower RU consumption without buying unnecessary capacity; Requirement 1 requires: respect retry-after information and add bounded backoff for throttled requests.
C:Select an appropriate Cosmos DB autoscale throughput configuration.
D:Autoscale adapts provisioned RU/s within its configured range rather than requiring manual peak changes; Requirement 1 requires: respect retry-after information and add bounded backoff for throttled requests.
Developing AI Cloud Solutions on Azure (AI-200) Practice Tests