AZ-104 Question 205
Single answerYou are an Azure Administrator for a company that hosts a web application on a virtual machine. The development team reports that the public IP address to access the application changes whenever the VM is deallocated and then started again. Which configuration step should you perform next to ensure the VM always uses the same public IP address?
- A
Change the public IP address assignment method to Static in the IP configuration
- B
Enable Accelerated Networking on the virtual machine’s network interface
- C
Deploy the VM into an Availability Zone to lock the public IP address
- D
Configure a reserved private IP address in the virtual network settings
Show answer and explanation
Correct answer: A
Explanation
When you require a public IP address to remain the same after deallocation, you should configure a Static assignment for the public IP resource. Dynamic IP addresses can change whenever the VM is stopped and deallocated, making Static assignment crucial for consistently reachable external endpoints.
- A. Correct.
Switching from Dynamic to Static assignment is the recommended approach to ensure the public IP address remains consistent even if the VM is deallocated and restarted.
- B. Incorrect.
Accelerated Networking improves network performance for the VM but does not affect how the public IP address is assigned.
- C. Incorrect.
Availability Zones provide higher availability by distributing VMs across physically separate locations, but they do not guarantee a consistent public IP address by themselves.
- D. Incorrect.
Private IP addresses pertain to internal communication within the virtual network and do not ensure a consistent public-facing IP.