AZ-700 exam dumps

AZ-700 practice question 21 of 310

Designing and Implementing Microsoft Azure Networking Solutions. Professional level, Microsoft. Free question with the correct answer and a full explanation.

AZ-700 Question 21

Single answer

You manage an Azure Virtual Machine (VM) that hosts a public-facing application. Currently, the VM uses a dynamically assigned public IP. After every stop-deallocate or redeployment, the public IP address changes, causing disruptions because users� DNS records no longer point to the correct address. You need to ensure the VM always retains the same public IP address. What should you do?

  1. A

    Enable IP forwarding on the VM� network interface card (NIC).

  2. B

    Change the public IP address assignment from Dynamic to Static.

  3. C

    Switch the VM from a Basic tier to a Standard tier to lock the IP address.

  4. D

    Associate a different dynamically assigned public IP address to the VM.

Show answer and explanation

Correct answer: B

Explanation

In Azure, a dynamically assigned public IP address may change whenever a VM is deallocated or redeployed. To ensure a consistent public IP address, you must configure the IP address allocation method to Static. This is done by modifying the public IP address resource from Dynamic to Static. For more details, see the official documentation on 'Public IP addresses in Azure' (https://learn.microsoft.com/azure/virtual-network/ip-services/public-ip-addresses) and 'Associate a public IP address to a VM' (https://learn.microsoft.com/azure/virtual-network/associate-public-ip-address-vm).

  • A. Incorrect.

    Incorrect. IP forwarding allows the VM to forward traffic to other network addresses; it does not preserve or fix the public IP address.

  • B. Correct.

    Correct. Converting from a Dynamic to a Static public IP ensures the address does not change after stop-deallocate or redeploying the VM.

  • C. Incorrect.

    Incorrect. Changing the tier from Basic to Standard is not directly related to preserving a public IP; it affects features like availability zones, not the IP assignment method.

  • D. Incorrect.

    Incorrect. Associating another dynamic IP does not resolve the issue of the IP address changing upon redeployment.

Timed practice exam

Take a AZ-700 practice test under exam conditions

70 questions in 100 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam