A user has created a subnet with VPC and launched an EC2 instance in that subnet with only default
settings.Which of the below mentioned options is ready to use on the EC2 instance as soon as it is launched?
A.
Elastic IP
B.
Private IP
C.
Public IP
D.
I nternet gateway
Explanation:
A Virtual Private Cloud (VPC. is a virtual network dedicated to a user’s AWS account. A subnet is a range of IP
addresses in the VPC. The user can launch the AWS resources into a subnet. There are two supported
platforms into which a user can launch instances: EC2-Classic and EC2-VPC. When the user launches an
instance which is not a part of the non-default subnet, it will only have a private IP assigned to it. The instances
part of a subnet can communicate with each other but cannot communicate over the internet or to the AWS
services, such as RDS / S3.
B.
Private IP
B is correct.
A. Elastic IP – Have to set it manually
C. Public IP – Need an IGW(Internet Gateway) first since it’s a new VPC
D. Internet Gateway – Need to create it since it’s a new VPC
perfecto
b
B
” created a subnet with VPC” – there is no mention that this is a Pvt Subnet. The “default subnet” in the VPC is Public