A company wants to protect Azure virtual machines from brute force attacks by allowing remote desktop protocol (RDP) access only when explicitly requested and approved. Which Microsoft Defender for Cloud feature should they enable?
Just-in-time VM access in Microsoft Defender for Cloud eliminates standing inbound exposure by locking down management ports with deny rules, and only transiently adds an allow rule when an authenticated, authorized request is made for a defined source IP, protocol, and time window. This reduced attack surface directly mitigates brute-force attempts because SSH/RDP ports remain closed to the public internet until a legitimate user specifically requests access.
Why this answer
Just-in-time (JIT) VM access in Microsoft Defender for Cloud locks down inbound traffic to Azure VMs by default, opening RDP (port 3389) only when a user requests access and is approved via Azure AD and Azure Policy. This directly addresses the requirement to allow RDP only on explicit request and approval, mitigating brute force attacks by reducing the attack surface.
Exam trap
The trap here is that candidates confuse Adaptive network hardening (which also involves NSG rules) with JIT VM access, but Adaptive network hardening only recommends permanent rule changes based on traffic patterns, not temporary, approval-based port openings.
How to eliminate wrong answers
Option A is wrong because Adaptive network hardening uses machine learning to recommend NSG rules based on historical traffic patterns, but it does not provide on-demand, approved access control for specific ports like RDP. Option C is wrong because File integrity monitoring (FIM) tracks changes to critical files and registry keys, not network access control or RDP port management. Option D is wrong because Security recommendations are advisory outputs from Defender for Cloud (e.g., 'Enable JIT access'), not a feature that itself enforces time-bound RDP access.