All Microsoft exams
Free AZ-305 practice test: 30 questions with answers
30 original questions for Designing Microsoft Azure Infrastructure Solutions, drawn from every topic area. Answer each one to see whether you got it right and why. No sign-up.
- Free questions
- 30
- Full bank
- 100 questions
All 30 AZ-305 questions with answers
The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.
Design governance and security (5 questions)
Question 1
A company with 40 subscriptions needs every subscription to enforce the same allowed Azure regions and required tags, with new subscriptions inheriting these rules automatically. Which design achieves this?
- ATags applied manually to each resource at deployment, with tag values typed in by an operator
- BA policy assigned separately to each subscription by hand with custom settings
- CManagement group hierarchy with Azure Policy assignments at the management group level
- DA shared spreadsheet listing approved regions and required tags, which staff review each quarter
Show answer and explanationHide answer
Correct answer: CPolicy assigned at a management group is inherited by all child subscriptions, including new ones, which enforces consistency at scale. Manual per-subscription assignments drift, manual tags are not enforced, and spreadsheets do not enforce anything.
Question 2
A financial company wants administrators to hold privileged roles only when needed, with approval and an audit trail, for both Azure resources and Microsoft Entra roles. Which solution should be recommended?
- APermanent Owner role on the root management group for every administrator account
- BA shared administrator account with a rotating password used by several engineers
- CGlobal Administrator for every team member in the primary tenant, assigned permanently
- DPrivileged Identity Management with eligible assignments, approval workflows and access reviews
Show answer and explanationHide answer
Correct answer: DPIM provides just-in-time elevation with approvals, time limits, audit and access reviews across Azure and Entra roles. Permanent Owner rights, shared accounts and broad global admin rights create standing privilege and weak accountability.
Question 3
A company must ensure that virtual machines in production are never deployed with public IP addresses, even when administrators have contributor access. Which control enforces this?
- AA reminder email to administrators asking them to avoid public IP addresses on VMs
- BAn Azure Policy with a deny effect for public IP addresses on production subscriptions
- CA tag named no-public-ip on each VM, reviewed by the platform team during quarterly governance checks
- DA network security group rule that is not inherited by child subnets or newly attached interfaces
Show answer and explanationHide answer
Correct answer: BA deny policy blocks the creation of resources that violate the rule regardless of role, which enforces the requirement. Reminders, tags and non-inherited rules do not prevent deployment.
Question 4
A company wants to protect its management plane so that resource changes are logged and alerts are raised for changes to critical resources. Which service provides the control-plane audit record?
- AThe virtual machine's guest operating system event log file
- BAzure Activity Log routed to a Log Analytics workspace
- CThe Azure pricing page and the monthly invoice breakdown
- DAzure Advisor recommendations for cost savings
Show answer and explanationHide answer
Correct answer: BThe Activity Log records control-plane operations, and routing it to Log Analytics allows alerting and retention. Guest OS logs do not capture management operations, Advisor gives recommendations, and the pricing page is not an audit record.
Question 5
A solution uses an Azure Key Vault for storing database credentials. The security team requires that key access be restricted per application and that access be auditable. Which design meets this?
- AShare one vault access key among every application, stored in the shared configuration and rotated manually by operators
- BStore the secrets in the application's configuration file, checked into the source repository so developers can read them
- CGive every application the Key Vault Administrator role on the subscription, which lets each one modify every secret or key
- DUse Key Vault with Azure RBAC role assignments per application identity and diagnostic logs sent to a workspace
Show answer and explanationHide answer
Correct answer: DPer-identity RBAC grants access narrowly, and diagnostic logs provide an audit trail of each access. Configuration files expose secrets, administrator roles are excessive, and shared keys cannot be audited per application.
Design infrastructure solutions (5 questions)
Question 6
An organization needs a private, high-bandwidth connection between its on-premises network and Azure, with a service-level commitment for availability. Which connectivity service should be recommended?
- AAzure ExpressRoute with redundant circuits
- BPublic internet with TLS 1.2 encryption
- CA single site-to-site VPN tunnel with BGP disabled
- DAzure Bastion for browser-based RDP and SSH access
Show answer and explanationHide answer
Correct answer: AExpressRoute provides private, high-bandwidth connectivity with service-level commitments, and redundant circuits improve availability. A single VPN tunnel has lower bandwidth and availability, public internet paths are not private, and Bastion provides administrative access.
Question 7
A web application needs autoscaling and deployment slots so that new versions can be tested before a swap to production. Which compute option is recommended?
- AAzure App Service with deployment slots and autoscale rules
- BA single VM with manual deployments inside one availability set
- CAzure Batch for web requests with pool sizing and job scheduling
- DAzure Lab Services for production web traffic at scale
Show answer and explanationHide answer
Correct answer: AApp Service provides deployment slots for testing and swapping releases, along with autoscale rules. A manually deployed VM, Batch and Lab Services do not provide this web hosting model.
Question 8
A containerized microservices platform needs managed Kubernetes with nodes that scale with demand. Which service and feature should be recommended?
- AAzure Blob Storage for container images and microservice state
- BAzure Virtual Desktop for remote office staff
- CAzure Kubernetes Service with the cluster autoscaler
- DA single container instance for every service in one group
Show answer and explanationHide answer
Correct answer: CAKS with the cluster autoscaler adds and removes nodes as workloads demand, which suits microservices. A single container instance, virtual desktops and blob storage do not orchestrate scalable container platforms.
Question 9
Which two design decisions reduce latency for users spread across several regions? (Choose two.)
- AUse Azure Front Door for global routing to the nearest healthy backend
- BDeploy the application in regions close to the users
- CRoute all traffic through a single region's VPN gateway
- DDisable caching for all static content
- EUse one public IP in a single region for every user
Show answer and explanationHide answer
Correct answer: A, BGlobal routing sends users to the nearest healthy backend, and deploying close to users reduces round-trip time. Routing everything through one region, disabling caching and a single regional IP all increase latency for distant users.
Question 10
A company needs central monitoring of virtual machine performance and alerts across many subscriptions. Which Azure service provides this?
- AAzure Cost Management budgets and cost analysis views
- BAzure Lab Services for classroom and training virtual machine labs
- CAzure Monitor with Log Analytics workspaces and alert rules
- DThe Azure Pricing Calculator estimate for planned workloads
Show answer and explanationHide answer
Correct answer: CAzure Monitor collects metrics and logs, Log Analytics stores and queries them centrally, and alert rules notify teams. Cost management, lab services and the pricing calculator are not monitoring platforms.
Design data storage solutions (5 questions)
Question 11
A database VM needs very low latency and high IOPS for its data disks. Which disk type is most appropriate?
- AAzure Files Cool tier
- BStandard HDD managed disk
- CPremium SSD v2 or Ultra Disk
- DAzure Blob Storage archive tier
Show answer and explanationHide answer
Correct answer: CPremium SSD v2 and Ultra Disks provide high IOPS and low latency for demanding database workloads. HDDs are slow, archive tiers are for rarely accessed blobs, and Cool file tiers are not VM data disks.
Question 12
A lift-and-shift application needs file shares that are accessed over SMB by several virtual machines. Which service fits?
- ABlob archive tier
- BAzure Queue Storage
- CAzure Files
- DAzure Table Storage
Show answer and explanationHide answer
Correct answer: CAzure Files provides managed SMB file shares that many virtual machines can mount. Table and queue storage are not file shares, and archive blobs are not accessed as SMB shares.
Question 13
A globally distributed application needs low-latency reads and writes in several regions, with the ability to write in each region. Which data service should be recommended?
- AAzure SQL single database in a region
- BAzure Cosmos DB with multi-region writes
- CAzure Storage tables in one region for telemetry
- DAzure Files Premium file shares for user profiles
Show answer and explanationHide answer
Correct answer: BCosmos DB supports multi-region writes with low latency across regions. A single-region SQL database, a single-region table service and Azure Files do not meet the multi-write global requirement.
Question 14
A company must keep backup files for seven years and prevent their deletion or modification during that period. Which storage feature meets this?
- AA nightly copy to a shared drive on a Windows file server host
- BSnapshots deleted after 24 hours by the scheduled cleanup script
- CBackups stored in a public container over HTTP
- DImmutable blob storage with a time-based retention policy
Show answer and explanationHide answer
Correct answer: DImmutable storage with a time-based retention policy prevents modification or deletion for the retention period, which meets compliance needs. Shared drives, short-lived snapshots and public containers do not provide that guarantee.
Question 15
Archive data is accessed about once a year, and the company wants the lowest storage cost for it. Which blob access tier should be recommended?
- AHot tier
- BArchive tier
- CPremium block blob
- DCool tier for daily reads
Show answer and explanationHide answer
Correct answer: BThe archive tier has the lowest storage cost for rarely accessed data, with rehydration needed before reading. Hot and premium tiers cost more for storage, and the cool tier is designed for less frequent access than daily reads.
Design network solutions (5 questions)
Question 16
A company must allow its on-premises users to reach a private web application in Azure through an internal load balancer, without exposing the app to the internet. Which design achieves this?
- AA public load balancer with an open inbound firewall rule that permits sources from the internet
- BAn internal load balancer and private IP addresses reached over ExpressRoute or VPN
- CEmail-based access to the application through a shared mailbox relay gateway
- DPublic IP addresses assigned directly to each VM's network interface behind a permissive NSG
Show answer and explanationHide answer
Correct answer: BInternal load balancers and private addresses keep the application off the internet, and ExpressRoute or VPN provide the private path from on-premises. Public load balancers, public VMs and email access expose or fail to serve the application.
Question 17
A company needs a network design where traffic between its spoke virtual networks is inspected by a central firewall. Which design is recommended?
- AA separate Microsoft Entra tenant created for each spoke virtual network, with no shared routing
- BPublic IP addresses assigned to every spoke VM for direct internet access and inbound routing
- CDirect VNet peering between every spoke pair in a full mesh with no firewall or route inspection for east-west traffic
- DA hub virtual network with Azure Firewall and user-defined routes that send spoke traffic through it
Show answer and explanationHide answer
Correct answer: DA hub with Azure Firewall and user-defined routes forces spoke traffic through the firewall for inspection. Direct peering without a firewall, public IPs and separate tenants do not provide central inspection.
Question 18
A company wants to reduce data egress costs and improve performance when users download large files stored in Azure. Which design element is recommended for content delivery?
- ACopying the files to the company's office server
- BDisabling caching for downloads at the origin
- CAzure CDN or Azure Front Door caching close to users
- DSending the files on encrypted removable drives by overnight courier
Show answer and explanationHide answer
Correct answer: CA CDN or Front Door caches content at edge locations, which reduces origin egress and speeds delivery. Office copies, disabled caching and couriers do not improve delivery for users at scale.
Question 19
A company needs name resolution for its private Azure resources from its on-premises network. Which design provides this?
- APublic DNS zone records published for every private IP address in the subnet range
- BAzure Private DNS zones with DNS forwarding to Azure from on-premises
- CA hosts file edited manually on every user's computer and laptop with static entries
- DNo DNS resolution in place, with users connecting to resources by IP address
Show answer and explanationHide answer
Correct answer: BPrivate DNS zones resolve private names inside Azure, and forwarding from on-premises DNS makes those names available to on-premises clients. Public records for private IPs, hosts files and IP-only access do not scale or secure private resolution.
Question 20
A company wants to restrict which of its virtual machines can communicate on specific ports, using rules that apply to groups of machines by role. Which Azure feature is recommended?
- AA single public IP address shared by every machine in the subnet for inbound internet access
- BNetwork security groups with application security groups for role-based rules
- CSharing one local administrator password across every VM in the scale set for remote logins
- DTurning off network filtering on the subnet and NICs for faster connectivity between roles
Show answer and explanationHide answer
Correct answer: BNetwork security groups with application security groups let rules target groups of VMs by role, which simplifies management. Public IPs, disabled filtering and shared passwords do not control traffic between roles.
Design business continuity solutions (5 questions)
Question 21
An application must fail over to a second region within minutes if the primary region fails. Which pattern and service fit this requirement?
- AA cold backup stored in the same region and restored manually after an outage
- BActive-passive design with failover groups or Azure Site Recovery
- CA manual restore from tape in a week during business hours
- DA single region with no failover so data and compute stay within one region
Show answer and explanationHide answer
Correct answer: BAn active-passive design with failover groups or Site Recovery can restore service in a secondary region within a short recovery time. Single-region deployments, tape restores and same-region backups cannot meet a fast regional failover target.
Question 22
A database must fail over automatically to a secondary region while keeping one connection endpoint for applications. Which Azure SQL feature provides this?
- ALocal backup only
- BRead-only replicas in the same zone
- CAuto-failover groups
- DExport to CSV
Show answer and explanationHide answer
Correct answer: CAuto-failover groups provide automatic failover to a secondary region and a stable listener endpoint for applications. Same-zone replicas, local backups and CSV exports do not provide regional failover with one endpoint.
Question 23
A workload must survive the failure of an entire datacentre within a region without downtime. Which design element is recommended?
- AAn availability set in a single datacentre with no zones configured
- BA single virtual machine with a larger disk and a premium managed SSD
- CManual failover after an outage is reported by the on-call engineer
- DZone-redundant resources spread across availability zones
Show answer and explanationHide answer
Correct answer: DAvailability zones are separate datacentres within a region, and zone-redundant resources continue when one zone fails. Availability sets protect against hardware faults within a datacentre, a single VM has no redundancy, and manual failover causes downtime.
Question 24
Which two design choices improve the resiliency of an Azure SQL Database workload? (Choose two.)
- AKeep all backups in the same region only
- BUse a zone-redundant configuration
- CUse a single database with no backups
- DConfigure geo-replication or failover groups to a secondary region
- EDisable automated backups to reduce cost
Show answer and explanationHide answer
Correct answer: B, DZone redundancy protects against datacentre failures within a region, and geo-replication or failover groups protect against regional failures. Same-region-only backups, no backups and disabled backups all leave the workload exposed.
Question 25
A database must have a recovery point objective of 15 minutes. Which design element addresses this requirement?
- AA weekly full backup with incremental snapshots taken once per week at night on Sunday
- BSnapshots taken every three days from the managed disk on each VM
- CNo backup policy, with the data stored on one managed disk
- DFrequent backups or replication that keeps data loss within 15 minutes
Show answer and explanationHide answer
Correct answer: DThe recovery point objective is the maximum acceptable data loss, so frequent backups or replication are needed to meet 15 minutes. Weekly or three-day backups and no backup cannot meet this objective.
Design compute solutions (5 questions)
Question 26
A batch-processing workload runs for a few hours each night and can tolerate interruptions. The company wants the lowest cost for the compute. Which option should be recommended?
- ASpot virtual machines in a scale set for interruptible batch work
- BDedicated hosts kept powered on continuously and billed for every hour
- COn-demand VMs locked to one fixed size with no scheduling of batch workloads
- DReserved instances on one-year terms for a workload that runs a few hours daily
Show answer and explanationHide answer
Correct answer: ASpot VMs offer large discounts for interruptible workloads, and scale sets can manage capacity. Dedicated hosts running constantly, fixed on-demand VMs and reservations for a few hours of use all cost more than necessary for this pattern.
Question 27
A legacy application requires a specific operating system version and drivers that cannot run in a container. The application needs to scale out during peak hours. Which design is most appropriate?
- AA serverless function on a consumption plan with a five-minute time limit
- BA single large VM pinned to one instance with no scaling rules or second node
- CVirtual machine scale set with a custom image and autoscale rules
- DA container instance that cannot load the required drivers
Show answer and explanationHide answer
Correct answer: CA scale set with a custom image supports the required OS and drivers and scales out with autoscale rules. Functions do not run the legacy stack, a single VM cannot scale out, and containers cannot run the required drivers.
Question 28
A company needs to run a large number of high-performance compute jobs in parallel for simulations, and the jobs must be scheduled across a pool of machines. Which service is recommended?
- AAzure Batch with a pool of compute nodes
- BAzure Monitor workbooks for reporting dashboards
- CAzure Front Door with global routing rules
- DAzure Bastion for secure RDP access
Show answer and explanationHide answer
Correct answer: AAzure Batch schedules parallel and high-performance jobs across pools of nodes, which suits simulations. Bastion provides access, Front Door routes web traffic, and Monitor workbooks visualize data.
Question 29
An event-driven workload processes uploaded images and must scale to zero when idle to minimize cost. Which compute option fits best?
- AAzure Functions on a consumption or flex consumption plan
- BA VM that runs 24 hours a day
- CA dedicated App Service plan with a fixed number of instances
- DA dedicated host for each image
Show answer and explanationHide answer
Correct answer: AFunctions on consumption-style plans scale to zero and bill per execution, which suits event-driven image processing. Fixed App Service plans, always-on VMs and dedicated hosts cost money while idle.
Question 30
A company is moving a Windows application to Azure and wants Microsoft to manage the operating system updates and patching. The application does not need administrative access to the OS. Which service is most suitable?
- AVirtual machines in a self-managed IaaS setup with manual OS patching by staff
- BPhysical servers housed in the company's on-premises server room with manual upkeep
- CBare-metal servers in a colocation centre with customer-managed guest OS images
- DAzure App Service or a platform service that the application can run on
Show answer and explanationHide answer
Correct answer: DPlatform services remove OS patching from the customer when full OS control is not required. Manually patched VMs, colocation servers and office hardware leave patching to the company.
Want more AZ-305 questions?
The full bank has 100 questions with answers and explanations, as a PDF, an online practice exam, or both.
Both formats together. The best value.
Instant access after payment, with 90 days of updates. Checkout is on our store, AIExamCerts.