AZ-305 AZ-305 Mock Test
50 timed questions · 100 minutes · scored by domain, with re-study links for your weakest areas.
How it works: the timer starts as soon as this page loads. Answer each question, use the numbered dots to jump around, and flag questions to come back to. You see no feedback until you submit — just like the real exam. The pass guide is 70%: note that some vendors (including AWS) use scaled scoring and do not publish a percentage pass mark, so 70% is a study guide only.
Q1.A hospital is migrating to Entra ID. Clinicians share workstations and need fast sign-in; administrators need phishing-resistant authentication; and the security team requires that no single compromised credential can grant broad access. Which design best meets all three needs?
Explanation: FIDO2 gives administrators phishing-resistant authentication, Windows Hello provides fast passwordless sign-in on shared devices, and Conditional Access with MFA enforces strong authentication for everyone — addressing all three requirements. Option C is wrong because SMS is phishable and a shared admin account violates accountability. Option A is wrong because federation adds complexity without solving the workstation or phishing-resistance needs. Option D is wrong because no MFA for clinicians leaves credentials as a single point of compromise.
Exam objective: AZ-305 Domain 1: Design authentication and authorization solutions
Q2.A company is designing Conditional Access for 5,000 users. The CISO requires: MFA for everyone, blocked access from high-risk countries, compliant devices for the finance app, and a guaranteed recovery path if a policy misfires. Which design satisfies all four requirements?
Explanation: Separate policies implement each requirement cleanly, and the excluded emergency-access account guarantees recovery from a misconfiguration. Option D is wrong because it lacks the location block, the device requirement, and the recovery path. Option B is wrong because per-user MFA cannot express location or device conditions, and NSGs filter network traffic, not sign-ins. Option C is wrong because risk policies only act on risky sign-ins, not on every sign-in.
Exam objective: AZ-305 Domain 1: Design authentication and authorization solutions
Q3.An architect must design access for a DevOps team that deploys infrastructure daily. The team needs Contributor access to the development subscription, but must never have standing access to production. Production deployments happen through a pipeline. What is the best design?
Explanation: Contributor on dev gives the team daily working access, while PIM eligible assignments provide just-in-time production access only when needed — no standing production privilege. Option B is wrong because it grants standing Owner everywhere. Option A is wrong because Reader cannot deploy and email-based requests are not a controlled process. Option D is wrong because a broad custom role still grants standing access.
Exam objective: AZ-305 Domain 1: Design authentication and authorization solutions
Q4.A multinational company has 40 subscriptions across five business units. Each unit needs its own policies, but a core set of security policies must apply everywhere, and finance needs one bill per business unit. Which hierarchy design meets these needs?
Explanation: Management groups per business unit give each unit its own policy scope and a grouping for policy and cost reporting (subscriptions still bill separately), while the root management group carries the core policies that inherit to everything. Option D is wrong because one management group cannot scope policies per unit. Option A is wrong because one subscription per unit cannot isolate its environments or workloads. Option C is wrong because separate tenants fragment identity unnecessarily.
Exam objective: AZ-305 Domain 1: Design governance
Q5.A company wants to enforce that all storage accounts use private endpoints and that any storage account without one is automatically remediated. Which Azure Policy approach should the architect recommend?
Explanation: DeployIfNotExists both detects storage accounts lacking the required configuration and deploys the remediation — enforcement plus automatic fix. Option A is wrong because Deny blocks creation rather than remediating existing accounts. Option D is wrong because Audit only reports without fixing. Option B is wrong because locks prevent changes, which is the opposite of remediation.
Exam objective: AZ-305 Domain 1: Design governance
Q6.A security operations centre needs a single dashboard showing failed sign-ins across Entra ID, firewall denies from Azure Firewall, and VM security events, with automated investigation playbooks for common incidents. Which combination should the architect recommend?
Explanation: Sentinel centralises security data from all three sources via connectors, provides analytics rules and investigation, and automates response with playbooks — the complete SOC design. Option D is wrong because workbooks are reports, not a SIEM with detection and automation. Option A is wrong because Application Insights monitors application performance, not security events. Option B is wrong because Service Health reports Azure platform incidents.
Exam objective: AZ-305 Domain 1: Design solutions for logging and monitoring
Q7.A SaaS company is designing its database tier. Each tenant has a small database, tenant count grows monthly, and tenants have unpredictable usage spikes. The company wants one operational model and predictable cost. Which design should the architect recommend?
Explanation: An elastic pool shares compute across tenant databases so spikes are absorbed by the pool, cost is predictable, and per-database limits prevent one tenant from starving others. Option C is wrong because provisioning each database for peak wastes money. Option A is wrong because a single VM is a single point of failure and does not scale with tenant growth. Option B is wrong because a shared schema removes tenant isolation.
Exam objective: AZ-305 Domain 2: Design data storage solutions for relational data
Q8.A global gaming company needs a leaderboard that supports millions of writes per second worldwide, single-digit-millisecond reads in every region, and automatic conflict resolution when the same player updates from two regions. Which data service should the architect recommend?
Explanation: Cosmos DB multi-region writes deliver single-digit-millisecond reads and writes globally, and its conflict resolution policies (last-writer-wins or custom) handle concurrent cross-region updates. Option D is wrong because SQL geo-replication is active-passive for writes and cannot match Cosmos DB's global write latency. Option A is wrong because Blob Storage is object storage, not a low-latency database. Option C is wrong because Table storage lacks multi-region writes and global low latency.
Exam objective: AZ-305 Domain 2: Design data storage solutions for semi-structured and unstructured data
Q9.A hospital stores patient records that must be retained for 10 years, must be recoverable if accidentally deleted, and must be protected against ransomware encrypting the storage account. Which combination should the architect recommend?
Explanation: Versioning and soft delete recover accidental deletions, immutable storage prevents modification or deletion for 10 years, and vaulted backup keeps isolated copies that ransomware in the account cannot reach — all three requirements covered. Option D is wrong because Hot LRS has no protection against deletion or ransomware. Option B is wrong because Archive GRS protects against regional failure, not deletion or tampering. Option A is wrong because snapshots alone do not provide immutability or isolated backup.
Exam objective: AZ-305 Domain 2: Design data storage solutions for semi-structured and unstructured data
Q10.A company is building a real-time fraud detection system. Transactions stream in at 100,000 per second, must be scored within 2 seconds, and results must feed a dashboard and a case-management database. Which architecture should the architect recommend?
Explanation: Event Hubs ingests the high-volume stream, Stream Analytics scores transactions in real time, Power BI visualises results, and Cosmos DB stores cases with low latency — the complete streaming architecture. Option C is wrong because hourly batch cannot score within 2 seconds. Option B is wrong because one-at-a-time queue processing cannot handle 100,000 events per second. Option D is wrong because nightly batch processing is far too slow.
Exam objective: AZ-305 Domain 2: Design data integration
Q11.A bank's core system has an RPO of 5 minutes and an RTO of 30 minutes for regional failure. It runs on VMs with an Azure SQL Database. Which design meets these objectives?
Explanation: Continuous Site Recovery replication keeps VM data current within minutes, and a SQL failover group with automatic failover restores the database within the 30-minute RTO — the only option meeting a 5-minute RPO for regional failure. Option D is wrong because daily backups cannot meet a 5-minute RPO. Option C is wrong because zone redundancy protects against datacentre failure, not regional failure. Option B is wrong because hourly snapshots exceed the 5-minute RPO and stay in the failed region.
Exam objective: AZ-305 Domain 3: Design solutions for backup and disaster recovery
Q12.A company has three workload tiers: Tier 1 (RPO 15 min, RTO 1 hour), Tier 2 (RPO 4 hours, RTO 8 hours), and Tier 3 (RPO 24 hours, RTO 48 hours). The architect must design business continuity cost-effectively. Which approach is best?
Explanation: Tiering matches the technology to the objectives: only Tier 1 justifies continuous replication, Tier 2 is served by frequent backups with geo-redundant storage, and Tier 3 by cheap daily local backups — the cost-effective design. Option B is wrong because replication for Tier 3 wastes money. Option D is wrong because daily backup cannot meet Tier 1's 15-minute RPO. Option A is wrong because hot standby for all tiers is the most expensive option.
Exam objective: AZ-305 Domain 3: Design solutions for backup and disaster recovery
Q13.A solution chains three services in sequence with SLAs of 99.99 percent, 99.95 percent, and 99.9 percent. What is the approximate composite SLA of the solution?
Explanation: The composite SLA is the product of the component SLAs: 0.9999 × 0.9995 × 0.999 = 0.9984, or approximately 99.84 percent. Option D is wrong because the strongest component does not determine the total. Option B is wrong because the middle value has no meaning in SLA arithmetic. Option C is wrong because the composite is the product, which is lower than the weakest single component.
Exam objective: AZ-305 Domain 3: Design for high availability
Q14.A company runs a stateful application on VMs where each VM holds session data in memory. Users lose their sessions when a VM fails. What should the architect recommend?
Explanation: Externalising session state to Redis makes the application tier stateless: any VM can serve any user, so a VM failure loses no sessions. Option D is wrong because more VMs do not help when each holds its own session state. Option B is wrong because backup restores data, not live sessions. Option A is wrong because a larger VM still loses its in-memory sessions on failure.
Exam objective: AZ-305 Domain 3: Design for high availability
Q15.A startup is building a containerised API with unpredictable traffic that can spike 20x during marketing campaigns. The team is small, has no Kubernetes experience, and wants to pay only for what it uses. Which compute service should the architect recommend?
Explanation: Container Apps provides serverless containers with scale-to-zero and consumption billing, handling 20x spikes automatically without Kubernetes expertise. Option B is wrong because AKS requires Kubernetes expertise and always-on node costs. Option C is wrong because reserved instances bill continuously and VMs are the wrong model for a containerised API. Option D is wrong because the Dedicated plan bills for always-on capacity rather than usage.
Exam objective: AZ-305 Domain 4: Design compute solutions
Q16.A company is modernising a monolithic application into microservices. Orders must be processed exactly once, inventory updates must follow order creation in sequence, and the notification service must react to order events without polling. Which combination should the architect recommend?
Explanation: Service Bus sessions provide ordered, reliable message processing for orders and inventory, while Event Grid delivers order-created events reactively to the notification service — each service used for its strength. Option C is wrong because Queue Storage has no ordering or exactly-once guarantees. Option D is wrong because Event Hubs is a telemetry streaming service, not an ordered command channel. Option A is wrong because direct HTTP calls create tight coupling and no durable messaging.
Exam objective: AZ-305 Domain 4: Design an application architecture
Q17.A company is migrating 200 VMs and 30 databases to Azure over six months. The CIO wants each migration wave validated before the next begins, and the ability to roll back any wave. Which approach should the architect recommend?
Explanation: Dependency-grouped waves with test migrations and per-wave validation give controlled progress and rollback (sources stay live until validated) — the CAF-recommended approach. Option D is wrong because a single big-bang cutover maximises risk with no rollback. Option A is wrong because migrating databases without their applications breaks dependencies, and skipping testing is reckless. Option B is wrong because Data Box moves data, not running VMs.
Exam objective: AZ-305 Domain 4: Design migrations
Q18.A company is designing a hub-and-spoke network with 30 spokes. The security team requires all spoke internet traffic to pass through the hub firewall, and the platform team wants centralised management of connectivity and security rules. Which combination should the architect recommend?
Explanation: Forced tunnelling routes all spoke internet traffic through the hub firewall, and Virtual Network Manager centralises connectivity and security administration across the 30 spokes. Option A is wrong because full-mesh peering does not route traffic through the hub firewall. Option D is wrong because 30 firewalls multiply cost and management. Option B is wrong because route filters control ExpressRoute advertised routes, not spoke internet traffic.
Exam objective: AZ-305 Domain 4: Design network solutions
Q19.A financial services company must ensure that data in Azure Storage and Key Vault can never be accessed over the public internet, including by its own applications. Which design should the architect recommend?
Explanation: Private endpoints give the services private IPs inside the VNet, disabling public access removes the public endpoint entirely, and private DNS zones resolve the service names to the private IPs — the complete private-access design. Option B is wrong because service endpoints secure the public endpoint but do not remove it. Option A is wrong because NSGs cannot remove a PaaS public endpoint. Option C is wrong because firewall rules filter traffic but the public endpoint still exists.
Exam objective: AZ-305 Domain 4: Design network solutions
Q20.A media streaming company serves video globally. Users report buffering during peak hours, and the origin servers are overloaded. The company also needs protection against HTTP-based attacks. Which design should the architect recommend?
Explanation: Front Door caches video at edge locations near users (reducing origin load and buffering) and its WAF protects against HTTP attacks, with global anycast routing to regional origins. Option B is wrong because regional load balancers do not cache content or protect against web attacks. Option C is wrong because Traffic Manager only routes DNS; it does not cache or filter. Option A is wrong because a single larger origin does not solve global latency or attack protection.
Exam objective: AZ-305 Domain 4: Design network solutions
Q21.An organisation runs Active Directory Domain Services on-premises and is adopting Microsoft 365. Security policy forbids password hashes from leaving the on-premises network, but users must be able to sign in to cloud applications with their existing credentials. Which hybrid identity authentication method should the architect recommend?
Explanation: Pass-through authentication validates passwords against on-premises AD DS in real time through lightweight agents, so no password hash ever leaves the premises — it directly satisfies the stated policy. Option A is wrong because PHS syncs password hashes to Entra ID, violating the policy. Option C would also keep hashes on-premises, but federation is far more complex (highly available AD FS and proxy infrastructure) and is not justified when PTA meets the requirement. Option B is wrong because cloud-only accounts would not use the existing on-premises credentials at all.
Exam objective: AZ-305 Domain 1: Design authentication and authorization solutions
Q22.A company with 20,000 employees is rolling out MFA. Attackers have been bombarding users with MFA approval prompts, hoping someone approves one by mistake. Which configuration change best addresses this specific attack?
Explanation: Number matching requires the user to type the number shown on the sign-in screen into the Authenticator app, so an attacker-initiated prompt cannot be approved by an accidental tap — it directly defeats MFA fatigue attacks. Option C is wrong because it weakens MFA coverage rather than fixing the prompt-spam problem. Option D is wrong because shorter sessions would increase the number of prompts, making fatigue worse. Option A is wrong because SMS codes are weaker than app approvals and do nothing about prompt bombing.
Exam objective: AZ-305 Domain 1: Design authentication and authorization solutions
Q23.A developer has been assigned the Contributor role on a storage account but reports she cannot read the blobs inside it. The architect must fix this with least privilege. What should be recommended?
Explanation: Contributor is a control-plane role: it manages the storage account resource but grants no data-plane access to blobs. Storage Blob Data Reader grants exactly the read access needed, with least privilege. Option D is wrong because Owner is far broader than needed and still does not grant data-plane access by itself. Option A is wrong because widening the scope does not change the control-plane/data-plane distinction. Option C is wrong because the write permission is a control-plane action and would not allow reading blob data.
Exam objective: AZ-305 Domain 1: Design authentication and authorization solutions
Q24.A company needs remote employees to access an internal HR web application hosted on-premises. The security team will not open any inbound firewall ports, and access must require MFA. Which solution should the architect recommend?
Explanation: Application proxy publishes internal web apps without inbound firewall ports — the on-premises connector makes outbound connections — and Entra ID authentication with Conditional Access enforces MFA before users reach the app. Option C is wrong because it exposes the app publicly and does not provide Entra authentication. Option B is wrong because moving the app is a migration project, not a publishing solution, and a public app lacks the required controls. Option D is wrong because a shared VPN key provides no per-user authentication or MFA.
Exam objective: AZ-305 Domain 1: Design authentication and authorization solutions
Q25.An architect wants to enforce that all virtual machines are deployed only in the West Europe and North Europe regions. The team is unsure how many existing deployments would be affected. What is the best first step?
Explanation: Starting with Audit measures the blast radius without breaking anything; once the compliance report shows what would be blocked, the team can remediate and then switch to Deny. Option D is wrong because an immediate Deny could block legitimate deployments and break existing automation. Option C is wrong because locks prevent modification or deletion, not deployment location. Option A is wrong because RBAC cannot express location-based rules — that is Policy's job.
Exam objective: AZ-305 Domain 1: Design governance
Q26.A company must demonstrate compliance with ISO 27001 across its Azure estate and remediate gaps. Which combination should the architect recommend?
Explanation: Defender for Cloud maps resources against the ISO 27001 standard and reports compliance posture with remediation guidance, while Azure Policy enforces the controls — reporting plus enforcement. Option B is wrong because Cost Management addresses spend, not compliance. Option A is wrong because locks prevent accidental changes but do not assess or enforce compliance standards. Option D is wrong because read access for auditors is not a compliance programme.
Exam objective: AZ-305 Domain 1: Design governance
Q27.A company must retain Azure activity logs for seven years for regulatory compliance, but only needs to query the most recent 90 days interactively. What is the most cost-effective design?
Explanation: The workspace gives fast interactive querying for 90 days, while the storage account provides cheap long-term archival for the remaining seven years — the standard compliance pattern. Option B is wrong because seven years of hot workspace retention is far more expensive than archival storage. Option C is wrong because an event hub is a streaming pipe, not a retention store. Option D is wrong because manual monthly exports are unreliable and unqueryable at scale.
Exam objective: AZ-305 Domain 1: Design solutions for logging and monitoring
Q28.A security team wants to collect security events from Azure, Microsoft 365, and on-premises firewalls in one place, run threat-detection rules over them, and automate incident response. Which service should the architect recommend?
Explanation: Microsoft Sentinel is Azure's cloud-native SIEM: it centralises security data from Azure, Microsoft 365, and third-party sources, applies analytics rules for threat detection, and automates response with playbooks. Option D is wrong because workbooks are interactive reports, not a SIEM. Option A is wrong because availability tests check whether a URL responds, not security events. Option B is wrong because Service Health reports Azure platform incidents, not customer security telemetry.
Exam objective: AZ-305 Domain 1: Design solutions for logging and monitoring
Q29.A company is migrating an on-premises application that uses SQL Server Agent jobs, cross-database queries, and database mail. The application must move to Azure with minimal code changes. Which database service should the architect recommend?
Explanation: SQL Managed Instance provides near-100 percent SQL Server compatibility, including SQL Server Agent, cross-database queries, and database mail — the instance-level features this application depends on. Option B is wrong because Azure SQL Database does not support SQL Server Agent or cross-database queries. Option A is wrong because Cosmos DB is a NoSQL service and cannot run a SQL Server workload. Option D is wrong because PostgreSQL is a different database engine requiring application changes.
Exam objective: AZ-305 Domain 2: Design data storage solutions for relational data
Q30.A company runs an Azure SQL Database in West Europe and needs automatic failover to North Europe if the region fails, without changing the application connection string. What should the architect recommend?
Explanation: A failover group provides automatic failover to the geo-secondary and a single read-write listener endpoint, so applications keep the same connection string. Option C is wrong because active geo-replication requires manual failover and per-database endpoints. Option D is wrong because point-in-time restore is a recovery operation, not automatic failover. Option B is wrong because zone redundancy protects against datacentre failure within a region, not regional failure.
Exam objective: AZ-305 Domain 2: Design data storage solutions for relational data
Q31.A reporting workload runs heavy read queries against an Azure SQL Database and is slowing down the transactional application that shares it. The database is on the Business Critical tier. What is the simplest fix?
Explanation: Business Critical includes a free read-only replica; read scale-out routes reporting queries to it, isolating the analytical load from the transactional workload at no extra cost. Option D is wrong because General Purpose has no free read replica and would not solve the contention. Option B is wrong because serverless auto-scaling changes compute capacity but does not separate the workloads. Option A is wrong because failover groups provide disaster recovery, not read isolation.
Exam objective: AZ-305 Domain 2: Design data storage solutions for relational data
Q32.A global e-commerce application needs single-digit-millisecond reads and writes in five regions, with users always seeing their own writes. Which Cosmos DB consistency level should the architect recommend?
Explanation: Session consistency guarantees read-your-own-writes within a session — a user always sees their own updates — while allowing lower latency than Strong. Option A is wrong because Strong consistency adds cross-region latency on every write and is unnecessary when only session-level guarantees are needed. Option D is wrong because Eventual offers no ordering or read-your-own-writes guarantees. Option B is wrong because Consistent prefix guarantees ordering but not that a user sees their own latest write.
Exam objective: AZ-305 Domain 2: Design data storage solutions for semi-structured and unstructured data
Q33.A company stores critical documents in Blob Storage. The documents must remain readable from a secondary region during a regional outage, and the storage must survive a datacentre failure in the primary region. Which redundancy option should the architect recommend?
Explanation: RA-GZRS combines zone redundancy in the primary region (survives datacentre failure) with geo-replication to a paired region plus read access to the secondary — matching both requirements. Option D is wrong because LRS keeps copies only in one datacentre. Option A is wrong because ZRS has no geo-replication for regional outages. Option C is wrong because GRS provides no read access to the secondary during an outage and no zone redundancy in the primary region.
Exam objective: AZ-305 Domain 2: Design data storage solutions for semi-structured and unstructured data
Q34.A logistics company ingests 500,000 telemetry events per second from delivery vehicles and needs to detect speeding events in real time and alert dispatchers. Which combination should the architect recommend?
Explanation: Event Hubs handles millions of events per second of telemetry ingestion, and Stream Analytics processes the stream in real time with SQL-like queries to detect speeding events — the standard streaming pattern. Option C is wrong because Event Grid routes discrete events, not high-volume telemetry streams. Option D is wrong because nightly batch processing cannot detect events in real time. Option B is wrong because Service Bus is a message broker for application messaging, not a streaming analytics platform.
Exam objective: AZ-305 Domain 2: Design data integration
Q35.A company has data spread across Azure SQL Database, Data Lake Storage, and on-premises systems. The compliance team needs a single catalog showing where sensitive data lives, its lineage, and its classification. Which service should the architect recommend?
Explanation: Microsoft Purview provides data discovery, cataloging, lineage, and classification across Azure and on-premises sources — the data governance answer. Option A is wrong because Data Factory moves data; it does not catalog or classify it. Option B is wrong because Azure Monitor tracks infrastructure telemetry, not data governance. Option D is wrong because Power BI visualises data; it does not discover or classify it across sources.
Exam objective: AZ-305 Domain 2: Design data integration
Q36.A company's critical application has an RPO of 30 minutes and an RTO of 2 hours for a regional outage. The application runs on Azure VMs with Azure SQL Database. What should the architect recommend?
Explanation: Site Recovery replicates the VMs continuously for failover within the 2-hour RTO, and a SQL failover group provides automatic database failover — together they meet both objectives for a regional outage. Option A is wrong because daily backups cannot meet a 30-minute RPO. Option C is wrong because geo-redundant disk storage does not fail over running VMs. Option B is wrong because zone redundancy protects against datacentre failure within a region, not a regional outage.
Exam objective: AZ-305 Domain 3: Design solutions for backup and disaster recovery
Q37.A company was hit by ransomware that encrypted production data and also deleted the backups in the Recovery Services vault. What should the architect recommend to prevent backup deletion in future attacks?
Explanation: Soft delete retains deleted backups for recovery, immutable vaults prevent backup deletion entirely, and multi-user authorisation requires a second approver for destructive operations — together they stop an attacker (even with admin credentials) from destroying backups. Option D is wrong because more frequent backups are still deletable. Option C is wrong because a storage account in another region is equally deletable if the attacker has credentials. Option B is wrong because encryption protects data confidentiality, not deletion.
Exam objective: AZ-305 Domain 3: Design solutions for backup and disaster recovery
Q38.A company stores critical blobs in a storage account and wants backup copies isolated from the source account so that a compromise of the account cannot destroy the backups. Which backup approach should the architect recommend?
Explanation: Vaulted backup copies blob data into a separate Backup vault, isolated from the source storage account — a compromise of the account cannot reach the backups. Option C is wrong because operational backup relies on features within the same account, so an attacker with account access could delete the protected data. Option D is wrong because GRS replicates the account's data, including deletions, to another region. Option B is wrong because tiering changes storage cost, not backup isolation.
Exam objective: AZ-305 Domain 3: Design solutions for backup and disaster recovery
Q39.A company runs two VMs in a single datacentre and needs to protect against a datacentre power failure. The region supports availability zones. What should the architect recommend?
Explanation: Availability zones are physically separate datacentres, so spreading VMs across zones with a zone-redundant load balancer survives a datacentre power failure. Option B is wrong because availability sets spread VMs within one datacentre only. Option D is wrong because backup restores data; it does not keep the service running during an outage. Option C is wrong because more VMs in the same datacentre does not help when the datacentre loses power.
Exam objective: AZ-305 Domain 3: Design for high availability
Q40.A global application must serve users from the nearest region with automatic failover, and the data tier must support writes in multiple regions. Which combination should the architect recommend?
Explanation: Front Door provides global anycast routing to the nearest healthy region, and Cosmos DB multi-region writes let each region accept writes — the active-active pattern the scenario requires. Option B is wrong because SQL failover groups are active-passive: only one region accepts writes. Option C is wrong because Load Balancer is regional, not global. Option D is wrong because Application Gateway is regional and single-region Cosmos writes cannot serve multi-region write traffic.
Exam objective: AZ-305 Domain 3: Design for high availability
Q41.A team is building a microservices application in containers. They want automatic scaling, including scale-to-zero, but have no Kubernetes expertise and do not want to manage clusters. Which service should the architect recommend?
Explanation: Container Apps is the serverless container platform: microservices with autoscaling and scale-to-zero, built-in ingress and Dapr, without managing Kubernetes. Option D is wrong because AKS requires Kubernetes expertise and cluster management. Option B is wrong because Container Instances runs individual containers on demand; it is not a microservices platform. Option A is wrong because VMSS runs VMs, not containers, with far more management overhead.
Exam objective: AZ-305 Domain 4: Design compute solutions
Q42.A company needs to process images uploaded to Blob Storage. Processing takes 30 seconds per image, uploads are sporadic, and the solution must scale automatically with no idle cost. Which compute option should the architect recommend?
Explanation: Functions on the Consumption plan is event-driven, scales automatically, and bills only per execution with scale-to-zero — no idle cost for sporadic work. Option A is wrong because a minimum of two instances bills continuously even when idle. Option C is wrong because a fixed AKS node pool bills continuously and is overkill for sporadic image processing. Option B is wrong because Batch is designed for large parallel HPC jobs, not sporadic event-driven tasks.
Exam objective: AZ-305 Domain 4: Design compute solutions
Q43.An order-processing system must guarantee that messages are processed in order, never lost, and delivered to both the billing and shipping services. Which messaging service should the architect recommend?
Explanation: Service Bus topics with subscriptions deliver each message to multiple subscribers, and sessions provide ordered, exactly-once-style processing with dead-lettering — matching all three requirements. Option A is wrong because Queue Storage has no ordering guarantees or publish-subscribe. Option C is wrong because Event Grid is for event notifications, not ordered reliable messaging. Option D is wrong because Event Hubs is a telemetry streaming service, not an enterprise message broker.
Exam objective: AZ-305 Domain 4: Design an application architecture
Q44.A company wants to expose internal APIs to external partners with authentication, rate limiting, and usage quotas, plus a self-service developer portal. Which service should the architect recommend?
Explanation: API Management is the API gateway: authentication, rate limiting, quotas, transformation, and a developer portal are its core features. Option A is wrong because Front Door is a global load balancer and CDN, not an API gateway. Option D is wrong because Application Gateway is a layer-7 load balancer with WAF, not an API management platform. Option B is wrong because Service Bus is messaging, not API exposure.
Exam objective: AZ-305 Domain 4: Design an application architecture
Q45.A company must migrate a 2 TB production SQL Server database to Azure SQL Managed Instance with less than 30 minutes of downtime. Which approach should the architect recommend?
Explanation: An online DMS migration continuously replicates changes while the source stays live, then cuts over in minutes — meeting the 30-minute downtime requirement. Option A is wrong because an offline migration would leave the database unavailable for hours while 2 TB transfers. Option C is wrong because BACPAC export/import is offline and slow for a 2 TB database. Option B is wrong because AzCopy copies blobs and files, not live database contents.
Exam objective: AZ-305 Domain 4: Design migrations
Q46.A company needs to move 400 TB of archival data to Azure. Its internet connection is 100 Mbps and the migration window is two weeks. What should the architect recommend?
Explanation: 400 TB over 100 Mbps would take over a year; Data Box ships ruggedised storage devices for offline transfer, completing the move within the window. Option A is wrong because the network cannot move 400 TB in two weeks. Option D is wrong because Data Factory still transfers over the same slow network. Option C is wrong because File Sync synchronises file shares continuously; it does not solve the bulk transfer problem.
Exam objective: AZ-305 Domain 4: Design migrations
Q47.A company needs to connect its datacentre to Azure with guaranteed 5 Gbps bandwidth, consistent low latency, and no traffic over the public internet. Which connectivity option should the architect recommend?
Explanation: ExpressRoute provides a private dedicated connection with guaranteed bandwidth up to 100 Gbps, consistent latency, and no internet traversal — matching all requirements. Option C is wrong because VPN Gateway runs over the public internet with variable latency and lower practical bandwidth. Option D is wrong because point-to-site VPN connects individual clients, not a datacentre. Option A is wrong because Bastion provides secure VM management access, not datacentre connectivity.
Exam objective: AZ-305 Domain 4: Design network solutions
Q48.A security team requires that an Azure SQL Database be accessible only from within the corporate VNet, with no public endpoint. Which solution should the architect recommend?
Explanation: A private endpoint gives the database a private IP inside the VNet, and disabling public network access removes the public endpoint entirely — the only option that meets the 'no public endpoint' requirement. Option B is wrong because service endpoints secure the public endpoint but do not remove it. Option C is wrong because NSGs filter traffic to VMs and subnets, not PaaS public endpoints. Option D is wrong because Azure Firewall cannot remove a PaaS service's public endpoint.
Exam objective: AZ-305 Domain 4: Design network solutions
Q49.A global e-commerce site runs in three regions and needs users routed to the nearest healthy region with instant failover if a region fails. Which service should the architect recommend?
Explanation: Front Door uses anycast to route users to the nearest Microsoft edge point and fails over instantly at the edge when an endpoint becomes unhealthy — the fastest global failover for HTTP(S). Option D is wrong because Traffic Manager failover depends on DNS TTL, so it is slower. Option A is wrong because Application Gateway is a regional load balancer, not global. Option C is wrong because Load Balancer is regional and layer 4.
Exam objective: AZ-305 Domain 4: Design network solutions
Q50.A regional web application needs requests to /images/* routed to a storage-backed pool and requests to /api/* routed to an App Service pool, with TLS termination and WAF protection. Which service should the architect recommend?
Explanation: Application Gateway is the regional layer-7 load balancer with path-based routing, TLS termination, and an integrated WAF — matching every requirement. Option D is wrong because Load Balancer is layer 4 and cannot route by URL path. Option A is wrong because Traffic Manager is DNS-based global routing with no path-based rules or WAF. Option C is wrong because Front Door is global; the scenario is regional and Application Gateway is the regional answer.
Exam objective: AZ-305 Domain 4: Design network solutions