A company will remove a NAT gateway used by private subnets in a us-west-2 VPC. Instances in the private subnets use the unified Amazon CloudWatch agent. After removing the NAT gateway, CloudWatch agent traffic must continue to work. Which combination of steps should the network engineer implement? (Choose three.)
Choose an answer
Tap an option to check your answer.
Correct answer: Ensure private DNS is enabled on the VPC by setting the enableDnsHostnames and enableDnsSupport VPC attributes to true., Create a new security group with rules that allow inbound TCP port 443 from the IP address ranges of the private subnets., Create interface VPC endpoints in the VPC for com.amazonaws.us-west-2.logs and com.amazonaws.us-west-2.monitoring, and attach the new security group to the endpoint network interfaces..
Why this is the answer
To allow CloudWatch agent traffic from private subnets without a NAT Gateway, VPC Endpoints are necessary. CloudWatch agent sends metrics to the monitoring endpoint and logs to the logs endpoint. Therefore, creating interface VPC endpoints for com.amazonaws.us-west-2.logs and com.amazonaws.us-west-2.monitoring is correct. These endpoints require a security group that allows inbound TCP port 443 from the private subnets' IP ranges to permit connections. Finally, enabling enableDnsHostnames and enableDnsSupport ensures that the private DNS names for the VPC endpoints resolve correctly within the VPC, allowing instances to connect to the endpoints using their service names. The option to create a security group allowing outbound TCP 443 to 0.0.0.0/0 is incorrect because traffic will not leave the VPC via the internet after removing the NAT Gateway. The option for com.amazonaws.us-west-2.cloudwatch is too broad; logs and monitoring are the specific endpoints needed. Associating endpoints with route tables is not a required manual step for interface endpoints; DNS resolution handles routing.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed