Bird
0
0

You want to ensure your web server keeps the same public IP even if the instance stops and starts. Which approach is best?

hard📝 Architecture Q8 of 15
AWS - EC2 Fundamentals
You want to ensure your web server keeps the same public IP even if the instance stops and starts. Which approach is best?
ACreate a new Elastic IP each time the instance starts
BUse the instance's default public IP address
CAssign a private IP and use NAT gateway
DAllocate an Elastic IP and associate it with the instance
Step-by-Step Solution
Solution:
  1. Step 1: Identify requirement for static public IP

    Default public IP changes on stop/start; Elastic IP remains static.
  2. Step 2: Evaluate options

    Using default IP or creating new Elastic IP each time does not ensure stability; private IP with NAT is indirect and complex.
  3. Final Answer:

    Allocate an Elastic IP and associate it with the instance -> Option D
  4. Quick Check:

    Elastic IP keeps public IP constant across restarts [OK]
Quick Trick: Elastic IP keeps public IP fixed after instance restart [OK]
Common Mistakes:
MISTAKES
  • Relying on default public IP which changes
  • Creating new Elastic IPs repeatedly
  • Using private IP without proper NAT setup

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes