AZ-104 Azure Administrator Book: Study Guide & Exam Questions

Free practice exam

AZ-104 Practice Exam: 21 Free Exam Questions

Test yourself on 21 exam questions picked from every domain of the study guide. You get your score per domain at the end, with every answer explained.

  • 21 exam questions
  • 6 domains
  • About 25 minutes
  • No account needed

One question at a time, like the real exam: results and explanations come after the last question. Nothing you answer is saved.

What the exam covers

Exam domainExam questions
1. Part 1: Azure Administrator Prerequisites1
2. Part 2: Identity, Access and Governance4
3. Part 3: Azure Virtual Networking4
4. Part 4: Azure Storage Implementation4
5. Part 5: Azure Compute Resources4
6. Part 6: Backup, Recovery and Monitoring4

The 21 exam questions

Read them through, or start the exam to answer them and see how you score.

An ARM template will deploy VNET1 with address 10.10.10.0/24 plus a Bastion subnet and LAN02 at 10.10.10.128/25. The template skeleton is shown.

{
  "type": "Microsoft.Network/virtualNetworks",
  "name": "VNET1",
  "properties": {
    "addressSpace": { "addressPrefixes": ["10.10.10.0/24"] },
    "subnets": [
      { "name": "[Box 1]", "properties": { "addressPrefix": "[Box 2]" } },
      { "name": "LAN02", "properties": { "addressPrefix": "10.10.10.128/25" } }
    ]
  }
}
1. The Bastion subnet must be named ____ and must use prefix ____.
  • 10.10.10.0/26
  • 10.10.10.0/29
  • 10.10.10.0/30
  • AzureBastionSubnet
  • AzureFirewallSubnet
  • LAN01
  • RemoteAccessSubnet

You administer a Microsoft Entra tenant named adatum.com. It holds the following groups, and you then create two user accounts with the characteristics below.

NameGroup typeMembership typeMembership rule
Group1SecurityDynamic user(user.city -startsWith "m")
Group2Microsoft 365Dynamic user(user.department -notIn ["human resources"])
Group3Microsoft 365AssignedNot applicable
NameCityDepartmentOffice 365 license assigned
User1MontrealHuman resourcesYes
User2MelbourneMarketingNo
2. User1 is a member of ____. User2 is a member of ____.
  • Group1 and Group2 only
  • Group1 and Group3 only
  • Group1 only
  • Group1, Group2, and Group3
  • Group2 and Group3 only
  • Group2 only
  • Group3 only

Your pay-as-you-go subscription holds the machines below. You define Budget1 as summarized.

NameResource groupDaily cost
VM1RG120 euros
VM2RG230 euros
  • Budget1 scope is RG1 with amount 1,000.00 EUR, resetting each billing month from 6/20/2019 to 6/19/2021, current spend 5.93 EUR
  • Alert at 50 percent (500 euros) uses AG1 with 1 Email
  • Alert at 70 percent (700 euros) uses AG2 with 1 SMS
  • Alert at 100 percent (1,000 euros) uses AG3 with 1 Azure app
  • AG1 holds only one email recipient
3. Once the Budget1 ceiling is hit, ____. Given present daily spend, ____.
  • no email notifications will be sent each month
  • one email notification will be sent each month
  • three email notifications will be sent each month
  • two email notifications will be sent each month
  • VM1 and VM2 are turned off
  • VM1 and VM2 continue to run
  • VM1 is turned off, and VM2 continues to run

RG1 has no lock and holds storage1, VNET1 and IP1. RG2 has a Delete lock and holds the resources below. Moves between groups are wanted in both directions.

NameLock nameLock type
RG1NoneNone
RG2LockDelete
NameTypeLock nameLock type
storage2Storage accountLock1Delete
VNET2Virtual networkLock2Read-only
IP2Public IP addressNoneNone
4. Resources movable from RG1 to RG2: ____. Resources movable from RG2 to RG1: ____.
  • IP1 and storage1 only
  • IP1 and VNET1 only
  • IP1 only
  • IP1, VNET1, and storage1
  • IP2 and storage2 only
  • IP2 and VNET2 only
  • IP2 only
  • IP2, VNET2, and storage2
  • None

Storage account storage1 holds blob data. A user named User1 needs access to that data through a role that can carry access conditions.

5. Which two roles both grant blob-data access and support conditions?
  • Owner
  • Storage Account Contributor
  • Storage Account Backup Contributor
  • Storage Blob Data Contributor
  • Storage Blob Data Owner
  • Storage Blob Delegator

