You have an EC2 instance with an Elastic IP (EIP) associated. What happens to the EIP when you stop and then start the instance?
Think about how Elastic IPs are designed to provide a fixed public IP address.
Elastic IP addresses remain associated with the instance even if it is stopped and started. This allows the instance to keep the same public IP address.
You want to design a highly available web service using two EC2 instances in different Availability Zones. How can Elastic IPs help in this design?
Consider how Elastic IPs can be moved between instances to maintain a fixed IP.
Elastic IPs can be reassigned from one instance to another in different Availability Zones to maintain a fixed IP during failover, enabling high availability.
Which of the following is a security best practice when using Elastic IP addresses in AWS?
Think about cost and security risks of unused public IPs.
Unused Elastic IPs incur charges and can increase the attack surface. Releasing them reduces costs and security risks.
Which AWS CLI command correctly associates an Elastic IP address to an EC2 instance?
Check the required parameters for associating an Elastic IP to an instance.
The correct command uses the instance ID and the allocation ID of the Elastic IP to associate it.
You have multiple Elastic IPs allocated but only some are associated with running instances. What is the best practice to optimize costs related to Elastic IPs?
Consider AWS billing rules for Elastic IP addresses.
AWS charges for Elastic IPs that are allocated but not associated with a running instance. Releasing unused Elastic IPs avoids these charges.