Microsoft

AZ-104 Free Practice Questions — Page 22

Question 211

HOTSPOT - You have an Azure subscription. You plan to deploy a storage account named storage1 by using the following Azure Resource Manager (ARM) template. For each of the following statements, select Yes if the statement is hue. Otherwise, select No. NOTE: Each correct selection is worth one point.

Illustration for AZ-104 question 211 Illustration for AZ-104 question 211
Show Answer
Correct Answer: No No Yes
Explanation:
Point-in-time restore (restorePolicy) is enabled for 6 days only, so changes cannot be rolled back after seven days. Network rules allow public access and are not restricted to the East US region. Standard_LRS provides locally redundant storage with three copies in the same region.

Question 212

DRAG DROP - You have an Azure subscription named Sub1 that contains two users named User1 and User2. You need to assign role-based access control (RBAC) roles to User1 and User2. The users must be able to perform the following tasks in Sub1: • User1 must view the data in any storage account. • User2 must assign users the Contributor role for storage accounts. The solution must use the principle of least privilege. Which RBAC role should you assign to each user? To answer, drag the appropriate roles to the correct users. Each role may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. NOTE: Each correct selection is worth one point.

Illustration for AZ-104 question 212
Show Answer
Correct Answer: User1: Reader and Data Access User2: Owner
Explanation:
User1 needs read-only visibility of storage account data; Reader and Data Access allows viewing resources and data without managing storage accounts. User2 must assign RBAC roles; among the given options, only Owner can manage access (assign roles), satisfying the requirement with the least privilege available.

Question 213

You have an Azure subscription that contains the resources shown in the following table. You need to manage outbound traffic from VNET1 by using Firewall1. What should you do first?

A. Configure the Hybrid Connection Manager.
B. Upgrade ASP1 to the Premium SKU.
C. Create a route table.
D. Create an Azure Network Watcher.
Show Answer
Correct Answer: C
Explanation:
To manage outbound traffic from a virtual network using Azure Firewall, the first required step is to force traffic from the subnets in VNET1 to pass through Firewall1. This is done by creating a user-defined route (UDR) table with a default route (0.0.0.0/0) that points to the Azure Firewall, and then associating that route table with the relevant subnet(s). Without a route table, outbound traffic will continue to use system routes and bypass the firewall.

Question 214

You have an Azure subscription that contains 10 virtual machines, a key vault named Vault1, and a network security group (NSG) named NSG1. All the resources are deployed to the East US Azure region. The virtual machines are protected by using NSG1. NSG1 is configured to block all outbound traffic to the internet. You need to ensure that the virtual machines can access Vault1. The solution must use the principle of least privilege and minimize administrative effort What should you configure as the destination of the outbound security rule for NSG1?

A. an application security group
B. a service tag
C. an IP address range
Show Answer
Correct Answer: B
Explanation:
To allow the virtual machines to access Azure Key Vault while blocking general internet access, the outbound NSG rule should use a service tag. The AzureKeyVault service tag represents the managed set of IP addresses used by the Azure Key Vault service. Using this tag avoids hard‑coding IP ranges, automatically stays up to date, minimizes administrative effort, and aligns with least privilege by allowing traffic only to the Key Vault service rather than the entire internet.

Question 215

You need to configure an Azure web app named contoso.azurewebsites.net to host www.contoso.com. What should you do first?

A. Create A records named www.contoso.com and asuid.contoso.com.
B. Create a TXT record named asuid that contains the domain verification ID.
C. Create a CNAME record named asuid that contains the domain verification ID.
D. Create a TXT record named www.contoso.com that has a value of contoso.azurewebsites.net.
Show Answer
Correct Answer: B
Explanation:
Before mapping a custom domain to an Azure App Service, Azure requires proof of domain ownership. The first step is to create a TXT record named asuid with the domain verification ID provided by Azure. Only after verification can you add the CNAME or A record to point www.contoso.com to contoso.azurewebsites.net.

Question 216

