AWS Certified Advanced Networking - Specialty Exam: Default Settings in a Default VPC

Automatically Generated Resources for Instances in a Default VPC

Prev Question Next Question

Question

When you launch an instance with the default settings in a default VPC, which of the below automatically get generated for the instance.

Choose 3 answers from the options given below.

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Answer - A,C and D.

The AWS documentation mentions the following.

When you launch an instance into a default VPC, we provide the instance with public and private DNS hostnames that correspond to the public IPv4 and private IPv4 addresses for the instance.

For more information on the VPC DNS please see the below link:

http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-dns.html

When launching an instance with the default settings in a default VPC, the following three items are automatically generated for the instance:

  1. Private IP address: A private IP address is assigned to the instance automatically by AWS. It's used for communication between instances within the same VPC or subnet. The private IP address is unique within the VPC and is not reachable from the Internet. Instances launched in a default VPC will automatically have a private IP address assigned from the IPv4 CIDR block range of the VPC.

  2. Private DNS hostname: The private DNS hostname is a fully qualified domain name that's assigned to the instance automatically by AWS. The hostname resolves to the private IP address of the instance within the VPC. It's used for internal communication between instances within the same VPC or subnet. The private DNS hostname is also unique within the VPC.

  3. Public DNS hostname: The public DNS hostname is a fully qualified domain name that's assigned to the instance automatically by AWS if the instance has a public IP address assigned. The hostname resolves to the public IP address of the instance and can be used to access the instance from the Internet. Instances launched in a default VPC will not have a public IP address assigned by default, so a public DNS hostname will not be generated.

  4. Elastic IP address: An Elastic IP address is a static, public IP address that can be associated with an instance. It's not generated automatically when launching an instance in a default VPC with default settings, but it can be manually allocated and associated with an instance if needed. An Elastic IP address can be helpful if you need to associate a static IP address with an instance that will be stopped and started frequently or if you need to access an instance from the Internet without changing the IP address every time it's stopped and started.