Subscription1 holds a virtual machine named VM1 that hosts both a web server and a DNS server. Its network interface vm1441 sits in VNET1/default with public address 52.160.123.200, private address 10.0.6.4 and accelerated networking off. An NSG named VM1-nsg is bound to that interface and evaluates the inbound rules below.

PriorityNamePortProtocolSourceDestinationAction
100Rule250-60AnyAnyAnyDeny
300RDP3389TCPAnyAnyAllow
400Rule150-500AnyAnyAnyAllow
65000AllowVnetInBoundAnyAnyVirtualNetworkVirtualNetworkAllow
65001AllowAzureLoadBalancerInBoundAnyAnyAzureLoadBalancerAnyAllow
65500DenyAllInBoundAnyAnyAnyAnyDeny
6. Connectivity from the internet to VM1 is as follows: at present internet clients ____. After deleting Rule2, internet clients ____.
  • are able to reach both the web and DNS services on VM1
  • are able to reach only the DNS service on VM1
  • are able to reach only the web service on VM1
  • are unable to reach either the web or DNS service on VM1

VM1 at 10.0.0.4 and VM2 at 10.0.0.5 share VNET1, which is linked to a private zone contoso.com holding the records below. VM1 must ping VM2 by name.

NameIP addressVirtual network
VM110.0.0.4VNET1
VM210.0.0.5VNET1
NameTypeTTLValueAuto registered
comp1TXT360010.0.0.5False
comp2A360010.0.0.5False
comp3CNAME3600comp1.contoso.comFalse
comp4PTR360010.0.0.5False
7. Which names can successfully ping VM2?
  • comp2.contoso.com and comp4.contoso.com only
  • comp1.contoso.com, comp2.contoso.com, comp3.contoso.com, and comp4.contoso.com
  • comp2.contoso.com only
  • comp1.contoso.com and comp2.contoso.com only
  • comp1.contoso.com, comp2.contoso.com, and comp4.contoso.com only

VNet1 uses 10.0.0.0/16 with the subnets below. Subnet1 holds appliance VM1 acting as a router. A table RT1 must force all VPN-gateway inbound traffic through VM1.

NameIP address range
Subnet010.0.0.0/24
Subnet110.0.1.0/24
Subnet210.0.2.0/24
GatewaySubnet10.0.254.0/24
8. RT1 should use prefix ____, next hop type ____ pointing to VM1, and be assigned to ____.
  • 10.0.0.0/16
  • 10.0.1.0/24
  • 10.0.254.0/24
  • GatewaySubnet
  • Subnet0
  • Subnet1 and Subnet2
  • Virtual appliance
  • Virtual network
  • Virtual network gateway

VNet1 holds Gateway, Perimeter, NVA and Production subnets. The NVA subnet hosts two inspection appliances between Perimeter and Production. You will front the appliances with a load balancer.

  • The appliances must operate active-active with automatic failover.
  • The balancer must spread traffic toward two Production services that use distinct IP addresses.
9. Which three actions form the solution? Each correct choice is one part.
  • Create a Basic load balancer
  • Create a Standard load balancer
  • Create two load-balancing rules with HA Ports and Floating IP turned on
  • Create two load-balancing rules with HA Ports on and Floating IP off
  • Add two frontend IP configurations, a backend pool, and a health probe
  • Add a frontend IP configuration, two backend pools, and a health probe

Storage1 must satisfy the three aims below.

  • Support Azure Data Lake Storage
  • Hold rarely touched data at the lowest cost
  • Copy data on its own to a secondary region
10. Which three settings complete the design? Pick three.
  • zone-redundant storage (ZRS)
  • the Cool access tier
  • geo-redundant storage (GRS)
  • the Hot access tier
  • hierarchical namespace

In Subscription1 you created a file share called share1 and then generated SAS1 with the properties below.

  • Permitted services: File allowed; Blob, Queue and Table not allowed
  • Permitted resource kinds: Service, Container and Object allowed
  • Granted rights: Read, Write and List allowed; Delete and Create not allowed
  • Validity window: from 2018-09-01 2:00:00 PM until 2018-09-14 2:00:00 PM in UTC+02:00
  • Permitted client addresses: 193.77.134.10 through 193.77.134.50
  • Permitted transport: HTTPS only
  • Key used for signing: key1
11. On September 2, 2018 you run Storage Explorer from 193.77.134.1 and attach with SAS1. The result is you: ____ On September 10, 2018 you run net use from 193.77.134.50 and supply SAS1 as the password for share1. The result is you: ____
  • will be prompted for credentials
  • will have no access
  • will have read-only access
  • will have read, write, and list access

