Azure Solutions Architect Domain 4: Design Infrastructure Solutions
66 free practice questions for Design Infrastructure Solutions in the Microsoft Azure Solutions Architect Expert (AZ-305) exam. Try each question first, then open "Show answer" for the correct option and explanation.
Design Infrastructure Solutions practice questions
-
Question 1. A legacy Windows app must move to Azure quickly with no code changes and full OS control. What should be recommended?
Show answer
Answer: C. Azure Virtual Machines
Rehosting on VMs needs no code changes and keeps OS-level control.
-
Question 2. A web app built with .NET needs managed hosting, autoscale, deployment slots, and custom domains. What fits BEST?
Show answer
Answer: C. Azure App Service
App Service is PaaS for web apps with built-in scaling, slots, and TLS.
-
Question 3. Microservices in containers need autoscaling to zero, HTTP ingress, and Dapr, without managing Kubernetes. What fits?
Show answer
Answer: A. Azure Container Apps
Container Apps is serverless containers built on Kubernetes, with KEDA scaling and Dapr.
-
Question 4. A platform team needs full Kubernetes API access, custom operators, and node control. What should be recommended?
Show answer
Answer: D. Azure Kubernetes Service (AKS)
AKS provides a managed control plane with full Kubernetes flexibility.
-
Question 5. A short-lived task runs a container once a day for a few minutes, with no orchestration. What is simplest?
Show answer
Answer: C. Azure Container Instances or a Container Apps job
Per-second billing for a single run avoids paying for idle infrastructure.
-
Question 6. Code must run when a message arrives in a queue, scale automatically, and cost nothing when idle. What fits?
Show answer
Answer: D. Azure Functions on the Flex Consumption plan
Event-driven functions scale on demand and bill per execution on consumption plans.
-
Question 7. An Azure Functions app needs VNet integration, no cold starts, and fast scaling. Which hosting option fits?
Show answer
Answer: D. Flex Consumption with always-ready instances, or Premium
These plans support VNet integration and pre-warmed instances.
-
Question 8. A long-running workflow calls several functions, waits for human approval, and must keep state. What should be used?
Show answer
Answer: A. Durable Functions orchestrations
Durable Functions handle state, checkpoints, timers, and external events in code.
-
Question 9. Business users need to automate workflows between SaaS apps with a low-code designer and connectors. What fits?
Show answer
Answer: C. Azure Logic Apps
Logic Apps offers hundreds of connectors and a visual workflow designer.
-
Question 10. A large rendering job needs thousands of VMs for a few hours, scheduled and managed as tasks. What fits?
Show answer
Answer: A. Azure Batch
Batch schedules parallel and HPC jobs across pools of VMs, including Spot VMs.
-
Question 11. A VM workload must scale out automatically based on CPU, with identical VMs across zones. What should be designed?
Show answer
Answer: A. VM Scale Sets with autoscale across zones
Scale sets manage identical VMs and scale them with rules or predictive autoscale.
-
Question 12. Interruptible, fault-tolerant batch workloads must run at the lowest compute cost. What should be used?
Show answer
Answer: C. Azure Spot Virtual Machines
Spot VMs use spare capacity at deep discounts but can be evicted.
-
Question 13. Steady VM usage will continue for 3 years. How can compute costs be reduced BEST?
Show answer
Answer: A. Azure Reservations or a savings plan for compute
Commitments reduce the price for predictable usage. Azure Hybrid Benefit also cuts license costs.
-
Question 14. A company has Windows Server and SQL Server licenses with Software Assurance. How can it reduce Azure costs?
Show answer
Answer: C. Use Azure Hybrid Benefit
Hybrid Benefit lets existing licenses cover the OS or SQL cost on Azure.
-
Question 15. Regulations require VMs to run on physical servers not shared with other customers. What fits?
Show answer
Answer: C. Azure Dedicated Host
Dedicated Hosts give single-tenant physical servers and maintenance control.
-
Question 16. Two tiers of an app need the lowest network latency between their VMs. What should be designed?
Show answer
Answer: D. A proximity placement group
Proximity placement groups keep VMs physically close in one datacenter.
-
Question 17. Hub-and-spoke networking is chosen for many workloads. What typically lives in the hub?
Show answer
Answer: B. Shared services like the firewall, VPN gateway, and Bastion
The hub centralizes connectivity and security, and spokes peer to it.
-
Question 18. Many branch offices, VNets, and users need a managed global transit network with automated routing. What fits?
Show answer
Answer: B. Azure Virtual WAN
Virtual WAN provides managed hubs with VPN, ExpressRoute, and routing at scale.
-
Question 19. Traffic between spokes and to the internet must be inspected and filtered centrally. What should the hub include?
Show answer
Answer: B. Azure Firewall, with UDRs sending traffic to it
UDRs force traffic through the firewall, which applies network and application rules.
-
Question 20. A company needs a private, dedicated connection from its data centers to Azure with predictable latency. What should be used?
Show answer
Answer: D. Azure ExpressRoute
ExpressRoute uses a private connection through a connectivity provider, not the internet.
-
Question 21. ExpressRoute must stay available if one circuit's location fails. What is the resilient design?
Show answer
Answer: D. Two circuits in different locations, or a VPN backup
Separate locations protect against site failures. A VPN adds a lower-cost fallback.
-
Question 22. Remote users must connect securely to Azure VNets from their laptops. What should be used?
Show answer
Answer: D. A point-to-site VPN on a VPN gateway
Point-to-site VPN supports Entra ID authentication and client certificates.
-
Question 23. Admins must RDP and SSH to VMs without public IPs, through the browser. What should be recommended?
Show answer
Answer: B. Azure Bastion
Bastion gives secure browser-based access over TLS with no VM public IPs.
-
Question 24. VMs in a subnet need a fixed set of outbound public IPs for partner allowlists. What fits?
Show answer
Answer: D. A NAT gateway on the subnet
NAT gateway gives scalable outbound connectivity with static public IPs.
-
Question 25. Apps must reach Azure SQL Database over a private IP with public access disabled. What should be designed?
Show answer
Answer: A. A private endpoint with a private DNS zone
Private endpoints give the service a private IP, and private DNS zones resolve its name to it.
-
Question 26. Name resolution for private endpoints must work from on-premises. What should the design include?
Show answer
Answer: B. DNS Private Resolver, with on-premises forwarding
The Private Resolver's inbound endpoint answers on-premises queries for private DNS zones.
-
Question 27. Which load balancer fits a global HTTP web app needing WAF, caching, and routing to the nearest healthy region?
Show answer
Answer: B. Azure Front Door
Front Door is a global layer 7 service with CDN, WAF, and health-based routing.
-
Question 28. A regional web app needs layer 7 routing by URL path and a web application firewall inside a VNet. What fits?
Show answer
Answer: A. Azure Application Gateway with WAF
Application Gateway is a regional layer 7 load balancer with path-based routing and WAF.
-
Question 29. A TCP/UDP app in one region needs very low-latency load balancing across VMs. What fits?
Show answer
Answer: C. Azure Load Balancer Standard
Load Balancer works at layer 4 with high throughput and zone redundancy.
-
Question 30. Inbound traffic to VMs must be filtered by source IP and port at the subnet level. What is the basic control?
Show answer
Answer: A. Network security groups
NSGs allow or deny traffic by 5-tuple rules at the subnet or NIC.
-
Question 31. Many NSG rules must refer to groups of VMs by role instead of IP addresses. What simplifies this?
Show answer
Answer: B. Application security groups
ASGs group NICs, so rules like "web to app on 443" don't depend on IPs.
-
Question 32. Public endpoints must be protected against large volumetric attacks with cost protection. What should be enabled?
Show answer
Answer: D. Azure DDoS Network Protection
DDoS Network Protection adds adaptive tuning, telemetry, and rapid response support.
-
Question 33. APIs from several backends must be published with rate limits, keys, and a developer portal. What should be used?
Show answer
Answer: D. Azure API Management
API Management adds policies such as throttling, auth, and transformation, plus a portal.
-
Question 34. Services must exchange messages with ordering, sessions, and dead-lettering. Which service fits?
Show answer
Answer: A. Azure Service Bus
Service Bus is an enterprise broker with sessions, transactions, and dead-letter queues.
-
Question 35. Apps must react to events such as a blob being created, using push delivery to many subscribers. What fits?
Show answer
Answer: C. Azure Event Grid
Event Grid routes discrete events from sources to handlers with filtering.
-
Question 36. A simple, cheap queue is needed for millions of small messages without ordering guarantees. What fits?
Show answer
Answer: C. Azure Queue Storage
Storage queues are simple and inexpensive, with fewer features than Service Bus.
-
Question 37. Which messaging service is designed for streaming telemetry at millions of events per second?
Show answer
Answer: A. Azure Event Hubs
Event Hubs partitions streams for high-throughput ingestion and replay.
-
Question 38. Which design choice lets App Service deploy new versions and swap them into production with no downtime?
Show answer
Answer: C. Deployment slots with swap
Slots warm up the new version, and swapping switches traffic instantly with rollback by swapping back.
-
Question 39. An App Service app must reach a database in a VNet. What should be configured?
Show answer
Answer: B. VNet integration on the app
VNet integration sends the app's outbound traffic into the VNet.
-
Question 40. An app requires single-tenant, fully isolated App Service hosting in a VNet at high scale. What fits?
Show answer
Answer: D. App Service Environment v3
ASE v3 runs App Service in your VNet on dedicated infrastructure.
-
Question 41. A static website with a serverless API needs global hosting and GitHub-based deployment. What fits?
Show answer
Answer: A. Azure Static Web Apps
Static Web Apps hosts static content globally and integrates with Functions APIs.
-
Question 42. Container images must be stored privately near AKS clusters in several regions. What should be used?
Show answer
Answer: C. Container Registry Premium with geo-replication
Geo-replicated registries serve pulls locally, and Premium adds private endpoints.
-
Question 43. AKS pods must access Azure resources without secrets. What should be designed?
Show answer
Answer: C. Microsoft Entra Workload ID for AKS
Workload ID federates a Kubernetes service account with an Entra identity.
-
Question 44. An AKS cluster's API server must not be reachable from the internet. What should be designed?
Show answer
Answer: B. A private AKS cluster, or API server VNet integration
Private clusters expose the API server only on private IPs.
-
Question 45. AKS node count must adjust automatically to pending pods. What should be enabled?
Show answer
Answer: A. The cluster autoscaler or node autoprovisioning
The cluster autoscaler adds nodes when pods can't be scheduled and removes idle nodes.
-
Question 46. A company wants a managed desktop experience for remote workers with Windows apps. What fits?
Show answer
Answer: B. Azure Virtual Desktop
Azure Virtual Desktop delivers virtual desktops and apps with multi-session Windows.
-
Question 47. An assessment of on-premises servers is needed before migration, with sizing and cost estimates. What should be used?
Show answer
Answer: B. Azure Migrate discovery and assessment
Azure Migrate discovers servers, maps dependencies, and recommends Azure sizes and costs.
-
Question 48. Web apps on IIS servers must move to App Service with minimal effort. What helps?
Show answer
Answer: C. The App Service migration tooling in Azure Migrate
Migration tools assess and move .NET web apps from IIS to App Service at scale.
-
Question 49. Which Well-Architected pillar focuses on protecting data and systems, such as with encryption and identity?
Show answer
Answer: B. Security
The five pillars are reliability, security, cost optimization, operational excellence, and performance efficiency.
-
Question 50. An architect must review a workload against Microsoft best practices and get prioritized recommendations. What fits?
Show answer
Answer: D. The Well-Architected Review and Azure Advisor
The review assesses the workload, and Advisor gives ongoing recommendations.
-
Question 51. A design must spread traffic across regions in proportion, sending 10% to a new region for testing. What fits?
Show answer
Answer: A. Weighted routing in Front Door or Traffic Manager
Weighted routing splits traffic by the weights you assign.
-
Question 52. An app needs to connect to an on-premises service without opening inbound firewall ports. What fits?
Show answer
Answer: C. Azure Relay hybrid connections
Relay uses outbound connections from on-premises, so no inbound ports are needed.
-
Question 53. Hundreds of VNets must follow the same connectivity and security rules. Which service manages this centrally?
Show answer
Answer: B. Azure Virtual Network Manager
Network Manager applies connectivity configurations and security admin rules across VNets.
-
Question 54. An app handles sensitive data and needs hardware-based protection of data in use. What should be recommended?
Show answer
Answer: D. Azure confidential computing VMs
Confidential VMs use trusted execution environments to protect data during processing.
-
Question 55. A GPU-intensive AI training job needs specialized VMs. Which VM family fits?
Show answer
Answer: A. N-series VMs
N-series VMs include NVIDIA or AMD GPUs for AI, rendering, and visualization.
-
Question 56. A design must reduce data transfer costs and latency for users downloading large static files worldwide. What fits?
Show answer
Answer: B. Azure Front Door caching (CDN)
Edge caching serves content near users and reduces origin egress.
-
Question 57. Which compute option fits an app that must run the same container image with minimal changes across Azure and on-premises Kubernetes?
Show answer
Answer: D. AKS and AKS enabled by Azure Arc
AKS on Arc brings a consistent Kubernetes platform to on-premises and edge.
-
Question 58. An app's workload is predictable during business hours only. How should a VM Scale Set scale to save cost?
Show answer
Answer: B. Scheduled autoscale profiles for business hours
Scheduled profiles set capacity by time, and metric rules can handle spikes.
-
Question 59. Traffic between two VNets in the same region must stay on the Microsoft backbone with low latency. What should be used?
Show answer
Answer: A. VNet peering
Peering connects VNets privately, and routing is non-transitive by default.
-
Question 60. Which design keeps spoke-to-spoke traffic flowing through a central firewall in a hub-and-spoke network?
Show answer
Answer: B. Spoke UDRs that point to the hub firewall
Peering isn't transitive, so routes must send spoke traffic through the hub firewall.
-
Question 61. A web app must block common attacks like SQL injection and XSS at the edge. What should be enabled?
Show answer
Answer: A. A WAF policy with managed rules on Front Door
WAF managed rules cover OWASP threats and bots, with custom rules as needed.
-
Question 62. An API must be callable only from a VNet, while still using API Management features. What should be designed?
Show answer
Answer: B. API Management in internal VNet mode or via private endpoint
Internal mode or private endpoints keep the gateway on private IPs.
-
Question 63. Which approach reduces the carbon footprint and cost of idle development environments?
Show answer
Answer: B. Auto-shutdown and serverless options for dev
Shutting down or scaling to zero when idle saves both cost and energy.
-
Question 64. An architect needs to estimate the monthly cost of a proposed design. What should be used?
Show answer
Answer: C. The Azure pricing calculator
The pricing calculator estimates costs for chosen services, regions, and options.
-
Question 65. Which statement about serverless compute is correct for design decisions?
Show answer
Answer: C. It cuts operations work but may add cold starts and limits
Plans such as Flex Consumption and Premium reduce cold starts and add VNet integration.
-
Question 66. A design must let many apps share one set of configuration values and feature flags. What fits?
Show answer
Answer: B. Azure App Configuration
App Configuration centralizes settings and feature flags, with Key Vault references for secrets.
Microsoft and Azure are trademarks of the Microsoft group of companies. These questions are original study material, not questions from the real exam.