WalzoneInterview Prep
📞 Interviewing soon? Practice with a realistic AI mock phone interview — it calls you, then scores you. First 15 min FREE →

AWS · Basic · question 6 of 100

Explain the difference between public, private, and elastic IP addresses in AWS.?

📕 Buy this interview preparation book: 100 AWS questions & answers — PDF + EPUB for $5

In AWS, IP addresses are used to identify and communicate with resources in the cloud. There are three types of IP addresses in AWS: public, private, and elastic. Here’s a brief explanation of each type:

Public IP address: A public IP address is an IP address that is accessible from the internet. It is used to identify resources that need to be publicly accessible, such as EC2 instances running web servers. Public IP addresses can be assigned to resources either at launch time or after they have been launched. When an EC2 instance is launched with a public IP address, it is accessible from the internet using that address.

Private IP address: A private IP address is an IP address that is used for internal communication within a network. Private IP addresses are used to identify resources that don’t need to be publicly accessible, such as database servers and backend services. Private IP addresses are assigned to resources by default when they are launched, and they can be changed if necessary. When two EC2 instances communicate with each other within the same VPC (Virtual Private Cloud), they use their private IP addresses.

Elastic IP address: An elastic IP address is a static IP address that can be associated with an EC2 instance. It is designed to provide a fixed, public IP address for instances that need to be publicly accessible, such as web servers. An elastic IP address can be assigned to an EC2 instance at any time, and it can be detached from one instance and associated with another. This allows resources to maintain a fixed IP address even if they are stopped and started or replaced.

Here are some examples of how these IP address types can be used:

A web server running on an EC2 instance would need a public IP address to be accessible from the internet.

A database server running on an EC2 instance would only need a private IP address to communicate with other resources within the same VPC.

An EC2 instance running a web server that needs to maintain a fixed IP address would be associated with an elastic IP address.

Overall, understanding the differences between public, private, and elastic IP addresses in AWS is important for designing and deploying resources in the cloud.

Reading is step one. Saying it out loud is the interview. Our AI interviewer calls your phone and runs a realistic AWS interview — then scores it.
📞 Practice AWS — free 15 min
📕 Buy this interview preparation book: 100 AWS questions & answers — PDF + EPUB for $5

All 100 AWS questions · All topics