Microsoft

AZ-500 Free Practice Questions — Page 6

Question 55

DRAG DROP - You have two Azure subscriptions named Sub1 and Sub2. Sub1 contains a resource group named RG1 and an Azure policy named Policy1. You need to remediate the non-compliant resources in Sub1 based on Policy1. How should you complete the PowerShell script? To answer, drag the appropriate values to the correct targets. Each value 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-500 question 55
Show Answer
Correct Answer: Set-AzContext Start-AzPolicyRemediation
Explanation:
Set the subscription context to Sub1, then start a policy remediation for the specified policy assignment using ResourceDiscoveryMode ReEvaluateCompliance.

Question 56

You have an Azure subscription that contains an Azure Key Vault Standard key vault named Vault1. Vault1 hosts a 2048-bit RSA key named key1. You need to ensure that key1 is rotated every 90 days. What should you do first?

A. Create a key rotation policy.
B. Modify the Access policies settings of Vault1.
C. Upgrade Vault1 to Key Vault Premium.
D. Recreate key1 as an EC key.
Show Answer
Correct Answer: A
Explanation:
Azure Key Vault supports key rotation policies for keys in both Standard and Premium vaults. To ensure an existing RSA key rotates every 90 days, the first step is to create and configure a key rotation policy for that key. Changing access policies, upgrading to Premium, or recreating the key as an EC key are not required for scheduled rotation.

Question 59

HOTSPOT - You have an Azure subscription that contains the resources shown in the following table. VNet1 connects to a remote site by using a Site-to-Site (S2S) VPN that uses forced tunneling. VNet1 contains the subnets shown in the following table. The SQL subnet contains SQL1. For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.

Illustration for AZ-500 question 59 Illustration for AZ-500 question 59 Illustration for AZ-500 question 59
Show Answer
Correct Answer: Yes Yes No
Explanation:
1) SQL1 is in the SQL subnet protected by NSG1, so restricting inbound traffic is done by modifying NSG1 rules. 2) With forced tunneling, enabling a Microsoft.Storage service endpoint on the VM's subnet (implicitly the Default subnet) allows storage traffic to use the Azure backbone. 3) An App Service Environment requires a dedicated subnet that cannot contain other resources, so it cannot be deployed to the existing Default subnet.

Question 60

You have an Azure subscription that uses Microsoft Defender for Cloud. You have an Amazon Web Services (AWS) account. You need to ensure that when you deploy a new AWS Elastic Compute Cloud (EC2) instance, the Microsoft Defender for Servers agent installs automatically. What should you configure first?

A. the classic cloud connector
B. the Azure Monitor agent
C. the Log Analytics agent
D. the native cloud connector
Show Answer
Correct Answer: D
Explanation:
The native cloud connector is the recommended onboarding method for connecting AWS accounts to Microsoft Defender for Cloud. It enables Defender plans for AWS resources, including automatic deployment of the Defender for Servers agent to newly provisioned EC2 instances (via AWS Systems Manager where applicable). The classic connector is the legacy approach, while Azure Monitor Agent and Log Analytics Agent are agents themselves, not the initial AWS integration that enables auto-provisioning.

Question 61

HOTSPOT - You have an Azure subscription that contains a user named User1 and a storage account named storage1. The storage1 account contains the resources shown in the following table. User1 is assigned the following roles for storage1: • Storage Blob Data Reader • Storage Table Data Contributor • Storage File Data SMB Share Reader In storage1, you create a shared access signature (SAS) named SAS1 as shown in the following exhibit. For each of the following statements, select Yes if the statement is true. Otherwise, select No.

Illustration for AZ-500 question 61 Illustration for AZ-500 question 61 Illustration for AZ-500 question 61
Show Answer
Correct Answer: Yes No No
Explanation:
The SAS is configured only for the File service and includes Delete permission, so it can delete files in the file share during its validity. Azure AD RBAC over SMB uses the assigned file share role, and the user only has the SMB Share Reader role, so deletion isn't allowed. The SAS does not include the Table service, so it cannot be used to delete table rows.

