Microsoft Azure Administrator Associate AZ-104 Practice Question
You have an Azure virtual machine that needs to accept inbound TCP connections on port 8080 from the internet. What should you configure to enable this access?
You selected this option
Open port 8080 in the virtual machine's operating system firewall.
You selected this option
Move the virtual machine to a subnet that permits port 8080 traffic.
You selected this option
Associate a public IP address with the virtual machine.
You selected this option
Modify the inbound security rules in the Network Security Group to allow traffic on port 8080.
To allow inbound traffic on port 8080 from the internet to the virtual machine, you need to modify the inbound security rules of the Network Security Group (NSG) associated with the VM's network interface. By adding a rule that permits inbound traffic on port 8080, the NSG will allow this traffic to reach the VM. Simply opening the port in the operating system's firewall is insufficient because the NSG would still block the traffic at the Azure network level. Associating a public IP address makes the VM accessible from the internet but does not open any ports. Changing the subnet might not resolve the issue unless the new subnet's NSG allows port 8080 traffic, which is less direct and potentially disruptive.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a Network Security Group (NSG)?
Open an interactive chat with Bash
How do I modify inbound security rules in an NSG?
Open an interactive chat with Bash
Why is it insufficient to only open port 8080 in the VM's operating system firewall?
Open an interactive chat with Bash
Microsoft Azure Administrator Associate AZ-104
Deploy and manage Azure compute resources
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Oh snap!
Loading...
Loading...
Loading...
Information Technology Package Join Premium for Full Access