Microsoft

AZ-500 Free Practice Questions — Page 3

Question 22

HOTSPOT - You have an Azure subscription that contains a virtual machine named VM1. You have a network security group (NSG) named NSG1 that is associated to the network interface of VM1 and is configured as shown in the following exhibit. Just-in-time (JIT) VM access is enabled on VM1 and has the following configurations: • Management ports: 3389, 22 • Maximum time range: 3 hours • Allowed source IP addresses: Any You activate the JIT rule and connect to VM1 by using SSH. 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 22 Illustration for AZ-500 question 22
Show Answer
Correct Answer: Yes No No
Explanation:
1) Existing NSG rules for a port are not overridden by JIT; the existing RDP allow rule retains priority. 2) The JIT access remains active for the full approved window, allowing reconnection without reactivation. 3) JIT does not terminate active sessions; it only controls new connection attempts after the window expires.

Question 23

You have an Azure subscription that contains an Azure Kubernetes Service (AKS) cluster named AKS1. You have an Azure container registry that stores container images that were deployed by using Azure DevOps Microsoft-hosted agents. You need to ensure that administrators can access AKS1 only from specific networks. The solution must minimize administrative effort. What should you configure for AKS1?

A. authorized IP address ranges
B. an Application Gateway Ingress Controller (AGIC)
C. a private endpoint
D. a private cluster
Show Answer
Correct Answer: A
Explanation:
The requirement is to restrict administrator access to the AKS API server from specific networks while minimizing administrative effort. Configuring authorized IP address ranges directly limits API server access to specified public IPs or CIDR ranges, is simple to manage, and requires no additional infrastructure. Other options either manage ingress traffic (AGIC) or introduce more complex networking and operational overhead (private endpoint or private cluster).

Question 24

Your company has an Azure subscription named Sub1. You plan to create several security alerts by using Azure Monitor. You need to prepare Sub1 for the alerts. What should you create first?

A. an Azure Automation account
B. an Azure event hub
C. an Azure Log Analytics workspace
D. an Azure Storage account
Show Answer
Correct Answer: C
Explanation:
Azure Monitor alert rules—especially log-based and many security alerts—depend on data stored in a Log Analytics workspace. Before creating alerts, the subscription must have a Log Analytics workspace to collect and query logs. Other resources (Automation account, Event Hub, Storage account) are not prerequisites for creating Azure Monitor alerts.

Question 25

HOTSPOT - You have an Azure key vault. You need to delegate administrative access to the key vault to meet the following requirements: • Provide a user named User1 with the ability to set access policies for the key vault. • Provide a user named User2 with the ability to add and delete certificates in the key vault. • Use the principle of least privilege. What should you use to assign access to each user? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Illustration for AZ-500 question 25
Show Answer
Correct Answer: User1: RBAC only User2: RBAC and key vault access policy
Explanation:
User1 must manage access policies, which is a management-plane operation handled only through Azure RBAC. Key Vault access policies do not grant permissions to manage other access policies. User2 must add and delete certificates, which are data-plane operations. Certificate permissions can be granted via a Key Vault access policy, and RBAC is also required when the vault uses RBAC-based authorization. Using both satisfies the requirement while keeping permissions scoped to certificates.

Question 26

HOTSPOT - You have an Azure subscription that contains the virtual networks shown in the following table. The subscription contains the virtual machines shown in the following table. All the virtual machines have only private IP addresses. You deploy Azure Bastion to VNet1 as shown in the following exhibit. 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 26 Illustration for AZ-500 question 26 Illustration for AZ-500 question 26 Illustration for AZ-500 question 26
Show Answer
Correct Answer: No Yes No
Explanation:
Azure Bastion Basic supports browser-based RDP/SSH via the Azure portal, not the native Remote Desktop Connection client. Bastion in VNet1 can connect to VMs in directly peered VNets; VNet2 is peered with VNet1, so SSH to the Linux VM works. Bastion does not support transitive peering; VNet3 is only peered with VNet2, so the VM in VNet3 can’t be reached via Bastion.

Question 27

