Skip to main content
  1. Public practice questions
  2. AZ-104 Practice Exams | Azure Administrator Associate
  3. AZ-104 Practice Exam 12

Question 32 — AZ-104 Practice Exam 12

You need to ensure that administrators can remotely connect to VMs over RDP, while still controlling access to other ports. Which NSG rule configuration should you create? (Select one answer)

  1. Set a Destination filter of “Any” without specifying service

  2. Define a service rule using the RDP predefined service

  3. Assign a rule with the highest numeric priority value

  4. Leave the NSG unassociated so Azure defaults allow traffic

Correct answers

  1. Define a service rule using the RDP predefined service

Explanations

Correct
Define a service rule using the RDP predefined service – Selecting the RDP option (TCP port 3389) ensures controlled inbound connections for remote management.

Wrong
Set a Destination filter of “Any” without specifying service – This would allow all outbound traffic to all destinations, not restricted RDP access.
Assign a rule with the highest numeric priority value – Higher numbers mean lower precedence; the rule might never be applied.
Leave the NSG unassociated so Azure defaults allow traffic – This would open all traffic, failing to meet the requirement of controlled access.