Microsoft Azure Administrator Associate AZ-104 Practice Question
Your company has an Azure virtual machine that needs to access an external partner's database server, which restricts access based on the client's external address. The virtual machine currently uses a dynamically assigned external address. You need to ensure the virtual machine consistently uses the same external address when connecting to the database server, even after it is restarted. What should you do?
Assign a static public IP address to the network interface of the virtual machine
Create an inbound network security rule for the virtual machine
Assign a static private IP address to the virtual machine
Configure a service endpoint to connect the virtual machine to the database server