exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 5 question 18 discussion

Actual exam question from Microsoft's AZ-104
Question #: 18
Topic #: 5
[All AZ-104 Questions]

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have an Azure subscription that contains the following resources:
✑ A virtual network that has a subnet named Subnet1
✑ Two network security groups (NSGs) named NSG-VM1 and NSG-Subnet1
✑ A virtual machine named VM1 that has the required Windows Server configurations to allow Remote Desktop connections
NSG-Subnet1 has the default inbound security rules only.
NSG-VM1 has the default inbound security rules and the following custom inbound security rule:
✑ Priority: 100
✑ Source: Any
✑ Source port range: *
✑ Destination: *
✑ Destination port range: 3389

Protocol: UDP -

✑ Action: Allow
VM1 has a public IP address and is connected to Subnet1. NSG-VM1 is associated to the network interface of VM1. NSG-Subnet1 is associated to Subnet1.
You need to be able to establish Remote Desktop connections from the internet to VM1.
Solution: You add an inbound security rule to NSG-Subnet1 that allows connections from the internet source to the VirtualNetwork destination for port range 3389 and uses the UDP protocol.
Does this meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
mlantonis
Highly Voted 3 years, 9 months ago
Correct Answer: B - No The default port for RDP is TCP port 3389. Reference: https://docs.microsoft.com/en-us/troubleshoot/azure/virtual-machines/troubleshoot-rdp-connection
upvoted 63 times
...
aMiPL
Highly Voted 4 years ago
Such a silly question :). By default it will not work but you can make it work so there isn't really a good answer xD. By default servers accepts on both TCP and UDP. UDP will work as long as client machine(the one you are connecting from) will have registry updated to use UDP by default :> So the answer is "No" in but you can actually make it work if you change settings outside of azure.
upvoted 21 times
...
scar317
Most Recent 3 months, 1 week ago
Selected Answer: A
GPT: Why TCP is Essential: Session Establishment: RDP requires a reliable connection to authenticate users and initialize the session. Control Messages: Critical RDP messages, like keyboard and mouse inputs, rely on TCP to ensure delivery. Without TCP, RDP cannot initiate or maintain a session. UDP is a supplementary protocol that enhances the experience once the session is established.
upvoted 1 times
...
[Removed]
5 months, 1 week ago
Selected Answer: B
B is correct The default port for RDP is TCP port 3389.
upvoted 1 times
...
aikooo
10 months, 4 weeks ago
I think answer is B
upvoted 1 times
...
vsvaid
1 year ago
Selected Answer: B
We need a rule for VM Nic to allow RDP on TCP at 3389. It is not present at the moment
upvoted 1 times
...
riccardoto
1 year, 6 months ago
Selected Answer: B
Just for sake of precision: RDP can work both through TCP or UDP (google it!). The answer of this question though will still be "No" though, because we have two NSG enforced (one on NIC, one on Subnet) - one opens TCP, the other opens UDP - so either connections will be blocks. And dudes, please stop crapping these comments with answers with OpenAI, they are just not reliable and often wrong.
upvoted 2 times
...
Exilic
1 year, 10 months ago
Selected Answer: B
OpenAI "No, this solution will not meet the goal. The current inbound security rule in NSG-VM1 allows Remote Desktop connections using the TCP protocol on port 3389. The proposed inbound security rule in NSG-Subnet1 allows connections using the UDP protocol, which is not used for Remote Desktop connections. Therefore, you should add an inbound security rule to NSG-VM1 that allows connections from the internet source to the VirtualNetwork destination for port range 3389 and uses the TCP protocol."
upvoted 1 times
...
CyberKelev
2 years ago
Selected Answer: B
No, this solution will not meet the goal as Remote Desktop Protocol (RDP) uses TCP, not UDP. The inbound security rule should be configured to allow connections from the internet source to the VirtualNetwork destination for port range 3389 and use the TCP protocol, not UDP. Additionally, the NSG-VM1 should remain associated with the network interface of VM1 as it allows the RDP traffic to reach the virtual machine.
upvoted 1 times
...
[Removed]
2 years, 1 month ago
On my 2nd test
upvoted 1 times
...
EmnCours
2 years, 6 months ago
Selected Answer: B
Correct Answer: B The default port for RDP is TCP port 3389
upvoted 1 times
...
pkg007
2 years, 7 months ago
I just tested - Crated an Azure VM ( windows Server ) with RDP coonections it showing RDP connection on TCP protocol port 3389. When you try to add an inbound rule and select "RDP" - it will automatically select "TCP" protocol and Destination port range " 3389" connection Answer is B
upvoted 2 times
...
nkhan19
2 years, 7 months ago
Selected Answer: B
RDP works on TCP 3389
upvoted 2 times
...
minix
2 years, 8 months ago
came in today's exam 25/6/2022
upvoted 2 times
...
Lazylinux
2 years, 8 months ago
Selected Answer: B
No for sure 3389 is TCP not UDP
upvoted 2 times
...
amunator
2 years, 8 months ago
Selected Answer: B
RDP use TCP protocol, not UDP.
upvoted 1 times
...
sjb666
2 years, 10 months ago
Selected Answer: B
Answer is B. Have also tested in lab, definitely can't connect to UDP 3389 alone (although it is cited on several sites that it improves the experience in some cases).
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago