CertLumen

Free practice questions · Azure

10 Microsoft Azure Administrator (AZ-104) practice questions, with answers

Exam-style questions from the CertLumen course, spread over the exam's sections by their weights. Each has its answer and why. They're written for practice: never questions from the real exam.

Question 1 · Manage Azure identities and governance

Which dynamic membership rule adds only users whose department is Sales and whose country is US?

  1. A(user.department -eq "Sales") -or (user.country -eq "US")
  2. Buser.department = Sales && user.country = US
  3. C(user.department -eq "Sales") -and (user.country -eq "US")
  4. D(user.department -contains "Sales") -and (user.country -ne "US")
Show the answer

C. Dynamic rules use the form <property> <operator> <value> with PowerShell-style operators (-eq, -ne, -contains) and combine expressions with -and, -or and -not. Requiring both conditions needs -and.

Question 2 · Manage Azure identities and governance

An administrator wants to add the user with object ID in $USER_ID to the security group helpdesk by using Azure CLI. Which command does this?

  1. Aaz ad group member add --group helpdesk --member-id $USER_ID
  2. Baz role assignment create --assignee $USER_ID --role helpdesk
  3. Caz ad user update --id $USER_ID --add-group helpdesk
  4. Daz ad group member check --group helpdesk --member-id $USER_ID
Show the answer

A. az ad group member add adds a user, group or service principal to a Microsoft Entra group by object ID. az role assignment create creates Azure RBAC assignments, and az ad group member check only tests membership.

Question 3 · Manage Azure identities and governance

A policy was assigned to a subscription ten minutes ago. An administrator wants the compliance results for the resource group rg-app immediately instead of waiting for the next automatic cycle. What should the administrator do?

  1. ADelete and re-create the assignment
  2. BStart an on-demand scan, for example az policy state trigger-scan --resource-group rg-app
  3. CRun az policy remediation create for the assignment
  4. DWait 24 hours, because compliance can only be refreshed by the standard evaluation cycle
Show the answer

B. Besides evaluation after an assignment (about five minutes to apply), on resource changes, and every 24 hours, you can trigger an on-demand scan for a subscription or resource group with az policy state trigger-scan or Start-AzPolicyComplianceScan.

Question 4 · Implement and manage storage

An administrator selects Set rotation reminder on the Access keys page and enters 90 days. What does this configuration do?

  1. AIt regenerates both keys automatically every 90 days and updates the connection strings
  2. BIt blocks the use of any key that is older than 90 days until it is regenerated
  3. CIt limits every SAS token created for the account to a 90-day validity period
  4. DIt sets a rotation reminder; keys older than 90 days are flagged
Show the answer

D. A key expiration policy sets the recommended rotation interval. It does not rotate keys or block requests. On older accounts the button can be grayed out until both keys have been regenerated once, because the key creation time must be recorded first.

Question 5 · Implement and manage storage

Engineers use Microsoft Entra-joined Windows 11 devices and Azure Virtual Desktop session hosts. Their accounts exist only in Microsoft Entra ID. They need SMB access to an Azure file share for FSLogix profiles with their own sign-in and no line of sight to a domain controller. Which identity source should you configure?

  1. AOn-premises Active Directory Domain Services
  2. BMicrosoft Entra Domain Services
  3. CStorage account key authentication
  4. DMicrosoft Entra Kerberos
Show the answer

D. Microsoft Entra Kerberos is the identity source that authenticates cloud-only identities directly, with no domain controller in the path (Microsoft Entra Domain Services also holds cloud users, but needs clients that can reach the managed domain). It works for Entra-joined and hybrid-joined clients and is commonly used for FSLogix profile containers.

Question 6 · Deploy and manage Azure compute resources

A storage account was deployed from a template that sets tags. A teammate removes the tags property from the template and redeploys to the same resource group in incremental mode. What happens to the tags on the existing account?

  1. AThey are kept unchanged, because incremental mode only adds properties and never removes them
  2. BThe deployment fails because tags cannot be removed
  3. CThey are merged with the tags in the resource group
  4. DThey are removed, because omitted properties return to their defaults
Show the answer

D. A common misunderstanding is that unspecified properties are left alone. Resource Manager treats the definition in the template as the final state of that resource, so properties you leave out are reset to their defaults. Always include every non-default value in the template.

Question 7 · Deploy and manage Azure compute resources

You want to roll out a new version of a container app to 10 percent of users while 90 percent stay on the current version. What do you configure?

  1. AUse single revision mode and raise the maximum replica count for the new version
  2. BCreate a second environment and split the traffic between them with DNS records
  3. CUse multiple revision mode and split ingress traffic between the revisions
  4. DAdd a CPU-based scale rule for the new version
Show the answer

C. Each template change creates a revision. In multiple revision mode you assign weights to revisions (for example 90/10) for canary, blue-green or A/B deployments. In single revision mode, traffic moves to the new revision once it is healthy.

Question 8 · Implement and manage virtual networking

A production web VM needs a public IP address that stays the same after the VM is stopped and deallocated and that survives the failure of one availability zone, in a region that has three availability zones. Which configuration meets the requirement?

  1. AA Basic SKU public IP with static allocation and a zone selected
  2. BA zone-redundant Standard SKU public IP with static allocation
  3. CA Standard SKU public IP pinned to availability zone 1 of the region
  4. DA Standard SKU public IP with dynamic allocation and zone-redundancy
Show the answer

B. Standard public IPs are static, and in regions with availability zones they are zone-redundant unless you pin them to a zone. A zonal address is tied to one zone's fate. Basic public IPs were retired on 30 September 2025.

Question 9 · Implement and manage virtual networking

An administrator needs to see the combined security rules that actually apply to a running VM, including rules from the subnet NSG, the NIC NSG and the default rules. Where should the administrator look?

  1. AEffective security rules for the VM's network interface
  2. BThe inbound security rules page of the NSG associated with the subnet
  3. CThe Azure Activity log of the resource group that contains the VM
  4. DAzure Policy compliance results for the subscription
Show the answer

A. Effective security rules for a NIC show the subnet NSG rules, NIC NSG rules and defaults together, which makes conflicts easy to spot. In the portal open the VM or NIC, then Help > Effective security rules. In the CLI use az network nic list-effective-nsg. The VM must be running.

Question 10 · Monitor and maintain Azure resources

You manage 60 virtual machines, all in West Europe, spread over five resource groups in one subscription. You must be notified separately for each VM whose Percentage CPU exceeds 85 percent. You want the fewest alert rules. What should you create?

  1. AOne metric alert rule for each of the 60 VMs, each scoped to a single machine
  2. BOne metric alert rule for each of the five resource groups that contain the virtual machines
  3. COne activity log alert rule scoped to the subscription that watches VM performance events
  4. DOne metric alert rule scoped to the subscription and the VM resource type in West Europe
Show the answer

D. A single metric alert rule can monitor multiple resources of the same type that are in the same Azure region, scoped to a subscription, resource groups or a list. Each resource is evaluated separately and sends its own notification. Per-VM or per-group rules also work but need more rules.

How ready are you?

Take ten more, weighted like the real exam, and see your score by section and a rough chance of passing. The course has 373 questions and 4 timed practice exams.

Take the free check

About the course · Free study guide · A question a day by email