Microsoft Certified: Azure Administrator AssociateDeploy and manage Azure compute resourcesMedium
You are managing an Azure Virtual Machine (VM) running a critical database. The VM needs to be restarted nightly for maintenance, but it must always come back online with the same public IP address to avoid reconfiguring client applications. Which type of public IP address allocation should be assigned to the VM?
- ABasic public IP
- BDynamic public IP
- CStandard public IP
- DStatic public IP
Show answer & explanationAnswer & explanation
Correct answer: D. Static public IP
A static public IP address ensures that the IP address remains the same even after a VM restart or deallocation, which is crucial for applications that rely on a consistent IP.
Why the other options are wrong
- A. Basic public IP refers to the SKU, not the allocation method. Both Basic and Standard SKUs can have static or dynamic allocation.
- B. A dynamic public IP address can change when the VM is deallocated or restarted, which would break client connections.
- C. Standard public IP refers to the SKU, not the allocation method. Both Basic and Standard SKUs can have static or dynamic allocation.
Azure Static Public IP
A public IP address assigned to an Azure resource (like a VM) that does not change over time, even after the resource is deallocated or restarted.
- Ensures consistent IP address for external access
- Required for DNS records, firewall rules, client configurations
- Incurs a small cost even when not actively used
- Can be assigned to VMs, load balancers, application gateways
Memory trick: Static IP: Stay Put, Don't Move.