AZ-104 Practice Exam.
Free practice test — 40 verified questions, instant feedback.
Know the exam before you sit it
the facts most prep sites buryEvery free resource for this exam
family overview →Get a free AZ-104 study plan
A week-by-week plan plus new practice questions, straight to your inbox.
Frequently asked questions
What score do I need to pass the AZ-104 exam?
<p>You need a score of 700 or greater to pass AZ-104. Microsoft reports all technical exam scores on a scale of 1 to 1,000, so 700 is a scaled score — it does not simply mean answering 70% of the questions correctly, since question difficulty factors into scoring.</p><p>Importantly for test-day strategy, there is no penalty for guessing: no points are deducted for incorrect answers, so you should answer every single question, even if you have to guess. Practice this habit now — never leave a question blank in your practice sessions. After the exam, your score report shows your overall numeric score, your pass/fail status, and a bar chart of performance on each skill area, which is your roadmap for targeted review.</p>
Which AZ-104 domains should I spend the most practice time on?
<p>AZ-104 measures your skills across five functional groups, each with a published weighting range:</p><ul><li>Manage Azure identities and governance (20–25%)</li><li>Deploy and manage Azure compute resources (20–25%)</li><li>Implement and manage storage (15–20%)</li><li>Implement and manage virtual networking (15–20%)</li><li>Monitor and maintain Azure resources (10–15%)</li></ul><p>Identities and governance plus compute together can account for up to half the exam, so weakness in either is hard to overcome elsewhere — prioritize them if your practice scores are uneven. That said, even the lightest domain (monitoring, at 10–15%) carries enough weight to swing a borderline attempt, so don't skip it entirely.</p><p>Also practice under realistic conditions: you have 100 minutes for the exam, which is proctored and may include interactive components, so timed practice with hands-on-style questions is more valuable than untimed multiple-choice drilling alone.</p>
How soon can I retake AZ-104 if I fail my first attempt?
<p>If you fail AZ-104, you can retake it 24 hours after your first attempt. The exam is scheduled through Pearson VUE, and the price is based on the country or region where the exam is proctored — so budget for the possibility of paying a regional exam fee again on a retake.</p><p>Before rebooking, use your score report: it includes a bar chart showing your performance on each skill area assessed. Match the shortest bars against the domain weightings — a weak area in a heavily weighted domain like identities and governance or compute should be the focus of your practice before the second attempt, rather than re-reviewing everything equally.</p>
How often do I need to renew the Azure Administrator Associate certification, and is the renewal exam like the original?
<p>This role-based certification has a renewal frequency of 12 months, so plan on renewing annually — but the renewal is much lower-stakes than the original exam. There is no cost to renew the certification, and the renewal assessment is shorter than the original exam, unproctored, and open book. In practice, that means no Pearson VUE appointment, no proctor, and you can reference documentation while you take it.</p><p>You get a six-month renewal window to take the renewal assessment, and passing it extends your certification one year from the expiration date — so renewing early inside the window doesn't cost you any certification time. The practical takeaway: earning AZ-104 is the hard part; keeping it current is a free, annual, open-book check-in.</p>
Browse all questions & answers
1. An administrator needs a new user account to be able to reset passwords for other non-admin users in the Azure AD tenant, but should not be able to create or delete subscriptions or manage billing. Which type of role should be assigned?
- A. An Azure AD built-in role such as Helpdesk Administrator
- B. An Azure RBAC Owner role at the subscription scope
- C. An Azure RBAC Contributor role at the management group scope
- D. A classic service administrator role
Show answer & explanation
Answer: A
Azure AD (Microsoft Entra ID) built-in directory roles like Helpdesk Administrator govern directory-level actions such as password resets and are separate from Azure RBAC, which governs access to Azure resources like subscriptions and resource groups. Owner and Contributor are Azure RBAC roles that control resource management, not directory user administration, and would grant far more (or unrelated) permissions than needed. A classic service administrator role is a legacy subscription-level construct unrelated to directory user management.2. A company wants to ensure that whenever a new storage account is created in any subscription under a management group, it must use only Standard_LRS or Standard_GRS SKUs, with non-compliant accounts blocked at creation time. Which Azure governance feature should be used?
- A. An Azure Policy definition with a 'deny' effect assigned at the management group
- B. An Azure Blueprint assigned to each subscription individually
- C. A resource lock set to 'CanNotDelete' on each storage account
- D. An RBAC custom role restricting storage account creation permissions
Show answer & explanation
Answer: A
Azure Policy with a deny effect evaluates resource properties (like SKU) at creation and blocks non-compliant deployments, and assigning it at the management group scope applies it to all child subscriptions automatically. Blueprints orchestrate artifacts like policies and role assignments as a package but the enforcement mechanism for a SKU restriction is still a policy; assigning per-subscription is also less efficient than a management-group assignment. Resource locks only prevent deletion or modification of existing resources, not SKU selection at creation. A custom RBAC role can restrict who can create storage accounts but cannot enforce which SKU is chosen.3. You need to grant a user permission to manage all resources within a single resource group, but that user must not be able to grant access to other users. Which built-in role satisfies this requirement?
- A. Contributor
- B. Owner
- C. Reader
- D. User Access Administrator
Show answer & explanation
Answer: A
Contributor grants full read/write management of resources in scope but explicitly excludes the ability to modify role assignments, which matches the requirement. Owner includes everything Contributor has plus the ability to assign roles to other users, exceeding the requirement. Reader only allows viewing resources, not managing them. User Access Administrator manages role assignments but does not by itself grant broad resource management rights.4. An organization has enabled self-service password reset (SSPR) for its Azure AD users. A user reports they cannot use SSPR even though it is enabled tenant-wide. What is the most likely explanation?
- A. The user's account was not included in the SSPR policy's scoped group and has not registered authentication methods
- B. SSPR only works for accounts synchronized from on-premises Active Directory
- C. SSPR requires an Azure subscription with at least Contributor access
- D. SSPR is only available to Global Administrator accounts
Show answer & explanation
Answer: A
SSPR can be enabled for 'Selected' groups of users rather than all users, and even enabled users must register authentication methods (like phone or authenticator app) before they can use it, so an unregistered or out-of-scope user would be unable to reset their own password. SSPR works for both cloud-only and hybrid-synced accounts (with password writeback for hybrid). SSPR is a directory feature unrelated to Azure resource RBAC roles like Contributor. Global Administrators are not the only accounts eligible for SSPR; in fact restricting SSPR to only admins would defeat its self-service purpose.5. A resource group contains a virtual machine that must never be accidentally deleted, but administrators still need to resize its disks and change its NIC configuration regularly. Which resource lock type should be applied?
- A. ReadOnly
- B. CanNotDelete
- C. Contributor deny assignment
- D. Owner lock
Show answer & explanation
Answer: B
A CanNotDelete lock prevents the resource from being deleted while still allowing read and write operations such as resizing disks or updating NIC settings. A ReadOnly lock would block the required configuration changes since it prevents all modifications, not just deletion. 'Contributor deny assignment' and 'Owner lock' are not actual Azure resource lock types; Azure only supports CanNotDelete and ReadOnly as lock levels.6. An administrator wants to create a role that allows users to start and restart virtual machines but not stop, delete, or resize them. No built-in role matches exactly. What should the administrator do?
- A. Create a custom RBAC role with specific 'Microsoft.Compute/virtualMachines/start/action' and restart actions permitted
- B. Assign the Virtual Machine Contributor role and rely on user training to avoid stopping VMs
- C. Use a management group deny assignment to block the stop action for all users
- D. Create an Azure AD administrative unit scoped to the VM resource
Show answer & explanation
Answer: A
Custom RBAC roles let administrators define a precise set of allowed and not-allowed actions (using Actions and NotActions), which is the correct mechanism to grant only start/restart while excluding stop, delete, and resize. Virtual Machine Contributor grants broad management including stop, delete, and resize, so relying on training does not technically enforce the restriction. Deny assignments are typically created by Azure (e.g., for managed apps) and are not a standard user-configurable mechanism for this scenario at the management group level in this way. Administrative units organize Azure AD objects like users and groups for delegated administration; they do not scope Azure resource-level action permissions on VMs.7. A subscription administrator needs a report of which user made which changes to resources over the past 30 days, including failed operations. Where should they look?
- A. Activity log
- B. Azure AD sign-in logs
- C. Network Watcher topology view
- D. Azure Advisor recommendations
Show answer & explanation
Answer: A
The Activity log records subscription-level control-plane operations (create, update, delete, and their success or failure status) along with the caller identity, making it the correct source for an audit of who changed what. Azure AD sign-in logs show authentication events, not resource management operations. Network Watcher's topology view visualizes network resource relationships, not a change history. Azure Advisor provides best-practice recommendations, not an audit trail of actions taken.8. A virtual machine's CPU has been consistently above 90% for several days, and the administrator wants an automatic email and a Logic App to fire when this happens again. What should be configured?
- A. An Azure Monitor metric alert rule with an action group containing email and Logic App actions
- B. A Log Analytics saved search with no linked alert
- C. An Azure Advisor cost recommendation
- D. A Network Watcher connection monitor
Show answer & explanation
Answer: A
Azure Monitor metric alert rules can evaluate a signal like CPU percentage against a threshold and, when triggered, invoke an action group that can send email notifications and call a Logic App, exactly matching the requirement. A saved search without a linked alert only stores a query for manual review and does not trigger automatic notifications. Azure Advisor cost recommendations address spending efficiency, not performance thresholds or automated remediation. Network Watcher's connection monitor tests network reachability, not CPU utilization.9. An administrator wants to reduce cost on a set of dev/test VMs that are only needed during business hours, without manually starting and stopping them each day. What is the most appropriate solution?
- A. Configure the Start/Stop VMs during off-hours feature or an Automation runbook on a schedule
- B. Change the VM size to a smaller SKU permanently
- C. Move the VMs to a different region with lower list prices
- D. Enable Azure Spot pricing on the existing running VMs
Show answer & explanation
Answer: A
A scheduled Start/Stop solution (via the dedicated feature or an Automation runbook) automatically deallocates VMs outside business hours, stopping compute billing during idle periods and restarting them for use, which precisely matches the need for automated, scheduled operation. Simply downsizing the VM does not address the fact that they run continuously and only need to run part of the day. Changing regions might offer marginal pricing differences but does not solve the core problem of paying for idle time. Spot pricing is designed for interruptible workloads that Azure can reclaim, and converting an existing running dev/test VM to Spot does not equate to scheduling its uptime and does not guarantee availability during required business hours.10. You need to collect and centralize performance counters and event logs from 50 Azure and on-premises Windows servers for querying with Kusto Query Language (KQL). What should you deploy?
- A. Azure Monitor Agent sending data to a Log Analytics workspace
- B. Azure Storage Explorer connected to each server's local disk
- C. Network Watcher's flow logs feature
- D. Azure Backup Recovery Services vault
Show answer & explanation
Answer: A
The Azure Monitor Agent, deployed via data collection rules, gathers performance counters and event logs from both Azure and on-premises (Arc-enabled) machines and sends them to a Log Analytics workspace, where KQL queries can be run in Log Analytics. Storage Explorer is a tool for browsing blobs, files, queues, and tables, not for aggregating logs across servers. Network Watcher flow logs capture NSG traffic flow data, not general performance counters and event logs. A Recovery Services vault is used for backup and site recovery, not log collection and querying.11. An administrator wants to be notified before a scheduled maintenance event affects their VMs, and to see the health history of the underlying Azure platform. Which tool should be used?
- A. Azure Service Health / Resource Health
- B. Azure Policy compliance dashboard
- C. Cost Management + Billing
- D. Azure Migrate assessment
Show answer & explanation
Answer: A
Azure Service Health tracks planned maintenance, service issues, and health advisories affecting a subscription's resources and region, while Resource Health shows the current and historical health of individual resources, matching the need to be alerted about upcoming maintenance and to review platform health history. Azure Policy's compliance dashboard reports on adherence to governance rules, not platform outages or maintenance. Cost Management + Billing tracks spending, not service health. Azure Migrate is used to assess and migrate on-premises workloads to Azure, unrelated to ongoing platform health notifications.12. A company wants to keep 90 days of detailed diagnostic logs from an Azure SQL Database for compliance auditing, queryable later if needed, at the lowest ongoing cost. Where should the diagnostic settings send the logs?
- A. An Azure Storage account configured with the desired retention
- B. A Log Analytics workspace only, queried continuously in real time
- C. An Event Hub with no downstream consumer
- D. The Activity log, which already retains data indefinitely
Show answer & explanation
Answer: A
Sending diagnostic logs to a storage account is the most cost-effective option for long-term archival when logs are needed only occasionally for auditing rather than real-time analysis, and retention policies can be configured on the storage. Log Analytics workspaces provide powerful real-time querying but incur higher per-GB ingestion and retention costs, which is unnecessary if the logs are mainly for later compliance lookups. Sending to an Event Hub with no consumer just streams data without any retention or storage, so the logs would be lost. The Activity log captures control-plane subscription events and has its own fixed retention; it is not a destination for resource-level diagnostic logs like SQL Database query/audit logs.13. A team needs to deploy 20 identical VMs with consistent configuration, extensions, and naming, and wants to be able to redeploy the same environment in another subscription later. What is the best approach?
- A. Author an ARM/Bicep template and deploy it as a repeatable, parameterized deployment
- B. Manually create each VM through the Azure portal and document the steps in a wiki
- C. Create one VM and use the Azure portal's 'Export template' only, never reusing it
- D. Use Azure Advisor to generate VM configurations automatically
Show answer & explanation
Answer: A
ARM or Bicep templates provide declarative, idempotent, parameterized infrastructure-as-code that can be redeployed consistently across subscriptions or environments, exactly meeting the repeatability requirement. Manually creating VMs through the portal is error-prone and does not guarantee consistency, and documentation alone does not automate anything. Exporting a template once without reusing it wastes the main benefit of having a reusable template. Azure Advisor only offers recommendations for existing resources; it does not generate deployable infrastructure templates.14. An application requires a VM that can automatically add more instances during high load and remove them when load decreases, while keeping instances behind a single load balanced endpoint. Which Azure service should be used?
- A. A Virtual Machine Scale Set with autoscale rules
- B. A single VM with a larger size configured
- C. An Availability Set with two fixed VMs
- D. Azure Container Instances with a static instance count
Show answer & explanation
Answer: A
Virtual Machine Scale Sets natively support autoscaling based on metrics like CPU or custom metrics, automatically adding or removing VM instances behind a load balancer, matching the elasticity requirement. A single larger VM does not provide horizontal elasticity or high availability across multiple instances. An Availability Set groups VMs for fault domain/update domain distribution but does not itself provide autoscaling; the VM count is fixed unless manually changed. Azure Container Instances with a static count does not scale automatically and is a different compute model (containers, not VMs) that isn't described as needed here.15. A VM is stopped in the Azure portal using 'Stop' from within the guest operating system's shutdown command rather than the Azure portal's Stop button. What is the billing consequence?
- A. Compute charges continue to accrue because the VM remains in an allocated state
- B. Compute charges stop immediately because the OS is powered off
- C. Only storage charges apply and compute charges are automatically waived
- D. The VM is automatically deallocated by Azure after the guest OS shuts down
Show answer & explanation
Answer: A
Shutting down the guest OS from within the VM stops the OS but does not release the underlying compute allocation; the VM remains in a 'Stopped' (allocated) state and continues to incur compute charges, unlike using 'Stop' (deallocate) from the Azure portal or CLI which releases the hardware allocation. Only stopping and deallocating (not just stopping) halts compute billing. Storage charges for the VM's disks apply regardless of power state, but that does not mean compute is automatically waived. Azure does not automatically deallocate a VM just because the guest OS was shut down from inside.16. An administrator needs to move a running production VM's OS disk from Standard HDD to Premium SSD to improve performance, with minimal downtime. What is the correct general approach?
- A. Stop (deallocate) the VM, change the disk SKU/tier, then start the VM again
- B. Change the disk SKU while the VM is running, since disk tier changes require no downtime at all
- C. Delete the VM and disk, then recreate both from scratch with the new SKU
- D. Attach a second Premium SSD disk and rely on Windows to automatically migrate the OS to it
Show answer & explanation
Answer: A
Changing a managed disk's storage tier/SKU (e.g., from Standard HDD to Premium SSD) typically requires the VM to be deallocated first, after which the SKU can be changed and the VM restarted, resulting in brief downtime but preserving the disk's data and identity. Some scenarios allow limited online changes, but the safe, generally applicable approach for this kind of tier change is to deallocate first. Deleting and recreating the VM and disk is unnecessarily destructive and risks data loss when a simple SKU change suffices. Attaching a new disk does not automatically migrate an OS or its data; OS migration between disks requires an explicit imaging or cloning process, not automatic OS relocation.17. A company wants to run a batch job container that executes once per day, has no need for orchestration features like scaling or service discovery, and should not require managing a cluster. Which Azure compute service best fits?
- A. Azure Container Instances
- B. Azure Kubernetes Service with a 5-node cluster
- C. Azure Virtual Machine Scale Set running Docker manually
- D. Azure Service Fabric cluster
Show answer & explanation
Answer: A
Azure Container Instances (ACI) offers a simple, serverless way to run individual containers on demand without provisioning or managing any underlying VMs or clusters, ideal for a simple periodic batch job. Azure Kubernetes Service is designed for orchestrating multiple containers with scaling, service discovery, and cluster management, which is unnecessary overhead for this simple single-run scenario. Running Docker manually on a Scale Set requires managing the VM infrastructure and container runtime yourself, adding operational burden not needed here. Service Fabric is a full microservices orchestration platform, again more complex than required for a simple daily batch job.18. A VM must be able to tolerate an entire datacenter failure within a region while still meeting the highest SLA for two or more VM instances. What deployment configuration should be used?
- A. Deploy VMs across two or more Availability Zones in the region
- B. Deploy VMs in a single Availability Set only
- C. Deploy a single VM with Premium SSD disks
- D. Deploy VMs in the same fault domain for simplicity
Show answer & explanation
Answer: A
Availability Zones represent physically separate datacenters within a region, each with independent power, cooling, and networking; spreading VMs across two or more zones protects against a full datacenter-level failure, which an Availability Set (confined to a single datacenter's fault/update domains) cannot do. A single Availability Set only protects against rack-level (fault domain) or planned maintenance (update domain) failures within one datacenter, not a full datacenter outage. A single VM, regardless of disk type, has no redundancy against instance or datacenter failure. Deploying VMs in the same fault domain intentionally reduces redundancy rather than increasing it, which is the opposite of what's needed.19. An administrator created a custom VM image from a generalized (sysprepped) source VM. What is a correct characteristic of using this image to deploy new VMs?
- A. Each new VM deployed from the image will require its own unique computer name and administrator credentials to be specified at creation
- B. All VMs deployed from the image will automatically share the same computer name as the source VM
- C. The image can only be used once to create a single VM, then must be deleted
- D. Generalized images cannot include installed applications, only the base OS
Show answer & explanation
Answer: A
Generalizing (via sysprep on Windows or waagent deprovision on Linux) removes machine-specific information so that each VM created from the resulting image gets a fresh, unique identity, including computer name and administrator account set at provisioning time. If the source were not generalized (a 'specialized' image), the original computer name and settings would be retained, but that is not the case described. A generalized image is reusable to create many VMs, not limited to a single deployment. Generalized images can absolutely include pre-installed applications and configurations beyond just the base OS, which is one of the main benefits of custom images.20. A file share needs to be accessible via the SMB protocol from both on-premises servers and Azure VMs, without deploying and managing a file server VM. Which Azure storage service should be used?
- A. Azure Files
- B. Azure Blob Storage with a public container
- C. Azure Table Storage
- D. Azure managed disks attached to a VM
Show answer & explanation
Answer: A
Azure Files provides fully managed SMB (and NFS) file shares that can be mounted concurrently from on-premises machines and Azure VMs without needing to run and maintain a file server VM. Blob Storage, even with public access, does not natively expose the SMB protocol for file-share-style mounting. Table Storage is a NoSQL key-value store, not a file share and has no SMB interface. Managed disks are block storage attached to a single VM at a time (or a few, with shared disks), not a general multi-client SMB file share.21. A company needs to store rarely accessed compliance archives for 7 years, prioritizing lowest storage cost and accepting that retrieval may take hours. Which Azure Blob Storage access tier is most appropriate?
- A. Archive tier
- B. Hot tier
- C. Cool tier
- D. Premium block blob tier
Show answer & explanation
Answer: A
The Archive access tier offers the lowest storage cost among blob tiers and is designed for data that is rarely accessed and can tolerate several hours of retrieval latency (rehydration), matching a 7-year compliance archive scenario. The Hot tier is optimized for frequently accessed data and has the highest storage cost, unsuitable for rarely accessed archives. The Cool tier is meant for infrequently accessed data still requiring rapid access (minutes, not hours) and costs more than Archive. The Premium block blob tier is optimized for high-performance, low-latency scenarios with higher cost, the opposite of what a low-cost long-term archive needs.22. An administrator wants to ensure that once objects are written to a blob container, they cannot be modified or deleted for a legally mandated 5-year retention period, even by an account owner. What feature should be configured?
- A. A time-based immutability policy (WORM) on the container
- B. A resource lock of type ReadOnly on the storage account
- C. Soft delete for blobs with a 30-day retention period
- D. Azure AD conditional access blocking storage account sign-in
Show answer & explanation
Answer: A
Time-based immutability policies enforce write-once-read-many (WORM) behavior at the container level, preventing modification or deletion of blobs for the configured retention period, which can be locked so that not even the account owner can shorten or remove it, matching legal/regulatory retention needs. A ReadOnly resource lock only prevents changes to the storage account's own configuration (like SKU or replication), not to blob content, and does not enforce immutability of the data. Soft delete protects against accidental deletion for a limited window but permanent deletion by an authorized user is still possible after that window (and during it) and it doesn't guarantee a fixed 5-year non-modifiable retention. Conditional access controls authentication conditions for sign-in, not data immutability within already-authorized sessions.23. A storage account needs to allow read access to blobs for a third-party application for exactly 24 hours, without sharing the storage account key and without requiring the third party to have an Azure AD account. What should be generated?
- A. A shared access signature (SAS) token scoped to the required resource with a 24-hour expiry
- B. The storage account's primary access key, rotated after 24 hours
- C. An Azure AD app registration with a client secret valid for 24 hours
- D. A public container access level enabled for 24 hours then disabled
Show answer & explanation
Answer: A
A SAS token can be scoped to specific resources, permissions (e.g., read-only), and a defined start/expiry time, allowing time-limited, granular access without exposing the full account key or requiring the third party to authenticate via Azure AD. Sharing the primary access key grants full account-level access to everything in the storage account, far exceeding the least-privilege need, and manually rotating it is an operationally risky workaround. An Azure AD app registration would still require the third party to be able to authenticate against Azure AD, which the requirement explicitly rules out. Enabling public container access exposes the data to anyone on the internet, not just the intended third party, and toggling it manually is error-prone and not scoped to specific permissions or blobs.24. A storage account must remain available for read and write operations even if an entire Azure region becomes unavailable, with automatic failover. Which replication option should be selected?
- A. Geo-zone-redundant storage (GZRS) or geo-redundant storage (GRS) with read access and failover configured
- B. Locally redundant storage (LRS)
- C. Zone-redundant storage (ZRS) only
- D. No replication, relying on manual backups
Show answer & explanation
Answer: A
GRS/GZRS replicates data asynchronously to a secondary, geographically distant region, and enabling account failover (or RA-GRS/RA-GZRS for read access) allows the storage account to continue serving requests if the primary region fails. LRS only replicates within a single datacenter, offering no protection against a regional or even datacenter-level outage. ZRS replicates synchronously across availability zones within a single region, protecting against datacenter failure but not a full regional outage. Relying solely on manual backups does not provide automatic failover or continuous availability during a regional outage; it would require manual restoration, causing extended downtime.25. An administrator needs to synchronize an on-premises file server to Azure so that frequently accessed files are cached locally while the full data set is stored in the cloud, with changes syncing in both directions. What should be deployed?
- A. Azure File Sync with a registered server endpoint and cloud tiering enabled
- B. AzCopy scheduled as a one-way nightly job
- C. Azure Data Box shipped once for a one-time transfer
- D. Azure Import/Export service
Show answer & explanation
Answer: A
Azure File Sync centralizes file shares in Azure Files while keeping a cache of frequently used files on the on-premises server (cloud tiering) and provides multi-directional sync between the server endpoint and the cloud endpoint, matching the requirement exactly. AzCopy scheduled one-way only copies data in a single direction and does not provide caching or bidirectional sync. Azure Data Box is intended for one-time bulk data transfer via physical shipped devices, not ongoing bidirectional synchronization. The Azure Import/Export service similarly supports one-time bulk data movement using disks shipped to a datacenter, not continuous sync with local caching.26. A virtual network has two subnets: Subnet-Web (10.0.1.0/24) and Subnet-Data (10.0.2.0/24). By default, without any custom Network Security Group (NSG) or route table configured, can VMs in these two subnets communicate with each other?
- A. Yes, because a default system route allows traffic between subnets within the same VNet
- B. No, subnets are isolated from each other unless explicitly peered
- C. No, communication requires a VPN gateway even within the same VNet
- D. Yes, but only if both subnets are in the same Availability Zone
Show answer & explanation
Answer: A
Azure automatically creates default system routes that enable direct communication between all subnets within the same virtual network, so without any NSG rules blocking it or custom routes overriding it, VMs in different subnets of the same VNet can reach each other. 'Peering' is a concept for connecting two separate VNets, not subnets within the same VNet, so no peering is needed here. A VPN gateway is used for connecting to on-premises networks or other VNets over encrypted tunnels, not for intra-VNet subnet communication. Availability Zones are a compute/infrastructure resiliency concept unrelated to whether subnets within a VNet can route to each other.27. An NSG is applied to a subnet with a rule that denies all inbound traffic on port 3389, and the same NSG is also applied to a specific NIC in that subnet with a rule that allows inbound port 3389 from a specific IP. What is the effective outcome for that NIC?
- A. Both NSGs' rules are evaluated, and traffic is denied unless a rule with higher priority (lower number) explicitly allows it
- B. The NIC-level NSG always overrides the subnet-level NSG entirely, so port 3389 is allowed
- C. The subnet-level NSG always overrides the NIC-level NSG entirely, so port 3389 is denied
- D. Having NSGs at both levels is not supported and one is ignored
Show answer & explanation
Answer: A
When NSGs exist at both subnet and NIC level, traffic must be allowed by both NSGs to pass; each NSG evaluates its own rules by priority order (lowest number first), and if either NSG has an explicit deny that applies (and no higher-priority allow overrides it within that same NSG), the traffic is blocked overall — so the actual outcome depends on each NSG's own rule priorities, not a blanket 'NIC always wins' or 'subnet always wins' rule. Neither NIC-level nor subnet-level NSGs automatically and entirely override the other; both are evaluated independently and traffic must pass both. Azure fully supports applying NSGs at both subnet and NIC levels simultaneously.28. A company has VMs in VNet-A (10.0.0.0/16) in East US and VNet-B (10.1.0.0/16) in West Europe that need to communicate using private IP addresses with low latency, without traversing the public internet. What should be configured?
- A. Global virtual network peering between VNet-A and VNet-B
- B. A site-to-site VPN using public internet-facing endpoints
- C. Two separate NAT gateways, one in each VNet
- D. Public IP addresses assigned directly to each VM with NSG rules allowing the peer's IP
Show answer & explanation
Answer: A
Global VNet peering connects VNets across regions using the Microsoft backbone network, enabling low-latency private IP communication without traversing the public internet, which is exactly what's needed here. A site-to-site VPN, while it can connect networks, typically uses IPsec tunnels over the public internet (or ExpressRoute) and is more commonly used for on-premises-to-Azure connectivity, adding unnecessary encryption/tunneling overhead compared to native peering for VNet-to-VNet in the same cloud. NAT gateways provide outbound internet connectivity for private resources; they do not establish private connectivity between two VNets. Assigning public IPs to VMs and exposing them via NSG rules routes traffic over the public internet and increases the attack surface, which conflicts with the requirement to avoid the public internet.29. Users report intermittent inability to reach a web application hosted on VMs behind an Azure Load Balancer. The administrator suspects health probe misconfiguration is removing healthy VMs from rotation. Which tool should be used first to test and diagnose connectivity between the load balancer and backend VMs?
- A. Network Watcher's IP flow verify and connection troubleshoot tools
- B. Azure Cost Management cost analysis
- C. Azure AD Identity Protection risk reports
- D. Azure Backup's restore point browser
Show answer & explanation
Answer: A
Network Watcher provides diagnostic tools such as IP flow verify (to check whether specific traffic is allowed or denied by NSG rules) and connection troubleshoot (to test connectivity and identify where a connection fails, including latency and hops), directly addressing suspected health probe or connectivity misconfigurations. Cost Management analyzes spending and has no role in network diagnostics. Identity Protection risk reports relate to user sign-in risk detection, unrelated to VM network connectivity. Azure Backup's restore point browser is for recovering backed-up data, not diagnosing live network issues.30. An administrator needs to publish an internal web application to the internet using a single public IP, route traffic to multiple backend VMs based on URL path (e.g., /images to one pool, /api to another), and terminate SSL centrally. Which Azure service is the best fit?
- A. Azure Application Gateway with path-based routing rules
- B. A public Load Balancer with basic SKU
- C. Azure ExpressRoute
- D. A Network Security Group with custom rules
Show answer & explanation
Answer: A
Application Gateway operates at Layer 7 (HTTP/HTTPS) and supports path-based routing rules to direct requests to different backend pools based on URL path, as well as centralized SSL/TLS termination, matching all stated requirements. A standard Load Balancer operates at Layer 4 and distributes traffic based on IP/port, without awareness of HTTP paths or built-in SSL termination for path routing. ExpressRoute provides private dedicated connectivity between on-premises networks and Azure; it does not perform application-layer load balancing or path-based routing. An NSG filters traffic based on IP/port/protocol rules and has no concept of URL paths or SSL termination.31. A private virtual network has no NAT gateway, no public IPs on any VM, and no user-defined routes to the internet. Can a VM in this VNet still initiate outbound connections to the public internet by default?
- A. Yes, Azure provides a default outbound access mechanism for VMs without other explicit outbound configuration
- B. No, outbound internet access always requires an explicit public IP or NAT gateway from the very first deployment
- C. No, a VPN gateway is mandatory for any outbound internet traffic
- D. Yes, but only if the VM has a system-assigned managed identity
Show answer & explanation
Answer: A
Historically, Azure provides a default outbound access IP for VMs that don't have an explicit outbound connectivity method (public IP, NAT gateway, or load balancer outbound rules) configured, allowing outbound internet connectivity, although Microsoft recommends explicit methods like a NAT gateway for reliability and to avoid this implicit, less-visible mechanism going forward. Outbound access is possible even without a public IP or NAT gateway due to this default mechanism, though it is not considered a best practice for production. A VPN gateway is unrelated to general internet-bound (as opposed to on-premises-bound) traffic. A managed identity is used for authenticating to Azure AD-secured services, and has no bearing on whether a VM has outbound internet connectivity.32. An administrator is troubleshooting why two VMs in peered VNets cannot communicate, even though the peering status shows 'Connected' on both sides. Which additional setting should be checked?
- A. Whether NSG rules or user-defined routes on either subnet are blocking the traffic
- B. Whether both VNets use the exact same address space
- C. Whether both VMs are the same size (SKU)
- D. Whether both VMs were created on the same day
Show answer & explanation
Answer: A
Peering being 'Connected' only establishes the network-layer reachability path between VNets; NSGs applied to subnets or NICs, or user-defined routes that redirect or block traffic, can still prevent communication and must be checked separately. VNets with overlapping (identical or overlapping) address spaces actually cannot be peered successfully at all — non-overlapping address spaces are a prerequisite for peering to succeed, not a cause of connectivity failure after peering is already established. VM size has no bearing on network connectivity between peered VNets. The creation date of VMs is irrelevant to network connectivity.33. A company needs its Azure VMs to resolve custom internal hostnames (e.g., app1.corp.internal) that are not registered in public DNS, consistently across multiple VNets. What should be implemented?
- A. An Azure Private DNS zone linked to the relevant virtual networks
- B. The default Azure-provided DNS with no zone configuration
- C. A public DNS zone with records set to 'private' visibility
- D. An NSG rule permitting port 53 outbound
Show answer & explanation
Answer: A
Azure Private DNS zones allow custom domain names to be resolved within linked virtual networks without exposing those records to the public internet, and the same zone can be linked to multiple VNets for consistent internal name resolution. The default Azure-provided DNS only resolves Azure-internal hostnames automatically assigned to resources; it does not support custom private domain names like corp.internal. Public DNS zones are designed for internet-facing name resolution; there isn't a 'private visibility' toggle that turns a public zone into an internal-only one — that is what Private DNS zones are for. Simply opening port 53 outbound via an NSG rule does not create or host any DNS records; it only permits DNS traffic to flow, which is unrelated to actually defining the custom names.34. An Azure AD Conditional Access policy requires multi-factor authentication for all users signing in from outside the corporate network, except for a break-glass emergency admin account. How should the break-glass account be configured?
- A. Explicitly excluded from the Conditional Access policy's user assignment, with a strong unique credential and close monitoring
- B. Given the Global Administrator role and no other special configuration is needed
- C. Placed in the same security group as regular MFA-enforced users so policies apply uniformly
- D. Configured with a shared password known to multiple administrators for convenience
Show answer & explanation
Answer: A
Best practice for break-glass (emergency access) accounts is to explicitly exclude them from Conditional Access policies that could lock out administrators (like MFA requirements that might fail during an identity provider outage), while securing them with strong, unique, closely monitored credentials, ensuring they remain usable during an emergency. Simply granting Global Administrator without excluding it from the policy would still let the MFA-requiring policy apply and potentially cause lockout during the exact incident the account is meant to resolve. Placing it in the same group as regular users defeats its purpose as an exception path. A shared password known to multiple people is a poor security practice that increases risk of compromise and undermines accountability, even for an emergency account.35. An administrator assigns a user the Reader role at the subscription scope and also assigns that same user the Contributor role directly on one specific resource group within that subscription. What is the user's effective permission on that resource group?
- A. Contributor, because Azure RBAC is additive and the more specific/higher assignment (Contributor) applies at that scope
- B. Reader only, because the subscription-level assignment always takes precedence
- C. No access, because conflicting role assignments cancel each other out
- D. The user must choose which role to activate each session
Show answer & explanation
Answer: A
Azure RBAC role assignments are additive across scopes: permissions granted at a higher scope (subscription) are inherited by lower scopes (resource groups), and additional roles assigned directly at a lower scope add further permissions, so the user effectively has the union of Reader (from the subscription) and Contributor (from the resource group) — and since Contributor's permissions are a superset relevant to that resource group, the effective permission there is Contributor. RBAC does not have the subscription scope 'override' or take precedence over a more specific, additional assignment at a narrower scope. Conflicting Azure RBAC assignments don't cancel out; they combine (unlike deny assignments, which do override allow assignments, but that's not what's described here). There's no session-based 'role activation' choice for standard RBAC role assignments (that concept applies to PIM eligible role activation, not to two permanently active assignments as described).36. A company wants just-in-time, time-limited elevation to the Contributor role on a subscription, requiring approval and automatic expiration after a few hours, rather than standing access. Which Azure AD feature should be used?
- A. Azure AD Privileged Identity Management (PIM) with an eligible role assignment
- B. A permanent (active) RBAC role assignment reviewed manually once a year
- C. A conditional access policy requiring a compliant device
- D. An Azure AD dynamic group based on department attribute
Show answer & explanation
Answer: A
Privileged Identity Management enables 'eligible' role assignments that users must actively activate, optionally requiring approval, justification, and MFA, with the elevated access automatically expiring after a configured duration, directly matching the just-in-time requirement. A permanent standing role assignment, even if periodically reviewed, keeps the user privileged at all times, which is the opposite of just-in-time, time-limited access. A conditional access device-compliance policy controls sign-in conditions but does not implement time-bound role activation or approval workflows for elevation. Dynamic groups automatically add/remove members based on attributes but do not provide time-limited, approval-gated privilege elevation.37. An organization needs to prevent resources from being created in regions outside the United States, across all current and future subscriptions in the tenant, with minimal ongoing administrative effort as new subscriptions are added.
- A. Assign an Azure Policy with an 'allowed locations' definition at the root/top-level management group
- B. Manually configure an Azure Policy assignment in each subscription every time one is created
- C. Set a regional preference in each user's Azure AD profile
- D. Rely on Azure Advisor to flag out-of-region resources after they are created
Show answer & explanation
Answer: A
Assigning the built-in 'allowed locations' policy at the root or a top-level management group ensures it is automatically inherited by all subscriptions currently under it and any new ones added later, minimizing ongoing manual work while enforcing the restriction tenant-wide. Manually assigning the policy per subscription requires repeated effort every time a new subscription is created and risks being forgotten. Azure AD user profile regional preferences have no effect on Azure resource deployment location restrictions. Azure Advisor only provides after-the-fact recommendations; it does not prevent resource creation in disallowed regions, so it fails the 'prevent' requirement.38. A candidate is preparing for the AZ-104 exam and wants to know how their performance will be reported after finishing the assessment. Which statement correctly describes the score report?
- A. It includes an overall numeric score, a pass/fail status, and a bar chart of performance on each skill area assessed
- B. It only provides a simple pass or fail result with no numeric score
- C. It is delivered only as a percentile ranking against other candidates worldwide
- D. It lists the exact questions answered incorrectly with correct answers shown
Show answer & explanation
Answer: A
The AZ-104 score report provides a numeric score for overall performance, a pass/fail status, and a bar chart showing performance in each skill area assessed, giving candidates both a summary result and a breakdown of relative strengths and weaknesses. It is not just a bare pass/fail result — it includes the numeric score and skill-area breakdown. It is not reported as a worldwide percentile ranking. Exam security policies prevent disclosure of specific questions and correct answers on the score report, since exam content is confidential and reused across administrations.39. How long does a candidate have to complete Exam AZ-104 under standard conditions, and is there a penalty for guessing on questions they are unsure of?
- A. 100 minutes, and there is no penalty for guessing since incorrect answers do not deduct points
- B. 150 minutes, and each incorrect guess deducts points from the total score
- C. 100 minutes, and each incorrect guess deducts points from the total score
- D. 60 minutes, and there is no penalty for guessing
Show answer & explanation
Answer: A
Candidates have 100 minutes to complete Exam AZ-104, and there is no penalty for guessing since no points are deducted for incorrect answers, meaning candidates should attempt every question rather than leave any blank. 150 minutes overstates the actual allotted time. There is no point-deduction penalty for wrong answers, so any answer choice claiming guesses are penalized is incorrect. 60 minutes understates the actual allotted time for the standard exam.40. What is the passing score threshold for Exam AZ-104 on Microsoft's standard technical certification scoring scale, and how does the renewal process work once certified?
- A. A score of 700 or greater is required to pass, and the certification must be renewed every 12 months via a free, shorter, unproctored, open-book assessment
- B. A score of 500 or greater is required to pass, and the certification never expires once earned
- C. A score of 700 or greater is required to pass, but renewal requires retaking the full original proctored exam and paying the exam fee again
- D. A score of 800 or greater is required to pass, and renewal must be completed at a proctored testing center
Show answer & explanation
Answer: A
A score of 700 or greater on the 1,000-point scale is required to pass, and this role-based certification has a 12-month renewal frequency with a free, shorter, unproctored, open-book renewal assessment available within a six-month window before expiration. A passing score of 500 understates the actual threshold, and the certification does expire, requiring periodic renewal rather than being permanent. 700 is correct, but renewal is explicitly shorter, unproctored, and free — not a repeat of the full original proctored exam with its fee. 800 overstates the passing threshold, and renewal is unproctored, not conducted at a testing center.