You have Sub1 with RG1 and the listed resources and Microsoft Defender for Servers enabled. You have Contributor permissions on Sub1. To enable just-in-time (JIT) access for VM1, what is the first task you must perform?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a network security group (NSG)..
Why this is the answer
To enable Just-in-Time (JIT) VM access, a Network Security Group (NSG) must be associated with the VM's network interface or subnet. JIT works by dynamically opening and closing ports on the NSG. Without an NSG, JIT cannot enforce its port restrictions. Creating an NSG is the foundational step. While enhanced security in Defender for Cloud is required for JIT, it's a configuration setting, not the initial resource creation. Contributor permissions are sufficient for this task, so requesting the Owner role is unnecessary. An application security group (ASG) is used for grouping network interfaces for security rules, but an NSG is still required to apply those rules.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed