AZ-801 · Question #149
You have an Azure subscription named Sub1 that contains a resource group named RG1. RG1 contains the resources shown in the following table. Name Type Description VM1 Virtual machine Runs Windows…
The correct answer is A. Create a network security group (NSG). To implement Just-in-time (JIT) VM access for VM1, the first step is to create a network security group (NSG) if one does not already protect the VM's network interface or subnet.
Question
Options
- ACreate a network security group (NSG)
- BEnable enhanced security in Microsoft Defender for Cloud
- CRequest the Owner role for Sub1
- DCreate an application security group.
How the community answered
(49 responses)- A73% (36)
- B6% (3)
- C16% (8)
- D4% (2)
Why each option
To implement Just-in-time (JIT) VM access for VM1, the first step is to create a network security group (NSG) if one does not already protect the VM's network interface or subnet.
JIT VM access functions by dynamically modifying Network Security Group (NSG) rules to allow temporary inbound access to specific ports. Therefore, an NSG must be associated with the VM's network interface or subnet to be able to configure and enforce JIT access policies.
The question states that "Sub1 has Microsoft Defender for Servers enabled," which implies enhanced security in Microsoft Defender for Cloud is already active, making this not the first required step.
While the Owner role grants more permissions, the Contributor role is typically sufficient for configuring JIT VM access policies and NSGs; requesting Owner is not the first technical prerequisite.
An application security group (ASG) groups VMs to simplify NSG rule management for applications but is not a prerequisite for JIT VM access; an NSG is the fundamental requirement.
Concept tested: JIT VM access NSG prerequisite
Source: https://learn.microsoft.com/en-us/azure/security-center/just-in-time-access-usage
Topics
Community Discussion
No community discussion yet for this question.