Question 800
Consider this Azure design: An App Service app needs connection secrets injected without placing secret values into source control or shared App Configuration key values. To address the recurring incident (The application fails after a manually copied connection password expires.), select THREE complementary actions: the direct design remedy, a direct acceptance test, and one ongoing protective control. Do not count a remedy for another workload as equivalent.
- Use Azure Key Vault references in App Service settings with a managed identity authorized to read the referenced secrets.
- Rotate a test secret in Key Vault and verify the app resolves the new value after supported refresh behavior.
- Review federated subject claims and repository environment approvals after workflow changes.
- Deploy to staging, verify slot-specific settings remain attached and perform controlled swap and rollback.
- Monitor Key Vault reference errors and managed identity access after app slot swaps.
- Use Azure App Configuration with labels and controlled application refresh integration.
Explanation
Correct Answers
A:The evidence (The application fails after a manually copied connection password expires.) identifies the following cause: Secrets were embedded in deployed app settings without vault-backed lifecycle management. The design that removes it is: Use Azure Key Vault references in App Service settings with a managed identity authorized to read the referenced secrets. The acceptance check is: Rotate a test secret in Key Vault and verify the app resolves the new value after supported refresh behavior.
B:The decisive evidence is: Rotate a test secret in Key Vault and verify the app resolves the new value after supported refresh behavior. This measures the mechanism of the planned change, not an unrelated Azure service: Use Azure Key Vault references in App Service settings with a managed identity authorized to read the referenced secrets.
E:The key follow-up control is: Monitor Key Vault reference errors and managed identity access after app slot swaps. It avoids recurrence of the scenario in which: The application fails after a manually copied connection password expires. It addresses: Secrets were embedded in deployed app settings without vault-backed lifecycle management.
Incorrect Answers
C:That safeguard manages another risk: Deployment trust relies on long-lived secrets instead of constrained OIDC federation. Its scenario is: A copied client secret in repository secrets must be rotated after accidental exposure. The present recurring risk is: Secrets were embedded in deployed app settings without vault-backed lifecycle management. The proper ongoing control is: Monitor Key Vault reference errors and managed identity access after app slot swaps.
D:That observation pertains to a separate failure: A slot swap exposes the staging database connection string to production. Its cause is: Slot-sticky configuration was not used for environment-specific settings. It does not confirm the result of this design. The direct proof would be: Rotate a test secret in Key Vault and verify the app resolves the new value after supported refresh behavior.
F:That design instead addresses another observed condition: App teams copy environment values into every deployment image and cannot change them centrally. Its technical cause is: Application configuration lacks a managed centralized service and refresh mechanism. The current workload exhibits: The application fails after a manually copied connection password expires. Its targeted remedy is: Use Azure Key Vault references in App Service settings with a managed identity authorized to read the referenced secrets.
Question 801
A design workshop has this requirement: A shopping cart API makes repeated reads for popular catalog items while the authoritative database is overloaded. Operators currently observe: Every customer request hits the database for the same rarely changing catalog item. Select the ONE design remedy that best addresses the root cause.
- Add a supported Azure managed Redis-compatible cache with appropriate TTL and cache-aside invalidation behavior.
- Use an API frontend to accept validated commands into a durable Service Bus queue, with independent scalable workers.
- Use supported API Management policies for JWT validation and throttling at the inbound processing stage.
- Use Azure Container Apps revision traffic splitting with an appropriate multiple-revision mode and routing.
Explanation
Correct Answer
A:The targeted implementation is: Add a supported Azure managed Redis-compatible cache with appropriate TTL and cache-aside invalidation behavior. The problem is not generic resource availability: No caching layer or invalidation strategy reduces repeated expensive reads. Verify the result by: Measure database read reduction and correct cache miss behavior after item changes.
Incorrect Answers
B:That design instead addresses another observed condition: Client HTTP requests frequently time out because processing runs synchronously for several minutes. Its technical cause is: Application processing and frontend request lifetime are tightly coupled. The current workload exhibits: Every customer request hits the database for the same rarely changing catalog item. Its targeted remedy is: Add a supported Azure managed Redis-compatible cache with appropriate TTL and cache-aside invalidation behavior.
C:This choice mitigates an alternative scenario, where: Invalid tokens and request bursts reach an otherwise healthy API backend. The underlying issue there is: API gateway inbound identity and traffic governance controls were not applied. Here the root issue is: No caching layer or invalidation strategy reduces repeated expensive reads. Choose the corresponding action: Add a supported Azure managed Redis-compatible cache with appropriate TTL and cache-aside invalidation behavior.
D:The option belongs to a different failure mechanism: Deployment has no revision-level incremental traffic control. That situation exhibits: Every user immediately receives an untested new container image. For the stated case, the remedy is: Add a supported Azure managed Redis-compatible cache with appropriate TTL and cache-aside invalidation behavior.
Question 802
The planned architecture is: Add a supported Azure managed Redis-compatible cache with appropriate TTL and cache-aside invalidation behavior. Workload context: A shopping cart API makes repeated reads for popular catalog items while the authoritative database is overloaded. Which acceptance test demonstrates that the required behavior works?
- Post a test command, observe fast 202/acknowledgment and eventual idempotent worker completion.
- Submit a wrong-audience JWT and excessive valid requests, confirming the gateway returns expected rejections.
- Measure database read reduction and correct cache miss behavior after item changes.
- Shift test traffic to the canary revision and confirm the configured percentage and rollback.
Explanation
Correct Answer
C:The acceptance test is specific: Measure database read reduction and correct cache miss behavior after item changes. Its purpose is to establish that the proposed architecture works: Add a supported Azure managed Redis-compatible cache with appropriate TTL and cache-aside invalidation behavior.
Incorrect Answers
A:The alternative test targets: Use an API frontend to accept validated commands into a durable Service Bus queue, with independent scalable workers. The scenario's actual proposed remedy is: Add a supported Azure managed Redis-compatible cache with appropriate TTL and cache-aside invalidation behavior. Verify that one by: Measure database read reduction and correct cache miss behavior after item changes.
B:This check validates a different workload: Submit a wrong-audience JWT and excessive valid requests, confirming the gateway returns expected rejections. Its associated design is: Use supported API Management policies for JWT validation and throttling at the inbound processing stage. The required acceptance test here is: Measure database read reduction and correct cache miss behavior after item changes.
D:The alternative test targets: Use Azure Container Apps revision traffic splitting with an appropriate multiple-revision mode and routing. The scenario's actual proposed remedy is: Add a supported Azure managed Redis-compatible cache with appropriate TTL and cache-aside invalidation behavior. Verify that one by: Measure database read reduction and correct cache miss behavior after item changes.
Question 803
The customer states: A shopping cart API makes repeated reads for popular catalog items while the authoritative database is overloaded. An incident reveals: Every customer request hits the database for the same rarely changing catalog item. What cause best accounts for this evidence?
- Application processing and frontend request lifetime are tightly coupled.
- No caching layer or invalidation strategy reduces repeated expensive reads.
- API gateway inbound identity and traffic governance controls were not applied.
- Deployment has no revision-level incremental traffic control.
Explanation
Correct Answer
B:The incident is explained by: No caching layer or invalidation strategy reduces repeated expensive reads. The reported symptom is: Every customer request hits the database for the same rarely changing catalog item. The corresponding design fix is: Add a supported Azure managed Redis-compatible cache with appropriate TTL and cache-aside invalidation behavior.
Incorrect Answers
A:The alternative weakness is: Application processing and frontend request lifetime are tightly coupled. Its associated failure is: Client HTTP requests frequently time out because processing runs synchronously for several minutes. Neither explains the present observation: Every customer request hits the database for the same rarely changing catalog item. The direct cause here is: No caching layer or invalidation strategy reduces repeated expensive reads.
C:The proposed diagnosis fits another scenario: API gateway inbound identity and traffic governance controls were not applied. It would typically be reflected by: Invalid tokens and request bursts reach an otherwise healthy API backend. The current evidence instead supports: No caching layer or invalidation strategy reduces repeated expensive reads.
D:The alternative weakness is: Deployment has no revision-level incremental traffic control. Its associated failure is: Every user immediately receives an untested new container image. Neither explains the present observation: Every customer request hits the database for the same rarely changing catalog item. The direct cause here is: No caching layer or invalidation strategy reduces repeated expensive reads.
Question 804
Workload context: A shopping cart API makes repeated reads for popular catalog items while the authoritative database is overloaded. The implemented remedy is: Add a supported Azure managed Redis-compatible cache with appropriate TTL and cache-aside invalidation behavior. Which ongoing practice most specifically prevents recurrence of this failure: Every customer request hits the database for the same rarely changing catalog item.?
- Monitor canary health and revision deactivation policy after full rollout.
- Regression-test gateway policy order and key claims after API registration changes.
- Monitor queue age and retry backlog separately from frontend latency.
- Monitor cache hit ratio and fall back safely when cache is unavailable.
Explanation
Correct Answer
D:The key follow-up control is: Monitor cache hit ratio and fall back safely when cache is unavailable. It avoids recurrence of the scenario in which: Every customer request hits the database for the same rarely changing catalog item. It addresses: No caching layer or invalidation strategy reduces repeated expensive reads.
Incorrect Answers
A:The proposed control focuses on: Deployment has no revision-level incremental traffic control. For the design in the question, recurrence comes from: No caching layer or invalidation strategy reduces repeated expensive reads. A precise prevention step is: Monitor cache hit ratio and fall back safely when cache is unavailable.
B:That safeguard manages another risk: API gateway inbound identity and traffic governance controls were not applied. Its scenario is: Invalid tokens and request bursts reach an otherwise healthy API backend. The present recurring risk is: No caching layer or invalidation strategy reduces repeated expensive reads. The proper ongoing control is: Monitor cache hit ratio and fall back safely when cache is unavailable.
C:This is a reasonable safeguard for a different fault: Client HTTP requests frequently time out because processing runs synchronously for several minutes. That different mechanism is: Application processing and frontend request lifetime are tightly coupled. The original incident here instead arises from: No caching layer or invalidation strategy reduces repeated expensive reads. The directly relevant safeguard is: Monitor cache hit ratio and fall back safely when cache is unavailable.
Question 805
A solution architect is reviewing a workload: A collaborative dashboard pushes live notifications to thousands of browser clients but the application should not maintain its own WebSocket fanout infrastructure. The observed incident is: A single web instance exhausts resources holding thousands of WebSocket connections. Which architecture choice most directly removes the identified weakness?
- Use Azure SignalR Service for supported real-time fanout and appropriate application authorization.
- Use Azure Container Apps revision traffic splitting with an appropriate multiple-revision mode and routing.
- Instrument services with Application Insights/OpenTelemetry correlation and preserve distributed trace context.
- Use Durable Functions orchestration with idempotent activity functions and appropriate state storage.
Explanation
Correct Answer
A:This option addresses the actual design defect: The architecture lacks a managed real-time connection fanout service. The correction is: Use Azure SignalR Service for supported real-time fanout and appropriate application authorization. Confirm the outcome with: Connect multiple test clients and verify one authorized update reaches intended channels.
Incorrect Answers
B:This choice mitigates an alternative scenario, where: Every user immediately receives an untested new container image. The underlying issue there is: Deployment has no revision-level incremental traffic control. Here the root issue is: The architecture lacks a managed real-time connection fanout service. Choose the corresponding action: Use Azure SignalR Service for supported real-time fanout and appropriate application authorization.
C:The option belongs to a different failure mechanism: Request/dependency trace correlation is missing across services. That situation exhibits: Infrastructure CPU dashboards appear healthy despite a stalled downstream dependency. For the stated case, the remedy is: Use Azure SignalR Service for supported real-time fanout and appropriate application authorization.
D:That design instead addresses another observed condition: An ordinary short-lived HTTP function times out while coordinating hours of dependent tasks. Its technical cause is: The workflow lacks durable checkpointed orchestrator state for long-running tasks. The current workload exhibits: A single web instance exhausts resources holding thousands of WebSocket connections. Its targeted remedy is: Use Azure SignalR Service for supported real-time fanout and appropriate application authorization.
Question 806
An architect proposes this change: Use Azure SignalR Service for supported real-time fanout and appropriate application authorization. The workload context is: A collaborative dashboard pushes live notifications to thousands of browser clients but the application should not maintain its own WebSocket fanout infrastructure. Which evidence would most directly validate the change?
- Shift test traffic to the canary revision and confirm the configured percentage and rollback.
- Run a test orchestration with one failing activity and verify replay and eventual aggregation behavior.
- Connect multiple test clients and verify one authorized update reaches intended channels.
- Trace a single slow checkout request across HTTP hops and database dependency calls.
Explanation
Correct Answer
C:The decisive evidence is: Connect multiple test clients and verify one authorized update reaches intended channels. This measures the mechanism of the planned change, not an unrelated Azure service: Use Azure SignalR Service for supported real-time fanout and appropriate application authorization.
Incorrect Answers
A:This check validates a different workload: Shift test traffic to the canary revision and confirm the configured percentage and rollback. Its associated design is: Use Azure Container Apps revision traffic splitting with an appropriate multiple-revision mode and routing. The required acceptance test here is: Connect multiple test clients and verify one authorized update reaches intended channels.
B:That observation pertains to a separate failure: An ordinary short-lived HTTP function times out while coordinating hours of dependent tasks. Its cause is: The workflow lacks durable checkpointed orchestrator state for long-running tasks. It does not confirm the result of this design. The direct proof would be: Connect multiple test clients and verify one authorized update reaches intended channels.
D:This check validates a different workload: Trace a single slow checkout request across HTTP hops and database dependency calls. Its associated design is: Instrument services with Application Insights/OpenTelemetry correlation and preserve distributed trace context. The required acceptance test here is: Connect multiple test clients and verify one authorized update reaches intended channels.
Question 807
During architecture troubleshooting, a team reports: A single web instance exhausts resources holding thousands of WebSocket connections. Context: A collaborative dashboard pushes live notifications to thousands of browser clients but the application should not maintain its own WebSocket fanout infrastructure. Which underlying design mistake explains the observed behavior most precisely?
- The architecture lacks a managed real-time connection fanout service.
- Deployment has no revision-level incremental traffic control.
- Request/dependency trace correlation is missing across services.
- The workflow lacks durable checkpointed orchestrator state for long-running tasks.
Explanation
Correct Answer
A:The incident is explained by: The architecture lacks a managed real-time connection fanout service. The reported symptom is: A single web instance exhausts resources holding thousands of WebSocket connections. The corresponding design fix is: Use Azure SignalR Service for supported real-time fanout and appropriate application authorization.
Incorrect Answers
B:The proposed diagnosis fits another scenario: Deployment has no revision-level incremental traffic control. It would typically be reflected by: Every user immediately receives an untested new container image. The current evidence instead supports: The architecture lacks a managed real-time connection fanout service.
C:The alternative weakness is: Request/dependency trace correlation is missing across services. Its associated failure is: Infrastructure CPU dashboards appear healthy despite a stalled downstream dependency. Neither explains the present observation: A single web instance exhausts resources holding thousands of WebSocket connections. The direct cause here is: The architecture lacks a managed real-time connection fanout service.
D:This cause would explain a different symptom: An ordinary short-lived HTTP function times out while coordinating hours of dependent tasks. The mechanism for that event is: The workflow lacks durable checkpointed orchestrator state for long-running tasks. Here the stated symptom is: A single web instance exhausts resources holding thousands of WebSocket connections. Its cause is: The architecture lacks a managed real-time connection fanout service.
Question 808
The design change is: Use Azure SignalR Service for supported real-time fanout and appropriate application authorization. The original failure was: A single web instance exhausts resources holding thousands of WebSocket connections. Which ongoing control best prevents recurrence of the same root cause?
- Review client group permissions and reconnection behavior after scaling.
- Monitor canary health and revision deactivation policy after full rollout.
- Audit function determinism and activity retry policy during runtime updates.
- Monitor trace sampling and instrumentation version across deployments.
Explanation
Correct Answer
A:The preventive control is: Review client group permissions and reconnection behavior after scaling. It targets the earlier cause: The architecture lacks a managed real-time connection fanout service. Confirm ongoing effectiveness by: Connect multiple test clients and verify one authorized update reaches intended channels.
Incorrect Answers
B:This is a reasonable safeguard for a different fault: Every user immediately receives an untested new container image. That different mechanism is: Deployment has no revision-level incremental traffic control. The original incident here instead arises from: The architecture lacks a managed real-time connection fanout service. The directly relevant safeguard is: Review client group permissions and reconnection behavior after scaling.
C:The proposed control focuses on: The workflow lacks durable checkpointed orchestrator state for long-running tasks. For the design in the question, recurrence comes from: The architecture lacks a managed real-time connection fanout service. A precise prevention step is: Review client group permissions and reconnection behavior after scaling.
D:That safeguard manages another risk: Request/dependency trace correlation is missing across services. Its scenario is: Infrastructure CPU dashboards appear healthy despite a stalled downstream dependency. The present recurring risk is: The architecture lacks a managed real-time connection fanout service. The proper ongoing control is: Review client group permissions and reconnection behavior after scaling.
Question 809
A design workshop has this requirement: A business process runs several independent Azure Functions tasks with fanout/fanin and may take hours, requiring reliable state across retries. Operators currently observe: An ordinary short-lived HTTP function times out while coordinating hours of dependent tasks. Select the ONE design remedy that best addresses the root cause.
- Use an API frontend to accept validated commands into a durable Service Bus queue, with independent scalable workers.
- Use Durable Functions orchestration with idempotent activity functions and appropriate state storage.
- Use Azure Event Hubs with partitioned event streams, independent consumer groups and checkpointed readers.
- Bind an Azure Functions Service Bus trigger with a compatible hosting plan and idempotent processing.
Explanation
Correct Answer
B:The targeted implementation is: Use Durable Functions orchestration with idempotent activity functions and appropriate state storage. The problem is not generic resource availability: The workflow lacks durable checkpointed orchestrator state for long-running tasks. Verify the result by: Run a test orchestration with one failing activity and verify replay and eventual aggregation behavior.
Incorrect Answers
A:This choice mitigates an alternative scenario, where: Client HTTP requests frequently time out because processing runs synchronously for several minutes. The underlying issue there is: Application processing and frontend request lifetime are tightly coupled. Here the root issue is: The workflow lacks durable checkpointed orchestrator state for long-running tasks. Choose the corresponding action: Use Durable Functions orchestration with idempotent activity functions and appropriate state storage.
C:That design instead addresses another observed condition: An ordinary business-command queue cannot supply the sustained streaming and replay pattern. Its technical cause is: A competing-consumer queue was used instead of an append-style partitioned event stream. The current workload exhibits: An ordinary short-lived HTTP function times out while coordinating hours of dependent tasks. Its targeted remedy is: Use Durable Functions orchestration with idempotent activity functions and appropriate state storage.
D:This choice mitigates an alternative scenario, where: A 24/7 virtual machine polls a queue inefficiently while the managed function is idle. The underlying issue there is: The integration omitted an event-triggered compute consumer. Here the root issue is: The workflow lacks durable checkpointed orchestrator state for long-running tasks. Choose the corresponding action: Use Durable Functions orchestration with idempotent activity functions and appropriate state storage.
Question 810
The planned architecture is: Use Durable Functions orchestration with idempotent activity functions and appropriate state storage. Workload context: A business process runs several independent Azure Functions tasks with fanout/fanin and may take hours, requiring reliable state across retries. Which acceptance test demonstrates that the required behavior works?
- Run a test orchestration with one failing activity and verify replay and eventual aggregation behavior.
- Post a test command, observe fast 202/acknowledgment and eventual idempotent worker completion.
- Send a test invoice command and confirm the function consumes and settles it according to retry settings.
- Run two consumer groups and verify each can independently replay and checkpoint a known event batch.
Explanation
Correct Answer
A:The acceptance test is specific: Run a test orchestration with one failing activity and verify replay and eventual aggregation behavior. Its purpose is to establish that the proposed architecture works: Use Durable Functions orchestration with idempotent activity functions and appropriate state storage.
Incorrect Answers
B:The alternative test targets: Use an API frontend to accept validated commands into a durable Service Bus queue, with independent scalable workers. The scenario's actual proposed remedy is: Use Durable Functions orchestration with idempotent activity functions and appropriate state storage. Verify that one by: Run a test orchestration with one failing activity and verify replay and eventual aggregation behavior.
C:This check validates a different workload: Send a test invoice command and confirm the function consumes and settles it according to retry settings. Its associated design is: Bind an Azure Functions Service Bus trigger with a compatible hosting plan and idempotent processing. The required acceptance test here is: Run a test orchestration with one failing activity and verify replay and eventual aggregation behavior.
D:That observation pertains to a separate failure: An ordinary business-command queue cannot supply the sustained streaming and replay pattern. Its cause is: A competing-consumer queue was used instead of an append-style partitioned event stream. It does not confirm the result of this design. The direct proof would be: Run a test orchestration with one failing activity and verify replay and eventual aggregation behavior.
Designing Microsoft Azure Infrastructure Solutions (AZ-305) Practice Tests