Question 62

You are troubleshooting a security issue for an Azure Storage account. You enable Azure Storage Analytics logs and archive it to a storage account. What should you use to retrieve the diagnostics logs?

A. the Microsoft 365 Defender portal
B. SQL query editor in Azure
C. Azure Monitor
D. Azure Storage Explorer
Show Answer
Correct Answer: D
Explanation:
Azure Storage Analytics logs are written as blobs in the special $logs container of the designated storage account. To retrieve those archived log files, Azure Storage Explorer is the appropriate tool because it lets you browse and download the log blobs. Azure Monitor is used for collecting and analyzing monitoring data, but Storage Analytics logs archived to a storage account are retrieved from storage.

Question 63

You have an Azure subscription that contains a user named User1 and a storage account that hosts a blob container named blob1. You need to grant User1 access to blob1. The solution must ensure that the access expires after six days. What should you use?

A. a shared access signature (SAS)
B. role-based access control (RBAC)
C. a shared access policy
D. a managed identity
Show Answer
Correct Answer: A
Explanation:
A shared access signature (SAS) provides time-limited delegated access to Azure Storage resources and supports setting a specific expiry time, such as six days. RBAC grants identity-based permissions but does not support automatic expiration after six days by itself. A shared access policy defines constraints for service SAS but does not itself grant access. A managed identity is for Azure resources, not for granting a user temporary access to a blob container.

Question 64

HOTSPOT - You have an Azure subscription that contains the virtual networks shown in the following table. The subscription contains the subnets shown in the following table. You plan to create an Azure web app named WebApp2 that will have the following configurations: • Region: East US • VNet integration: Enabled • Scale out: Autoscale to up to 10 instances For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.

Illustration for AZ-500 question 64 Illustration for AZ-500 question 64 Illustration for AZ-500 question 64
Show Answer
Correct Answer: Subnet11: No Subnet12: Yes Subnet21: No
Explanation:
VNet Integration requires a dedicated empty subnet of at least /28 (recommended larger for scale). Subnet11 is in use by a VM, so it cannot be used. Subnet12 is an unused /27 in the same region as the web app, so it is suitable. Subnet21 is in a West US VNet while the web app is in East US; regional VNet Integration requires the VNet to be in the same region as the app.

Question 65

You have an Azure subscription that contains an Azure web app named App1 and a virtual machine named VM1. VM1 runs Microsoft SQL Server and is connected to a virtual network named VNet1. App1, VM1, and VNet1 are in the US Central Azure region. You need to ensure that App1 can connect to VM1. The solution must minimize costs. What should you include in the solution?

A. regional virtual network integration
B. gateway-required virtual network integration
C. Azure Front Door
D. Azure Application Gateway integration
E. NAT gateway integration
Show Answer
Correct Answer: A
Explanation:
App1 needs outbound connectivity to a VM inside a virtual network in the same Azure region. Regional Virtual Network Integration is designed for App Service to access resources in a VNet within the same region and does not require a Virtual Network Gateway, making it the lowest-cost solution. Gateway-required VNet integration is for cross-region or classic VNets. Azure Front Door and Application Gateway do not provide this private outbound connectivity, and NAT Gateway is for outbound internet egress from VNets, not App Service-to-VNet integration.

Question 66

You have an Azure subscription that contains the resources shown in the following table. You plan to deploy an Azure Private Link service named APL1. Which resource should you reference during the creation of APL1.

A. LB1
B. SQL1
C. VMSS1
D. VM1
Show Answer
Correct Answer: A
Explanation:
An Azure Private Link service is a provider-side resource that publishes your own service behind an Azure Standard Load Balancer. During creation of a Private Link service, you reference the frontend IP configuration of the Standard Load Balancer, not a VM, VM scale set, or Azure SQL Database. Azure SQL uses Private Endpoints as a consumer of Private Link, but creating a Private Link service requires a Standard Load Balancer.

$19

Get all 437 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.