You have an Azure subscription that contains eight virtual machines and the resources shown in the following table. You need to configure access for VNET1. The solution must meet the following requirements: • The virtual machines connected to VNET1 must be able to communicate with the virtual machines connected to VNET2 by using the Microsoft backbone. • The virtual machines connected to VNET1 must be able to access storage1, storage2, and Azure AD by using the Microsoft backbone. What is the minimum number of service endpoints you should add to VNET1?

A. 1
B. 2
C. 3
D. 5
Show Answer
Correct Answer: A
Explanation:
VNET-to-VNET communication over the Microsoft backbone is achieved by VNet peering and does not require service endpoints. A single service endpoint for Microsoft.Storage on VNET1 is sufficient to access both storage1 and storage2, since service endpoints are configured per service, not per storage account. Azure AD (Microsoft Entra ID) does not require and does not natively support service endpoints for general access, so no endpoint is needed for it. Therefore, the minimum number of service endpoints to add to VNET1 is one.

Question 217

You have an Azure subscription named Subscription1 that contains an Azure Log Analytics workspace named Workspace1. You need to view the error events from a table named Event. Which query should you run in Workspace1?

A. select * from Event where EventType == "error"
B. Event | search "error"
C. Event | where EventType is "error"
D. Get-Event Event | where {$_.EventType == "error"}
Show Answer
Correct Answer: B
Explanation:
Azure Log Analytics uses Kusto Query Language (KQL). To view error-related events from the Event table, you must use valid KQL syntax. Option B uses the correct pipe syntax and the search operator, which scans the Event table for records containing the term "error". The other options use invalid syntax (SQL or PowerShell) or incorrect operators for KQL.

Question 218

You have an Azure subscription that contains the storage accounts shown in the following table. You deploy a web app named App1 to the West US Azure region. You need to back up App1. The solution must minimize costs. Which storage account should you use as the target for the backup?

A. storage1
B. storage2
C. storage3
D. storage4
Show Answer
Correct Answer: B
Explanation:
To minimize costs when backing up an Azure Web App, the backup target should be a storage account in the same region as the app to avoid inter-region data transfer charges. App1 is deployed in West US, which narrows the options to storage accounts in West US. Among those, BlobStorage (storage2) is the most cost-effective option for web app backups compared to BlockBlobStorage, while accounts in other regions or FileStorage would add unnecessary cost.

Question 219

You have an Azure subscription named Subscription1. You have 5 TB of data that you need to transfer to Subscription1. You plan to use an Azure Import/Export job. What can you use as the destination of the imported data?

A. an Azure Cosmos DB database
B. Azure File Storage
C. Azure SQL Database
D. a virtual machine
Show Answer
Correct Answer: B
Explanation:
Azure Import/Export jobs support importing data only into Azure Storage services: Azure Blob Storage and Azure File Storage. Among the options given, only Azure File Storage is a valid destination. Cosmos DB, Azure SQL Database, and virtual machines are not supported import destinations for the Import/Export service.

Question 220

HOTSPOT - You have an Azure AD user named User1 and a read-access geo-redundant storage (RA-GRS) account named contoso2023. You need to meet the following requirements: • User1 must be able to write blob data to contoso2023. • The contoso2023 account must fail over to its secondary endpoint. Which two settings should you configure? To answer, select the appropriate settings in the answer area. NOTE: Each correct selection is worth one point.

Illustration for AZ-104 question 220
Show Answer
Correct Answer: Access Control (IAM) Geo-replication (Redundancy)
Explanation:
Access Control (IAM) is used to assign User1 a role such as Storage Blob Data Contributor, which allows writing blob data. Geo-replication (now labeled Redundancy) is used to manage RA-GRS and initiate failover to the secondary endpoint.

$19

Get all 558 questions with detailed answers and explanations

  • Instant download HTML + PDF delivered the moment payment clears.
  • Secure Stripe checkout we never see or store your card details.
  • 7-day refund if files are defective see our refund policy.