Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Microsoft Azure Administrator Exam AZ-104 Exam Questions

Last updated: · 12 practice questions with answers and explanations

Page: 1 / 32 Total 479 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Implement and manage virtual networking

Skill tested: Configures subnet-level network security rules for web traffic and management access.

A company hosts a public-facing application on virtual machines in a web subnet. Internet clients must reach the application over HTTPS, while administrators must manage the machines only from a separate, trusted subnet. The web subnet currently has no network security group, and the VMs have no public IP addresses. The company wants to block direct management connections from the internet without disrupting HTTPS access. Which configuration should you apply?

Correct Answer: A. Associate an NSG with the web subnet that allows inbound TCP 443 from the internet and denies inbound TCP 3389 and 22 from the internet.
Explanation:

An NSG associated with the web subnet can permit inbound HTTPS while denying management protocols from internet sources. Azure NSGs include default inbound rules, including a deny-all-inbound rule, but an explicit allow for TCP 443 is needed to permit public HTTPS; the explicit management denies make the security intent clear and take precedence over broader applicable allows when priorities are set appropriately. Allowing SSH or RDP from the internet defeats the requirement, and route tables do not filter traffic by TCP port. Public IP addresses are unnecessary for these VMs and would expand exposure.

Question 2

New Multiple answers

Topic: Implement and manage virtual networking

Skill tested: Designs NSG rule priority and source scoping for controlled administrative connectivity.

A production subnet contains Linux application servers. A corporate administration subnet, 10.30.8.0/24, must be able to connect to the servers using SSH. No other source may use SSH, and clients on the internet must be able to reach the application on TCP 443. An NSG is attached to the production subnet. Select TWO inbound rule actions that meet these requirements while preserving the intended access boundaries.

Correct Answer: D. Add an allow rule for TCP 443 from Internet, with a priority numerically lower than any applicable inbound deny rule.; E. Add an allow rule for TCP 22 from 10.30.8.0/24 with a priority numerically lower than any applicable deny rule.
Explanation:

The subnet needs narrowly scoped SSH access from the corporate administration CIDR and public application access on TCP 443. NSG rules are processed by ascending priority number, so the specific allow rules must take precedence over any applicable deny rule; an allow for SSH from the specified subnet does not expose SSH to arbitrary sources. The broad SSH allow from Any is unsafe, and an allow-all rule is unnecessarily permissive. A separate explicit SSH deny is not required to meet the stated access boundary when the NSG's default inbound deny behavior applies to traffic not otherwise allowed.

Question 3

New Single answer

Topic: Manage Azure identities and governance

Skill tested: Assigns a built-in Azure role at the required resource group scope.

A deployment team needs to create and manage virtual machines, disks, and network interfaces in one resource group. Team members must not manage access assignments, and they must have no additional permissions in other resource groups or the subscription. You have permission to create role assignments. Which action best meets the requirement?

Correct Answer: C. Assign the Contributor role to the team at the required resource group scope.
Explanation:

Contributor permits managing resources at the assigned scope but does not permit creating or managing Azure RBAC role assignments. Assigning it at only the required resource group limits the grant to that group and its contained resources. Owner grants unnecessary access-management permissions and, at subscription scope, excessive reach. Virtual Machine Contributor at subscription scope is broader than requested and may not cover the required network-interface operations. Reader cannot create or modify the deployment resources.

Question 4

New Multiple answers

Topic: Manage Azure identities and governance

Skill tested: Validates effective Azure RBAC access by examining scope inheritance and role assignments.

A user reports being unable to create a virtual machine in resource group RG-App. The user has a Reader assignment directly on the resource group. The subscription has a Contributor assignment for a group that includes the user, and no deny assignments or resource locks are present. You need to determine whether the subscription assignment grants the required permissions and identify the right validation approach. Select TWO actions or conclusions that are correct.

Correct Answer: A. Recognize that the inherited subscription Contributor assignment can grant VM creation permissions in RG-App.; D. Check the user's effective access at RG-App, including role assignments inherited from the subscription through group membership.
Explanation:

