Microsoft Azure Administrator Associate AZ-104 Practice Question
You have an Azure virtual machine running a custom web service. The service must be reachable from any internet client over TCP port 8080. Which Azure configuration change will allow the required inbound connectivity?
Associate a public IP address with the virtual machine.
Move the virtual machine to a subnet that permits port 8080 traffic.
Open port 8080 in the virtual machine's operating system firewall.
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, add an inbound security rule to the Network Security Group (NSG) associated with the VM's network interface or subnet. The rule should allow TCP traffic from any source to destination port 8080. An operating-system firewall change is not sufficient because an NSG blocks traffic before it reaches the guest OS. Associating a public IP address only provides an external endpoint; it does not open any ports. Moving the VM to another subnet would work only if that subnet's NSG already includes the necessary rule, which is an indirect and potentially disruptive approach.
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) in Azure?
Open an interactive chat with Bash
Why isn't modifying the operating system's firewall enough for enabling port 8080 traffic?
Open an interactive chat with Bash
How does associating a public IP address affect VM accessibility?
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
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .