AZ-304 Azure Application Architecture Design โ Questions and Answers
Question 1: Which Azure service is best suited for implementing a serverless, event-driven architecture that responds to HTTP triggers without managing infrastructure?
- Azure Logic Apps
- Azure Functions (Correct answer)
- Azure Service Bus
- Azure Event Grid
Correct answer: Azure Functions
Azure Functions supports HTTP triggers and runs serverless code without managing infrastructure, making it ideal for event-driven architectures.
Question 2: A company is designing a microservices architecture requiring built-in service discovery, load balancing, and automated rollouts. Which Azure service best meets these requirements?
- Azure Container Instances
- Azure App Service
- Azure Kubernetes Service (AKS) (Correct answer)
- Azure Virtual Machine Scale Sets
Correct answer: Azure Kubernetes Service (AKS)
AKS provides built-in service discovery, load balancing, automated rollouts, and self-healing capabilities essential for microservices architectures.
Question 3: An application must process messages in strict order with exactly-once delivery guarantees. Which Azure messaging service should be selected?
- Azure Event Hubs
- Azure Event Grid
- Azure Service Bus with sessions (Correct answer)
- Azure Queue Storage
Correct answer: Azure Service Bus with sessions
Azure Service Bus with sessions ensures ordered, exactly-once delivery by binding related messages to a named session and processing them sequentially.
Question 4: A web application tier must scale horizontally without maintaining server-side session state. Which approach best enables this design?
- Store sessions in local disk on each VM
- Use sticky sessions on Azure Load Balancer
- Offload session state to Azure Cache for Redis (Correct answer)
- Increase VM size to handle more concurrent sessions
Correct answer: Offload session state to Azure Cache for Redis
Offloading session state to Azure Cache for Redis makes the web tier stateless, allowing any instance to handle any request and enabling true horizontal scaling.
Question 5: Which cloud design pattern is specifically intended to prevent a failing component from causing cascading failures across a distributed system?
- Retry pattern
- Queue-based load leveling
- Circuit Breaker pattern (Correct answer)
- Bulkhead pattern
Correct answer: Circuit Breaker pattern
The Circuit Breaker pattern monitors failures and opens the circuit to stop calling a failing service, preventing cascading failures across the system.
Question 6: An architect needs to ensure a multi-region application routes new users to the closest available region while failing over automatically if a region goes down. Which service should be used?
- Azure Load Balancer
- Azure Application Gateway
- Azure Traffic Manager (Correct answer)
- Azure Internal Load Balancer
Correct answer: Azure Traffic Manager
Azure Traffic Manager uses DNS-based routing with health probes to direct users to the closest healthy endpoint, providing automatic geographic failover.
Question 7: A solution must decouple a high-throughput data producer from slower consumers to prevent the producer from being blocked. Which pattern addresses this requirement?
- Synchronous request-response
- Queue-based load leveling (Correct answer)
- Direct method invocation
- Polling pattern
Correct answer: Queue-based load leveling
Queue-based load leveling uses a queue as a buffer between the producer and consumer, decoupling them and smoothing out traffic spikes.
Question 8: 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 9: 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 10: 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 11: 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 12: 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 13: 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 14: 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.
Question 15: A company needs to expose internal REST APIs to external partners with rate limiting, authentication policies, and a developer portal. Which Azure service should be used?
- Azure App Service
- Azure API Management (Correct answer)
- Azure Functions
- Azure Logic Apps
Correct answer: Azure API Management
Azure API Management provides a unified gateway with rate limiting, authentication policies, caching, and a built-in developer portal for exposing APIs to external consumers.
Question 16: An architect wants to deploy containerized tasks on-demand for short-lived workloads without managing any orchestration infrastructure. Which Azure service is most appropriate?
- Azure Virtual Machines
- Azure Container Instances (ACI) (Correct answer)
- Azure Kubernetes Service (AKS)
- Azure App Service with Docker
Correct answer: Azure Container Instances (ACI)
Azure Container Instances allows running containers directly without managing VMs or orchestrators, making it ideal for short-lived, on-demand workloads.
Question 17: A front-end application calls dozens of backend microservices. The architect wants a single entry point that aggregates calls, transforms responses, and enforces authentication. Which pattern should be implemented?
- Service Mesh pattern
- API Gateway pattern (Correct answer)
- Sidecar pattern
- Ambassador pattern
Correct answer: API Gateway pattern
The API Gateway pattern provides a single entry point for all client requests, handling cross-cutting concerns such as authentication, aggregation, and response transformation.
Question 18: A team needs to implement zero-downtime deployments for an Azure App Service application using a blue-green strategy. Which feature enables this?
- Azure DevOps rolling deployment
- Azure App Service deployment slots (Correct answer)
- Azure Traffic Manager weighted routing
- Azure Container Registry with webhooks
Correct answer: Azure App Service deployment slots
Azure App Service deployment slots let you deploy to a staging slot, warm it up, then perform an instant slot swap to production with zero downtime.
Question 19: A globally distributed HTTP/HTTPS application requires SSL offloading, WAF capabilities, intelligent routing to the nearest healthy origin, and built-in DDoS protection at the edge. Which Azure service should be recommended?
- Azure Load Balancer
- Azure Application Gateway
- Azure Traffic Manager
- Azure Front Door (Correct answer)
Correct answer: Azure Front Door
Azure Front Door provides global HTTP/HTTPS load balancing with WAF, SSL offloading, anycast routing to the nearest healthy origin, and integrated DDoS protection at the edge.
Question 20: An architect is implementing the Strangler Fig pattern to incrementally migrate a monolithic application to microservices. Which Azure service can act as the routing facade during migration?
- Azure Service Bus
- Azure API Management (Correct answer)
- Azure Functions
- Azure Logic Apps
Correct answer: Azure API Management
Azure API Management can proxy and route requests to either the legacy monolith or new microservices, enabling incremental migration without disrupting clients.
Question 21: An application needs to respond in near-real-time to resource changes in Azure (e.g., when a blob is added to Storage or a resource group is modified). Which service delivers these reactive event notifications?
- Azure Monitor Alerts
- Azure Event Grid (Correct answer)
- Azure Service Bus
- Azure Log Analytics
Correct answer: Azure Event Grid
Azure Event Grid delivers near-real-time event notifications about changes to Azure resources and custom topics, enabling reactive, event-driven application architectures.
Which Azure service is best suited for implementing a serverless, event-driven architecture that responds to HTTP triggers without managing infrastructure?
What Practice Test Geeks adds beyond an AI chat for AZ-304
An AI chatbot can quiz you, but it can't reproduce the exam conditions or keep your record. Here you get:
- A timed, full-length AZ-304 mock exam โ 50 questions in 150 minutes with a 70% pass mark, modeled on the official exam's question count and time limit, followed by a score report broken down by exam domain.
- A fixed AZ-304 question bank: the same test every attempt, so your score is comparable from one try to the next instead of changing with every regenerated quiz.
- Progress saved on your device: completed tests, scores and missed questions stay in My Progress, so you can retake only what you got wrong.
- A printable AZ-304 cheat sheet you can print or save as a PDF.
- AZ-304 flashcards built from the same question bank.
These practice questions were written with AI tools. They are not real exam questions. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- learn.microsoft.com โ Renewal, score validity, retake fee, exam format, time limit, fees, passing score, eligibility, exam information ยท verified Nov 2026
- home.pearsonvue.com โ Test delivery ยท verified Oct 2026