Microsoft Azure Administrator Associate AZ-104 Practice Question
You have an Azure virtual machine that hosts a critical web application. After restarting the virtual machine, you notice that its public internet address has changed, causing client connectivity issues. What should you do to ensure the virtual machine retains the same public internet address after future restarts?
Assign a static private IP address to the virtual machine
Add the virtual machine to an availability set
Configure the virtual machine's network interface to use a static public IP address
To ensure the virtual machine retains the same public internet address after restarts, you should configure the network interface to use a static public IP address. By default, Azure assigns dynamic public IP addresses, which can change when the virtual machine is deallocated or restarted. Assigning a static public IP address guarantees that the address remains constant, maintaining client connectivity. Assigning a static private IP address would not resolve the issue because private IP addresses are not accessible over the internet. Adding the virtual machine to an availability set enhances fault tolerance but does not affect address allocation. Enabling Azure DNS provides domain name resolution but does not ensure a consistent public internet address.
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 static public IP address in Azure?
Open an interactive chat with Bash
How do I configure a static public IP address for my Azure virtual machine?
Open an interactive chat with Bash
What happens if I use a dynamic public IP address?
Open an interactive chat with Bash
Microsoft Azure Administrator Associate AZ-104
Configure and manage virtual networking
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access