AZ-304 Azure Application Architecture Design 2 — Questions and Answers
Question 1: A company needs a publish-subscribe messaging pattern where each subscriber independently receives a copy of every message. Which Azure service should be used?
- Azure Queue Storage
- Azure Service Bus Topics (Correct answer)
- Azure Event Hubs
- Azure Relay
Correct answer: Azure Service Bus Topics
Azure Service Bus Topics with subscriptions implement the publish-subscribe pattern, delivering each message to every subscription independently.
Question 2: An application needs to reduce SQL Database read latency by caching frequently accessed query results in memory. Which Azure service provides a fully managed, in-memory caching solution?
- Azure Blob Storage
- Azure Table Storage
- Azure Cache for Redis (Correct answer)
- Azure Content Delivery Network
Correct answer: Azure Cache for Redis
Azure Cache for Redis is a fully managed, in-memory data store based on Redis that dramatically reduces data retrieval latency for frequently accessed data.
Question 3: A solution must ingest and process millions of events per second from thousands of IoT sensors with low latency. Which Azure service is most appropriate?
- Azure Service Bus
- Azure Event Hubs (Correct answer)
- Azure Event Grid
- Azure Notification Hubs
Correct answer: Azure Event Hubs
Azure Event Hubs is designed for high-throughput, low-latency event streaming and is the recommended solution for IoT telemetry ingestion at massive scale.
Question 4: An architect must design an orchestration solution that coordinates a sequence of long-running, stateful operations across multiple services with checkpointing support. Which Azure service is best suited?
- Azure Functions (Consumption plan)
- Azure Logic Apps
- Azure Durable Functions (Correct answer)
- Azure Batch
Correct answer: Azure Durable Functions
Azure Durable Functions extend Azure Functions with stateful orchestration, checkpointing, and support for long-running workflows through the Orchestrator function pattern.
Question 5: An application requires routing incoming HTTPS requests to different backend pools based on the URL path (e.g., /api/* to one pool, /images/* to another). Which Azure service provides this capability?
- Azure Traffic Manager
- Azure Load Balancer
- Azure Application Gateway (Correct answer)
- Azure Front Door
Correct answer: Azure Application Gateway
Azure Application Gateway supports URL path-based routing rules that direct traffic to different backend pools based on the request path.
Question 6: A CQRS implementation requires optimized read models served with sub-millisecond latency and a separate write store for transactional consistency. Which Azure combination best supports this pattern?
- Azure SQL Database for both reads and writes
- Azure Cosmos DB for writes and Azure Cache for Redis for reads (Correct answer)
- Azure Blob Storage for writes and Azure Table Storage for reads
- Azure Queue Storage for writes and Azure SQL Database for reads
Correct answer: Azure Cosmos DB for writes and Azure Cache for Redis for reads
CQRS separates the write model (Cosmos DB provides globally distributed transactional writes) from optimized read models (Redis delivers sub-millisecond read latency from cached projections).
Question 7: A messaging solution requires guaranteed at-least-once delivery, dead-lettering of unprocessable messages, and message deferral. Which Azure service provides all these features?
- Azure Event Grid
- Azure Event Hubs
- Azure Service Bus (Correct answer)
- Azure Notification Hubs
Correct answer: Azure Service Bus
Azure Service Bus provides guaranteed delivery, dead-letter queues for messages that cannot be processed, and message deferral for out-of-order processing scenarios.
A company needs a publish-subscribe messaging pattern where each subscriber independently receives a copy of every message.
Which Azure service should be used?