The subscription holds the two accounts below. You will copy a blob from container1 straight into share1 with AzCopy and must pick the credential style for each side.

NameMicrosoft Entra ID authenticationContents
storage1EnabledA blob container named container1 that has a public access level of No public access
storage2EnabledA file share named share1
12. Match each account to the authentication method AzCopy should use for this blob-to-share copy.
  • storage1
  • storage2
  • A shared access signature (SAS) token
  • A storage account access key
  • Anonymous
  • OAuth

Your subscription holds a storage account named storage1 with blobs inside a container named container1. You want to share access and will create a shared access signature that permits only listing and fetching the blobs in container1 while granting the smallest possible rights. The Blob service is already selected.

13. Which four settings should the signature enable to permit only enumerating and downloading blobs in container1 with least privilege?
  • Container
  • Object
  • Read
  • List
  • Service
  • Write
  • Delete

VM1 runs Windows Server 2019 and was created with default drive layout. You sign in as User1 and change the machine as follows.

  • Add files on drive C.
  • Add files on drive D.
  • Adjust the screen saver timeout.
  • Change the desktop background.
14. You intend to redeploy VM1. Which of the changes will disappear after the redeploy?
  • the modified screen saver timeout
  • the new desktop background
  • the new files on drive D
  • the new files on drive C

Your subscription holds an availability set named WEBPROD-AS-USE2 whose properties are shown. You place 14 virtual machines into the set.

PS Azure:\> az vm availability-set list -g RG1
[
  {
    "id": "/subscriptions/8372f433-2dcd-4361-b5ef-5b188fed87d0/resourceGroups/RG1/providers/Microsoft.Compute/availabilitySets/WEBPROD-AS-USE2",
    "location": "eastus2",
    "name": "WEBPROD-AS-USE2",
    "platformFaultDomainCount": 2,
    "platformUpdateDomainCount": 10,
    "proximityPlacementGroup": null,
    "resourceGroup": "RG1",
    "sku": {
      "capacity": null,
      "name": "Aligned",
      "tier": null
    },
    "statuses": null,
    "tags": {},
    "type": "Microsoft.Compute/availabilitySets",
    "virtualMachines": [ ]
  }
]
15. During planned servicing in East US 2 the greatest number of machines down at once will be ____. If one of the racks (fault domains) hosting the set loses power, the greatest number down at once will be ____.
  • 10
  • 14
  • 2
  • 7

You have the App Service plans and the planned web apps listed below.

NameOperating systemLocation
ASP1WindowsWest US
ASP2WindowsCentral US
ASP3LinuxWest US
NameRuntime stackLocation
WebApp1.NET 10 (LTS)West US
WebApp2ASP.NET V4.8West US
16. WebApp1 can be placed in ____ and WebApp2 can be placed in ____.
  • ASP1 and ASP2 only
  • ASP1 and ASP3 only
  • ASP1 only
  • ASP1, ASP2, and ASP3
  • ASP3 only

You intend to deploy the container instances below and wonder which ones may coexist in a single group.

NameOperating system
Instance1Nano Server installation of Windows Server 2019
Instance2Server Core installation of Windows Server 2019
Instance3Linux
Instance4Linux
17. Which of the instances can you place together in the same container group?
  • Instance1 only
  • Instance2 only
  • Instance1 and Instance2 only
  • Instance3 and Instance4 only

A Windows virtual machine hosted in Azure is safeguarded by Azure Backup. About seven days ago two files were removed from the machine. You must return those files to a local computer running Windows Server 2016 in the fastest possible way.

18. In which sequence should you perform the file recovery actions?
  • Copy the required files from the attached volumes with File Explorer
  • Download and execute the generated script to attach the recovery volumes locally
  • Pick the recovery point that was created before the files disappeared
  • Start File Recovery for the protected item from the vault in the Azure portal

A subscription holds an action group that emails an administrator. An alert watches every administrative operation and a processing rule briefly suppresses notifications.

  • Alert1 scope is every resource group in Sub1 including future resources, condition is all administrative operations, action is Action1 that emails admin1@contoso.com.
  • Rule1 scope is Sub1, type is Suppress notifications, active from August 10, 2022 to August 13, 2022.
19. Creating a resource group in Sub1 on August 11, 2022 causes Alert1 to appear in the portal.
  • True
  • False
20. Creating a resource group in Sub1 on August 12, 2022 sends an email to admin1@contoso.com.
  • True
  • False
21. Adding a tag to RG1 on August 15, 2022 sends an email to admin1@contoso.com.
  • True
  • False