Question 400
A Function must call an internal PostgreSQL endpoint but deployment is on a plan with no appropriate virtual network integration. A private Function cannot reach Key Vault after Key Vault public access is disabled, even though its identity has permissions. What is the most appropriate plan for this situation?
- Restrict inbound network access with the supported private endpoint or access restrictions; configure permitted private endpoints and DNS resolution for the Function's network path.
- Enable supported Functions VNet integration and appropriate DNS or private network routing; restrict inbound network access with the supported private endpoint or access restrictions.
- Enable supported Functions VNet integration and appropriate DNS or private network routing; configure permitted private endpoints and DNS resolution for the Function's network path.
- Configure permitted private endpoints and DNS resolution for the Function's network path; do not enable supported Functions VNet integration and appropriate DNS or private network routing.
Explanation
Correct Answer
C:Private network reachability requires a compatible hosting plan and configured routes. identity authorization cannot bypass a blocked network route to a private endpoint.
Incorrect Answers
A:Network exposure must be controlled separately from code-level request authentication; Requirement 1 requires: enable supported Functions VNet integration and appropriate DNS or private network routing.
B:Configure permitted private endpoints and DNS resolution for the Function's network path.
D:Identity authorization cannot bypass a blocked network route to a private endpoint; Requirement 1 requires: enable supported Functions VNet integration and appropriate DNS or private network routing.
Question 401
A storage event should invoke a Python Function without periodic blob listing or custom webhook polling. 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?
- Configure an Event Grid trigger and matching event subscription; Narrow its Event Grid subscription with matching event filters.
- 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; update and validate the Event Grid subscription's Function destination.
- Update and validate the Event Grid subscription's Function destination; do not configure an Event Grid trigger and matching event subscription.
Explanation
Correct Answer
B:Event Grid delivery can invoke the Function in response to published source events. events reach the deployed function only when the subscription targets its live endpoint.
Incorrect Answers
A:Filtering upstream prevents irrelevant events from invoking the handler; requirement 2 requires: updating and validate the Event Grid subscription's Function destination.
C:Configure an Event Grid trigger and matching event subscription.
D:Update and validate the Event Grid subscription's Function destination; do not configure an Event Grid trigger and matching event subscription: events reach the deployed function only when the subscription targets its live endpoint; requirement 1 requires: configuring an Event Grid trigger and matching event subscription.
Question 402
A Function must call an internal PostgreSQL endpoint but deployment is on a plan with no appropriate virtual network integration. A Function App is intentionally private but anonymous internet requests still reach its business HTTP trigger through a public endpoint. Which response best addresses these needs?
- Configure permitted private endpoints and DNS resolution for the Function's network path; restrict inbound network access with the supported private endpoint or access restrictions.
- Restrict inbound network access with the supported private endpoint or access restrictions; do not enable supported Functions VNet integration and appropriate DNS or private network routing.
- Enable supported Functions VNet integration and appropriate DNS or private network routing; configure permitted private endpoints and DNS resolution for the Function's network path.
- Enable supported Functions VNet integration and appropriate DNS or private network routing; restrict inbound network access with the supported private endpoint or access restrictions.
Explanation
Correct Answer
D:Private network reachability requires a compatible hosting plan and configured routes. network exposure must be controlled separately from code-level request authentication.
Incorrect Answers
A:Enable supported Functions VNet integration and appropriate DNS or private network routing.
B:Restrict inbound network access with the supported private endpoint or access restrictions; do not enable supported Functions VNet integration and appropriate DNS or private network routing: network exposure must be controlled separately from code-level request authentication; Requirement 1 requires: enable supported Functions VNet integration and appropriate DNS or private network routing.
C:Identity authorization cannot bypass a blocked network route to a private endpoint; Requirement 2 requires: restrict inbound network access with the supported private endpoint or access restrictions.
Question 403
A booking system needs durable competing-consumer work distribution with explicit success settlement and dead-letter handling. A workflow requires both fan-out completion notifications and durable background processing after each notification. What is the most appropriate plan for this situation?
- Use an Azure Service Bus queue with controlled PeekLock settlement; use Azure Event Grid subscriptions for the relevant storage events.
- Route Event Grid notifications into a Service Bus queue consumed by idempotent workers; do not use an Azure Service Bus queue with controlled PeekLock settlement.
- Use an Azure Service Bus queue with controlled PeekLock settlement; Route Event Grid notifications into a Service Bus queue consumed by idempotent workers.
- Use Azure Event Grid subscriptions for the relevant storage events; Route Event Grid notifications into a Service Bus queue consumed by idempotent workers.
Explanation
Correct Answer
C:A brokered queue preserves work until a consumer acknowledges it under the chosen receive mode. event Grid provides event routing while Service Bus supplies durable processing and settlement.
Incorrect Answers
A:Push-based events fan out notifications without requiring producers to know each subscriber; Requirement 2 requires: route Event Grid notifications into a Service Bus queue consumed by idempotent workers.
B:Route Event Grid notifications into a Service Bus queue consumed by idempotent workers; do not use an Azure Service Bus queue with controlled PeekLock settlement: event Grid provides event routing while Service Bus supplies durable processing and settlement; requirement 1 requires: using an Azure Service Bus queue with controlled PeekLock settlement.
D:Use an Azure Service Bus queue with controlled PeekLock settlement.
Question 404
A RAG table uses a JSONB attributes column and every query filters on document type, but scans are slow at scale. A frequent SQL query joins chunks to source documents on document_id without a suitable index on the join column. Which course of action addresses the stated issues?
- Add a justified composite B-tree index covering tenant and date filters; Index the join key based on the measured query plan.
- Add an appropriate JSONB or expression index for the actual predicate; Index the join key based on the measured query plan.
- Index the join key based on the measured query plan; do not add an appropriate JSONB or expression index for the actual predicate.
- Add an appropriate JSONB or expression index for the actual predicate; add a justified composite B-tree index covering tenant and date filters.
Explanation
Correct Answer
B:Index choice should match operators used to filter frequently queried metadata. a join-key index can avoid repeated full-table scans during chunk attribution.
Incorrect Answers
A:Add an appropriate JSONB or expression index for the actual predicate.
C:Index the join key based on the measured query plan; do not add an appropriate JSONB or expression index for the actual predicate: a join-key index can avoid repeated full-table scans during chunk attribution; Requirement 1 requires: add an appropriate JSONB or expression index for the actual predicate.
D:Conventional indexes reduce candidate rows before or around vector ranking; Requirement 2 requires: index the join key based on the measured query plan.
Question 405
A chatbot caches tenant-specific user preferences without an expiry, returning obsolete data weeks after a preference change. A recommender cache returns correct hits but peak memory rises without bound because temporary entries never expire. Which response best addresses these needs?
- Apply suitable expiration policies and monitor cache memory consumption; do not Set an appropriate Redis key TTL and explicit invalidation on updates.
- Include an authorized tenant identifier in cache-key construction and enforce isolation; apply suitable expiration policies and monitor cache memory consumption.
- Set an appropriate Redis key TTL and explicit invalidation on updates; apply suitable expiration policies and monitor cache memory consumption.
- Set an appropriate Redis key TTL and explicit invalidation on updates; Include an authorized tenant identifier in cache-key construction and enforce isolation.
Explanation
Correct Answer
C:Bounded cache lifetime and invalidation limit stale reads after source data changes. expiring ephemeral data controls memory growth without treating the cache as a permanent database.
Incorrect Answers
A:Apply suitable expiration policies and monitor cache memory consumption; do not Set an appropriate Redis key TTL and explicit invalidation on updates: expiring ephemeral data controls memory growth without treating the cache as a permanent database; Requirement 1 requires: set an appropriate Redis key TTL and explicit invalidation on updates.
B:Set an appropriate Redis key TTL and explicit invalidation on updates.
D:Key namespacing prevents collisions between distinct customer data scopes; requirement 2 requires: applying suitable expiration policies and monitor cache memory consumption.
Question 406
A pipeline stores a registry admin password in its build logs so it can push images to Azure Container Registry. A testing job should fetch approved ACR images but must never push or remove repository content. What is the most appropriate plan for this situation?
- Assign the job identity an ACR pull-only permission at the correct scope; do not Give its workload identity a narrowly scoped ACR push role instead of a shared admin password.
- Give its workload identity a narrowly scoped ACR push role instead of a shared admin password; assign the job identity an ACR pull-only permission at the correct scope.
- Grant the App Service managed identity the required ACR pull permission and configure identity-based pulls; assign the job identity an ACR pull-only permission at the correct scope.
- Give its workload identity a narrowly scoped ACR push role instead of a shared admin password; grant the App Service managed identity the required ACR pull permission and configure identity-based pulls.
Explanation
Correct Answer
B:Identity-based authorization avoids permanent registry credentials and limits the publisher's privileges. pull-only access permits downloads without authorizing image modification.
Incorrect Answers
A:Assign the job identity an ACR pull-only permission at the correct scope; do not Give its workload identity a narrowly scoped ACR push role instead of a shared admin password: pull-only access permits downloads without authorizing image modification; Requirement 1 requires: give its workload identity a narrowly scoped ACR push role instead of a shared admin password.
C:Give its workload identity a narrowly scoped ACR push role instead of a shared admin password.
D:Registry authentication requires both a usable application identity and authorized pull access; requirement 2 requires: assigning the job identity an ACR pull-only permission at the correct scope.
Question 407
A regional deployment team needs a local registry endpoint to reduce long-distance image pulls across three Azure regions. A pipeline cannot push to ACR after public access was disabled, although its managed identity has push permission. Which course of action addresses the stated issues?
- Enable ACR geo-replication at a supported service tier and deploy from suitable replicas; Move the build agent onto an authorized private path to the registry endpoint.
- Enable ACR geo-replication at a supported service tier and deploy from suitable replicas; configure an ACR private endpoint and the required private DNS and network access.
- Configure an ACR private endpoint and the required private DNS and network access; Move the build agent onto an authorized private path to the registry endpoint.
- Move the build agent onto an authorized private path to the registry endpoint; do not enable ACR geo-replication at a supported service tier and deploy from suitable replicas.
Explanation
Correct Answer
A:Geo-replication places registry artifacts closer to regional consumers where supported. iAM authorization cannot repair a missing network route or DNS resolution to a private registry.
Incorrect Answers
B:Private Link provides a scoped private path only when name resolution and policy allow it; Requirement 2 requires: move the build agent onto an authorized private path to the registry endpoint.
C:Enable ACR geo-replication at a supported service tier and deploy from suitable replicas.
D:Move the build agent onto an authorized private path to the registry endpoint; do not enable ACR geo-replication at a supported service tier and deploy from suitable replicas: iAM authorization cannot repair a missing network route or DNS resolution to a private registry; Requirement 1 requires: enable ACR geo-replication at a supported service tier and deploy from suitable replicas.
Question 408
A gateway strips incoming traceparent and tracestate headers before proxying requests to the retrieval worker, splitting one transaction into unrelated traces. A Python API sends outgoing HTTP calls without injecting context, so downstream traces cannot be matched to the incoming request. Which response best addresses these needs?
- Configure the gateway to preserve and forward W3C traceparent and tracestate headers; Propagate tracing context through broker message properties and extract it on receive.
- Configure the gateway to preserve and forward W3C traceparent and tracestate headers; Instrument the outgoing HTTP client to propagate OpenTelemetry trace context.
- Instrument the outgoing HTTP client to propagate OpenTelemetry trace context; do not configure the gateway to preserve and forward W3C traceparent and tracestate headers.
- Propagate tracing context through broker message properties and extract it on receive; Instrument the outgoing HTTP client to propagate OpenTelemetry trace context.
Explanation
Correct Answer
B:Traceparent context links work performed in different services into one distributed trace. client instrumentation carries the active trace into downstream service requests.
Incorrect Answers
A:Asynchronous boundaries need explicit propagation to correlate producer and consumer spans; Requirement 2 requires: instrument the outgoing HTTP client to propagate OpenTelemetry trace context.
C:Instrument the outgoing HTTP client to propagate OpenTelemetry trace context; do not configure the gateway to preserve and forward W3C traceparent and tracestate headers: client instrumentation carries the active trace into downstream service requests; requirement 1 requires: configuring the gateway to preserve and forward W3C traceparent and tracestate headers.
D:Configure the gateway to preserve and forward W3C traceparent and tracestate headers.
Question 409
An application uses managed identity successfully but cannot connect after Key Vault public network access is disabled. A security review finds the vault still accepts requests from unrestricted public networks despite a defined private endpoint. What is the most appropriate plan for this situation?
- Disable unnecessary public access and restrict permitted Key Vault network paths; do not Provide permitted private endpoint connectivity and correct private DNS resolution.
- Repair the private DNS zone link and endpoint name resolution for the Function VNet; Disable unnecessary public access and restrict permitted Key Vault network paths.
- 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.
Explanation
Correct Answer
C:Vault RBAC cannot compensate for a network path that is not allowed to reach the endpoint. creating a private endpoint does not automatically remove all other permitted access routes.
Incorrect Answers
A:Disable unnecessary public access and restrict permitted Key Vault network paths; do not Provide permitted private endpoint connectivity and correct private DNS resolution: 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:Provide permitted private endpoint connectivity and correct private DNS resolution.
D:A private endpoint is effective only when clients resolve and route to its private address; Requirement 2 requires: disable unnecessary public access and restrict permitted Key Vault network paths.
Question 410
A private Azure Database for PostgreSQL instance accepts connections using a shared superuser account from all microservices. A PostgreSQL server blocks a Container App whose database role is valid, because traffic originates outside the permitted private network. Which course of action addresses the stated issues?
- Configure supported private network connectivity and DNS for the container workload; do not create least-privilege application roles for the exact schemas and operations.
- Create least-privilege application roles for the exact schemas and operations; configure supported private network connectivity and DNS for the container workload.
- Create least-privilege application roles for the exact schemas and operations; Move the credential into an approved secret store and rotate the exposed password.
- Move the credential into an approved secret store and rotate the exposed password; configure supported private network connectivity and DNS for the container workload.
Explanation
Correct Answer
B:Scoped database roles reduce the impact of one compromised service credential. database authorization cannot bypass an unavailable or disallowed network path.
Incorrect Answers
A:Configure supported private network connectivity and DNS for the container workload; do not create least-privilege application roles for the exact schemas and operations: database authorization cannot bypass an unavailable or disallowed network path; requirement 1 requires: creating least-privilege application roles for the exact schemas and operations.
C:Removing source text alone does not invalidate a credential that was already disclosed; requirement 2 requires: configuring supported private network connectivity and DNS for the container workload.
D:Create least-privilege application roles for the exact schemas and operations.
Developing AI Cloud Solutions on Azure (AI-200) Practice Tests