Interview Prep/AWS/VPC and Networking

Elastic IP vs auto-assigned public IP?

BeginnerConceptVPC and Networking
Answer

An auto-assigned public IPv4 is released when the instance stops and changes on restart. An Elastic IP is a static address you own until released, and can be remapped between instances or ENIs for failover. Since February 2024 AWS charges for every public IPv4 address, in use or not, so idle EIPs cost money.

Prefer load balancers and DNS names over EIPs; use EIPs for NAT gateways and allowlisted egress.

aws All AWS questions Roadmap: AWS core services

More on VPC and Networking