You have an Azure subscription that contains the Azure App Service web apps shown in the following table. You upload a private key certificate named Cert1.pfx to App1. Which apps can use Cert1?

A. App1 only
B. App1 and App2 only
C. App1 and App4 only
D. App1, App2, and App3 only
E. App1, App2, App3, and App4
Show Answer
Correct Answer: A
Explanation:
Private (PFX) certificates uploaded to an Azure App Service app are stored in a deployment unit (webspace) tied to the specific combination of subscription, resource group, region, and OS. Only apps that share the same webspace can use the certificate. Based on the given setup, only App1 shares that exact deployment unit with the uploaded certificate, so no other apps can use Cert1.

Question 28

HOTSPOT - You have an Azure subscription that contains an Azure firewall named AzFW1. AzFW1 has a firewall policy named FWPolicy1. You need to add rule collections to FWPolicy1 to meet the following requirements: • Allow traffic based on the FQDN of the destination. • Allow TCP traffic. Which types of rule collections should you add for each requirement? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Illustration for AZ-500 question 28
Show Answer
Correct Answer: Allow traffic based on the destination FQDN: Network or application only Allow TCP traffic: Network or DNAT only
Explanation:
FQDN-based filtering is supported by application rules (L7) and also by network rules for non-HTTP/S scenarios, but not by DNAT rules. TCP is an L4 protocol and can be allowed by network rules, and DNAT rules can also allow TCP for inbound translated traffic; application rules are protocol-specific at L7 and not used generically for TCP.

Question 29

HOTSPOT - You have an Azure subscription named Sub1 that contains two resource groups named RGnet and NET. You have the Azure Policy definition shown in the following exhibit. You assign the policy definition to Sub1 and NET. You plan to deploy the resources shown in the following table. 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 29 Illustration for AZ-500 question 29 Illustration for AZ-500 question 29
Show Answer
Correct Answer: Yes Yes No
Explanation:
The policy denies resources only when BOTH conditions are true: (1) the resource group name contains "net" and (2) the resource type is NOT Microsoft.Network/*. VNet and ASG are Microsoft.Network resources, so they aren’t denied even in RGs containing "net". A storage account is Microsoft.Storage, so in RGnet both conditions are met and the deployment is denied.

Question 30

You have a Microsoft Entra tenant named contoso.com. You plan to collaborate with a partner organization that has a Microsoft Entra tenant named fabrikam.com. Fabrikam.com uses the following identity providers: • Google Cloud Platform (GCP) • Microsoft accounts • Microsoft Entra ID You need to configure the Cross-tenant access settings for B2B collaboration. Which identity providers support cross-tenant access?

A. Microsoft Entra ID only
B. GCP and Microsoft Entra ID only
C. Microsoft accounts and Microsoft Entra ID only
D. GCP, Microsoft accounts, and Microsoft Entra ID
Show Answer
Correct Answer: A
Explanation:
Cross-tenant access settings apply only to collaboration between Microsoft Entra ID tenants. These settings (inbound/outbound access, trust of MFA and device claims) are evaluated when the external user authenticates with a Microsoft Entra ID from another tenant. External/social identity providers such as Google (GCP) and Microsoft consumer accounts can be used for B2B collaboration, but they do not support cross-tenant access settings.

Question 31

DRAG DROP - You have a Microsoft Entra tenant. On January 1, you configure a multi-factor authentication (MFA) registration policy that has the following settings: • Assignments: All users • Require Microsoft Entra ID multifactor authentication registration: Enabled • Enforce policy: On On January 3, you create two new users named User1 and User2. On January 5, User1 authenticates to Microsoft Entra ID for the first time. On January 7, User2 authenticates to Microsoft Entra ID for the first time. On which date will User1 and User2 be forced to register for MFA? To answer, drag the appropriate dates to the correct users. Each date 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 31
Show Answer
Correct Answer: User1: January 19 User2: January 21
Explanation:
With an MFA registration policy enforced, users get a 14-day registration period starting from their first sign-in after the policy applies. User1 first signs in on January 5 → January 19. User2 first signs in on January 7 → January 21.

$19

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