AWS Certified Advanced Networking Specialty Practice Exam

Disable ads (and more) with a membership for a one time $4.99 payment

Prepare for the AWS Certified Advanced Networking Specialty Exam with detailed flashcards and multiple-choice questions. Each question includes hints and explanations. Ace your exam with confidence!

Practice this question and more.


What happens when the enableDnsHostname attribute is set to true in a VPC?

  1. DNS hostnames are manually assigned to instances.

  2. Amazon automatically assigns DNS hostnames to EC2 instances.

  3. DNS hostnames are not assigned to EC2 instances.

  4. Only primary instances receive DNS hostnames.

The correct answer is: Amazon automatically assigns DNS hostnames to EC2 instances.

When the enableDnsHostname attribute is set to true in a Virtual Private Cloud (VPC), Amazon Web Services automatically assigns DNS hostnames to EC2 instances within that VPC. This setting allows instances to be accessible using their DNS names instead of only their IP addresses. When this feature is enabled, each EC2 instance receives a public and a private DNS hostname, provided that it has a public IP address or Elastic IP assigned. This capability greatly simplifies the process of connecting to instances, especially in environments where IP addresses may change frequently. DNS hostnames make it easier for users and applications to resolve and connect to instances without needing to keep track of IP addresses. Labels like 'A' and 'D' reflect scenarios that are not applicable since DNS hostnames are automatically managed by AWS when this feature is enabled. Option 'C' states that hostnames are not assigned at all, which contradicts the core functionality of enabling the setting. Hence, the correct answer directly relates to the automated assignment of DNS hostnames, enhancing connectivity and usability within the VPC.