Skip to main content

Last updated: May 2026

Practice Exam

ANS-C01AWS Certified Advanced Networking – Specialty

Test your knowledge with official exam-style questions

Questions25Passing750Exam time

Questions and options are shuffled each attempt

AWS Certified Advanced Networking – SpecialtyPractice Set 1: All Questions & Explanations

Full question text, answer options, and explanations for this practice set — a spoiler-free alternative is the interactive quiz above for scored, shuffled practice.

  1. . A network engineer is designing the VPC architecture for a new AWS workload. The application requires 500 EC2 instances in a single Availability Zone with room to scale to 1,000 instances. The organization also needs 50 addresses reserved for internal load balancers and NAT infrastructure. The network must be a contiguous IPv4 CIDR block. Which VPC CIDR block MOST efficiently meets these requirements while minimizing wasted address space?

    • A. Create a VPC with CIDR block 10.0.0.0/20, which provides 4,096 addresses with sufficient space for 1,000 instances and infrastructure
    • B. Create a VPC with CIDR block 10.0.0.0/22, which provides 1,024 addresses, accommodating 1,000 instances and 50 reserved addresses with minimal waste(correct)
    • C. Create a VPC with CIDR block 10.0.0.0/16, which provides 65,536 addresses to ensure maximum future scalability
    • D. Create a VPC with CIDR block 10.0.0.0/24, which provides 256 addresses sufficient for the immediate 500-instance requirement

    Explanation: A /22 CIDR provides 1,024 addresses. AWS reserves 5 addresses per subnet, but at the VPC level this is sufficient for 1,000 instances plus 50 infrastructure addresses (1,050 total) with minimal waste of ~974 usable addresses. A /20 provides 4,096 addresses — functional but wastes over 3,000 addresses unnecessarily. A /16 with 65,536 addresses is massively over-provisioned for 1,000 instances and wastes address space that could be used for other VPCs in the organization. A /24 with 256 addresses cannot accommodate 500 instances even at the initial scale requirement.

  2. . A network engineer is designing connectivity for a company with 40 Amazon VPCs spread across 4 AWS Regions. Each VPC needs full mesh connectivity with all other VPCs in the same Region and selective connectivity to VPCs in other Regions. The company expects to add 20 new VPCs over the next year. The architecture must minimize configuration complexity and operational overhead. Which connectivity architecture BEST meets these requirements?

    • A. Establish VPC peering connections between all VPCs within each Region, creating a full mesh of peering connections, and use additional VPC peering connections for inter-Region connectivity
    • B. Deploy an AWS Transit Gateway in each Region, attach all regional VPCs to the regional Transit Gateway, and establish AWS Transit Gateway peering connections between the regional Transit Gateways for inter-Region connectivity(correct)
    • C. Deploy a transit VPC in each Region using EC2-based VPN appliances, connect all VPCs to the transit VPC using VPN connections, and use AWS Direct Connect to connect the transit VPCs across Regions
    • D. Use AWS Cloud WAN to define a global network policy that automatically manages connectivity between all VPCs and Regions through a central dashboard

    Explanation: AWS Transit Gateway in each Region acts as a hub for all VPC attachments, eliminating the O(n²) peering connection explosion of full mesh VPC peering — adding a new VPC requires only one Transit Gateway attachment. Inter-Region connectivity via Transit Gateway peering provides selective cross-Region paths. Full mesh VPC peering (option A) requires 40×39/2 = 780 peering connections for the current VPCs and is non-transitive, meaning routing updates are required for every new VPC pair. A transit VPC using EC2 appliances (option C) introduces operational overhead of managing EC2 instances, patching, and high-availability configurations. AWS Cloud WAN is a valid modern approach but is a higher-level abstraction that itself uses Transit Gateways; for direct architectural control, Transit Gateway peering is the more foundational and examination-expected answer.

  3. . A network engineer is designing a hybrid connectivity architecture for a financial services company. The company requires a dedicated 10 Gbps connection from its on-premises data center to AWS with failover to a backup path. The primary path must provide deterministic latency under 5 ms to an AWS Direct Connect location 30 miles from the data center. The backup path must activate automatically in under 60 seconds if the primary fails. Which architecture MOST reliably meets all requirements?

    • A. Provision a single AWS Direct Connect connection at 10 Gbps with an AWS Direct Connect SLA of 99.9%, and configure Amazon CloudWatch alarms to trigger a failover Lambda function if the connection drops
    • B. Provision two AWS Direct Connect connections at 10 Gbps each from two different AWS Direct Connect locations connected through a Link Aggregation Group (LAG), using both connections simultaneously for load balancing and failover
    • C. Provision a primary AWS Direct Connect connection at 10 Gbps for the deterministic latency requirement, and configure an AWS Site-to-Site VPN as a backup path terminating on the same AWS Direct Connect gateway with BGP failover routing
    • D. Provision two AWS Direct Connect dedicated connections at 10 Gbps from different Direct Connect locations, attach both to an AWS Direct Connect gateway, and use BGP with appropriate MED values to prefer the primary connection with automatic failover to the secondary(correct)

    Explanation: Two dedicated Direct Connect connections from different locations provides both the 10 Gbps deterministic latency requirement and genuine path redundancy at the physical layer — BGP MED values control primary/backup preference and BGP reconvergence happens within seconds (well under 60 seconds). A single Direct Connect with CloudWatch/Lambda failover (option A) has no redundant path — if the physical connection fails, the Lambda has nowhere to fail over to. A LAG (option B) bonds connections from the same location into a single logical link; if the Direct Connect location itself fails, both LAG members fail simultaneously. A Direct Connect + Site-to-Site VPN backup (option C) is a common architecture but VPN over the internet cannot guarantee the 5 ms deterministic latency requirement for the backup path, and the 60-second failover SLA is borderline for BGP + IKE negotiation times.

  4. . A network engineer is designing IP addressing for a large enterprise migrating to AWS. The company has existing on-premises networks using the 10.0.0.0/8 private address space and plans to connect 80 VPCs to the on-premises environment without NAT. The company needs to ensure no IP address overlaps across all VPCs and the on-premises network. The VPC address space will be allocated from 172.16.0.0/12. Each VPC needs at least 2,000 usable IP addresses. Which subnet size MOST efficiently allocates VPC CIDRs for 80 VPCs from 172.16.0.0/12?

    • A. Allocate each VPC a /21 CIDR block (2,048 addresses), which fits 512 VPCs within the 172.16.0.0/12 space and satisfies the 2,000 usable address requirement(correct)
    • B. Allocate each VPC a /24 CIDR block (256 addresses), which easily fits 80 VPCs but provides insufficient addresses for the 2,000 usable address requirement
    • C. Allocate each VPC a /16 CIDR block (65,536 addresses) to ensure maximum future scalability within the 172.16.0.0/12 space
    • D. Allocate each VPC a /20 CIDR block (4,096 addresses), which fits 256 VPCs within 172.16.0.0/12 and provides headroom beyond the 2,000 usable address requirement

    Explanation: A /21 provides 2,048 addresses, exceeding the 2,000 usable requirement (after AWS's 5-address reservation per subnet, actual usable is slightly less but workable with multiple subnets). The 172.16.0.0/12 space contains 1,048,576 addresses, which accommodates 512 /21 blocks — more than sufficient for 80 VPCs with room for growth. A /24 with 256 addresses cannot meet the 2,000-address requirement. A /16 with 65,536 addresses is 32x over-provisioned; 80 /16 blocks would exhaust only part of the /12 space but wastes addresses unnecessarily when the requirement is only 2,000. A /20 with 4,096 addresses also works and fits 256 VPCs, but /21 is the MOST efficient fit for the stated 2,000-address requirement.

  5. . A network engineer is designing a multi-Region, multi-account AWS networking architecture for a global enterprise. The company requires centralized inspection of all inter-VPC traffic and all traffic egressing to the internet, using a third-party next-generation firewall. The architecture must scale to 200 VPCs across 3 Regions without reconfiguration of existing VPCs when new VPCs are added. Traffic must not bypass inspection under any circumstances. Which architecture MOST effectively meets all requirements?

    • A. In each Region, deploy AWS Network Firewall in a dedicated inspection VPC, connect all spoke VPCs to an AWS Transit Gateway, and configure Transit Gateway route tables to send all traffic through the inspection VPC before forwarding to the destination or internet
    • B. Deploy a third-party firewall appliance on an EC2 instance in each spoke VPC, configure VPC route tables to route all outbound traffic through the local firewall instance, and use AWS Transit Gateway for inter-VPC routing after inspection
    • C. Use AWS Gateway Load Balancer in a centralized inspection VPC to distribute traffic across a fleet of third-party firewall appliances, integrate it with AWS Transit Gateway using Gateway Load Balancer endpoints in each spoke VPC, and configure Transit Gateway route tables to enforce traffic through the inspection path(correct)
    • D. Configure AWS Network Firewall policies in each VPC individually, use AWS Firewall Manager to distribute consistent policies across all accounts and VPCs, and route egress traffic through NAT gateways in each VPC

    Explanation: AWS Gateway Load Balancer (GWLB) is specifically designed for centralized third-party network appliance inspection at scale: it transparently intercepts traffic using GENEVE encapsulation, distributes it across a scalable fleet of firewall appliances, and returns it to the original path. GWLB endpoints in each spoke VPC redirect traffic to the central inspection VPC without requiring changes to application VPC route tables when new VPCs are added to the Transit Gateway. AWS Network Firewall (option A) is an AWS-managed service, not a third-party firewall — the requirement specifically calls for third-party appliances. Deploying a firewall in each spoke VPC (option B) defeats the centralization requirement and requires per-VPC management of appliances. Per-VPC AWS Network Firewall policies (option D) again use an AWS-managed service, not third-party appliances, and do not use centralized inspection.

  6. . A network engineer is designing BGP routing for a company with AWS Direct Connect and an on-premises network. The company has two AWS Direct Connect connections: a primary 10 Gbps connection through Direct Connect location A and a secondary 1 Gbps connection through Direct Connect location B. Traffic from on-premises to AWS must always prefer the primary 10 Gbps path. Traffic from AWS to on-premises must also prefer the primary path. The on-premises BGP router uses AS 65001 and the AWS side uses AS 7224. Which BGP configuration achieves BOTH directional path preferences?

    • A. On the primary connection, advertise on-premises prefixes with a shorter AS path and set Local Preference to 200 on the AWS side; on the secondary connection, advertise with AS path prepending (65001 65001 65001) and set Local Preference to 100
    • B. On the primary connection, advertise on-premises prefixes with no AS path prepending; on the secondary connection, prepend AS 65001 three times. On the AWS VGW side, set BGP communities to prefer the primary connection for outbound AWS-to-on-premises traffic(correct)
    • C. Set the MED (Multi-Exit Discriminator) attribute to 100 on the primary connection and 200 on the secondary connection so that AWS prefers the lower MED for outbound traffic, and configure on-premises Local Preference to prefer the primary inbound path
    • D. Advertise more specific (longer prefix) routes on the primary connection and less specific (shorter prefix) routes on the secondary connection so that both on-premises and AWS route tables prefer the more specific primary path

    Explanation: For traffic from on-premises to AWS (inbound to AWS): AS path prepending on the secondary connection makes the secondary path appear longer, causing the on-premises BGP router to prefer the primary shorter-AS-path route. For traffic from AWS to on-premises (outbound from AWS): AWS Direct Connect supports BGP communities that influence the Local Preference on the AWS side — using community tags on the primary prefix advertisements raises the effective preference for that path. Option A correctly uses Local Preference for the AWS side, but AWS customers cannot directly set Local Preference on the AWS VGW; the mechanism is BGP communities. MED (option C) only influences path selection between two connections to the SAME AS peer — it does not reliably work across different Direct Connect locations with different POP routers. Advertising more-specific routes (option D) changes routing for specific prefixes rather than setting path preference and could cause unexpected routing for other prefixes.

  7. . A network engineer is designing DNS architecture for a hybrid cloud environment. The company has an on-premises Active Directory DNS serving the domain corp.example.com. AWS workloads in multiple VPCs must be able to resolve both AWS Route 53 private hosted zones (aws.example.com) and on-premises hostnames (corp.example.com). On-premises clients must also be able to resolve the AWS private hosted zone names. The architecture must be fully redundant with no single point of failure. Which DNS architecture MOST effectively meets all requirements? (Choose TWO.)

    • A. Deploy Amazon Route 53 Resolver inbound endpoints in each VPC to allow on-premises DNS servers to forward aws.example.com queries to AWS
    • B. Deploy Amazon Route 53 Resolver outbound endpoints in a centralized DNS VPC and configure forwarding rules to send corp.example.com queries to on-premises DNS servers(correct)
    • C. Configure all VPCs to use the on-premises DNS server IP as the DHCP option set DNS server, and configure the on-premises DNS to forward aws.example.com queries to the Route 53 Resolver IP (169.254.169.253)
    • D. Create a Route 53 private hosted zone for corp.example.com that mirrors the on-premises zone with manual DNS record synchronization using AWS Lambda functions
    • E. Deploy Amazon Route 53 Resolver inbound endpoints in a centralized DNS VPC with at least two endpoints across two Availability Zones for redundancy, and share the resolver rules with all VPCs using AWS Resource Access Manager(correct)

    Explanation: Route 53 Resolver outbound endpoints (option B) enable AWS workloads to resolve on-premises corp.example.com names by forwarding queries to on-premises DNS servers — this is the AWS-recommended mechanism for hybrid DNS. Route 53 Resolver inbound endpoints (option E) placed in a centralized DNS VPC allow on-premises DNS servers to forward aws.example.com queries into AWS for resolution in private hosted zones; deploying across two Availability Zones eliminates single points of failure; sharing resolver rules via AWS Resource Access Manager extends the same DNS configuration to all VPCs without duplication. Option A describes inbound endpoints but at the individual VPC level, which creates management overhead at scale and is not as operationally efficient as centralized endpoints shared via RAM. Option C routes all DNS through on-premises servers, which creates an on-premises dependency for all AWS DNS and a single point of failure. Option D involves manual synchronization, which introduces risk of DNS record drift and operational complexity.

  8. . A network engineer is designing a content delivery architecture for a global media company. The company hosts video streaming content in Amazon S3 in us-east-1. Users are globally distributed with 60% in Asia-Pacific and 40% in Europe. The company needs to minimize video start latency and buffer events while keeping data transfer costs as low as possible. Origin shield must protect the origin from request spikes. Which architecture BEST meets these requirements?

    • A. Create an Amazon CloudFront distribution with the Amazon S3 bucket as the origin, enable CloudFront Origin Shield in us-east-1, and configure CloudFront price class PriceClass_All to use all edge locations globally(correct)
    • B. Create an Amazon CloudFront distribution with multiple Amazon S3 origins in each region using S3 Cross-Region Replication to serve regional users from the nearest S3 bucket
    • C. Use Amazon CloudFront with Lambda@Edge at viewer-request to dynamically redirect Asia-Pacific users to an Amazon S3 Transfer Acceleration endpoint
    • D. Deploy Amazon EC2 instances in ap-southeast-1 and eu-west-1 as streaming servers that pull content from S3 in us-east-1 and serve regional users, using Amazon Route 53 latency-based routing

    Explanation: Amazon CloudFront with Origin Shield provides an additional caching layer between edge locations and the origin, dramatically reducing origin requests during traffic spikes and improving cache hit ratios for video segments. PriceClass_All ensures all global CloudFront edge locations serve users in Asia-Pacific and Europe with minimum latency. Multiple origins with S3 replication (option B) increases complexity and replication costs without the CDN caching benefit — each user request would still potentially hit S3 rather than a CloudFront cache. Lambda@Edge redirecting to S3 Transfer Acceleration (option C) uses Transfer Acceleration for uploads to S3, not for CloudFront viewer delivery — this is the wrong service for content delivery optimization. EC2 streaming servers (option D) require significant operational overhead for patching, scaling, and high availability, and still need to fetch content from S3 without caching optimization.

  9. . A network engineer needs to implement VPC connectivity between a production VPC (10.1.0.0/16) and a database VPC (10.2.0.0/16) in the same AWS Region and same AWS account. The connection must be private (no traffic over the internet), have low latency, and EC2 instances in the production VPC must be able to initiate connections to database instances in the database VPC on port 5432. Which implementation MOST simply satisfies these requirements?

    • A. Create an AWS Site-to-Site VPN connection between the two VPCs using virtual private gateways in each VPC
    • B. Create a VPC peering connection between the production VPC and the database VPC, add route table entries in both VPCs pointing to the peer VPC CIDR via the peering connection, and update security groups to allow port 5432 from the production VPC CIDR(correct)
    • C. Deploy an AWS Transit Gateway and attach both VPCs to it, creating Transit Gateway route table entries to route traffic between the two VPCs
    • D. Create an AWS PrivateLink endpoint service in the database VPC exposing the database on port 5432, and create an interface VPC endpoint in the production VPC to access it

    Explanation: VPC peering is the simplest and most direct solution for two-VPC connectivity in the same Region: a single peering connection with route table entries in both VPCs enables low-latency private connectivity with no additional infrastructure. The CIDR ranges 10.1.0.0/16 and 10.2.0.0/16 do not overlap, so peering is technically feasible. Site-to-Site VPN between two VPCs is not supported — VPN connections are for hybrid on-premises-to-AWS connectivity. AWS Transit Gateway (option C) is architecturally correct but operationally heavier for a simple two-VPC scenario — it introduces a managed transit hub with associated costs and configuration not needed for just two VPCs. AWS PrivateLink (option D) works but requires deploying a Network Load Balancer as a service endpoint, adding cost and configuration complexity beyond what the simple two-VPC requirement needs.

  10. . A network engineer is implementing internet egress for a multi-VPC architecture. Multiple application VPCs contain private EC2 instances that need outbound internet access for software updates. To reduce costs, the company wants to centralize NAT gateways in a single egress VPC rather than deploying NAT gateways in each application VPC. All traffic must be inspected by a third-party firewall in the egress VPC before reaching the internet. Which implementation correctly routes traffic through the centralized egress architecture?

    • A. Attach all application VPCs and the egress VPC to an AWS Transit Gateway, configure a blackhole route for 0.0.0.0/0 in the application VPC Transit Gateway route table, and create a specific route for 0.0.0.0/0 pointing to the egress VPC attachment in the Transit Gateway route table
    • B. Attach all application VPCs and the egress VPC to an AWS Transit Gateway, configure 0.0.0.0/0 in the Transit Gateway route table to point to the egress VPC attachment, configure the egress VPC route table to route traffic through the firewall appliance then to the NAT gateway, and configure the NAT gateway route table with a default route to the internet gateway(correct)
    • C. Create VPC peering connections from each application VPC to the egress VPC, add a default route in each application VPC route table pointing to the VPC peering connection, and use the NAT gateway in the egress VPC for outbound traffic
    • D. Use AWS Direct Connect to route all application VPC internet traffic back to the on-premises data center for internet egress through the corporate proxy server

    Explanation: The centralized egress pattern with Transit Gateway routes 0.0.0.0/0 from application VPCs through the Transit Gateway to the egress VPC attachment. In the egress VPC, traffic hits the firewall appliance subnet first (via route table), is inspected, then forwarded to the NAT gateway subnet, which routes outbound traffic through the internet gateway. This creates the inspection chain: app VPC → TGW → firewall → NAT GW → internet. Option A configures a blackhole for 0.0.0.0/0 in the application VPC TGW route table, which would drop all internet traffic rather than route it. VPC peering (option C) is non-transitive — traffic from an application VPC cannot reach the NAT gateway in the egress VPC through peering because routing through a peered VPC to another resource is not supported. Routing internet traffic back through on-premises (option D) introduces massive backhaul bandwidth costs and latency.

  11. . A network engineer is implementing AWS Direct Connect for an enterprise customer. The customer has ordered a 10 Gbps hosted connection through an AWS Direct Connect partner and needs to connect 5 VPCs in the same AWS Region to the on-premises network. The customer wants to minimize the number of BGP sessions and virtual interfaces needed. Which implementation MOST efficiently connects all 5 VPCs through a single Direct Connect connection?

    • A. Create 5 private virtual interfaces (VIFs) on the Direct Connect connection, one for each VPC, and associate each VIF with the corresponding Virtual Private Gateway
    • B. Create a single transit virtual interface (VIF) on the Direct Connect connection, associate it with an AWS Direct Connect gateway, attach an AWS Transit Gateway to the Direct Connect gateway, and connect all 5 VPCs to the Transit Gateway(correct)
    • C. Create a public virtual interface (VIF) on the Direct Connect connection and use the public IP addresses of EC2 instances in each VPC to route traffic from on-premises over the public VIF
    • D. Create a single private virtual interface (VIF) on the Direct Connect connection, associate it with a Direct Connect gateway, and associate the Direct Connect gateway with all 5 Virtual Private Gateways

    Explanation: A transit VIF with a Direct Connect gateway and Transit Gateway is the most efficient architecture: one transit VIF and one BGP session handles all traffic, and the Transit Gateway provides connectivity to all 5 VPCs through their Transit Gateway attachments. This minimizes BGP sessions to a single session between the on-premises router and the Direct Connect gateway. Five private VIFs (option A) requires 5 BGP sessions and 5 VIFs — functional but the opposite of minimizing VIFs. Public VIF with public IPs (option C) routes traffic over the public internet addressing space even through Direct Connect, not through VPC private addressing — this is not the correct approach for private VPC connectivity. A single private VIF with a Direct Connect gateway associated to multiple VGWs (option D) is a valid approach but limits the number of VGWs that can be associated to 10, and is less scalable and requires VGW in each VPC rather than the Transit Gateway hub model.

  12. . A network engineer is implementing IPv6 connectivity for an existing VPC that currently uses only IPv4. The VPC has public subnets with internet-facing EC2 instances and private subnets with backend services. The private subnet instances must be able to initiate outbound connections to the internet over IPv6 but must NOT accept inbound IPv6 connections from the internet. Public subnet instances need full bidirectional IPv6 internet connectivity. Which implementation correctly satisfies both subnet requirements?

    • A. Associate an IPv6 CIDR block with the VPC and all subnets, attach an internet gateway, add ::/0 IPv6 routes to both public and private subnet route tables pointing to the internet gateway, and use security groups to block inbound IPv6 on private subnet instances
    • B. Associate an IPv6 CIDR block with the VPC and all subnets, add ::/0 IPv6 routes to the public subnet route table pointing to the internet gateway, deploy an egress-only internet gateway, and add ::/0 IPv6 routes to the private subnet route table pointing to the egress-only internet gateway(correct)
    • C. Associate an IPv6 CIDR block with the VPC, configure NAT64 using a NAT gateway in the public subnet, and add a route for 64:ff9b::/96 in the private subnet route table to enable IPv6-to-IPv4 translation
    • D. Associate an IPv6 CIDR block with the VPC and all subnets, and rely on the default VPC security group to block all inbound traffic to private subnet instances including IPv6 traffic from the internet

    Explanation: AWS provides an egress-only internet gateway specifically for private subnets with IPv6: it allows outbound-initiated IPv6 traffic to the internet but is stateful — it drops any inbound connection attempts from the internet, providing exactly the required behavior for private subnets. Public subnets use the standard internet gateway for full bidirectional IPv6. Option A routes both public and private subnets through the internet gateway, which accepts inbound IPv6 connections — security groups would need to block all inbound IPv6, but this relies on application-layer policy rather than network architecture to provide the protection. NAT64 (option C) is for enabling IPv6 clients to reach IPv4 destinations, not for providing outbound-only IPv6 internet access from private instances that already have native IPv6 addresses. Relying on security groups alone (option D) is not best practice for private subnet internet isolation — the network-layer control (egress-only internet gateway) should enforce this.

  13. . A network engineer is implementing a service endpoint for an internal microservice that must be accessible from 30 VPCs across multiple AWS accounts without making the service publicly accessible. The service is a REST API running behind a Network Load Balancer. New consumers must be able to subscribe without changes to the service provider's infrastructure. The service provider needs to control which AWS accounts can access the endpoint. Which implementation MOST effectively meets all requirements?

    • A. Create an AWS PrivateLink endpoint service backed by the Network Load Balancer, configure allowed principals to list approved AWS account IDs, and have each consumer VPC create an interface VPC endpoint pointing to the endpoint service(correct)
    • B. Attach all 30 consumer VPCs to an AWS Transit Gateway and attach the service provider VPC to the same Transit Gateway, then restrict access using Transit Gateway route table policies
    • C. Create VPC peering connections from the service provider VPC to each of the 30 consumer VPCs, configure route tables in all peered VPCs, and use security groups on the NLB to allow only known consumer CIDR ranges
    • D. Expose the service through an Amazon API Gateway private endpoint with a resource policy that allows specific AWS account IDs, and associate the API Gateway with a VPC endpoint in the service provider VPC

    Explanation: AWS PrivateLink endpoint services are purpose-built for this pattern: the service provider creates one endpoint service backed by the NLB and controls access via an allowed principals list (specific account IDs or IAM ARNs). Each consumer account creates an interface VPC endpoint without any changes to the provider's infrastructure. New consumers require only a new endpoint creation on their side and an approval from the provider. Transit Gateway (option B) provides connectivity but is less operationally clean for multi-account consumer scenarios and requires Transit Gateway attachments in every account, creating shared infrastructure. VPC peering to 30 VPCs (option C) requires 30 peering connections, route table entries in 31 VPCs, and CIDR-based security group rules — management complexity grows linearly with consumers. Amazon API Gateway private endpoints (option D) work for HTTP/HTTPS APIs but add API Gateway abstraction overhead; the requirement is direct NLB access, not HTTP API management.

  14. . A network engineer is implementing an Amazon Route 53 routing policy for a global application with endpoints in us-east-1, eu-west-1, and ap-southeast-1. The primary objective is to route each user to the endpoint with the lowest network latency. However, if any regional endpoint becomes unhealthy, users should be automatically rerouted to the next-lowest-latency healthy endpoint. Which Route 53 configuration MOST effectively achieves this?

    • A. Create latency-based routing records for each regional endpoint with Route 53 health checks associated to each record, so Route 53 automatically excludes unhealthy endpoints from latency-based selection(correct)
    • B. Create weighted routing records with equal weights (33/33/34) for each regional endpoint to distribute traffic evenly, and attach health checks to exclude unhealthy regions
    • C. Create a geolocation routing policy routing North America to us-east-1, Europe to eu-west-1, and Asia to ap-southeast-1, with a default geolocation record as failover
    • D. Create failover routing records with us-east-1 as primary and eu-west-1 as secondary, with ap-southeast-1 as a tertiary failover target

    Explanation: Route 53 latency-based routing records with associated health checks provide exactly the required behavior: Route 53 measures latency between the user's resolver and each AWS Region and routes to the lowest-latency healthy endpoint. When an endpoint fails its health check, Route 53 automatically removes it from consideration and routes to the next-lowest-latency healthy region. Weighted routing with equal weights distributes traffic evenly regardless of latency — users in Asia would get the same traffic distribution to us-east-1 as ap-southeast-1, not latency-optimized routing. Geolocation routing routes based on the geographic location of DNS resolvers, not actual network latency — a user in Eastern Europe might have lower latency to us-east-1 than eu-west-1 in specific scenarios. Failover routing supports only primary/secondary hierarchy, not the multi-Region lowest-latency selection required.

  15. . A network engineer needs to troubleshoot intermittent connectivity failures between an EC2 instance in a private subnet and an Amazon RDS database in the same VPC. The engineer suspects the issue may be related to security group or network ACL rules blocking specific traffic. Which AWS tool provides the MOST direct visibility into accepted and rejected traffic flows at the network interface level?

    • A. Enable AWS CloudTrail to log all API calls and review the CloudTrail event history for security group modification events that may have caused the connectivity failure
    • B. Enable Amazon VPC Flow Logs on the VPC or specific network interfaces, then analyze the logs in Amazon CloudWatch Logs or Amazon S3 to identify REJECT records for the affected traffic flows(correct)
    • C. Use AWS X-Ray to trace requests from the EC2 instance to the RDS database and identify where in the request path latency or failures are occurring
    • D. Run the AWS Reachability Analyzer with the EC2 instance as the source and the RDS database as the destination to analyze the network path

    Explanation: Amazon VPC Flow Logs capture metadata for all IP traffic flowing to and from network interfaces, including the source/destination IP, port, protocol, packet count, and crucially the ACCEPT/REJECT action. REJECT records directly indicate which traffic is being dropped by security group or network ACL rules, enabling precise diagnosis of connectivity failures. AWS CloudTrail logs API calls (configuration changes) but does not capture network traffic metadata — it would show when a security group was modified but not whether current traffic is being blocked. AWS X-Ray provides application-level distributed tracing but requires SDK instrumentation in the application code and does not capture network-layer accept/reject decisions. AWS Reachability Analyzer performs configuration-based path analysis (very useful for diagnosing misconfigurations) but does not capture actual traffic flow data for intermittent failures.

  16. . A network engineer is monitoring a production environment with 500 EC2 instances across 10 VPCs. The operations team needs to be alerted within 5 minutes if any EC2 instance begins generating traffic to known malicious IP addresses or if any unusual port scanning activity is detected within VPCs. The solution must require no agents installed on EC2 instances. Which service BEST meets these requirements?

    • A. Enable Amazon VPC Flow Logs for all VPCs, create Amazon CloudWatch Metrics filters to detect traffic to known malicious IPs, and configure CloudWatch Alarms with SNS notifications for the operations team
    • B. Enable Amazon GuardDuty in all accounts and Regions, configure GuardDuty findings to be sent to an Amazon SNS topic via Amazon EventBridge rules with a filter for high-severity findings, and configure the SNS topic to notify the operations team(correct)
    • C. Deploy AWS Systems Manager Agent on all EC2 instances to collect network connection data, and configure AWS Config rules to detect connections to known malicious IPs
    • D. Enable AWS Security Hub with the CIS AWS Foundations Benchmark standard to detect unusual network activity and configure Security Hub findings to trigger SNS notifications

    Explanation: Amazon GuardDuty is a managed threat detection service that analyzes VPC Flow Logs, DNS logs, and CloudTrail events without requiring any agents. It uses machine learning and AWS threat intelligence feeds to detect communication with known malicious IPs (GuardDuty finding type: UnauthorizedAccess:EC2/MaliciousIPCaller) and port scanning (Recon:EC2/PortProbeUnprotectedPort). EventBridge with SNS delivers findings within minutes of detection. VPC Flow Logs with CloudWatch Metrics filters (option A) could detect traffic to static known-bad IPs if maintained as a filter list, but requires custom development, continuous threat intelligence feed maintenance, and does not natively detect port scanning patterns. Systems Manager Agent (option C) requires agent installation, contradicting the no-agent requirement. AWS Security Hub (option D) aggregates findings from GuardDuty and other services but is not itself a detection engine for these specific network threat patterns.

  17. . A network engineer needs to verify that a newly implemented Transit Gateway route table change does not create unintended network paths that allow a development VPC to reach a production database subnet. The change has not yet been deployed to production. Which approach is MOST effective for validating the intended connectivity isolation before deployment?

    • A. Enable VPC Flow Logs in the production VPC and monitor for any traffic from the development VPC CIDR range after deploying the route table change
    • B. Use AWS Network Manager to visualize the Transit Gateway topology and manually trace routes from the development VPC to the production database subnet on the topology diagram
    • C. Use AWS Reachability Analyzer to create an analysis path from a development VPC ENI as the source to the production database subnet's ENI as the destination, and confirm the analysis reports 'Not Reachable'(correct)
    • D. Deploy a test EC2 instance in the development VPC and use traceroute to the production database subnet IP to verify the route does not reach the production environment

    Explanation: AWS Reachability Analyzer performs deterministic configuration-based analysis of network paths without sending actual traffic — it examines route tables, security groups, NACLs, Transit Gateway route tables, and other network configuration to determine whether a path exists between two endpoints. Running it before deployment by analyzing the current configuration reveals whether the planned change would create an unintended path. Importantly, it can be run against the current state AND after applying a proposed route table change in a staging environment. VPC Flow Logs (option A) only detect traffic after it has occurred — deploying the change and then monitoring means production was already exposed. AWS Network Manager provides topology visualization but requires manual path tracing without automated route verification. Deploying a test instance and running traceroute (option D) sends actual packets to production, violating the 'before deployment' requirement and potentially triggering security alerts.

  18. . A network engineer is investigating a performance degradation issue on an AWS Direct Connect connection. Customers are reporting 40% higher than baseline latency for database queries that traverse the Direct Connect link from on-premises to AWS. The Direct Connect connection itself shows no errors or dropped packets in AWS CloudWatch Direct Connect metrics. Which diagnostic steps should the engineer take FIRST to identify the root cause? (Choose TWO.)

    • A. Check the Direct Connect connection bandwidth utilization metrics in Amazon CloudWatch to determine if the connection is saturated(correct)
    • B. Review the BGP route advertisement table on the on-premises router to ensure no unexpected route changes occurred that might route traffic over a suboptimal path(correct)
    • C. Terminate and re-establish the BGP session on the Direct Connect connection to reset any accumulated routing state
    • D. Enable AWS X-Ray tracing on the application to identify which microservice is contributing to the increased latency
    • E. Check Amazon CloudWatch metrics for the AWS Transit Gateway or Virtual Private Gateway attachment to identify any packet drops or increased queue depth at the VGW/TGW side

    Explanation: When Direct Connect shows no errors but latency has increased, the two most likely causes are bandwidth saturation (causing queuing delay) and routing changes (causing traffic to take a longer path). Checking CloudWatch bandwidth utilization metrics (option A) immediately identifies if the connection is at or near capacity — queuing delay increases sharply as utilization approaches 100%. Reviewing BGP route advertisements (option B) catches scenarios where a BGP route change caused traffic to be rerouted over a longer AS path or even through an internet VPN backup path with higher latency. Resetting the BGP session (option C) is a disruptive action that would briefly interrupt all traffic on the Direct Connect connection — never appropriate as a first diagnostic step. AWS X-Ray (option D) provides application-layer tracing but cannot diagnose network-layer latency increases at the Direct Connect infrastructure level. Checking TGW/VGW metrics (option E) is a reasonable secondary step but would show internal AWS-side packet handling; the problem is more likely at the Direct Connect link or BGP routing layer.

  19. . A network engineer is managing DNS for a company's AWS workloads. The company has migrated its public-facing applications to AWS and uses Amazon Route 53 for DNS. After a recent deployment, some users report intermittent DNS resolution failures for the application's domain name. The engineer finds that the TTL on the affected records was changed from 300 seconds to 30 seconds during the deployment. Amazon Route 53 health checks show all endpoints as healthy. Which is the MOST likely cause of the intermittent resolution failures?

    • A. The 30-second TTL is too low and causes Route 53 to rate-limit DNS responses to clients that query too frequently
    • B. Downstream resolvers and ISP DNS caches are inconsistently honoring the new TTL — some resolvers cached the old 300-second TTL records and are still serving stale responses that include previously healthy but now decommissioned IP addresses(correct)
    • C. Route 53 health checks have a propagation delay and are incorrectly reporting endpoints as healthy when they are actually failing, causing Route 53 to return IPs for unhealthy instances
    • D. The DNSSEC configuration for the domain is invalid after the deployment, causing DNSSEC-validating resolvers to reject all responses as failed validation

    Explanation: When TTL is changed from 300 to 30 seconds, the change itself is subject to the old 300-second TTL — downstream resolvers that cached the DNS record right before the TTL change will continue serving stale records (potentially pointing to decommissioned IPs) for up to 300 seconds. During this transition window, some users get fresh 30-second TTL responses from Route 53 while others get stale 300-second cached responses from upstream resolvers, causing intermittent failures. Route 53 does not rate-limit DNS responses based on TTL value. Route 53 health check propagation is within seconds — if all endpoints show healthy in the console, they are healthy. DNSSEC failures cause consistent SERVFAIL responses, not intermittent failures dependent on which resolver the client uses.

  20. . A network engineer needs to protect a public-facing web application on AWS from SQL injection attacks, cross-site scripting (XSS), and HTTP flood attacks (DDoS at Layer 7). The application runs behind an Application Load Balancer. Which combination of AWS services MOST effectively protects against all three threat categories?

    • A. Configure AWS Shield Standard (included by default) and deploy an Amazon CloudFront distribution in front of the Application Load Balancer
    • B. Configure AWS WAF on the Application Load Balancer with the AWS Managed Rules Common Rule Set (which includes SQL injection and XSS rules) and rate-based rules to limit requests per IP for HTTP flood protection, combined with AWS Shield Advanced for enhanced DDoS mitigation(correct)
    • C. Deploy an Amazon Inspector agent on the web server EC2 instances to scan for SQL injection vulnerabilities and configure Amazon GuardDuty to detect HTTP flood attacks
    • D. Configure Amazon VPC network ACLs to block known malicious IP ranges and use AWS Systems Manager Patch Manager to keep the web application software updated against XSS vulnerabilities

    Explanation: AWS WAF Managed Rules Common Rule Set contains pre-built rules that detect and block SQL injection and XSS patterns in HTTP requests; WAF rate-based rules limit requests per IP per time window, mitigating HTTP flood attacks at Layer 7. AWS Shield Advanced provides enhanced DDoS protection including 24/7 DRT support and cost protection during DDoS events. AWS Shield Standard (option A) protects against network/transport layer DDoS but not Layer 7 HTTP floods or application-layer attacks like SQL injection and XSS. Amazon Inspector scans software for vulnerabilities (option C) — it is a vulnerability assessment tool, not a real-time traffic inspection service. VPC NACLs (option D) operate at the IP/port level and cannot inspect HTTP request bodies for SQL injection or XSS payloads.

  21. . A network engineer is implementing network segmentation for a multi-tier application in a single VPC. The application has a web tier in public subnets, an application tier in private subnets, and a database tier in private subnets. The security team requires that the web tier can only communicate with the application tier on port 8080, the application tier can only communicate with the database tier on port 5432, and no direct communication is permitted between the web tier and database tier. Which control MOST effectively enforces this segmentation?

    • A. Configure network ACLs on each subnet with specific inbound and outbound rules for the permitted ports, and deny all other traffic between tiers using explicit DENY rules
    • B. Assign each tier to a separate security group, configure the application tier security group to allow inbound port 8080 from the web tier security group ID, and configure the database tier security group to allow inbound port 5432 from the application tier security group ID only(correct)
    • C. Deploy the web tier, application tier, and database tier in separate VPCs and use VPC peering with specific route table entries to control traffic between tiers
    • D. Use AWS Network Firewall between each tier with stateful firewall rules permitting only the required port communications and blocking all other inter-tier traffic

    Explanation: Security group chaining by referencing security group IDs (not CIDR ranges) is the most precise and maintainable approach: the application tier security group's inbound rule references the web tier security group ID for port 8080 — only instances in the web security group can initiate connections on that port. Similarly, the database tier only allows port 5432 from the application tier security group. No rule in the database security group allows the web tier security group, enforcing zero direct web-to-database communication. Network ACLs (option A) are stateless and operate on CIDR ranges — they cannot reference security groups and require explicit bidirectional rules for each connection, increasing complexity and risk of misconfiguration. Separate VPCs with peering (option C) adds architectural complexity for a segmentation requirement that security groups handle natively within a single VPC. AWS Network Firewall (option D) is appropriate for north-south or inter-VPC traffic inspection but is over-engineered for intra-VPC tier segmentation that security groups achieve without additional cost.

  22. . A network engineer is designing network security controls for an environment that must comply with PCI DSS requirements. The environment includes cardholder data environment (CDE) VPCs and out-of-scope VPCs that must be network-isolated from each other. The company uses AWS Transit Gateway for inter-VPC connectivity. An internal audit found that a misconfigured Transit Gateway route table entry briefly allowed connectivity between an out-of-scope VPC and the CDE. Which control MOST effectively prevents recurrence of accidental cross-environment connectivity?

    • A. Configure AWS Config rules to continuously monitor Transit Gateway route tables and trigger an AWS Lambda remediation function that automatically removes any route table entries that would permit connectivity from out-of-scope VPC CIDR ranges to CDE VPC CIDR ranges
    • B. Implement separate AWS Transit Gateways for the CDE and out-of-scope environments with no peering connection between them, enforced by AWS Service Control Policies that prevent any IAM principal from creating a Transit Gateway peering attachment between the two Transit Gateways(correct)
    • C. Apply Resource Access Manager sharing restrictions to prevent out-of-scope VPCs from being attached to the CDE Transit Gateway, and use AWS CloudTrail to alert on any Transit Gateway route table modifications
    • D. Configure AWS Network Firewall in the Transit Gateway inspection VPC to block all traffic between out-of-scope VPC CIDR ranges and CDE VPC CIDR ranges, and configure CloudWatch alarms to alert on any blocked traffic

    Explanation: For PCI DSS compliance, the strongest control is architectural isolation: separate Transit Gateways for CDE and out-of-scope environments with an SCP (Service Control Policy) at the AWS Organizations level that prevents any principal from creating a peering attachment between them. This eliminates the root cause of accidental misconfiguration — there is no route table entry that could accidentally enable connectivity because the two networks are not connected at any layer. Config + Lambda remediation (option A) provides detective and corrective controls but has a time gap between misconfiguration and remediation during which connectivity exists — this is a compensating control, not a preventive one suitable for PCI DSS. Resource Access Manager sharing restrictions (option C) control which VPCs can be attached but do not prevent an administrator from manually creating a peering between the two Transit Gateways. AWS Network Firewall (option D) is a detective/preventive control at the traffic layer but the underlying routing misconfiguration persists — for PCI DSS the architectural separation is the required control.

  23. . A network engineer is implementing VPC endpoints to eliminate internet exposure for AWS service traffic. The company's EC2 instances in private subnets need to access Amazon S3 and Amazon DynamoDB. The security team requires that S3 access is restricted to specific company-owned S3 buckets only and that traffic never traverses the internet or uses public IPs. Which VPC endpoint types and access controls MOST effectively meet these requirements?

    • A. Create interface VPC endpoints for both Amazon S3 and Amazon DynamoDB, and configure endpoint policies to restrict access to specific bucket ARNs for S3 and specific table ARNs for DynamoDB
    • B. Create a gateway VPC endpoint for Amazon S3 and a gateway VPC endpoint for Amazon DynamoDB, then configure a VPC endpoint policy on the S3 endpoint to restrict access to specific bucket ARNs, and update route tables to route S3 and DynamoDB traffic through the gateway endpoints(correct)
    • C. Create a gateway VPC endpoint for Amazon S3 with a bucket policy on each company S3 bucket that denies access unless the request comes through the VPC endpoint, and create an interface VPC endpoint for Amazon DynamoDB
    • D. Create a NAT gateway in a public subnet and configure private subnet route tables to use the NAT gateway for all AWS service traffic, then use S3 bucket policies to restrict access to known NAT gateway public IP ranges

    Explanation: Amazon S3 and Amazon DynamoDB both support gateway VPC endpoints, which route traffic through the AWS private network at no additional cost (unlike interface endpoints which have hourly charges). Gateway endpoints update VPC route tables to direct S3/DynamoDB traffic through the endpoint automatically, ensuring traffic never traverses the internet. The endpoint policy on the S3 gateway endpoint restricts which buckets can be accessed through the endpoint, enforcing the bucket restriction requirement. Interface endpoints for DynamoDB (option C) are valid but cost more than gateway endpoints unnecessarily. Gateway endpoints for both services with endpoint policies (option B) is the correct, cost-optimal approach. NAT gateway (option D) routes traffic to public S3/DynamoDB endpoints over the internet, which violates the no-internet-exposure requirement.

  24. . A network engineer is designing network security governance for a company with 200 AWS accounts managed through AWS Organizations. The security team requires that all VPCs in all accounts have AWS Network Firewall policies applied consistently, with no ability for individual account administrators to disable or modify the firewall policies. New VPCs created in any account must automatically have the required firewall policy applied. Which governance approach MOST effectively meets these requirements at scale?

    • A. Use AWS Firewall Manager with an AWS Network Firewall policy configured to apply to all accounts in the AWS Organization and all VPCs in scope, using the auto-remediation option to automatically apply the policy to newly created VPCs(correct)
    • B. Deploy AWS Lambda functions in each account triggered by Amazon EventBridge rules for VPC creation events, where the Lambda function automatically creates and attaches an AWS Network Firewall policy to every new VPC
    • C. Create an AWS Config rule with an auto-remediation action that calls an AWS Systems Manager Automation document to apply AWS Network Firewall policies to non-compliant VPCs
    • D. Publish a standard AWS Network Firewall CloudFormation template to the AWS Service Catalog and require all account administrators to deploy the template when creating new VPCs

    Explanation: AWS Firewall Manager is purpose-built for centralized network security policy governance across AWS Organizations: it allows a delegated security account to define Network Firewall policies that automatically propagate to all in-scope accounts and VPCs, including newly created VPCs through automatic remediation. Individual account administrators cannot modify Firewall Manager-managed policies. The security team manages one policy definition that enforces consistently across 200 accounts. Lambda + EventBridge (option B) requires deploying and maintaining Lambda functions in 200 accounts — significant operational overhead and no central management of the policy definition. AWS Config auto-remediation (option C) has a detection-to-remediation lag and requires Config rules deployed in all accounts; it detects non-compliance after VPC creation, not immediately on creation. Service Catalog templates (option D) relies on administrator compliance — administrators could still create VPCs without deploying the template, and the requirement states they must not be able to disable the policy.

  25. . A network engineer is implementing security controls for an AWS Transit Gateway that connects 50 VPCs in a financial services environment. The company's compliance team requires that all inter-VPC traffic flows be logged with full metadata for 7 years, that traffic between specific VPC pairs be encrypted in transit, and that traffic analysis be available for forensic investigation within 1 hour of a security incident. Which combination of controls MOST comprehensively satisfies all three compliance requirements?

    • A. Enable VPC Flow Logs on all VPCs with 7-year retention in Amazon S3 with S3 Object Lock in compliance mode, use TLS 1.2 or higher in all application communications for encryption in transit, and use Amazon Athena to query Flow Logs for rapid forensic analysis(correct)
    • B. Enable AWS Transit Gateway Flow Logs to Amazon S3 with Object Lock governance mode for 7-year retention, enable MACsec encryption on AWS Direct Connect connections for transit encryption, and use Amazon OpenSearch Service with a pre-built dashboard for real-time flow log analysis
    • C. Enable AWS CloudTrail for all accounts to log all Transit Gateway API calls for 7 years, use AWS Certificate Manager to encrypt all inter-VPC traffic, and create Amazon CloudWatch dashboards for forensic traffic analysis
    • D. Deploy Amazon GuardDuty with VPC Flow Log analysis enabled and configure 7-year finding retention in Amazon S3, use AWS KMS encryption for all data in transit between VPCs, and use GuardDuty findings for forensic investigation

    Explanation: VPC Flow Logs with S3 Object Lock in compliance mode (not governance mode) provides tamper-proof 7-year log retention that satisfies financial services compliance requirements — compliance mode prevents even privileged users from deleting records before expiry. TLS in application communications handles encryption in transit between VPCs. Amazon Athena's serverless SQL querying against S3 Flow Logs enables forensic analysis within minutes, satisfying the 1-hour requirement. Transit Gateway Flow Logs (option B) is valid but MACsec encryption is only available for AWS Direct Connect dedicated connections, not for inter-VPC traffic through Transit Gateway — this does not satisfy encryption for inter-VPC paths. CloudTrail logs API calls (option C), not traffic flows, and AWS Certificate Manager manages certificates but does not by itself encrypt inter-VPC traffic. GuardDuty (option D) provides threat detection, not traffic flow logging for compliance — KMS encrypts data at rest, not data in transit between VPCs.