Azure RBAC role assignments can be made to security groups, and assignments at a parent scope are inherited by child scopes. A subscription-level Contributor assignment through a group can therefore grant resource creation permissions in RG-App, despite the user's direct Reader assignment; permissions from applicable assignments are additive rather than the direct assignment overriding the inherited one. Reviewing effective access at the target scope, including group-based inheritance, is the appropriate validation step. Assigning Owner before investigating would grant excessive permissions, and group assignments are supported.

Question 5

New Single answer

Topic: Manage Azure identities and governance

Skill tested: Applies least privilege by selecting an appropriate built-in role and assignment scope.

A cloud operations analyst must inspect Azure resources and restart virtual machines in resource group RG-Operations. The analyst must not create, delete, or reconfigure resources, and must not restart VMs in other resource groups. Which role assignment is the most appropriate?

Correct Answer: D. Assign Virtual Machine Contributor at the RG-Operations scope.
Explanation:

Virtual Machine Contributor includes management operations for virtual machines, including restarting them, while avoiding the broad resource-management capabilities of Contributor. Applying it at RG-Operations confines the assignment to the intended resource group. Reader cannot perform restart operations. Assigning either operational role at subscription scope would give the analyst permissions beyond the specified group; Contributor at the resource group also allows creating and changing resources that the analyst does not need to manage.

Question 6

New Single answer

Topic: Implement and manage storage

Skill tested: Configures Blob soft delete and understands its relationship to container recovery.

A records application uses Azure Blob Storage and must recover blobs accidentally deleted within the previous 21 days. The storage team also wants deleted containers to remain recoverable for the same period. The account already uses a supported general-purpose v2 configuration, and no retention policy is set. Which configuration should you implement?

Correct Answer: D. Enable blob soft delete with 21-day retention and container soft delete with 21-day retention.
Explanation:

Blob soft delete protects deleted blobs, while container soft delete separately protects deleted containers. Both retention periods should be set to 21 days to meet the recovery window. Blob versioning can help recover prior blob versions but does not, by itself, satisfy the explicit container recovery requirement. Lifecycle management tiers blobs based on policy conditions; it is not a deletion-recovery mechanism. There is no substitute single account-level soft-delete setting that makes the separate blob and container protections unnecessary.

Question 7

New Multiple answers

Topic: Implement and manage storage

Skill tested: Creates lifecycle tiering rules using blob age and access conditions.

A media company stores block blobs in a storage account. New assets are frequently accessed for 30 days, are rarely accessed afterward, and must be removed after 365 days. The company wants automatic tier changes and deletion, with no application changes. The blobs are eligible for lifecycle management, and the policy should act on the base blobs rather than snapshots. Select TWO actions that implement the requirement.

Correct Answer: A. Create a lifecycle rule that moves eligible base blobs to the cool tier after 30 days since modification.; D. Create a lifecycle rule that deletes eligible base blobs after 365 days since modification.
Explanation:

A lifecycle management policy can evaluate blob age, such as days since last modification, and perform tiering and deletion actions on eligible base blobs. Moving data to cool after 30 days matches the stated infrequent-access phase, while deletion after 365 days enforces the retention endpoint. Archiving after 30 days conflicts with the requirement for the cool tier and can complicate access because archived blobs require rehydration. A default access tier applies when blobs are created or when no tier is specified; it does not schedule an age-based transition. Soft delete retains deleted data temporarily rather than replacing the lifecycle deletion action.

Question 8

New Single answer

Topic: Implement and manage storage

Skill tested: Selects storage account redundancy and blob access settings for a stated recovery requirement.

A business application stores customer documents in Azure Blob Storage. The documents must remain available if a zone in the primary region fails, but the organization does not require automatic failover to a secondary region. The workload uses block blobs and needs frequent reads and writes. Which storage configuration is the best fit?

Correct Answer: D. Use zone-redundant storage and the hot access tier.
Explanation:

Zone-redundant storage replicates data synchronously across availability zones in the primary region, addressing a zone failure without requiring secondary-region failover. The hot tier is appropriate for frequently accessed data and supports the application's active read/write pattern. Locally redundant storage does not provide zone resilience. Geo-redundant options replicate to another region, which the scenario does not require, and archive or cool tiers are less suitable for frequent access; archive also requires rehydration before normal reads.

