Skip to Content

Getting Started with Networking: Retain IP Addresses with Amazon VPC’s Elastic IP Address Feature

Learn how to use Elastic IP addresses in Amazon VPC to retain the same IP even if an EC2 instance fails. Ensure high availability for your applications.

Table of Contents

Question

Which feature in Amazon VPC can you use so that an IP address will be retained if an instance fails?

A. VPC peering
B. Internet gateway
C. Route tables
D. Elastic IP address

Answer

D. Elastic IP address

Explanation

Elastic IP addresses allow you to retain the same IP address and move it to another instance.

An Elastic IP address is a static IPv4 address allocated to your Amazon Web Services (AWS) account that you can associate with an EC2 instance in your VPC. Unlike the default dynamic public IP address assigned to an instance, which changes when the instance is stopped and restarted, an Elastic IP address persists and can be quickly remapped to a replacement instance if the original instance fails.

This feature enables you to maintain a consistent public IP address for your application, avoiding disruption to services that depend on a specific IP. Elastic IP addresses are designed for dynamic cloud computing, allowing you to mask instance or Availability Zone failures by rapidly remapping the address to another instance.

Other Amazon VPC features mentioned:

  • VPC peering: Allows you to connect one VPC with another over a direct network route, but does not relate to IP address retention.
  • Internet gateway: Enables communication between instances in your VPC and the internet, but does not provide IP address persistence.
  • Route tables: Contains a set of rules (routes) that determine where network traffic from your VPC is directed, but are not involved in IP address management.

Therefore, Elastic IP addresses are the correct feature to use in Amazon VPC to retain an IP address if an instance fails, enabling high availability for your applications.

Getting Started with Networking EDNETWv1EN-US assessment question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Getting Started with Networking EDNETWv1EN-US assessment and earn Getting Started with Networking EDNETWv1EN-US badge.