76 free AWS ANS-C01 practice questions from the CertStash pack of 306, each with the correct answer and a full explanation. The rule is the same for every exam: ten free on the product page, 76 free here, all 306 in the pack, and each step includes the one before it.
Get all 306 questions (US$39) · Download the first 10 as a PDF
Question 1
A company is planning to create a service that requires encryption in transit. The traffic must not be decrypted between the client and the backend of the service. The company will implement the service by using the gRPC protocol over TCP port 443. The service will scale up to thousands of simultaneous connections. The backend of the service will be hosted on an Amazon Elastic Kubernetes Service (Amazon EKS) duster with the Kubernetes Cluster Autoscaler and the Horizontal Pod Autoscaler configured. The company needs to use mutual TLS for two-way authentication between the client and the backend.
Which solution will meet these requirements?
Show answer and explanation
Correct answer: A. Install the AWS Load Balancer Controller for Kubernetes. Using that controller, configure a Network Load Balancer with a TCP listener on port 443 to forward traffic to the IP addresses of the backend service Pods.
A Network Load Balancer with a TCP listener on port 443 is required because gRPC uses HTTP/2 over TLS, and NLB with TCP passthrough preserves the encrypted connection end-to-end without decryption, enabling mutual TLS between client and backend. The AWS Load Balancer Controller manages the NLB and routes to Pod IP addresses directly, supporting the required scaling with Kubernetes autoscalers.
Why the other options are wrong
- B. Application Load Balancer with HTTPS listener terminates TLS at the load balancer, decrypting traffic, which violates the requirement that traffic must not be decrypted in transit.
- C. ALB cannot properly handle gRPC with HTTP/2 and would decrypt TLS, failing the requirement to keep traffic encrypted end-to-end.
- D. Targeting an Auto Scaling group rather than Pod IPs means traffic routes to nodes, not pods, causing inefficient routing and incompatibility with pod-level autoscaling.
Question 2
A company is deploying a new application in the AWS Cloud. The company wants a highly available web server that will sit behind an Elastic Load Balancer. The load balancer will route requests to multiple target groups based on the URL in the request. All traffic must use HTTPS. TLS processing must be offloaded to the load balancer. The web server must know the user’s IP address so that the company can keep accurate logs for security purposes.
Which solution will meet these requirements?
Show answer and explanation
Correct answer: A. Deploy an Application Load Balancer with an HTTPS listener. Use path-based routing rules to forward the traffic to the correct target group. Include the X-Forwarded-For request header with traffic to the targets.
An Application Load Balancer with an HTTPS listener supports TLS offloading and path-based routing rules to direct traffic to multiple target groups. The ALB automatically adds the X-Forwarded-For header containing the original client IP address, enabling accurate security logging while meeting all requirements.
Why the other options are wrong
- B. Host-based routing is unnecessary when the requirement specifies URL-based routing; using multiple HTTPS listeners is more complex than needed.
- C. Network Load Balancer does not support path-based routing, and client IP preservation is not the standard mechanism for NLB, ALB with X-Forwarded-For is the correct approach.
- D. NLB does not support path-based routing, and creating multiple TLS listeners for host-based routing is overly complex when ALB with URL/path routing is the appropriate solution.
Question 3
A company has developed an application on AWS that will track inventory levels of vending machines and initiate the restocking process automatically. The company plans to integrate this application with vending machines and deploy the vending machines in several markets around the world. The application resides in a VPC in the us-east-1 Region. The application consists of an Amazon Elastic Container Service (Amazon ECS) cluster behind an Application Load Balancer (ALB). The communication from the vending machines to the application happens over HTTPS.
The company is planning to use an AWS Global Accelerator accelerator and configure static IP addresses of the accelerator in the vending machines for application endpoint access. The application must be accessible only through the accelerator and not through a direct connection over the internet to the ALB endpoint.
Which solution will meet these requirements?
Show answer and explanation
Correct answer: A. Configure the ALB in a private subnet of the VPC. Attach an internet gateway without adding routes in the subnet route tables to point to the internet gateway. Configure the accelerator with endpoint groups that include the ALB endpoint. Configure the ALB’s security group to only allow inbound traffic from the internet on the ALB listener port.
Global Accelerator can route to an internal ALB in a private subnet, but the VPC must have an internet gateway attached. No route to the internet gateway is needed, so the ALB stays unreachable directly from the internet. Because Global Accelerator preserves the client IP address, the ALB security group must allow the clients' traffic on the listener port.
Why the other options are wrong
- B. Global Accelerator requires an internet gateway to be attached to the VPC, even when the endpoint is an internal ALB.
- C. A public ALB in a public subnet can be reached directly on its own DNS name, and the security group rule fails because client IPs are preserved rather than replaced by accelerator addresses.
- D. Adding a route to the internet gateway is unnecessary, and allowing only accelerator addresses blocks the clients' preserved source IPs.
Question 4
A global delivery company is modernizing its fleet management system. The company has several business units. Each business unit designs and maintains applications that are hosted in its own AWS account in separate application VPCs in the same AWS Region. Each business unit's applications are designed to get data from a central shared services VPC.
The company wants the network connectivity architecture to provide granular security controls. The architecture also must be able to scale as more business units consume data from the central shared services VPC in the future.
Which solution will meet these requirements in the MOST secure manner?
Show answer and explanation
Correct answer: C. Create VPC endpoint services powered by AWS PrivateLink in the central shared services VPC. Create VPC endpoints in each application VPC.
VPC endpoint services powered by AWS PrivateLink provide granular security controls through service-level permissions and do not require full mesh connectivity, enabling scalable architecture as more business units are added. Each business unit can independently create VPC endpoints to consume the central service with isolated, controlled access.
Why the other options are wrong
- A. Transit gateway with full mesh connectivity creates unnecessary exposure between all VPCs and lacks granular security controls between business units.
- B. VPC peering does not scale efficiently and requires management of multiple peering relationships; it also provides less granular security control than PrivateLink.
- D. A transit VPC with VPN appliances introduces unnecessary complexity and cost; VPN is not required for same-region VPC-to-VPC communication.
Question 5
A company uses a 4 Gbps AWS Direct Connect dedicated connection with a link aggregation group (LAG) bundle to connect to five VPCs that are deployed in the us-east-1 Region. Each VPC serves a different business unit and uses its own private VIF for connectivity to the on-premises environment. Users are reporting slowness when they access resources that are hosted on AWS.
A network engineer finds that there are sudden increases in throughput and that the Direct Connect connection becomes saturated at the same time for about an hour each business day. The company wants to know which business unit is causing the sudden increase in throughput. The network engineer must find out this information and implement a solution to resolve the problem.
Which solution will meet these requirements?
Show answer and explanation
Correct answer: A. Review the Amazon CloudWatch metrics for VirtualInterfaceBpsEgress and VirtualInterfaceBpsIngress to determine which VIF is sending the highest throughput during the period in which slowness is observed. Create a new 10 Gbps dedicated connection. Shift traffic from the existing dedicated connection to the new dedicated connection.
CloudWatch metrics VirtualInterfaceBpsEgress and VirtualInterfaceBpsIngress are the correct metrics to identify which VIF (and thus which business unit) is consuming the most throughput during the slowness period. Upgrading to a 10 Gbps dedicated connection resolves the saturation issue while allowing identification of the offending business unit.
Why the other options are wrong
- B. While upgrading to 10 Gbps is a valid solution, the correct metrics are VirtualInterfaceBpsEgress/Ingress, not the ones mentioned.
- C. ConnectionBpsIngress and ConnectionPpsEgress are not the appropriate metrics for per-VIF traffic analysis; downgrading to 5 Gbps would worsen the problem.
- D. ConnectionBpsIngress and ConnectionPpsEgress are incorrect metrics for identifying which VIF is causing the issue.
Question 6
A software-as-a-service (SaaS) provider hosts its solution on Amazon EC2 instances within a VPC in the AWS Cloud. All of the provider's customers also have their environments in the AWS Cloud.
A recent design meeting revealed that the customers have IP address overlap with the provider's AWS deployment. The customers have stated that they will not share their internal IP addresses and that they do not want to connect to the provider's SaaS service over the internet.
Which combination of steps is part of a solution that meets these requirements? (Choose two.)
Show answer and explanation
Correct answer: A, B. Deploy the SaaS service endpoint behind a Network Load Balancer; Configure an endpoint service, and grant the customers permission to create a connection to the endpoint service.
An endpoint service powered by AWS PrivateLink allows the SaaS provider to expose the service without internet exposure, and VPC endpoints in customer accounts enable private connections. This architecture avoids routing traffic over the internet and handles IP address overlap by operating at the service level rather than the network layer, requiring no address translation or VPC peering.
Why the other options are wrong
- C. Application Load Balancer does not address the core requirement of avoiding internet exposure or handling IP overlap.
- D. VPC peering fails because it exposes the direct IP address overlap conflict that the customers explicitly want to avoid.
- E. Transit Gateway requires routing configuration that would create IP address conflicts given the stated address overlap.
Question 7
A network engineer is designing the architecture for a healthcare company's workload that is moving to the AWS Cloud. All data to and from the on-premises environment must be encrypted in transit. All traffic also must be inspected in the cloud before the traffic is allowed to leave the cloud and travel to the on-premises environment or to the internet.
The company will expose components of the workload to the internet so that patients can reserve appointments. The architecture must secure these components and protect them against DDoS attacks. The architecture also must provide protection against financial liability for services that scale out during a DDoS event.
Which combination of steps should the network engineer take to meet all these requirements for the workload? (Choose three.)
Show answer and explanation
Correct answer: D, E, F. Use AWS Direct Connect with MACsec support for connectivity to the cloud; Use Gateway Load Balancers to insert third-party firewalls for inline traffic inspection; Configure AWS Shield Advanced and ensure that it is configured on all public assets.
AWS Direct Connect with MACsec encrypts traffic in transit to on-premises. Gateway Load Balancers insert third-party firewalls for inline traffic inspection of all egress flows. AWS Shield Advanced protects public assets against DDoS attacks and includes financial protection (DDoS cost protection) against scaling charges during attacks.
Why the other options are wrong
- A. Traffic Mirroring copies traffic to capture appliances but does not provide inline inspection or active threat blocking.
- B. AWS WAF addresses application-layer attacks but does not provide comprehensive inline inspection of all traffic or network-layer DDoS protection.
- C. Lambda-based security group modifications react to threats but do not provide proactive DDoS protection or Shield's cost protection guarantee.
Question 8
A retail company is running its service on AWS. The company’s architecture includes Application Load Balancers (ALBs) in public subnets. The ALB target groups are configured to send traffic to backend Amazon EC2 instances in private subnets. These backend EC2 instances can call externally hosted services over the internet by using a NAT gateway.
The company has noticed in its billing that NAT gateway usage has increased significantly. A network engineer needs to find out the source of this increased usage.
Which options can the network engineer use to investigate the traffic through the NAT gateway? (Choose two.)
Show answer and explanation
Correct answer: A, D. Enable VPC flow logs on the NAT gateway's elastic network interface. Publish the logs to a log group in Amazon CloudWatch Logs. Use CloudWatch Logs Insights to query and analyze the logs; Enable VPC flow logs on the NAT gateway's elastic network interface. Publish the logs to an Amazon S3 bucket. Create a custom table for the S3 bucket in Amazon Athena to describe the log structure. Use Athena to query and analyze the logs.
VPC flow logs on the NAT gateway's ENI capture network traffic data and can be published to CloudWatch Logs for real-time analysis with CloudWatch Logs Insights, or to S3 for historical analysis with Athena. Both approaches enable identification of the source of increased NAT gateway usage through queryable traffic records.
Why the other options are wrong
- B. NAT gateway access logs do not exist as an AWS feature; NAT gateways produce VPC flow logs, not access logs.
- C. Traffic Mirroring on a NAT gateway ENI is complex and not a standard investigative approach compared to VPC flow logs.
- E. NAT gateway access logs are not a real AWS feature; VPC flow logs are the correct mechanism.
Question 9
A banking company is successfully operating its public mobile banking stack on AWS. The mobile banking stack is deployed in a VPC that includes private subnets and public subnets. The company is using IPv4 networking and has not deployed or supported IPv6 in the environment.
The company has decided to adopt a third-party service provider's API and must integrate the API with the existing environment. The service provider’s API requires the use of IPv6.
A network engineer must turn on IPv6 connectivity for the existing workload that is deployed in a private subnet. The company does not want to permit IPv6 traffic from the public internet and mandates that the company's servers must initiate all IPv6 connectivity. The network engineer turns on IPv6 in the VPC and in the private subnets.
Which solution will meet these requirements?
Show answer and explanation
Correct answer: C. Create an egress-only Internet gateway in the VPC. Add a route to the existing subnet route tables to point IPv6 traffic to the egress-only internet gateway.
An egress-only internet gateway is specifically designed for IPv6 traffic in private subnets, allowing outbound-only connectivity while blocking all inbound traffic from the public internet. This perfectly matches the requirement that servers must initiate all IPv6 connectivity and no unsolicited inbound traffic is permitted. Adding a route to point IPv6 traffic to the egress-only internet gateway enables the private subnet resources to communicate with external IPv6 services (the third-party API) without exposing them to inbound internet traffic.
Why the other options are wrong
- A. NAT gateways do not support IPv6; they only work with IPv4 traffic.
- B. NAT instances also do not support IPv6 traffic routing.
- D. While an egress-only internet gateway is correct, associating a security group with it and denying inbound traffic is redundant since egress-only gateways inherently block inbound traffic; the routing configuration in option C is the proper solution.
Question 10
A company has deployed an AWS Network Firewall firewall into a VPC. A network engineer needs to implement a solution to deliver Network Firewall flow logs to the company’s Amazon OpenSearch Service (Amazon Elasticsearch Service) cluster in the shortest possible time.
Which solution will meet these requirements?
Show answer and explanation
Correct answer: B. Create an Amazon Kinesis Data Firehose delivery stream that includes the Amazon OpenSearch Service (Amazon Elasticsearch Service) cluster as the destination. Configure flow logs for the firewall Set the Kinesis Data Firehose delivery stream as the destination for the Network Firewall flow logs.
Amazon Kinesis Data Firehose is purpose-built for real-time log delivery to analytics services like Amazon OpenSearch, providing the shortest latency for log ingestion. Firehose automatically handles buffering, compression, and transformation, delivering logs to OpenSearch with minimal delay. Network Firewall flow logs can be configured to send directly to a Firehose delivery stream, making this the most efficient path with no intermediate processing required.
Why the other options are wrong
- A. This solution introduces unnecessary latency through S3 and Lambda processing stages rather than delivering logs in near real-time.
- C. Network Firewall cannot deliver flow logs directly to OpenSearch; logs must be sent to CloudWatch Logs, S3, or Kinesis first.
- D. While Kinesis Data Streams can work, it requires additional Lambda consumer logic to push to OpenSearch, adding latency compared to Firehose's native integration.
What people say about the full ANS-C01 pack 5.0 from 5
Question 11
A company has deployed an application in a VPC that uses a NAT gateway for outbound traffic to the internet. A network engineer notices a large quantity of suspicious network traffic that is traveling from the VPC over the internet to IP addresses that are included on a deny list. The network engineer must implement a solution to determine which AWS resources are generating the suspicious traffic. The solution must minimize cost and administrative overhead.
Which solution will meet these requirements?
Show answer and explanation
Correct answer: C. Use VPC flow logs. Publish the flow logs to a log group in Amazon CloudWatch Logs. Use CloudWatch Logs Insights to query the flow logs to identify the AWS resources that are generating the suspicious traffic.
VPC flow logs capture network traffic information including source/destination IPs and ports, which can identify which resources are communicating with the deny-listed IPs. Publishing logs to CloudWatch Logs and using CloudWatch Logs Insights provides a cost-effective, low-overhead solution with built-in querying capabilities. This approach requires minimal setup and administration while providing the necessary visibility to identify suspicious resources without deploying additional infrastructure.
Why the other options are wrong
- A. Traffic Mirroring cannot mirror from the NAT gateway; it requires EC2 instances as sources and adds infrastructure overhead with an instance-based analysis tool.
- B. While SIEM solutions work, they require launching and managing a SIEM instance, adding significant cost and administrative overhead compared to native CloudWatch solutions.
- D. Kinesis and Firehose add unnecessary complexity and cost for this use case; they are overkill for simple flow log analysis when CloudWatch Logs Insights provides sufficient querying capabilities.
Question 12
A network engineer needs to provide dual-stack connectivity between a company's office location and an AWS account. The company's on-premises router supports dual-stack connectivity, and the VPC has been configured with dual-stack support. The company has set up two AWS Direct Connect connections to the office location. This connectivity must be highly available and must be reliable for latency-sensitive traffic.
Which solutions will meet these requirements? (Choose two.)
Show answer and explanation
Correct answer: A, B. Configure a single private VIF on each Direct Connect connection. Add both IPv4 and IPv6 peering to each private VIF. Configure the onpremises equipment with the AWS provided BGP neighbors to advertise IPv4 routes on the IPv4 peering and IPv6 routes on the IPv6 peering. Enable Bidirectional Forwarding Detection (BFD) on all peering sessions; Configure two private VIFs on each Direct Connect connection: one private VIF with the IPv4 address family and one private VIF with the IPv6 address family. Configure the on-premises equipment with the AWS provided BGP neighbors to advertise IPv4 routes on the IPv4 peering and IPv6 routes on the IPv6 peering. Enable Bidirectional Forwarding Detection (BFD) on all peering sessions.
For reliable dual-stack connectivity, option A uses a single VIF per connection with both IPv4 and IPv6 peering, while option B uses separate VIFs for each address family per connection. Both approaches configure independent BGP peers for IPv4 and IPv6 routes and enable BFD for rapid failure detection. AWS supports both architectures; both provide high availability and reliability. Option B is more explicit and industry-standard, but both work correctly.
Why the other options are wrong
- C. Advertising IPv6 routes over an IPv4 BGP session is not a valid dual-stack configuration; address families must use their corresponding BGP sessions.
- D. Advertising both IPv4 and IPv6 routes on all peering sessions is incorrect and causes routing conflicts in BGP.
- E. Reducing the BGP hello timer to 5 seconds is not a standard or recommended practice; BFD already provides fast failure detection.
Question 13
A company is deploying an application. The application is implemented in a series of containers in an Amazon Elastic Container Service (Amazon ECS) cluster. The company will use the Fargate launch type for its tasks. The containers will run workloads that require connectivity initiated over an SSL connection. Traffic must be able to flow to the application from other AWS accounts over private connectivity. The application must scale in a manageable way as more consumers use the application.
Which solution will meet these requirements?
Show answer and explanation
Correct answer: D. Choose a Network Load Balancer (NLB) as the type of load balancer for the ECS service. Specify the NLB in the service definition. Create a VPC endpoint service for the NLB. Share the VPC endpoint service with other AWS accounts.
A Network Load Balancer (NLB) is optimal for SSL/TLS workloads requiring low-latency, high-throughput connectivity. By creating a VPC endpoint service for the NLB and sharing it with other AWS accounts, consumers from external accounts can establish private connectivity through interface endpoints without exposing the service to the internet or requiring VPC peering. This provides managed, scalable access across account boundaries while maintaining security through private connectivity.
Why the other options are wrong
- A. Gateway Load Balancers are designed for third-party virtual appliances and packet inspection, not application delivery. Lifecycle hooks are not the proper mechanism for ECS task scaling.
- B. ALBs are designed for HTTP/HTTPS with application-layer routing, not SSL connections at the transport layer, and are less suitable than NLBs for this use case.
- C. VPC peering between accounts requires manual route table management and is less scalable than VPC endpoint services; ALBs also lack NLB's SSL/TLS performance characteristics.
Question 14
An IoT company sells hardware sensor modules that periodically send out temperature, humidity, pressure, and location data through the MQTT messaging protocol. The hardware sensor modules send this data to the company's on-premises MQTT brokers that run on Linux servers behind a load balancer. The hardware sensor modules have been hardcoded with public IP addresses to reach the brokers.
The company is growing and is acquiring customers across the world. The existing solution can no longer scale and is introducing additional latency because of the company's global presence. As a result, the company decides to migrate its entire infrastructure from on premises to the AWS Cloud. The company needs to migrate without reconfiguring the hardware sensor modules that are already deployed across the world. The solution also must minimize latency.
The company migrates the MQTT brokers to run on Amazon EC2 instances.
What should the company do next to meet these requirements?
Show answer and explanation
Correct answer: B. Place the EC2 instances behind a Network Load Balancer (NLB). Configure TCP listeners. Create an AWS Global Accelerator accelerator in front of the NLB. Use Bring Your Own IP (BYOIP) from the on-premises network with Global Accelerator.
The solution requires using hardcoded public IP addresses without reconfiguring hardware modules, minimizing latency globally, and supporting MQTT over TCP. Bring Your Own IP (BYOIP) allows the company to keep the same public IP addresses. AWS Global Accelerator is used to route traffic from worldwide clients to the nearest edge location for minimal latency. A Network Load Balancer (not ALB) is required because it handles TCP-based MQTT protocol and integrates with Global Accelerator for optimal performance. The NLB with Global Accelerator provides global traffic management with low latency.
Why the other options are wrong
- A. While BYOIP with NLB is correct, omitting Global Accelerator means clients worldwide would still experience high latency routing to a single region.
- C. ALBs do not integrate with Global Accelerator and are designed for HTTP/HTTPS traffic, not raw TCP-based MQTT messaging.
- D. CloudFront is designed for HTTP/HTTPS content delivery, not for TCP-based MQTT protocol communication and low-latency messaging.
Question 15
A company has created three VPCs: a production VPC, a nonproduction VPC, and a shared services VPC. The production VPC and the nonproduction VPC must each have communication with the shared services VPC. There must be no communication between the production VPC and the nonproduction VPC. A transit gateway is deployed to facilitate communication between VPCs.
Which route table configurations on the transit gateway will meet these requirements?
Show answer and explanation
Correct answer: A. Configure a route table with the production and nonproduction VPC attachments associated with propagated routes for only the shared services VPC. Create an additional route table with only the shared services VPC attachment associated with propagated routes from the production and nonproduction VPCs.
To allow production and nonproduction VPCs to communicate only with shared services (not with each other), you need two separate route tables. The first route table should have both production and nonproduction VPC attachments with propagated routes limited to only the shared services VPC. The second route table should have only the shared services VPC attachment with propagated routes from both production and nonproduction VPCs. This ensures traffic can flow between each production/nonproduction VPC and shared services, but blocks direct communication between production and nonproduction VPCs.
Why the other options are wrong
- B. Associating both production and nonproduction attachments with propagated routes for each VPC would allow direct communication between them, violating the requirement.
- C. Including all VPC attachments in a single route table with shared services propagation would still allow production-to-nonproduction communication through the shared services attachment.
- D. Disabling propagated routes would prevent any communication through the transit gateway entirely.
Question 16
A company has deployed a new web application on Amazon EC2 instances behind an Application Load Balancer (ALB). The instances are in an Amazon EC2 Auto Scaling group. Enterprise customers from around the world will use the application. Employees of these enterprise customers will connect to the application over HTTPS from office locations.
The company must configure firewalls to allow outbound traffic to only approved IP addresses. The employees of the enterprise customers must be able to access the application with the least amount of latency.
Which change should a network engineer make in the infrastructure to meet these requirements?
Show answer and explanation
Correct answer: C. Create a new accelerator in AWS Global Accelerator. Add the ALB as an accelerator endpoint.
AWS Global Accelerator provides static IP addresses that enterprise firewalls can whitelist, while routing traffic through AWS's global network to reduce latency for users worldwide. The accelerator endpoints can include the ALB, allowing users to connect to fixed IPs rather than DNS names, and traffic is automatically routed to the nearest edge location for optimal performance.
Why the other options are wrong
- A. An NLB with ALB as target adds complexity and does not provide the global latency optimization needed for worldwide users.
- B. CloudFront is a content delivery network best for static content and caching, not for minimizing latency for application traffic with HTTPS from fixed office IPs.
- D. Route 53 is a DNS service and does not provide static IP addresses that firewalls can whitelist, nor does it optimize latency globally.
Question 17
A network engineer is designing the DNS architecture for a new AWS environment. The environment must be able to resolve DNS names of endpoints on premises, and the on-premises systems must be able to resolve the names of AWS endpoints. The DNS architecture must give individual accounts the ability to manage subdomains.
The network engineer needs to create a single set of rules that will work across multiple accounts to control this behavior. In addition, the network engineer must use AWS native services whenever possible.
Which combination of steps should the network engineer take to meet these requirements? (Choose three.)
Show answer and explanation
Correct answer: A, C, F. Create an Amazon Route 53 private hosted zone for the overall cloud domain. Plan to create subdomains that align to other AWS accounts that are associated with the central Route 53 private hosted zone; Create Amazon Route 53 Resolver inbound and outbound endpoints in the central AWS account that hosts the private hosted zone for the overall cloud domain. Create a forwarding rule to forward traffic to a DNS resolver endpoint on premises. Create another rule to forward traffic between subdomains to the Resolver inbound endpoint; Share the Amazon Route 53 Resolver rules between accounts by using AWS Resource Access Manager (AWS RAM). Ensure that networking exists between the other accounts and the central account so that traffic can reach the Route 53 Resolver endpoints.
The solution requires: a private hosted zone for the overall cloud domain (A) to serve as the central DNS authority, Route 53 Resolver inbound and outbound endpoints (C) to enable bidirectional resolution between AWS and on-premises, and AWS RAM to share resolver rules across accounts (F) so the central ruleset applies to all accounts without replication. This design uses native services and allows individual accounts to manage subdomains within the shared hosted zone structure.
Why the other options are wrong
- B. Microsoft Active Directory is not an AWS-native service and introduces unnecessary complexity when Route 53 Resolver provides the same functionality.
- D. While networking between accounts is necessary, specifying AWS Directory Service is incorrect because the solution should use Route 53 Resolver instead.
- E. This option describes necessary infrastructure but omits AWS RAM sharing, which is required to enforce a single set of rules across all accounts.
Question 18
A company has deployed a critical application on a fleet of Amazon EC2 instances behind an Application Load Balancer. The application must always be reachable on port 443 from the public internet. The application recently had an outage that resulted from an incorrect change to the EC2 security group.
A network engineer needs to automate a way to verify the network connectivity between the public internet and the EC2 instances whenever a change is made to the security group. The solution also must notify the network engineer when the change affects the connection.
Which solution will meet these requirements?
Show answer and explanation
Correct answer: D. Create a VPC Reachability Analyzer path on port 443. Specify the internet gateway of the VPC as the source. Specify the EC2 instances as the destination. Create an Amazon Simple Notification Service (Amazon SNS) topic to notify the network engineer when a change to the security group affects the connection. Create an AWS Lambda function to start Reachability Analyzer and to publish a message to the SNS topic in case the analyses fail. Create an Amazon EventBridge (Amazon CloudWatch Events) rule to invoke the Lambda function when a change to the security group occurs.
VPC Reachability Analyzer with the internet gateway as the source and EC2 instances as the destination simulates traffic from the public internet to verify connectivity on port 443. Using EventBridge to trigger a Lambda function when security group changes occur ensures automated testing after every change. The Lambda function runs the Reachability Analyzer test and publishes results to an SNS topic for notifications. This approach directly tests the exact connectivity path from public internet through the load balancer to the instances, matching the real-world scenario.
Why the other options are wrong
- A. VPC Flow Logs capturing REJECT traffic on port 443 only shows rejected traffic after it occurs but does not actively verify connectivity or provide proactive monitoring before an outage impacts users.
- B. VPC Flow Logs capturing all traffic on port 443 generates excessive logging data without actively verifying reachability, and metric filters on flow logs are reactive rather than proactive.
- C. Using a security group as the source for Reachability Analyzer is not valid; the source should be the internet gateway to accurately simulate public internet traffic reaching the application.
Question 19
A company's security guidelines state that all outbound traffic from a VPC to the company's on-premises data center must pass through a security appliance. The security appliance runs on an Amazon EC2 instance. A network engineer needs to improve the network performance between the on-premises data center and the security appliance.
Which actions should the network engineer take to meet these requirements? (Choose two.)
Show answer and explanation
Correct answer: A, C. Use an EC2 instance that supports enhanced networking; Increase the EC2 instance size.
Enhanced networking gives higher bandwidth, higher packet rates and lower latency for the appliance. EC2 network bandwidth scales with instance size, so a larger instance raises the throughput available to the appliance. Both improve performance for traffic to and from the on-premises data center.
Why the other options are wrong
- B. Adding a transit gateway adds a hop and does not increase the appliance's own network performance.
- D. Placement groups improve instance-to-instance traffic inside AWS, not traffic to an on-premises data center.
- E. Extra network interfaces do not raise the instance's total bandwidth limit.
Question 20
A marketing company is using hybrid infrastructure through AWS Direct Connect links and a software-defined wide area network (SD-WAN) overlay to connect its branch offices. The company connects multiple VPCs to a third-party SD-WAN appliance transit VPC within the same account by using AWS Site-to-Site VPNs.
The company is planning to connect more VPCs to the SD-WAN appliance transit VPC. However, the company faces challenges of scalability, route table limitations, and higher costs with the existing architecture. A network engineer must design a solution to resolve these issues and remove dependencies.
Which solution will meet these requirements with the LEAST amount of operational overhead?
Show answer and explanation
Correct answer: B. Configure a transit gateway to attach the VPCs. Configure a transit gateway Connect attachment for the third-party SD-WAN appliance transit VPC. Use transit gateway Connect native integration of SD-WAN virtual hubs with AWS Transit Gateway.
Transit Gateway Connect attachments provide native integration with third-party SD-WAN appliances, eliminating the need for separate Site-to-Site VPN connections. This approach scales better, reduces operational overhead, and removes dependencies on VPN management. Connect attachments are specifically designed for SD-WAN hub integration and provide superior scalability compared to VPN-based approaches.
Why the other options are wrong
- A. While Transit Gateway improves scalability, Site-to-Site VPN connections between the TGW and SD-WAN appliance still require VPN management overhead and don't leverage native SD-WAN integration.
- C. VPC peering doesn't scale for multiple VPCs and introduces route table complexity; it also doesn't provide the SD-WAN integration benefits.
- D. VPC peering is not a scalable solution and Transit Gateway Connect requires Transit Gateway attachment, not VPC peering.
Question 21
A company uses a 1 Gbps AWS Direct Connect connection to connect its AWS environment to its on-premises data center. The connection provides employees with access to an application VPC that is hosted on AWS. Many remote employees use a company-provided VPN to connect to the data center. These employees are reporting slowness when they access the application during business hours. On-premises users have started to report similar slowness while they are in the office.
The company plans to build an additional application on AWS. On-site and remote employees will use the additional application. After the deployment of this additional application, the company will need 20% more bandwidth than the company currently uses. With the increased usage, the company wants to add resiliency to the AWS connectivity. A network engineer must review the current implementation and must make improvements within a limited budget.
What should the network engineer do to meet these requirements MOST cost-effectively?
Show answer and explanation
Correct answer: B. Deploy an AWS Site-to-Site VPN connection to the application VPC. Configure the on-premises routing for the remote employees to connect to the Site-to-Site VPN connection.
Remote employees go through the company VPN and the data center, so their traffic crosses the saturated 1 Gbps Direct Connect link. A Site-to-Site VPN to the application VPC gives that traffic a second path, which relieves Direct Connect, adds resiliency, and costs far less than another Direct Connect port.
Why the other options are wrong
- A. A second dedicated connection with a LAG adds capacity and resiliency, but a dedicated port costs much more than a VPN connection.
- C. Amazon WorkSpaces adds a new service and does not add bandwidth or resiliency to the AWS connectivity.
- D. Two new 2 Gbps hosted connections are the most expensive option, and Client VPN does not help the on-premises users.
Question 22
A company has set up hybrid connectivity between its VPCs and its on-premises data center. The company has the on-premises.example.com subdomain configured at its
DNS server in the on-premises data center. The company is using the aws.example.com subdomain for workloads that run on AWS across different VPCs and accounts. Resources in both environments can access each other by using IP addresses. The company wants workloads in the VPCs to be able to access resources on premises by using the on-premises.example.com DNS names.
Which solution will meet these requirements with MINIMUM management of resources?
Show answer and explanation
Correct answer: A. Create an Amazon Route 53 Resolver outbound endpoint. Configure a Resolver rule that conditionally forwards DNS queries for onpremises.example.com to the on-premises DNS server. Associate the rule with the VPCs.
Route 53 Resolver outbound endpoints are specifically designed to forward DNS queries from AWS to on-premises DNS servers. Creating an outbound endpoint and configuring a conditional forwarding rule for on-premises.example.com to the on-premises DNS server, then associating it with VPCs, is the minimal management solution. This requires no EC2 instances to manage and scales automatically across all associated VPCs.
Why the other options are wrong
- B. An inbound endpoint is unnecessary since there's no requirement for on-premises systems to query Route 53; only AWS-to-on-premises resolution is needed.
- C. A single EC2 instance would be a single point of failure and requires ongoing management of the BIND software.
- D. Launching EC2 instances in each VPC multiplies management overhead compared to using the managed Resolver service and doesn't scale as efficiently.
Question 23
A company is using an AWS Site-to-Site VPN connection from the company's on-premises data center to a virtual private gateway in the AWS Cloud Because of congestion, the company is experiencing availability and performance issues as traffic travels across the internet before the traffic reaches AWS. A network engineer must reduce these issues for the connection as quickly as possible with minimum administration effort.
Which solution will meet these requirements?
Show answer and explanation
Correct answer: B. Configure a transit gateway in the same AWS Region as the existing virtual private gateway. Create a new accelerated Site-to-Site VPN connection. Connect the new connection to the transit gateway by using a VPN attachment. Update the customer gateway device to use the new Site to Site VPN connection. Delete the existing Site-to-Site VPN connection
Accelerated Site-to-Site VPN is supported only for connections attached to a transit gateway, not a virtual private gateway. Acceleration also cannot be enabled on an existing connection, so a new accelerated VPN must be created on a transit gateway. The customer gateway is then pointed at the new connection and the old one removed.
Why the other options are wrong
- A. Acceleration cannot be turned on for an existing Site-to-Site VPN connection.
- C. An accelerated VPN connection cannot be attached to a virtual private gateway.
- D. A new Direct Connect connection takes weeks to provision and is not the quickest, lowest-effort fix.
Question 24
A company's network engineer is configuring an AWS Site-to-Site VPN connection between a transit gateway and the company's on-premises network. The Site-to-Site VPN connection is configured to use BGP over two tunnels in active/active mode with equal-cost multi-path (ECMP) routing activated on the transit gateway.
When the network engineer attempts to send traffic from the on-premises network to an Amazon EC2 instance, traffic is sent over the first tunnel.
However, return traffic is received over the second tunnel and is dropped at the customer gateway. The network engineer must resolve this issue without reducing the overall VPN bandwidth.
Which solution will meet these requirements?
Show answer and explanation
Correct answer: C. Configure the virtual tunnel interfaces on the customer gateway to allow asymmetric routing.
The issue is asymmetric routing: outbound traffic uses tunnel 1, inbound uses tunnel 2, causing drops at the customer gateway which expects return traffic on the same tunnel. Configuring virtual tunnel interfaces on the customer gateway to allow asymmetric routing (C) resolves this by allowing traffic to traverse different tunnels without being dropped. This preserves ECMP load balancing and total bandwidth. AS PATH prepending (A) creates preference but reduces bandwidth. Primary/secondary tunnels (B) eliminate ECMP. Static routing (D) also reduces ECMP benefits.
Why the other options are wrong
- A. AS PATH prepending would force traffic onto one tunnel, reducing the bandwidth benefits of active/active ECMP mode.
- B. Setting a primary tunnel disables active/active mode and ECMP, reducing overall VPN bandwidth utilization.
- D. Static routing in active/active mode contradicts itself and removes ECMP load balancing benefits.
Question 25
A development team is building a new web application in the AWS Cloud. The main company domain, example.com, is currently hosted in an Amazon Route 53 public hosted zone in one of the company's production AWS accounts.
The developers want to test the web application in the company's staging AWS account by using publicly resolvable subdomains under the example.com domain with the ability to create and delete DNS records as needed. Developers have full access to Route 53 hosted zones within the staging account, but they are prohibited from accessing resources in any of the production AWS accounts.
Which combination of steps should a network engineer take to allow the developers to create records under the example com domain? (Choose two.)
Show answer and explanation
Correct answer: B, E. Create a staging example.com NS record in the example.com domain. Populate the value with the name servers from the staging.example.com domain. Set the routing policy type to simple routing; Create a public hosted zone for staging.example.com in the staging account.
Option B is correct because creating an NS record in the production example.com zone for staging.example.com (populated with the name servers from the staging account's hosted zone) properly delegates the subdomain. Option E is correct because creating a public hosted zone for staging.example.com in the staging account provides the authoritative zone where developers can create and manage records. Together, these establish proper DNS delegation allowing publicly resolvable staging.example.com subdomains while keeping developers restricted to the staging account.
Why the other options are wrong
- A. Creating a public hosted zone for example.com in staging duplicates the production zone and breaks the centralized domain management; developers would need access to production to delegate to it.
- C. A private hosted zone is not appropriate for publicly resolvable subdomains; it only provides internal DNS resolution.
- D. This reverses the proper delegation direction; NS records for staging.example.com belong in the parent example.com zone, not vice versa.
Question 26
A company has an AWS account with four VPCs in the us-east-1 Region. The VPCs consist of a development VPC and three production VPCs that host various workloads.
The company has extended its on-premises data center to AWS with AWS Direct Connect by using a Direct Connect gateway. The company now wants to establish connectivity to its production VPCs and development VPC from on premises. The production VPCs are allowed to route data to each other. However, the development VPC must be isolated from the production VPCs. No data can flow between the development VPC and the production VPCs.
In preparation to implement this solution, a network engineer creates a transit gateway with a single transit gateway route table. Default route table association and default route table propagation are turned off. The network engineer attaches the production VPCs, the development VPC, and the Direct Connect gateway to the transit gateway.
For each VPC route table, the network engineer adds a route to 0.0.0.0/0 with the transit gateway as the next destination.
Which combination of steps should the network engineer take next to complete this solution? (Choose three.)
Show answer and explanation
Correct answer: A, C, E. Associate the production VPC attachments with the existing transit gateway route table. Propagate the routes from these attachments; Associate the Direct Connect gateway attachment with the existing transit gateway route table. Propagate the Direct Connect gateway attachment to this route table; Create a new transit gateway route table. Associate the new route table with the development VPC attachment. Propagate the Direct Connect gateway and development VPC attachment to the new route table.
To isolate the development VPC while allowing production VPCs to communicate with each other and on-premises: associate production VPC attachments with the main route table (A), associate and propagate the Direct Connect gateway with the main route table (C) so on-premises can reach production VPCs, and create a separate route table for the development VPC (E) with only the Direct Connect attachment propagated, preventing any routes to production VPCs. This configuration ensures production-to-production and on-premises-to-production connectivity while completely isolating development.
Why the other options are wrong
- B. Associating all attachments with a single route table would allow development to reach production, violating isolation requirements.
- D. Security groups operate at the EC2 level, not the transit gateway level, and cannot enforce routing isolation between VPCs.
- F. Creating a second transit gateway adds unnecessary complexity and breaks the single-architecture design; isolation is achieved through route table management.
Question 27
An ecommerce company is hosting a web application on Amazon EC2 instances to handle continuously changing customer demand. The EC2 instances are part of an Auto Scaling group. The company wants to implement a solution to distribute traffic from customers to the EC2 instances. The company must encrypt all traffic at all stages between the customers and the application servers. No decryption at intermediate points is allowed.
Which solution will meet these requirements?
Show answer and explanation
Correct answer: C. Create a Network Load Balancer (NLB). Add a TCP listener to the NLB. Configure the Auto Scaling group to register instances with the NLB's target group.
A Network Load Balancer with a TCP listener on port 443 performs no decryption at the load balancer layer; it simply forwards encrypted traffic end-to-end to the EC2 instances. The encryption occurs between the client and the EC2 instance, with no intermediate decryption. This meets the strict requirement of no decryption at any intermediate point.
Why the other options are wrong
- A. An ALB with HTTPS listener terminates the TLS connection at the ALB, decrypting traffic there before re-encrypting to the backend, which violates the no-decryption requirement.
- B. CloudFront decrypts traffic at the edge location before re-encrypting to the origin, violating the no-intermediate-decryption requirement.
- D. A Gateway Load Balancer is designed for third-party virtual appliances and security services, not for distributing traffic to standard web application servers.
Question 28
A company is running a hybrid cloud environment. The company has multiple AWS accounts as part of an organization in AWS Organizations. The company needs a solution to manage a list of IPv4 on-premises hosts that will be allowed to access resources in AWS. The solution must provide version control for the list of IPv4 addresses and must make the list available to the AWS accounts in the organization.
Which solution will meet these requirements?
Show answer and explanation
Correct answer: A. Create a customer-managed prefix list. Add entries for the initial list of on-premises IPv4 hosts. Create a resource share in AWS Resource Access Manager. Add the managed prefix list to the resource share. Share the resource with the organization.
Customer-managed prefix lists provide version control and centralized management of IP address ranges. AWS Resource Access Manager (RAM) allows sharing these prefix lists across AWS Organization accounts. This approach is native, scalable, and provides built-in versioning capabilities. Prefix lists can be referenced in security groups and network ACLs across all shared accounts.
Why the other options are wrong
- B. AWS Firewall Manager is designed for WAF and Shield policies, not for sharing prefix lists across accounts.
- C. Security groups are resource-specific and don't provide version control; sharing individual security groups doesn't scale for managing IP lists across organizations.
- D. A DynamoDB and Lambda solution adds unnecessary complexity and operational overhead compared to the native managed prefix list approach; it also lacks built-in versioning.
Question 29
A company has multiple AWS accounts. Each account contains one or more VPCs. A new security guideline requires the inspection of all traffic between VPCs.
The company has deployed a transit gateway that provides connectivity between all VPCs. The company also has deployed a shared services VPC with Amazon EC2 instances that include IDS services for stateful inspection. The EC2 instances are deployed across three Availability Zones. The company has set up VPC associations and routing on the transit gateway. The company has migrated a few test VPCs to the new solution for traffic inspection.
Soon after the configuration of routing, the company receives reports of intermittent connections for traffic that crosses Availability Zones.
What should a network engineer do to resolve this issue?
Show answer and explanation
Correct answer: B. Modify the transit gateway VPC attachment on the shared services VPC by enabling appliance mode support.
Intermittent cross-Availability Zone connections with stateful inspection indicate that traffic is not consistently returning through the same availability zone. Appliance mode support on the transit gateway attachment ensures symmetric routing by disabling the learning of MAC addresses and maintaining flow affinity, so return traffic exits through the same inspection appliance in the same AZ where the inbound traffic entered. This resolves the connection flakiness caused by asymmetric return paths.
Why the other options are wrong
- A. Cross-AZ load balancing on a transit gateway attachment is not a standard feature and does not address the stateful inspection symmetry issue.
- C. ECMP routing support helps with equal-cost multi-path selection but does not guarantee symmetry for stateful inspection, which requires appliance mode.
- D. Multicast support is unrelated to the problem of intermittent cross-AZ connections with IDS services.
Question 30
A company has two AWS Direct Connect links. One Direct Connect link terminates in the us-east-1 Region, and the other Direct Connect link terminates in the af-south-1 Region. The company is using BGP to exchange routes with AWS.
How should a network engineer configure BGP to ensure that af-south-1 is used as a secondary link to AWS?
Show answer and explanation
Correct answer: B. • On the Direct Connect link to us-east-1, configure BGP peering to use community tag 7224:7300 • On the Direct Connect link to af-south-1, configure BGP peering to use community tag 7224:7100 • On the Direct Connect BGP peer to us-east-1, set the local preference value to 200 • On the Direct Connect BGP peer to af-south-1, set the local preference value to 50
AWS Direct Connect uses the community 7224:7300 for high preference and 7224:7100 for low preference on traffic from AWS. Tagging us-east-1 with 7224:7300 and af-south-1 with 7224:7100 makes us-east-1 preferred for inbound traffic. Setting a higher local preference of 200 on the us-east-1 peer makes it preferred for outbound traffic too, leaving af-south-1 as the secondary link.
Why the other options are wrong
- A. This gives us-east-1 the low-preference community 7224:7100, so AWS would prefer af-south-1 for return traffic.
- C. The communities make af-south-1 preferred and the local preference also favours af-south-1.
- D. The local preference favours af-south-1 for outbound traffic, so us-east-1 would not be the consistent primary link.
Question 31
A company is moving its record-keeping application to the AWS Cloud. All traffic between the company's on-premises data center and AWS must be encrypted at all times and at every transit device during the migration.
The application will reside across multiple Availability Zones in a single AWS Region. The application will use existing 10 Gbps AWS Direct Connect dedicated connections with a MACsec capable port. A network engineer must ensure that the Direct Connect connection is secured accordingly at every transit device.
The network engineer creates a Connection Key Name and Connectivity Association Key (CKN/CAK) pair for the MACsec secret key.
Which combination of additional steps should the network engineer take to meet the requirements? (Choose two.)
Show answer and explanation
Correct answer: A, D. Configure the on-premises router with the MACsec secret key; Associate the CKN/CAK pair with the connection. Then update the connection's MACsec encryption mode to must_encrypt.
To properly secure Direct Connect with MACsec at all transit devices, two steps are required: first configure the on-premises router with the MACsec secret key (the CKN/CAK pair) so both ends can establish encryption, and second update the connection's MACsec encryption mode to must_encrypt and associate the CKN/CAK pair with the connection on the AWS side. The must_encrypt mode ensures encryption is mandatory at every device, meeting the 'encrypted at all times and at every transit device' requirement.
Why the other options are wrong
- B. The correct mode is must_encrypt, not should_encrypt; should_encrypt allows unencrypted fallback.
- C. Using should_encrypt instead of must_encrypt violates the requirement for encryption at all times.
- E. Using should_encrypt instead of must_encrypt allows the connection to proceed without encryption if both ends negotiate it.
Question 32
A company runs an application on Amazon EC2 instances. A network engineer implements a NAT gateway in the application's VPC to replace self-managed NAT instances. After the network engineer shifts traffic from the self-managed NAT instances to the NAT gateway, users begin to report issues.
During troubleshooting, the network engineer discovers that the connection to the application is closing after approximately 6 minutes of inactivity.
What should the network engineer do to resolve this issue?
Show answer and explanation
Correct answer: A. Check for increases in the IdleTimeoutCount Amazon CloudWatch metric for the NAT gateway. Configure TCP keepalive on the application EC2 instances.
Connections closing after 6 minutes of inactivity indicates NAT gateway idle timeout (default is 350 seconds, approximately 5.8 minutes). The IdleTimeoutCount CloudWatch metric tracks idle timeout disconnections (A). TCP keepalive on EC2 instances refreshes the connection state, preventing idle timeout. This is a known difference between self-managed NAT instances (configurable timeout) and NAT gateways (fixed 350-second timeout). Other metrics and timeouts (B, C, D) address different NAT issues like port exhaustion or packet drops.
Why the other options are wrong
- B. ErrorPortAllocation indicates port exhaustion, not idle timeout, and HTTP timeouts don't address NAT idle timeout.
- C. PacketsDropCount relates to capacity issues, not idle connection closure, and HTTPS timeouts don't solve NAT idle timeout.
- D. ActiveConnectionCount decreasing is a symptom, not the root cause, and UDP keepalive is not applicable to TCP connections.
Question 33
A company is migrating its containerized application to AWS. For the architecture the company will have an ingress VPC with a Network Load Balancer (NLB) to distribute the traffic to front-end pods in an Amazon Elastic Kubernetes Service (Amazon EKS) cluster. The front end of the application will determine which user is requesting access and will send traffic to 1 of 10 services VPCs. Each services VPC will include an NLB that distributes traffic to the services pods in an EKS cluster.
The company is concerned about overall cost. User traffic will be responsible for more than 10 TB of data transfer from the ingress VPC to services VPCs every month. A network engineer needs to recommend how to design the communication between the VPCs.
Which solution will meet these requirements at the LOWEST cost?
Show answer and explanation
Correct answer: C. Create a VPC peering connection between the ingress VPC and each of the 10 services VPCs. Use zonal DNS names for the NLB in the services VPCs to minimize cross-AZ traffic from the ingress VPC to the services VPCs.
VPC peering connections have the lowest data transfer costs between VPCs, with no per-hour charges and lower per-GB data transfer rates compared to transit gateway or PrivateLink solutions. Using zonal DNS names on the NLB in services VPCs ensures that traffic routes to the closest availability zone, minimizing cross-AZ data transfer costs. With 10+ TB monthly traffic, this approach provides the most cost-effective solution without additional per-connection or per-endpoint fees.
Why the other options are wrong
- A. Transit gateways charge per-hour attachment fees and per-GB processing charges, making them more expensive than VPC peering for simple one-to-many connectivity patterns.
- B. PrivateLink endpoints incur hourly charges per endpoint and per-GB data processing fees, resulting in higher costs than VPC peering for high-volume data transfer scenarios.
- D. Transit gateways with cross-AZ load balancing disabled still incur per-hour and per-GB charges that exceed VPC peering costs, and disabling cross-AZ balancing can reduce availability.
Question 34
A company has an AWS environment that includes multiple VPCs that are connected by a transit gateway. The company has decided to use AWS Site-to-Site VPN to establish connectivity between its on-premises network and its AWS environment.
The company does not have a static public IP address for its on-premises network. A network engineer must implement a solution to initiate the VPN connection on the AWS side of the connection for traffic from the AWS environment to the on-premises network.
Which combination of steps should the network engineer take to establish VPN connectivity between the transit gateway and the on-premises network? (Choose three.)
Show answer and explanation
Correct answer: B, C, F. Configure the Site-to-Site VPN tunnel options to use Internet Key Exchange version 2 (IKEv2); Use a private certificate authority (CA) from AWS Private Certificate Authority to create a certificate; Create a customer gateway without specifying the IP address of the customer gateway device.
To initiate VPN connections from AWS side when the customer has a dynamic IP address, use IKEv2 (more efficient than IKEv1 and supports dynamic reconnection), create a customer gateway without specifying a static IP address (allowing AWS to accept connections from any IP), and use a public certificate authority for authentication (since this is an external VPN connection, not internal). These three options work together to enable AWS-initiated connections despite the dynamic customer gateway IP.
Why the other options are wrong
- A. IKEv1 is older and less suitable for dynamic IP scenarios compared to IKEv2.
- D. A private CA from AWS Private Certificate Authority is for internal certificates, not external VPN connections.
- E. Specifying a dynamic IP address in the customer gateway defeats the purpose; the gateway must be created without a fixed IP to accept connections from any address.
Question 35
A company is deploying a new application on AWS. The application uses dynamic multicasting. The company has five VPCs that are all attached to a transit gateway Amazon EC2 instances in each VPC need to be able to register dynamically to receive a multicast transmission.
How should a network engineer configure the AWS resources to meet these requirements?
Show answer and explanation
Correct answer: C. Create an Internet Group Management Protocol (IGMP) multicast domain within the transit gateway. Associate the VPCs and applicable subnets with the multicast domain. Register the multicast senders' network interface with the multicast domain. Adjust the network ACLs to allow UDP traffic from the source to all receivers and to allow UDP traffic that is sent to the multicast group address.
Dynamic multicast registration requires Internet Group Management Protocol (IGMP) to allow EC2 instances to dynamically join multicast groups. Create an IGMP multicast domain within the transit gateway, associate the participating VPCs and subnets, and register multicast senders' network interfaces. Multicast transmission uses UDP, so allow UDP traffic to and from the multicast group address in network ACLs. IGMP enables the dynamic group membership required for this application.
Why the other options are wrong
- A. Static source multicast domains do not support dynamic registration; IGMP is required for instances to dynamically join groups.
- B. Multicast uses UDP, not TCP; TCP would not work for multicast transmissions.
- D. Static multicast domains cannot support dynamic registration, and TCP is incorrect for multicast traffic.
Question 36
A global film production company uses the AWS Cloud to encode and store its video content before distribution. The company's three global offices are connected to the us-east-1 Region through AWS Site-to-Site VPN links that terminate on a transit gateway with BGP routing activated.
The company recently started to produce content at a higher resolution to support 8K streaming. The size of the content files has increased to three times the size of the content files from the previous format. Uploads of files to Amazon EC2 instances are taking 10 times longer than they did with the previous format.
Which actions should a network engineer recommend to reduce the upload times? (Choose two.)
Show answer and explanation
Correct answer: A, C. Create a second VPN tunnel from each office location to the transit gateway. Activate equal-cost multi-path (ECMP) routing; Replace the existing VPN tunnels with new tunnels that have acceleration activated.
Option A adds a second VPN tunnel with ECMP routing, doubling throughput by load-balancing across both tunnels. Option C replaces VPN tunnels with acceleration enabled, which optimizes the VPN connection for higher throughput and lower latency using AWS-optimized paths. Together, these provide both redundancy with increased capacity (ECMP) and inherent performance improvements (acceleration), directly addressing the 10x slowdown from larger file sizes.
Why the other options are wrong
- B. Jumbo MTU on VPN tunnels helps but doesn't address the fundamental throughput limitation; it's a secondary optimization.
- D. Upgrading EC2 instance types and enabling Jumbo MTU in the OS doesn't address the network bottleneck at the VPN tunnel level.
- E. IGMP (Internet Group Management Protocol) is for multicast group management and is irrelevant to unicast file upload performance.
Question 37
A company’s network engineer needs to design a new solution to help troubleshoot and detect network anomalies. The network engineer has configured Traffic Mirroring. However, the mirrored traffic is overwhelming the Amazon EC2 instance that is the traffic mirror target. The EC2 instance hosts tools that the company’s security team uses to analyze the traffic. The network engineer needs to design a highly available solution that can scale to meet the demand of the mirrored traffic.
Which solution will meet these requirements?
Show answer and explanation
Correct answer: A. Deploy a Network Load Balancer (NLB) as the traffic mirror target. Behind the NLB. deploy a fleet of EC2 instances in an Auto Scaling group. Use Traffic Mirroring as necessary.
A Network Load Balancer as the traffic mirror target with an Auto Scaling group of EC2 instances provides high availability, automatic scaling to handle mirrored traffic volume, and maintains Layer 4 throughput necessary for traffic analysis tools. The NLB can distribute mirrored traffic across multiple analysis instances, preventing overwhelming any single instance while remaining highly available across AZs.
Why the other options are wrong
- B. ALBs operate at Layer 7 and are not suitable for traffic mirroring which requires Layer 4 handling; restricting analysis to non-business hours defeats the purpose of real-time anomaly detection.
- C. Gateway Load Balancers are designed for third-party appliances in the data path but are not the appropriate choice for scaling analysis tools receiving mirrored traffic.
- D. ALBs with HTTPS are Layer 7 and unsuitable for mirrored traffic; restricting to business hours prevents detection of anomalies during off-hours when attacks may occur.
Question 38
A network engineer needs to update a company's hybrid network to support IPv6 for the upcoming release of a new application. The application is hosted in a VPC in the AWS Cloud. The company's current AWS infrastructure includes VPCs that are connected by a transit gateway. The transit gateway is connected to the on-premises network by AWS Direct Connect and AWS Site-to-Site VPN. The company's on-premises devices have been updated to support the new IPv6 requirements.
The company has enabled IPv6 for the existing VPC by assigning a new IPv6 CIDR block to the VPC and by assigning IPv6 to the subnets for dual-stack support. The company has launched new Amazon EC2 instances for the new application in the updated subnets.
When updating the hybrid network to support IPv6 the network engineer must avoid making any changes to the current infrastructure. The network engineer also must block direct access to the instances' new IPv6 addresses from the internet. However, the network engineer must allow outbound internet access from the instances.
What is the MOST operationally efficient solution that meets these requirements?
Show answer and explanation
Correct answer: A. Update the Direct Connect transit VIF and configure BGP peering with the AWS assigned IPv6 peering address. Create a new VPN connection that supports IPv6 connectivity. Add an egress-only internet gateway. Update any affected VPC security groups and route tables to provide connectivity within the VPC and between the VPC and the on-premises devices
To add IPv6 support while avoiding changes to existing infrastructure, update the existing Direct Connect transit VIF with IPv6 BGP peering (not create a new one, as that would modify existing infrastructure). Create a new VPN connection specifically for IPv6 support, keeping the existing VPN unchanged. Add an egress-only internet gateway to allow outbound IPv6 traffic while blocking inbound internet access to instances. This approach minimizes changes to production connections while enabling the new IPv6 application requirements.
Why the other options are wrong
- B. Updating the existing VPN connection modifies current infrastructure against stated requirements; a new VPN is needed for IPv6 without touching the existing one.
- C. Creating (not updating) a new Direct Connect VIF violates the requirement to avoid changes to current infrastructure; the existing VIF must be updated.
- D. NAT gateways do not work with IPv6; egress-only internet gateways are the correct mechanism for outbound-only IPv6 connectivity.
Question 39
A company recently migrated its Amazon EC2 instances to VPC private subnets to satisfy a security compliance requirement. The EC2 instances now use a NAT gateway for internet access. After the migration, some long-running database queries from private EC2 instances to a publicly accessible third-party database no longer receive responses. The database query logs reveal that the queries successfully completed after 7 minutes but that the client EC2 instances never received the response.
Which configuration change should a network engineer implement to resolve this issue?
Show answer and explanation
Correct answer: C. Enable TCP keepalive on the client EC2 instances with a value of less than 300 seconds.
The issue is that NAT gateway connections have a default idle timeout of 350 seconds. When a long-running query takes 7 minutes, the connection becomes idle for more than 350 seconds, and the NAT gateway closes it before the response returns. By enabling TCP keepalive on the client EC2 instances with a value less than 300 seconds, keepalive packets are sent periodically to keep the connection active, preventing the NAT gateway from closing the idle connection during the long query execution.
Why the other options are wrong
- A. NAT gateway timeout cannot be configured to 600 seconds; the maximum configurable timeout is 350 seconds for idle connections, and this is not the root cause.
- B. Enhanced networking improves throughput and packet rate performance but does not affect idle connection timeout behavior or keepalive mechanisms.
- D. Closing idle TCP connections would exacerbate the problem, not solve it, as it would terminate connections even sooner.
Question 40
A company has three VPCs in a single AWS Region. Each VPC contains 15 Amazon EC2 instances, and no connectivity exists between the VPCs.
The company is deploying a new application across all three VPCs. The application requires high bandwidth between the nodes. A network engineer must implement connectivity between the VPCs.
Which solution will meet these requirements with the HIGHEST throughput?
Show answer and explanation
Correct answer: B. Configure VPC peering between the three VPCs. Configure static routing to route traffic between the three VPCs.
VPC peering provides the highest throughput for inter-VPC communication in the same region with direct, low-latency connections. While setting up three VPC peerings (A-B, B-C, A-C for full mesh) requires more configuration than a transit gateway, it eliminates the transit gateway as a potential bottleneck. For three VPCs in a single region requiring high bandwidth, the direct peering paths provide superior throughput compared to routing through a transit gateway.
Why the other options are wrong
- A. A transit gateway introduces a centralized routing point that may become a throughput bottleneck for high-bandwidth applications compared to direct VPC peering.
- C. This option appears malformed/truncated in the original text, but generally VPN-based solutions (whether Site-to-Site VPN through a transit VPC or between VPCs) introduce encryption overhead and lower throughput than native VPC peering.
- D. Site-to-Site VPN connections between VPCs add encryption overhead and latency, resulting in lower throughput than native VPC peering.
Question 41
A team of infrastructure engineers wants to automate the deployment of Application Load Balancer (ALB) components by using the AWS Cloud Development Kit (AWS CDK). The CDK application must deploy an infrastructure stack that is reusable and consistent across multiple environments, AWS Regions, and AWS accounts.
The lead network architect on the project has already bootstrapped the target accounts. The lead network architect also has deployed core network components such as VPCs and Amazon Route 53 private hosted zones across the multiple environments and Regions. The infrastructure engineers must design the ALB components in the CDK application to use the existing core network components.
Which combination of steps will meet this requirement with the LEAST manual effort between environment deployments? (Choose two.)
Show answer and explanation
Correct answer: B, C. Design the CDK application to read environment variables that contain account and Region details at runtime. Use these variables as properties of the CDK stack. Use context methods in the CDK stack to retrieve variable values; Create a dedicated account for shared application services in the multi-account environment. Deploy a CDK pipeline to the dedicated account. Create stages in the pipeline that deploy the CDK application across different environments and Regions.
Design the CDK application to read environment variables containing account and Region details at runtime and use CDK context methods to retrieve values (option B), enabling environment-specific configuration without code changes. Additionally, create a dedicated shared services account with a CDK pipeline that deploys across different environments and Regions (option C), providing automated, consistent deployments across the organization with minimal manual effort. These approaches leverage CDK's native capabilities for managing multi-environment deployments through automation and context.
Why the other options are wrong
- A. Reading CloudFormation parameters requires manual parameter entry for each deployment, increasing manual effort rather than minimizing it.
- D. Distributing deployment scripts to engineers introduces manual effort, inconsistency, and maintenance overhead; automation should be centralized.
- E. Using CDK toolkit locally with --context flags requires engineers to manually deploy to each environment and Region, not meeting the least manual effort requirement.
Question 42
A global company operates all its non-production environments out of three AWS Regions: eu-west-1, us-east-1, and us-west-1.
The company hosts all its production workloads in two on-premises data centers. The company has 60 AWS accounts and each account has two VPCs in each Region. Each VPC has a virtual private gateway where two VPN connections terminate for resilient connectivity to the data centers. The company has 360 VPN tunnels to each data center, resulting in high management overhead. The total VPN throughput for each Region is 500 Mbps.
The company wants to migrate the production environments to AWS. The company needs a solution that will simplify the network architecture and allow for future growth. The production environments will generate an additional 2 Gbps of traffic per Region back to the data centers. This traffic will increase over time.
Which solution will meet these requirements?
Show answer and explanation
Correct answer: C. Create a transit gateway in each Region with multiple newly commissioned VPN connections from each data center. Share the transit gateways with each account by using AWS Resource Access Manager (AWS RAM). In each Region, attach the transit gateway to each VPC. Remove the existing VPN connections that are attached directly to the virtual private gateways.
Option C is correct because it uses a transit gateway in each region with multiple VPN connections, which consolidates the 360 VPN tunnels into a manageable architecture. By sharing the transit gateway via AWS RAM across all 60 accounts, the solution eliminates direct VPN attachments to individual VPCs while supporting the required 2 Gbps of additional traffic per region and providing scalability for future growth. Transit gateways with multiple VPN connections provide better throughput (up to 50 Gbps per attachment) compared to the current 500 Mbps limit.
Why the other options are wrong
- A. Direct Connect requires significant provisioning time and cannot be implemented within the typical timeline; it also doesn't address the complexity of managing connections across 60 accounts as effectively as transit gateway sharing.
- B. Creating a single transit gateway per region with only two VPN connections (one per data center) limits throughput and scalability; multiple VPN connections per region are needed to handle the additional 2 Gbps traffic requirement.
- D. VPC peering to a transit VPC doesn't scale well with 60 accounts and still requires complex routing; it doesn't provide the same management simplification or throughput capacity as a transit gateway solution.
Question 43
A company is developing an application in which IoT devices will report measurements to the AWS Cloud. The application will have millions of end users. The company observes that the IoT devices cannot support DNS resolution. The company needs to implement an Amazon EC2 Auto Scaling solution so that the IoT devices can connect to an application endpoint without using DNS.
Which solution will meet these requirements MOST cost-effectively?
Show answer and explanation
Correct answer: C. Use a Network Load Balancer (NLB). Create an EC2 Auto Scaling group. Attach the Auto Scaling group to the NLB. Set up the IoT devices to connect to the IP addresses of the NLB.
An NLB provides static IP addresses that IoT devices can connect to directly without DNS resolution. It scales with the Auto Scaling group and is the most cost-effective solution. Unlike Global Accelerator (options B and D), which adds unnecessary cost for this use case, an NLB alone provides the required static IPs and auto-scaling capability. Option A incorrectly uses ALB as a target for NLB, which is not a standard pattern and adds complexity.
Why the other options are wrong
- A. ALB cannot be used as a target group type for NLB in the way described; NLB targets are EC2 instances, not load balancers.
- B. Global Accelerator adds significant cost unnecessarily when a simple NLB provides static IPs and meets the requirements.
- D. Global Accelerator is more expensive than needed; an NLB alone provides static IPs and auto-scaling without the additional Global Accelerator cost.
Question 44
A network engineer needs to set up an Amazon EC2 Auto Scaling group to run a Linux-based network appliance in a highly available architecture.
The network engineer is configuring the new launch template for the Auto Scaling group.
In addition to the primary network interface the network appliance requires a second network interface that will be used exclusively by the application to exchange traffic with hosts over the internet. The company has set up a Bring Your Own IP (BYOIP) pool that includes an Elastic IP address that should be used as the public IP address for the second network interface.
How can the network engineer implement the required architecture?
Show answer and explanation
Correct answer: D. During creation of the Auto Scaling group, select subnets for the primary network interface. Use the user data option to run a cloud-init script to allocate a second network interface and to associate an Elastic IP address from the BYOIP pool.
Option D is correct because it uses user data with a cloud-init script to attach the second network interface and associate an Elastic IP from the BYOIP pool after instance launch. This approach works within the Auto Scaling group's launch template constraints and allows the instance to dynamically acquire the secondary interface and BYOIP Elastic IP address upon boot, supporting the highly available architecture requirement.
Why the other options are wrong
- A. Launch templates cannot reference BYOIP pool IDs for secondary network interfaces; BYOIP addresses must be allocated before instance launch.
- B. Attaching network interfaces via user data after boot is possible but does not guarantee the BYOIP Elastic IP association will occur correctly without additional scripting complexity.
- C. Using Lambda with a lifecycle hook and Global Accelerator adds unnecessary complexity; Global Accelerator is not suitable for per-instance IP assignment in this context.
Question 45
A company has several production applications across different accounts in the AWS Cloud. The company operates from the us-east-1 Region only. Only certain partner companies can access the applications. The applications are running on Amazon EC2 instances that are in an Auto Scaling group behind an Application Load Balancer (ALB). The EC2 instances are in private subnets and allow traffic only from the ALB. The ALB is in a public subnet and allows inbound traffic only from partner network IP address ranges over port 80.
When the company adds a new partner, the company must allow the IP address range of the partner network in the security group that is associated with the ALB in each account. A network engineer must implement a solution to centrally manage the partner network IP address ranges.
Which solution will meet these requirements in the MOST operationally efficient manner?
Show answer and explanation
Correct answer: C. Create a new prefix list. Add all allowed IP address ranges to the prefix list. Share the prefix list across different accounts by using AWS Resource Access Manager (AWS RAM). Update security groups to use the prefix list instead of the partner IP address range. Update the prefix list with the new IP address range when the company adds a new partner.
A prefix list provides a centralized, reusable list of IP address ranges that can be shared across multiple AWS accounts using AWS Resource Access Manager (RAM). Security groups in all accounts reference the prefix list instead of individual IP ranges, and updates to the prefix list automatically propagate to all associated security groups in all accounts. This eliminates the need to manage security groups individually in each account and provides single-point-of-maintenance operational efficiency.
Why the other options are wrong
- A. DynamoDB with Lambda requires building and maintaining custom automation code across all accounts; not as operationally efficient as native AWS prefix list sharing.
- B. Prefix lists without RAM sharing still require Lambda-based automation to update security groups in each account; doesn't achieve centralized management across accounts.
- D. S3-based approach with Lambda requires custom code deployment and management across all accounts; less efficient than native prefix list and RAM integration.
Question 46
A company is planning a migration of its critical workloads from an on-premises data center to Amazon EC2 instances. The plan includes a new 10 Gbps AWS Direct Connect dedicated connection from the on-premises data center to a VPC that is attached to a transit gateway. The migration must occur over encrypted paths between the on-premises data center and the AWS Cloud.
Which solution will meet these requirements while providing the HIGHEST throughput?
Show answer and explanation
Correct answer: C. Configure MACsec for the Direct Connect connection. Configure a transit VIF to a Direct Connect gateway that is associated with the transit gateway.
MACsec encryption on the Direct Connect connection combined with a transit VIF provides encrypted communication while preserving the full 10 Gbps throughput. Unlike Site-to-Site VPN which adds IPsec overhead and reduces throughput, MACsec operates at Layer 2 and does not significantly impact performance. The transit VIF to the Direct Connect gateway supports the transit gateway attachment, meeting all encryption and throughput requirements.
Why the other options are wrong
- A. Public VIF with Site-to-Site VPN adds IPsec encryption overhead, reducing throughput below the 10 Gbps requirement.
- B. Transit VIF with third-party VPN software on an EC2 instance creates a bottleneck and increases operational complexity compared to native AWS solutions.
- D. Public VIF with multiple VPN connections uses IPsec which adds encryption overhead; ECMP cannot overcome the inherent throughput limitations of VPN encryption.
Question 47
An IoT company collects data from thousands of sensors that are deployed in the Unites States and South Asia. The sensors use a proprietary communication protocol that is built on UDP to send the data to a fleet of Amazon EC2 instances. The instances are in an Auto Scaling group and run behind a Network Load Balancer (NLB). The instances, Auto Scaling group, and NLB are deployed in the us-west-2 Region.
Occasionally, the data from the sensors in South Asia gets lost in transit over the internet and does not reach the EC2 instances.
Which solutions will resolve this issue? (Choose two.)
Show answer and explanation
Correct answer: A, C. Use AWS Global Accelerator with the existing NLB; Create a second deployment of the EC2 instances and the NLB in the ap-south-1 Region. Use an Amazon Route 53 latency routing policy to resolve to the Region that provides the least latency.
AWS Global Accelerator (option A) improves network path quality and reduces packet loss for UDP traffic from distant regions by using AWS's private global network instead of the public internet, making it ideal for sensors in South Asia connecting to us-west-2. Additionally, deploying a second NLB and EC2 instances in ap-south-1 with Route 53 latency routing (option C) ensures sensors in South Asia connect to the nearest region, reducing packet loss on long-distance routes while maintaining application resilience. These two solutions directly address geographic data loss issues.
Why the other options are wrong
- B. CloudFront is designed for content delivery, not for UDP traffic or real-time IoT data ingestion; it also doesn't support UDP.
- D. Failover routing only switches if the primary endpoint fails; it doesn't reduce packet loss for geographic distance issues, and latency routing is more appropriate for multi-region optimization.
- E. Enhanced networking improves throughput on individual instances but doesn't address the core issue of packet loss over long-distance internet routes.
Question 48
An Australian ecommerce company hosts all of its services in the AWS Cloud and wants to expand its customer base to the United States (US).
The company is targeting the western US for the expansion.
The company’s existing AWS architecture consists of four AWS accounts with multiple VPCs deployed in the ap-southeast-2 Region. All VPCs are attached to a transit gateway in ap-southeast-2. There are dedicated VPCs for each application service. The company also has VPCs for centralized security features such as proxies, firewalls, and logging.
The company plans to duplicate the infrastructure from ap-southeast-2 to the us-west-1 Region. A network engineer must establish connectivity between the various applications in the two Regions. The solution must maximize bandwidth, minimize latency and minimize operational overhead.
Which solution will meet these requirements?
Show answer and explanation
Correct answer: B. Peer the transit gateways in each Region. Configure routing between the two transit gateways for each Region's IP addresses.
Transit gateway peering is the optimal solution for connecting multiple transit gateways across regions. It provides native, high-bandwidth, low-latency connectivity between regions without additional intermediate infrastructure. You create a peering attachment between the transit gateways in ap-southeast-2 and us-west-1, then configure routing between the two regions. This maximizes bandwidth, minimizes latency, and requires minimal operational overhead compared to other approaches.
Why the other options are wrong
- A. VPN attachments between transit gateways would work but provide lower bandwidth and higher latency compared to transit gateway peering, which is a native AWS service for this purpose.
- C. Creating VPN servers adds unnecessary complexity and operational overhead and would not provide the same performance characteristics as native transit gateway peering.
- D. Attaching us-west-1 VPCs to the ap-southeast-2 transit gateway would create excessive latency with all traffic routing through the Australia region, defeating the purpose of having local infrastructure.
Question 49
A company is running multiple workloads on Amazon EC2 instances in public subnets. In a recent incident, an attacker exploited an application vulnerability on one of the EC2 instances to gain access to the instance. The company fixed the application and launched a replacement EC2 instance that contains the updated application.
The attacker used the compromised application to spread malware over the internet. The company became aware of the compromise through a notification from AWS. The company needs the ability to identify when an application that is deployed on an EC2 instance is spreading malware.
Which solution will meet this requirement with the LEAST operational effort?
Show answer and explanation
Correct answer: A. Use Amazon GuardDuty to analyze traffic patterns by inspecting DNS requests and VPC flow logs.
Option A requires the least operational effort because Amazon GuardDuty automatically analyzes VPC Flow Logs and DNS query logs to identify suspicious network activity and malware communication patterns without requiring manual configuration or management. GuardDuty uses machine learning and threat intelligence to detect command-and-control communication, data exfiltration, and cryptocurrency mining, all signs of malware spreading. This is a managed service requiring no infrastructure deployment or signature management.
Why the other options are wrong
- B. GuardDuty does not deploy decoy systems; this describes honeypot concepts that require manual infrastructure management.
- C. Deploying and managing a Gateway Load Balancer with IDS appliances requires significant operational effort including patching, signature updates, and monitoring.
- D. Amazon Inspector performs vulnerability assessments of EC2 instances, not real-time deep packet inspection of outgoing traffic for malware detection.
Question 50
A company's network engineer is designing an active-passive connection to AWS from two on-premises data centers. The company has set up AWS Direct Connect connections between the on-premises data centers and AWS. From each location, the company is using a transit VIF that connects to a Direct Connect gateway that is associated with a transit gateway.
The network engineer must ensure that traffic from AWS to the data centers is routed first to the primary data center. The traffic should be routed to the failover data center only in the case of an outage.
Which solution will meet these requirements?
Show answer and explanation
Correct answer: B. Set the BGP community tag for all prefixes from the primary data center to 7224:7300. Set the BGP community tag for all prefixes from the failover data center to 7224:7100
In AWS Direct Connect, BGP community tag 7224:7300 is used to indicate lower preference (higher cost) for failover prefixes, while 7224:7100 is used for higher preference prefixes. By setting the primary data center prefixes to 7224:7300 and the failover data center prefixes to 7224:7100, AWS will prefer the failover path during normal operation and only use the primary path on failover. This inverted configuration ensures traffic routes to the primary data center first, with automatic failover to the secondary data center during outages.
Why the other options are wrong
- A. These community tags are reversed; this configuration would route traffic to the failover data center first instead of the primary data center.
- C. The community tag 7224:9300 and 7224:9100 are not standard AWS Direct Connect BGP communities for primary/failover designation; these tags do not provide the required preference signaling.
- D. These community tags are reversed compared to the correct configuration; this would result in traffic preferring the failover data center instead of the primary data center.
Question 51
A consulting company manages AWS accounts for its customers. One of the company's customers needs to add intrusion prevention for its environment without having to re-architect the environment. The customer's environment includes five VPCs in two AWS
Regions in the United States. VPC-to-VPC connectivity is achieved through VPC peering. The customer does not plan to increase the number of VPCs within the next 2 years. The solution must accommodate unencrypted traffic.
Which solution will meet these requirements?
Show answer and explanation
Correct answer: C. Use an AWS Network Firewall distributed deployment model in each VPC.
Option C (distributed deployment model) is correct because the customer has a fixed, manageable number of five VPCs with VPC peering interconnects and no plans to expand. A distributed model places Network Firewall in each VPC to inspect traffic at the source, accommodates unencrypted traffic inspection, and works efficiently with the peered VPC topology without requiring a hub-and-spoke architecture.
Why the other options are wrong
- A. Security groups and NACLs provide basic filtering but lack intrusion prevention capabilities; they cannot detect or prevent intrusion attacks.
- B. Centralized deployment requires building a hub-and-spoke architecture with a central inspection VPC, which is unnecessary overhead given only five fixed VPCs; distributed is more appropriate for this stable topology.
- D. AWS Shield is a DDoS protection service, not an intrusion prevention system; it doesn't address the intrusion prevention requirement.
Question 52
A network engineer needs to standardize a company's approach to centralizing and managing interface VPC endpoints for private communication with AWS services. The company uses AWS Transit Gateway for inter-VPC connectivity between AWS accounts through a hub-and-spoke model.
The company's network services team must manage all Amazon Route 53 zones and interface endpoints within a shared services AWS account.
The company wants to use this centralized model to provide AWS resources with access to AWS Key Management Service (AWS KMS) without sending traffic over the public internet.
What should the network engineer do to meet these requirements?
Show answer and explanation
Correct answer: A. In the shared services account, create an interface endpoint for AWS KMS. Modify the interface endpoint by disabling the private DNS name. Create a private hosted zone in the shared services account with an alias record that points to the interface endpoint. Associate the private hosted zone with the spoke VPCs in each AWS account.
Option A correctly implements a centralized VPC endpoint management model. By creating the KMS interface endpoint in the shared services account and disabling its private DNS name, then creating a private hosted zone in the shared services account with an alias record pointing to the endpoint, the company can associate this hosted zone with all spoke VPCs. This allows resources in spoke accounts to resolve KMS DNS names to the shared endpoint via the transit gateway, maintaining centralized management while avoiding internet traffic and unnecessary endpoints per account.
Why the other options are wrong
- B. Creating private hosted zones in each spoke account defeats the purpose of centralized management and doesn't support association models that allow spoke VPCs to resolve to the shared endpoint.
- C. Creating endpoints in each spoke account eliminates the centralized management requirement and increases operational overhead and costs.
- D. Creating endpoints in spoke accounts contradicts the requirement for centralized management in the shared services account.
Question 53
A company has expanded its network to the AWS Cloud by using a hybrid architecture with multiple AWS accounts. The company has set up a shared AWS account for the connection to its on-premises data centers and the company offices. The workloads consist of private web-based services for internal use. These services run in different AWS accounts. Office-based employees consume these services by using a DNS name in an on-premises DNS zone that is named example.internal.
The process to register a new service that runs on AWS requires a manual and complicated change request to the internal DNS. The process involves many teams.
The company wants to update the DNS registration process by giving the service creators access that will allow them to register their DNS records. A network engineer must design a solution that will achieve this goal. The solution must maximize cost-effectiveness and must require the least possible number of configuration changes.
Which combination of steps should the network engineer take to meet these requirements? (Choose three.)
Show answer and explanation
Correct answer: B, D, F. Create an Amazon Route 53 Resolver inbound endpoint in the shared account VPC. Create a conditional forwarder for a domain named aws.example.internal on the on-premises DNS servers. Set the forwarding IP addresses to the inbound endpoint's IP addresses that were created; Create an Amazon Route 53 private hosted zone named aws.example.internal in the shared AWS account to resolve queries for this domain; Create a private hosted zone in the shared AWS account for each account that runs the service. Configure the private hosted zone to contain aws.example.internal in the domain (account1.aws.example.internal). Associate the private hosted zone with the VPC that runs the service and the shared account VPC.
Option B creates the resolver inbound endpoint in the shared account to accept DNS queries from on-premises for aws.example.internal. Option D creates a central private hosted zone in the shared account where service creators can register their records under aws.example.internal, avoiding manual DNS change requests. Option F creates account-specific private hosted zones (e.g., account1.aws.example.internal) associated with service VPCs and the shared account, enabling decentralized service registration while maintaining the central forwarding point. Together, these provide a scalable, self-service DNS registration process with minimal configuration changes.
Why the other options are wrong
- A. Requiring employees to access multiple local private hosted zones defeats the goal of providing a unified, simplified registration process.
- C. Creating a rule to forward to on-premises DNS is the opposite of what's needed; queries should come from on-premises to AWS.
- E. Deploying and managing BIND instances adds operational overhead compared to the managed Route 53 Resolver approach and is not cost-effective.
Question 54
A company uses AWS Direct Connect to connect its corporate network to multiple VPCs in the same AWS account and the same AWS Region.
Each VPC uses its own private VIF and its own virtual LAN on the Direct Connect connection. The company has grown and will soon surpass the limit of VPCs and private VIFs for each connection.
What is the MOST scalable way to add VPCs with on-premises connectivity?
Show answer and explanation
Correct answer: D. Create a transit gateway, and attach the VPCs. Create a Direct Connect gateway, and associate it with the transit gateway. Create a transit VIF to the Direct Connect gateway.
A transit gateway combined with a Direct Connect gateway provides the most scalable solution. The transit gateway centralizes connectivity for multiple VPCs, and the Direct Connect gateway associates with the transit gateway rather than requiring individual private VIFs for each VPC. This approach eliminates the VPC and VIF per-connection limits and allows a single Direct Connect connection to serve many VPCs through the transit gateway, providing optimal scalability for growing infrastructure.
Why the other options are wrong
- A. Provisioning multiple Direct Connect connections does not address the core scalability issue of VIF limits per connection and creates unnecessary complexity and cost.
- B. Using Site-to-Site VPN for additional VPCs is less scalable and performant than leveraging the existing Direct Connect connection with a transit gateway.
- C. Using a Direct Connect gateway with individual virtual private gateway associations still requires a separate VIF and private gateway for each VPC, which does not scale beyond the original limits.
Question 55
A company is hosting an application on Amazon EC2 instances behind a Network Load Balancer (NLB). A solutions architect added EC2 instances in a second Availability Zone to improve the availability of the application. The solutions architect added the instances to the NLB target group.
The company's operations team notices that traffic is being routed only to the instances in the first Availability Zone.
What is the MOST operationally efficient solution to resolve this issue?
Show answer and explanation
Correct answer: A. Enable the new Availability Zone on the NLB
Option A is correct because Network Load Balancers must have target Availability Zones explicitly enabled to distribute traffic across them. When new instances are added in a second Availability Zone, the NLB must be reconfigured to enable that Availability Zone, allowing it to route traffic to instances in both zones. This is the native, operationally efficient solution provided by AWS.
Why the other options are wrong
- B. Creating a separate NLB adds unnecessary complexity and management overhead; a single NLB can serve multiple Availability Zones.
- C. Proxy protocol is for preserving client IP information in connections; it does not affect Availability Zone traffic distribution.
- D. Creating a new target group does not solve the core issue; the existing target group should work once the Availability Zone is enabled on the NLB.
Question 56
A company has its production VPC (VPC-A) in the eu-west-1 Region in Account 1. VPC-A is attached to a transit gateway (TGW-A) that is connected to an on-premises data center in Dublin, Ireland, by an AWS Direct Connect transit VIF that is configured for an AWS Direct Connect gateway. The company also has a staging VPC (VPC-B) that is attached to another transit gateway (TGW-B) in the eu-west-2 Region in Account 2.
A network engineer must implement connectivity between VPC-B and the on-premises data center in Dublin.
Which solutions will meet these requirements? (Choose two.)
Show answer and explanation
Correct answer: B, D. Add the required VPC peering routes. Add the VPC-B CIDR block in the allowed prefixes on the Direct Connect gateway association. B. Associate TGW-B with the Direct Connect gateway. Advertise the VPC-B CIDR block under the allowed prefixes; Configure inter-Region transit gateway peering between TGW-A and TGW-B. Add the peering routes in the transit gateway route tables. Add both the VPC-A and the VPC-B CIDR block under the allowed prefix list in the Direct Connect gateway association.
Option B correctly handles the requirements by associating TGW-B directly with the Direct Connect gateway and advertising VPC-B's CIDR block in allowed prefixes. This enables direct connectivity from the on-premises data center through the existing Direct Connect gateway to the staging VPC. Option D provides an alternative by peering the transit gateways across regions and updating the allowed prefix list to include both VPCs, allowing traffic to flow through the peered gateways. Both solutions maintain the Direct Connect connection's existing configuration while extending connectivity to the new VPC.
Why the other options are wrong
- A. VPC peering alone does not connect VPC-B to the on-premises data center; it only peers the VPCs together, leaving the on-premises connectivity unestablished.
- C. Configuring another transit VIF requires additional resources and complexity when the Direct Connect gateway can already handle multiple associations.
- E. A Site-to-Site VPN over the transit VIF is unnecessary and adds latency; the Direct Connect connection already provides the required connectivity path.
Question 57
An application team for a startup company is deploying a new multi-tier application into the AWS Cloud. The application will be hosted on a fleet of Amazon EC2 instances that run in an Auto Scaling group behind a publicly accessible Network Load Balancer (NLB). The application requires the clients to work with UDP traffic and TCP traffic.
In the near term, the application will serve only users within the same geographic location. The application team plans to extend the application to a global audience and will move the deployment to multiple AWS Regions around the world to bring the application closer to the end users. The application team wants to use the new Regions to deploy new versions of the application and wants to be able to control the amount of traffic that each Region receives during these rollouts. In addition, the application team must minimize first-byte latency and jitter (randomized delay) for the end users.
How should the application team design the network architecture for the application to meet these requirements?
Show answer and explanation
Correct answer: B. Create an AWS Global Accelerator accelerator and listeners for the required ports. Configure endpoint groups for each Region. Configure a traffic dial for the endpoint groups to control traffic to the newer Regional deployments. Register the NLBs with the endpoint groups.
AWS Global Accelerator is the optimal solution for this scenario because it minimizes latency and jitter by routing traffic through AWS's private global network, supports both UDP and TCP traffic (unlike CloudFront which is HTTP/HTTPS), provides traffic dials for fine-grained control over traffic distribution during rollouts, and automatically routes to the lowest-latency endpoint. The traffic dial feature directly enables the team to control traffic percentage to new regional deployments.
Why the other options are wrong
- A. CloudFront is designed for HTTP/HTTPS content delivery and does not support UDP traffic; it also increases complexity with multiple distributions rather than unified traffic control.
- C. S3 Transfer Acceleration is for S3 object uploads/downloads only and cannot serve as a general application load balancing solution.
- D. CloudFront with origin groups provides failover but not granular traffic percentage control via traffic dials, and still doesn't support UDP traffic required by the application.
Question 58
A company has a global network and is using transit gateways to connect AWS Regions together. The company finds that two Amazon EC2 instances in different Regions are unable to communicate with each other. A network engineer needs to troubleshoot this connectivity issue.
What should the network engineer do to meet this requirement?
Show answer and explanation
Correct answer: C. Use AWS Network Manager Route Analyzer to analyze routes in the transit gateway route tables. Verify that the VPC route tables are correct. Use VPC flow logs to analyze the IP traffic that security group rules and network ACL rules accept or reject in the VPC.
AWS Network Manager Route Analyzer is specifically designed to analyze routes in transit gateway route tables for inter-region connectivity issues. VPC route tables must also be verified to ensure correct local routing. VPC Flow Logs are the appropriate tool to analyze whether security groups and NACLs are accepting or rejecting traffic. Firewall Manager is for centralized policy management, not traffic analysis, and VPC Reachability Analyzer is for endpoint reachability, not transit gateway route analysis.
Why the other options are wrong
- A. VPC Flow Logs are correct but Firewall Manager is not the right tool for analyzing traffic acceptance/rejection at the security group and NACL level.
- B. AWS Firewall Manager is for managing firewall policies across accounts, not for analyzing individual traffic flows.
- D. VPC Reachability Analyzer analyzes path connectivity but cannot analyze transit gateway route tables specifically.
Question 59
A company uses a hybrid architecture and has an AWS Direct Connect connection between its on-premises data center and AWS. The company has production applications that run in the on-premises data center. The company also has production applications that run in a VPC. The applications that run in the on-premises data center need to communicate with the applications that run in the VPC. The company is using corp.example.com as the domain name for the on-premises resources and is using an Amazon Route 53 private hosted zone for aws.example.com to host the VPC resources.
The company is using an open-source recursive DNS resolver in a VPC subnet and is using a DNS resolver in the on-premises data center. The company's on-premises DNS resolver has a forwarder that directs requests for the aws.example.com domain name to the DNS resolver in the VPC. The DNS resolver in the VPC has a forwarder that directs requests for the corp.example.com domain name to the DNS resolver in the on-premises data center. The company has deckled to replace the open-source recursive DNS resolver with Amazon Route 53 Resolver endpoints.
Which combination of steps should a network engineer take to make this replacement? (Choose three.)
Show answer and explanation
Correct answer: B, C, E. Configure the on-premises DNS resolver to forward aws.example.com domain queries to the IP addresses of the inbound endpoint; Create a Route 53 Resolver inbound endpoint and a Route 53 Resolver outbound endpoint; Create a Route 53 Resolver rule to forward corp.example.com domain queries to the IP address of the on-premises DNS resolver.
To replace the open-source resolver with Route 53 Resolver endpoints: Create inbound and outbound endpoints (C), configure the on-premises DNS resolver to forward aws.example.com queries to the inbound endpoint (B), and create a Route 53 Resolver rule to forward corp.example.com queries to the on-premises DNS resolver (E). This setup enables bidirectional DNS resolution between on-premises (corp.example.com) and AWS (aws.example.com) resources.
Why the other options are wrong
- A. Forwarding aws.example.com to an outbound endpoint is incorrect; the outbound endpoint is for VPC queries to on-premises, not for on-premises queries to AWS.
- D. The Route 53 Resolver rule for aws.example.com should forward to the on-premises resolver through the outbound endpoint, not to the inbound endpoint.
- F. On-premises DNS should forward to the inbound endpoint, not the outbound endpoint; outbound endpoints are for egress from VPCs.
Question 60
A global company runs business applications in the us-east-1 Region inside a VPC. One of the company's regional offices in London uses a virtual private gateway for an AWS Site-to-Site VPN connection tom the VPC. The company has configured a transit gateway and has set up peering between the VPC and other VPCs that various departments in the company use.
Employees at the London office are experiencing latency issues when they connect to the business applications.
What should a network engineer do to reduce this latency?
Show answer and explanation
Correct answer: A. Create a new Site-to-Site VPN connection. Set the transit gateway as the target gateway. Enable acceleration on the new Site-to-Site VPN connection. Update the VPN device in the London office with the new connection details.
Creating a new Site-to-Site VPN connection with the transit gateway as the target (instead of the virtual private gateway) and enabling VPN acceleration reduces latency for London office users. Acceleration routes traffic through AWS edge locations for improved performance. The existing virtual private gateway connection should be replaced with this new optimized connection.
Why the other options are wrong
- B. While modifying to use the transit gateway is correct, the existing connection cannot be directly modified to enable acceleration; a new connection must be created.
- C. Creating a transit gateway in London and peering adds complexity and cost without providing the latency optimization that VPN acceleration offers.
- D. Global Accelerator is designed for application endpoints, not for VPN connections, and would not effectively optimize Site-to-Site VPN performance.
Question 61
A network engineer needs to deploy an AWS Network Firewall firewall into an existing AWS environment. The environment consists of the following:
• A transit gateway with all VPCs attached to it
• Several hundred application VPCs
• A centralized egress internet VPC with a NAT gateway and an internet gateway
• A centralized ingress internet VPC that hosts public Application Load Balancers
• On-premises connectivity through an AWS Direct Connect gateway attachment
The application VPCs have workloads deployed across multiple Availability Zones in private subnets with the VPC route table s default route (0.0.0.0/0) pointing to the transit gateway. The Network Firewall firewall needs to inspect east-west (VPC-to-VPC) traffic and north-south (internet-bound and on-premises network) traffic by using Suricata compatible rules.
The network engineer must deploy the firewall by using a solution that requires the least possible architectural changes to the existing production environment.
Which combination of steps should the network engineer take to meet these requirements? (Choose three.)
Show answer and explanation
Correct answer: B, C, F. Deploy Network Firewall in all Availability Zones in a centralized inspection VPC; Update the HOME_NET rule group variable to include all CIDR ranges of the VPCs and on-premises networks; Configure two transit gateway route tables. Associate all application VPCs with one transit gateway route table. Associate the centralized inspection VPC with the other transit gateway route table.
The correct approach deploys Network Firewall in a centralized inspection VPC (B) to minimize architectural changes to existing application VPCs. HOME_NET should be updated to include application and on-premises CIDR ranges (C) so Suricata rules properly identify internal traffic. Two separate transit gateway route tables (F) are required: one for application VPCs and one for the inspection VPC, enabling routing of all traffic through the firewall while maintaining least-change architecture. This setup inspects both east-west and north-south traffic efficiently.
Why the other options are wrong
- A. Deploying Network Firewall in every application VPC would require significant architectural changes to every VPC and duplicates inspection logic unnecessarily.
- D. EXTERNAL_NET should contain public internet ranges, not VPC and on-premises CIDR ranges; HOME_NET should be updated instead to properly define the inspection scope.
- E. Using a single transit gateway route table would not properly route traffic through the inspection VPC; separate route tables ensure traffic flows through the firewall.
Question 62
A company has deployed Amazon EC2 instances in private subnets in a VPC. The EC2 instances must initiate any requests that leave the VPC, including requests to the company's on-premises data center over an AWS Direct Connect connection. No resources outside the VPC can be allowed to open communications directly to the EC2 instances.
The on-premises data center's customer gateway is configured with a stateful firewall device that filters for incoming and outgoing requests to and from multiple VPCs. In addition, the company wants to use a single IP match rule to allow all the communications from the EC2 instances to its data center from a single IP address.
Which solution will meet these requirements with the LEAST amount of operational overhead?
Show answer and explanation
Correct answer: C. Deploy a NAT gateway into a private subnet in the VPC where the EC2 instances are deployed. Specify the NAT gateway type as private. Configure the on-premises firewall to allow connections from the IP address that is assigned to the NAT gateway.
A private NAT gateway provides a single IP address for all outbound communications from EC2 instances to the data center, requiring only one firewall rule. It maintains stateful connections (allowing only EC2-initiated traffic) while operating in a private subnet, meeting all requirements with minimal operational overhead. Private NAT gateways are fully managed AWS services requiring no instance management.
Why the other options are wrong
- A. VPN over Direct Connect adds unnecessary complexity and doesn't provide the single-IP requirement for firewall rules.
- B. Relying on firewall stateful inspection alone requires complex rules and doesn't provide the single-source-IP requirement.
- D. NAT instances require manual configuration, patching, and management, creating higher operational overhead than the managed private NAT gateway service.
Question 63
A company has been using an outdated application layer protocol for communication among applications. The company decides not to use this protocol anymore and must migrate all applications to support a new protocol. The old protocol and the new protocol are TCP-based, but the protocols use different port numbers.
After several months of work, the company has migrated dozens of applications that run on Amazon EC2 instances and in containers. The company believes that all the applications have been migrated, but the company wants to verify this belief. A network engineer needs to verify that no application is still using the old protocol.
Which solution will meet these requirements without causing any downtime?
Show answer and explanation
Correct answer: C. Configure VPC flow logs to be delivered into an Amazon S3 bucket. Use Amazon Athena to query the data and to filter for the port number that is used by the old protocol.
VPC Flow Logs capture network traffic metadata including source/destination ports, allowing verification of which resources are still communicating on the old protocol port without requiring access to application logs or causing disruption. Amazon Athena provides SQL querying capabilities to filter and analyze the flow logs for the specific old protocol port number. This approach causes zero downtime while providing definitive evidence of any remaining old protocol usage.
Why the other options are wrong
- A. Amazon Inspector's Network Reachability rules package identifies reachable ports but doesn't verify actual traffic patterns or usage.
- B. GuardDuty is designed for threat detection, not protocol migration verification; filtering by port alone creates false positives from ephemeral ports and is not reliable.
- D. Removing ports from security groups could break still-migrating applications and causes downtime; this is a destructive verification method.
Question 64
A network engineer must provide additional safeguards to protect encrypted data at Application Load Balancers (ALBs) through the use of a unique random session key.
What should the network engineer do to meet this requirement?
Show answer and explanation
Correct answer: D. Change the ALB security policy to a policy that supports forward secrecy (FS)
Forward secrecy (FS) ensures that session keys are unique and ephemeral, so compromise of the long-term key does not expose past sessions. ALB security policies that support forward secrecy use cipher suites with ephemeral key exchange (ECDHE, DHE). Changing the ALB security policy to one supporting FS provides this protection at the TLS level without additional configuration or external services.
Why the other options are wrong
- A. TLS 1.2 alone does not guarantee forward secrecy; the cipher suite selection within the security policy determines FS support.
- B. AWS KMS encrypts data at rest, not TLS session keys, and does not provide forward secrecy properties.
- C. AWS WAF cannot enforce forward secrecy; this is a TLS cipher suite property managed at the ALB security policy level, not a WAF rule concern.
Question 65
A company is migrating an application from on premises to AWS. The company will host the application on Amazon EC2 instances that are deployed in a single VPC. During the migration period, DNS queries from the EC2 instances must be able to resolve names of on-premises servers.
The migration is expected to take 3 months After the 3-month migration period, the resolution of on-premises servers will no longer be needed.
What should a network engineer do to meet these requirements with the LEAST amount of configuration?
Show answer and explanation
Correct answer: A. Set up an AWS Site-to-Site VPN connection between on premises and AWS. Deploy an Amazon Route 53 Resolver outbound endpoint in the Region that is hosting the VPC.
The requirement is to enable EC2 instances to resolve on-premises server names during a temporary 3-month migration period with minimal configuration. A Site-to-Site VPN provides network connectivity between AWS and on-premises, and a Route 53 Resolver outbound endpoint allows EC2 instances to forward DNS queries to on-premises DNS servers. This is the simplest solution requiring only two components and no inbound endpoint (which would serve on-premises clients querying Route 53, not needed here).
Why the other options are wrong
- B. Direct Connect is more expensive and complex to set up than Site-to-Site VPN for a temporary 3-month requirement; it also unnecessarily includes an inbound endpoint.
- C. Client VPN is designed for individual user access, not server-to-server DNS resolution across application infrastructure.
- D. Direct Connect with public VIF exposes DNS to the internet and is overly complex; a public VIF is not appropriate for private DNS resolution.
Question 66
A company has an AWS Direct Connect connection between its on-premises data center in the United States (US) and workloads in the us-east-1 Region. The connection uses a transit VIF to connect the data center to a transit gateway in us-east-1.
The company is opening a new office in Europe with a new on-premises data center in England. A Direct Connect connection will connect the new data center with some workloads that are running in a single VPC in the eu-west-2 Region. The company needs to connect the US data center and us-east-1 with the Europe data center and eu-west-2. A network engineer must establish full connectivity between the data centers and Regions with the lowest possible latency.
How should the network engineer design the network architecture to meet these requirements?
Show answer and explanation
Correct answer: B. Connect the VPC in eu-west-2 to a new transit gateway. Connect the Europe data center to the new transit gateway by using a Direct Connect gateway and a new transit VIF. Associate the transit gateway in us-east-1 with the same Direct Connect gateway. Enable SiteLink for both transit VIFs. Peer the two transit gateways.
Option B provides the lowest latency multi-region connectivity by using a single Direct Connect gateway with both transit gateways associated to it. Both US and Europe data centers connect via their respective transit VIFs to this single gateway, enabling direct data center-to-data center communication. SiteLink enables on-premises data centers to communicate directly without routing through AWS regions. The two transit gateways are peered to connect their respective VPCs, providing complete connectivity between all four components with optimal routing paths.
Why the other options are wrong
- A. This only creates connectivity between one data center pair and one VPC without establishing the necessary connection between the Europe data center and eu-west-2 VPC.
- C. Creating two separate Direct Connect gateways prevents direct data center-to-data center communication and adds unnecessary complexity and latency.
- D. This uses a private VIF instead of a transit VIF for the Europe connection, preventing proper integration with the transit gateway model and limiting multi-region connectivity.
Question 67
A company has business operations in the United States and in Europe. The company's public applications are running on AWS and use three transit gateways. The transit gateways are located in the us-west-2, us-east-1, and eu-central-1 Regions. All the transit gateways are connected to each other in a full mesh configuration.
The company accidentally removes the route to the eu-central-1 VPCs from the us-west-2 transit gateway route table. The company also accidentally removes the route to the us-west-2 VPCs from the eu-central-1 transit gateway route table.
How can a network engineer identify the misconfiguration with the LEAST operational overhead?
Show answer and explanation
Correct answer: A. Use the Route Analyzer feature for AWS Transit Gateway Network Manager.
The Route Analyzer feature in AWS Transit Gateway Network Manager is specifically designed to analyze connectivity and route configurations across transit gateways with minimal operational overhead. It provides visual diagnostics of routing issues and can quickly identify missing routes between regions. This is the native AWS tool built for exactly this scenario, requiring no manual log analysis or packet capture setup.
Why the other options are wrong
- B. Systems Manager automation runbooks with CloudWatch Logs analysis requires manual setup and log parsing, introducing significant operational overhead.
- C. VPC flow logs require collection, filtering, and manual analysis to identify missing routes; they don't directly reveal routing table misconfigurations.
- D. Traffic Mirroring captures packets at scale but requires packet analysis expertise and doesn't directly identify route table issues; it's overly complex for this scenario.
Question 68
Show the case study this question is based on
A company operates its IT services through a multi-site hybrid infrastructure. The company deploys resources on AWS in the us-east-1 Region and in the eu-west-2 Region. The company also deploys resources in its own data centers that are located in the United States (US) and in the United Kingdom (UK). In both AWS Regions, the company uses a transit gateway to connect 15 VPCs to each other. The company has created a transit gateway peering connection between the two transit gateways. The VPC CIDR blocks do not overlap with each other or with IP addresses used within the data centers. The VPC CIDR prefixes can also be aggregated either on a Regional level or for the company's entire AWS environment.
The data centers are connected to each other by a private WAN connection. IP routing information is exchanged dynamically through Interior BGP (iBGP) sessions. The data centers maintain connectivity to AWS through one AWS Direct Connect connection in the US and one Direct Connect connection in the UK. Each Direct Connect connection is terminated on a Direct Connect gateway and is associated with a local transit gateway through a transit VIF.
Traffic follows the shortest geographical path from source to destination. For example, packets from the UK data center that are targeted to resources in eu-west-2 travel across the local Direct Connect connection. In cases of cross-Region data transfers, such as from the UK data center to VPCs in us-east-1, the private WAN connection must be used to minimize costs on AWS. A network engineer has configured each transit gateway association on the Direct Connect gateway to advertise VPC-specific CIDR IP prefixes only from the local Region. The routes toward the other Region must be learned through BGP from the routers in the other data center in the original, non-aggregated form.
The company recently experienced a problem with cross-Region data transfers because of issues with its private WAN connection. The network engineer needs to modify the routing setup to prevent similar interruptions in the future. The solution cannot modify the original traffic routing goal when the network is operating normally.
Which modifications will meet these requirements? (Choose two.)
Show answer and explanation
Correct answer: C, E. Add the aggregate IP prefix for the other Region and the local VPC CIDR blocks to the list of subnets advertised through the local Direct Connect connection; Remove all the VPC CIDR prefixes from the list of subnets advertised through the local Direct Connect connection. Add both Regional aggregate IP prefixes to the list of subnets advertised through the Direct Connect connection on both sides of the network. Configure data center routers to make routing decisions based on the BGP communities received.
Option C provides failover by advertising the other region's aggregate prefix from the local Direct Connect connection, enabling traffic to reroute through the local connection if the WAN fails, while preserving normal shortest-path routing. Option E goes further by advertising both regional aggregates from both sides with BGP communities for granular routing control, enabling sophisticated failover policies without changing normal operations. Both solutions prevent WAN dependency for cross-region traffic while maintaining the original routing goals.
Why the other options are wrong
- A. Advertising the entire AWS environment aggregate would break the requirement to use the private WAN for cross-region transfers during normal operations.
- B. Advertising non-aggregated prefixes defeats the design goal of using aggregation and creates unnecessary routing complexity.
- D. Advertising the entire environment aggregate would direct all traffic through local Direct Connect instead of the private WAN, violating the original traffic goals.
Question 69
A company's application is deployed on Amazon EC2 instances in a single VPC in an AWS Region. The EC2 instances are running in two Availability Zones. The company decides to use a fleet of traffic inspection instances from AWS Marketplace to inspect traffic between the VPC and the internet. The company is performing tests before the company deploys the architecture into production.
The fleet is located in a shared inspection VPC behind a Gateway Load Balancer (GWLB). To minimize the cost of the solution, the company deployed only one inspection instance in each Availability Zone that the application uses.
During tests, a network engineer notices that traffic inspection works as expected when the network is stable. However, during maintenance of the inspection instances, the internet sessions time out for some application instances. The application instances are not able to establish new sessions.
Which combination of steps will remediate these issues? (Choose two.)
Show answer and explanation
Correct answer: B, C. Deploy one additional inspection instance in each Availability Zone where the inspection instances are deployed; Enable the cross-zone load balancing attribute for the GWLB.
To address session timeouts during maintenance, two changes are needed: deploying additional inspection instances in each AZ (B) ensures sufficient capacity when maintenance occurs on existing instances, and enabling cross-zone load balancing (C) allows GWLB to distribute traffic to healthy instances in other AZs when an instance becomes unavailable. Together, these provide both capacity redundancy and geographic resilience.
Why the other options are wrong
- A. Deploying instances in unused AZs doesn't help if the application traffic is only in two AZs; it adds cost without solving the availability issue.
- D. Auto Scaling groups based on CPU load don't help during planned maintenance when an instance is deliberately removed; scaling is also reactive, not proactive.
- E. Attaching GWLB to all AZs in the Region is unnecessary and adds cost if the application only runs in two AZs.
Question 70
A company has deployed a multi-VPC environment in the AWS Cloud. The company uses a transit gateway to connect all the VPCs together. In the past, the company has experienced a loss of connectivity between applications after changes to security groups, network ACLs, and route tables in a VPC.
When these changes occur, the company wants to automatically verify that connectivity still exists between different resources in a single VPC.
Show answer and explanation
Correct answer: B. Create a list of paths between different resources to check in VPC Reachability Analyzer. Create an Amazon EventBridge rule to monitor when a change is made and logged in AWS. CloudTrail. Configure the rule to invoke an AWS Lambda function to test the different paths in Reachability Analyzer.
VPC Reachability Analyzer is the correct tool for testing connectivity paths within a single VPC and identifying blocked routes or security group issues. EventBridge should monitor CloudTrail events (not CloudWatch) since CloudTrail logs infrastructure changes like security group and route table modifications. When CloudTrail logs a configuration change, EventBridge triggers a Lambda function to run Reachability Analyzer tests on the predefined paths, automatically verifying connectivity after changes with minimal operational overhead.
Why the other options are wrong
- A. Monitoring CloudWatch instead of CloudTrail will not capture infrastructure change events; CloudTrail is the proper source for API-level change monitoring.
- C. Transit Gateway Network Manager Route Analyzer is designed for multi-VPC and hybrid network analysis, not for connectivity verification within a single VPC; Reachability Analyzer is the correct tool.
- D. While CloudTrail is correct, Route Analyzer is designed for transit gateway and multi-VPC scenarios, not for intra-VPC connectivity verification.
Question 71
A company is growing rapidly. Data transfers between the company's on-premises systems and Amazon EC2 instances that run in VPCs are limited by the throughput of a single AWS Site-to-Site VPN connection between the company's on-premises data center firewall and an AWS Transit Gateway.
A network engineer must resolve the throttling by designing a solution that is highly available and secure. The solution also must scale the VPN throughput from on premises to the VPC resources to support the increase in traffic.
Which solution will meet these requirements?
Show answer and explanation
Correct answer: A. Configure multiple dynamic BGP-based Site-to-Site VPN connections to the transit gateway. Configure equal-cost multi-path routing (ECMP).
Multiple dynamic BGP-based Site-to-Site VPN connections enable automatic route propagation and failover, while ECMP distributes traffic across multiple tunnels to increase throughput. BGP automatically adapts to topology changes, providing high availability and scalability. This is the AWS-recommended approach for scaling VPN throughput while maintaining redundancy and security.
Why the other options are wrong
- B. Static routing requires manual configuration and cannot automatically adapt to changes, making it less suitable for highly available designs.
- C. VPN acceleration does not exist as a native feature; enabling acceleration on a single connection does not address the throughput bottleneck.
- D. Software appliances lack the native AWS integration, managed redundancy, and automatic failover capabilities that transit gateway provides.
Question 72
A company is migrating applications from a data center to AWS. Many of the applications will need to exchange data with the company's on-premises mainframe.
The company needs to achieve 4 Gbps transfer speeds to meet peak traffic demands. A network engineer must design a highly available solution that maximizes resiliency. The solution must be able to withstand the loss of circuits or routers.
Which solution will meet these requirements?
Show answer and explanation
Correct answer: A. Order four 10 Gbps AWS Direct Connect connections that are evenly spread over two locations. Terminate one connection from each Direct Connect location to a router at the company location. Terminate the other connection from each Direct Connect location to a different router at the company location.
Four 10 Gbps Direct Connect connections spread across two locations provide 40 Gbps total capacity, far exceeding the 4 Gbps requirement. Terminating connections from each location to different routers (two connections per location, each to a different router) ensures resilience against single router or circuit failures. This topology provides geographic diversity, circuit redundancy, and equipment redundancy.
Why the other options are wrong
- B. Two 10 Gbps connections provide only 20 Gbps total capacity, which exceeds the 4 Gbps need but lacks sufficient redundancy; loss of one connection or router impacts availability.
- C. Four 1 Gbps connections provide only 4 Gbps total capacity with no headroom for peak demand or maintenance; any circuit or router loss degrades performance below requirements.
- D. Two 1 Gbps connections provide only 2 Gbps total capacity, insufficient for the 4 Gbps peak traffic requirement.
Question 73
A company’s network engineer builds and tests network designs for VPCs in a development account. The company needs to monitor the changes that are made to network resources and must ensure strict compliance with network security policies. The company also needs access to the historical configurations of network resources.
Which solution will meet these requirements?
Show answer and explanation
Correct answer: C. Record the current state of network resources by using AWS Config. Create rules that reflect the desired configuration settings. Set remediation for noncompliant resources.
AWS Config continuously records the state of network resources, maintains a configuration history, and allows creation of custom rules to evaluate compliance against desired settings. This directly meets the requirements for monitoring changes, ensuring compliance with security policies, and maintaining historical configurations. Config provides built-in remediation capabilities for noncompliant resources.
Why the other options are wrong
- A. EventBridge with custom Lambda functions lacks the built-in historical tracking and compliance evaluation features that Config provides, and manual DynamoDB updates are less robust.
- B. CloudWatch metrics and Lambda functions do not provide the configuration history and compliance evaluation capabilities needed for strict policy enforcement.
- D. Systems Manager Inventory and State Manager are designed for fleet management and operational compliance, not for AWS resource configuration tracking and compliance monitoring like Config.
Question 74
A company recently started using AWS Client VPN to give its remote users the ability to access resources in multiple peered VPCs and resources in the company's on-premises data center. The Client VPN endpoint route table has a single entry of 0.0.0.0/0. The
Client VPN endpoint is using a new security group that has no inbound rules and a single outbound rule that allows all traffic to 0.0.0.0/0.
Multiple remote users report that web search results are showing incorrect geographic location information for the users.
Which combination of steps should a network engineer take to resolve this issue with the LEAST amount of service interruption? (Choose three.)
Show answer and explanation
Correct answer: B, C, F. Enable the split-tunnel option on the Client VPN endpoint; Add routes for the peered VPCs and for the on-premises data center to the Client VPN route table; Remove the 0.0.0.0/0 entry from the Client VPN endpoint route table.
The incorrect geolocation results from all traffic, including internet searches, being tunneled through the VPN, masking the user's actual location. The solution is to enable split tunneling (B) so non-corporate traffic uses the user's local internet, add specific routes for corporate resources (C) so only those use the VPN, and remove the blanket 0.0.0.0/0 route (F) from the Client VPN endpoint to prevent all traffic from being forced through the tunnel. This restores geolocation accuracy for public internet traffic while maintaining secure access to company resources.
Why the other options are wrong
- A. Switching to Site-to-Site VPN is unnecessary and more disruptive than adjusting Client VPN configuration.
- D. Removing outbound rules from the security group would break VPN functionality; this is not the cause of the geolocation issue.
- E. Recreating the endpoint in a different VPC introduces significant service interruption and does not address the root cause.
Question 75
A company deploys an internal website behind an Application Load Balancer (ALB) in a VPC. The VPC has a CIDR block of 172.31.0.0/16. The company creates a private hosted zone for the domain example.com for the website in Amazon Route 53. The company establishes an AWS Site-to-Site VPN connection between its office network and the VPC.
A network engineer needs to set up a DNS solution so that employees can visit the internal webpage by accessing a private domain URL (https://example.com) from the office network.
Which combination of steps will meet this requirement? (Choose two.)
Show answer and explanation
Correct answer: A, C. Create an alias record that points to the ALB in the Route 53 private hosted zone; Create a Route 53 Resolver inbound endpoint. On the office DNS server, configure a conditional forwarder to forward the DNS queries to the Route 53 Resolver inbound endpoint.
An alias record in Route 53 private hosted zone points to the ALB, allowing internal resolution within AWS. A Route 53 Resolver inbound endpoint accepts DNS queries from the on-premises network via the Site-to-Site VPN. Configuring a conditional forwarder on the office DNS server to forward example.com queries to the inbound endpoint enables on-premises employees to resolve the private domain. Together, these create seamless DNS resolution across the hybrid network.
Why the other options are wrong
- B. CNAME records cannot be used for the zone apex or when an alias record is available; alias records are the preferred solution for AWS resources.
- D. Outbound endpoints are for forwarding queries from AWS to on-premises DNS, not for accepting on-premises queries; this is the wrong direction.
- E. Hardcoding the VPC DNS IP (172.31.0.2) is less flexible and doesn't scale; Resolver endpoints provide proper DNS integration and management.
Question 76
A company is deploying AWS Cloud WAN with edge locations in the us-east-1 Region and the ap-southeast-2 Region. Individual AWS Cloud WAN segments are configured for the development environment, the production environment, and the shared services environment at each edge location. Many new VPCs will be deployed for the environments and will be configured as attachments to the AWS Cloud WAN core network.
The company's network team wants to ensure that VPC attachments are configured for the correct segment. The network team will tag the VPC attachments by using the Environment key with a value of the corresponding environment segment name. The segment for the production environment in us-east-1 must require acceptance for attachment requests. All other attachment requests must not require acceptance.
Which solution will meet these requirements?
Show answer and explanation
Correct answer: B. Create a rule with a number of 100 that requires acceptance for attachments to the production segment. In the rule, set the condition logic to the "and" value. Include conditions that require a tag:Environment value of Production and a Region value of us-east-1. Create a rule with a number of 200 that does not require acceptance to map any tag.Environment values to their respective segments.
Rule processing follows numerical order, with lower numbers evaluated first. Rule 100 must require acceptance specifically for Production environment attachments in us-east-1 using AND logic (both conditions must be true). Rule 200 uses lower precedence and allows all other attachments without acceptance. The AND condition ensures only Production attachments in us-east-1 require approval; Production in ap-southeast-2 and other environments don't require acceptance.
Why the other options are wrong
- A. Using OR logic incorrectly catches all Production attachments regardless of region and all us-east-1 attachments regardless of environment, resulting in excessive acceptance requirements.
- C. Rule 100 processing non-production attachments first bypasses the acceptance requirement rule; rules are evaluated top-to-bottom by number, so acceptance rules must come first.
- D. Using OR logic combined with rule ordering places the catch-all first, preventing the acceptance requirement rule from ever being reached.
That was 76 of 306.
The full AWS ANS-C01 pack has all 306 questions, each with the answer, the explanation and why the other options are wrong, plus a questions-only copy for timed runs. US$39, paid once, with free monthly updates and a pass-or-your-money-back guarantee.
Not ready yet? Get the first 148 free as one PDF by email. Get the Half Pack →