Question 9

New Single answer

Topic: Deploy and manage Azure compute resources

Skill tested: Deploys a virtual machine from an ARM template with parameterized resource settings.

An operations group must deploy identical test virtual machines into different resource groups using an existing ARM template. The template defines the VM, NIC, and virtual network, but the current deployment fails because the VM name and administrator username are hard-coded. The team must not modify the template body for each deployment, and credentials must not be embedded in the template. What should you do?

Correct Answer: C. Replace the hard-coded values with template parameters and provide the values through a parameter file or deployment parameters; protect secret values appropriately.
Explanation:

ARM parameters let operators supply environment-specific values at deployment time without editing the template body. A parameter file is suitable for repeatable non-secret settings, while credentials should be handled as secure parameters and supplied through an appropriate protected deployment mechanism rather than embedded as plain text. Variables are computed within the template and do not provide the requested deployment-time substitution. Copying templates increases drift and exposes credentials, and renaming a deployed VM is not a substitute for correctly parameterizing the deployment.

Question 10

New Multiple answers

Topic: Deploy and manage Azure compute resources

Skill tested: Resizes an Azure VM and attaches a managed data disk without altering its OS disk.

A reporting VM has reached its CPU limit, and the team has approved moving it to a larger supported VM size. The VM must retain its operating system disk and existing data, and an additional managed data disk must be attached for reports. There is a short maintenance window, and the selected size is available in the VM's region. Select TWO actions that implement the change safely.

Correct Answer: B. Create a managed data disk with the required size and attach it to the VM through its disk settings.; D. Stop and deallocate the VM if required for the size change, resize it to the approved size, and then start it.
Explanation:

Changing VM size can require the VM to be stopped and deallocated, particularly when Azure must release the current host allocation; deallocation also avoids leaving the VM running in an unsupported intermediate state. Resizing the existing VM preserves its OS and attached disks. A separate managed data disk can be created and attached for report data. Deleting the VM and disks risks losing the required operating system and data, changing the OS disk's role is unnecessary, and disk capacity does not determine VM CPU capacity.

Question 11

New Single answer

Topic: Deploy and manage Azure compute resources

Skill tested: Selects a VM size compatible with regional availability and current workload requirements.

A service owner requests more CPU capacity for a VM but must keep the existing managed disks and avoid moving the workload to another region. The preferred VM size is not available in the VM's current region, while another size in the same region provides sufficient CPU and memory and supports the VM's current disk configuration. What is the best next action?

Correct Answer: A. Resize the VM to the suitable size available in the current region, scheduling downtime if deallocation is required.
Explanation:

VM size availability is regional and can also depend on the underlying hardware and allocation capacity. Since the preferred size is unavailable and the workload must stay in its region, the suitable available size that meets CPU, memory, and disk requirements is the practical choice. A storage redundancy change does not affect compute SKU availability. Moving a disk alone does not move an existing VM or satisfy the same-region constraint, and creating a VM elsewhere introduces migration and consistency risks.

Question 12

New Single answer

Topic: Monitor and maintain Azure resources

Skill tested: Creates a metric alert with an appropriate aggregation, threshold, and evaluation window.

An operations team needs an Azure Monitor alert when a production VM sustains high CPU usage, rather than when it experiences a brief spike. The alert must be based on the VM's platform metrics and notify the on-call team through an existing action group. Which configuration is most appropriate?

Correct Answer: D. Create a metric alert for Percentage CPU using an average aggregation, a sustained threshold condition over an evaluation window, and the existing action group.
Explanation:

Percentage CPU is a platform metric for a VM, and an average aggregation evaluated over a period helps detect sustained load rather than a momentary peak. Associating the existing action group delivers the alert notification to the on-call team. Activity Log events record control-plane operations, not CPU utilization. Disk queue depth monitors a different condition and an instantaneous threshold does not meet the sustained-load requirement. Service Health alerts concern Azure service issues, not an individual VM's CPU metric.