Microsoft Azure Administrator Associate AZ-104 Practice Question
You are an Azure administrator for a company that requires a virtual machine to host a web application accessible over the internet. You have deployed a new Linux virtual machine in Azure. By default, it only allows SSH access on port 22. You need to enable web traffic on port 80 to the virtual machine. What should you configure to achieve this?
Add an inbound security rule to the Network Security Group allowing traffic on port 80.
Set up a load balancer to forward port 80 traffic to the virtual machine.
Modify the virtual machine's properties to enable HTTP traffic.
Adjust the routing table to direct port 80 traffic to the virtual machine.
To enable web traffic on port 80, you need to add an inbound security rule to the Network Security Group (NSG) associated with the virtual machine's network interface or subnet. NSGs act as virtual firewalls that control inbound and outbound traffic to network interfaces or subnets. By adding a rule that allows inbound traffic on port 80, you permit HTTP requests to reach the virtual machine. Modifying the virtual machine's properties will not affect network traffic rules. Adjusting the routing table controls the direction of traffic but does not allow or deny traffic on specific ports. Setting up a load balancer is unnecessary unless you are managing traffic to multiple virtual machines.
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 add an inbound security rule to an NSG?
Open an interactive chat with Bash
What happens if I don't allow traffic on port 80?
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...
IT & Cybersecurity Package Join Premium for Full Access