Question 26 — AZ-104 Practice Exam 16
A VM in Azure has a dynamic public IP. The admin stops (deallocates) the VM and restarts it the next day. What happens to the public IP address? (Select one answer)
The VM will automatically switch to a static IP assignment
The IP address is permanently deleted when the VM is stopped
The dynamic IP may change because the VM was deallocated
The dynamic IP always remains the same regardless of deallocation
Correct answers
The dynamic IP may change because the VM was deallocated
Explanations
Correct
The dynamic IP may change because the VM was deallocated – Deallocation can trigger reassignment of a new dynamic address.
Wrong
The dynamic IP always remains the same regardless of deallocation – This only applies to reboots or guest OS shutdowns, not deallocation.
The IP address is permanently deleted when the VM is stopped – The IP resource remains, but the dynamic address is released.
The VM will automatically switch to a static IP assignment – Static assignment must be configured explicitly.