nerdexam
Amazon

ANS-C01 · Question #221

A company's VPC has Amazon EC2 instances that are communicating with AWS services over the public internet. The company needs to change the connectivity so that the communication does not occur over…

The correct answer is B. Ensure that the enableDnsSupport attribute is set to True for the VPC. Ensure that each VPC C. Ensure that the VPC endpoint policy allows communication. After deploying PrivateLink endpoints, EC2 instances lose all communication with AWS services, indicating a configuration issue preventing the endpoints from functioning correctly.

Submitted by salim_om· Mar 6, 2026Network Implementation

Question

A company's VPC has Amazon EC2 instances that are communicating with AWS services over the public internet. The company needs to change the connectivity so that the communication does not occur over the public internet. The company deploys AWS PrivateLink endpoints in the VPC. After the deployment of the PrivateLink endpoints, the EC2 instances can no longer communicate at all with the required AWS services. Which combination of steps should a network engineer take to restore communication with the AWS services? (Choose two.)

Options

  • AIn the VPC route table, add a route that has the PrivateLink endpoints as the destination.
  • BEnsure that the enableDnsSupport attribute is set to True for the VPC. Ensure that each VPC
  • CEnsure that the VPC endpoint policy allows communication.
  • DCreate an Amazon Route 53 public hosted zone for all services.
  • ECreate an Amazon Route 53 private hosted zone that includes a custom name for each service.

How the community answered

(16 responses)
  • A
    6% (1)
  • B
    81% (13)
  • E
    13% (2)

Why each option

After deploying PrivateLink endpoints, EC2 instances lose all communication with AWS services, indicating a configuration issue preventing the endpoints from functioning correctly.

AIn the VPC route table, add a route that has the PrivateLink endpoints as the destination.

PrivateLink endpoints automatically create ENIs in selected subnets, and the VPC route tables are updated implicitly for internal VPC routing to these ENIs. Adding a manual route with the PrivateLink endpoint as a *destination* is not how PrivateLink functions and would likely break connectivity.

BEnsure that the enableDnsSupport attribute is set to True for the VPC. Ensure that each VPCCorrect

For PrivateLink endpoints to be used automatically for AWS service communication, `enableDnsSupport` must be set to `True` on the VPC to allow DNS resolution of AWS service endpoints to resolve to the private IPs of the VPC endpoint ENIs. Each VPC endpoint also needs an appropriate security group configured to allow inbound traffic from the EC2 instances.

CEnsure that the VPC endpoint policy allows communication.Correct

The VPC endpoint policy must explicitly allow the necessary permissions for the EC2 instances (or the IAM role/user making the request) to access the target AWS service through the endpoint. If the policy denies access, communication will fail.

DCreate an Amazon Route 53 public hosted zone for all services.

Creating a public hosted zone for AWS services would direct traffic over the public internet, which is the opposite of the requirement to use PrivateLink for private connectivity.

ECreate an Amazon Route 53 private hosted zone that includes a custom name for each service.

Creating a private hosted zone *can* be used to create custom DNS names for VPC endpoints, but the problem description indicates *all* communication failing, which points to more fundamental DNS support and endpoint policy issues rather than just custom naming.

Concept tested: PrivateLink endpoint DNS resolution and access policies

Source: https://docs.aws.amazon.com/vpc/latest/privatelink/interface-endpoint-policies.html

Community Discussion

No community discussion yet for this question.

Full ANS-C01 Practice