AWS Certified Advanced Networking – Specialty (ANS-C00) — Question 285
Your boss decides to assign an Elastic IP to a production instance. Once he does this, access to the URL for that website fails. What happened?
Answer options
- A. The original IP address was released back to AWS when the Elastic IP was assigned.
- B. Your boss only needs to restart the Apache service.
- C. Your boss should have turned off the server before assigning the IP address.
- D. Your boss needs to restart the server.
Correct answer: A
Explanation
When an Elastic IP is associated with an EC2 instance, its original public IP address is immediately released back to the AWS public pool, which breaks any DNS records pointing to that old IP. To resolve the connection failure, the domain's DNS records must be updated to point to the new Elastic IP. Restarting the Apache service or the instance itself will not resolve this routing issue.