ANS-C01

Free ANS-C01 practice questions

10 questions from our ANS-C01 practice tests, each with the correct answer and a written explanation. Read them with the answers shown, or switch to quiz mode and answer first.

Back to the ANS-C01 practice exams

Question 1 of 10, Network Design

A financial company inspects all east-west traffic between VPCs with stateful third-party firewalls deployed in an inspection VPC attached to a transit gateway. The firewalls run in two Availability Zones behind a Gateway Load Balancer. Engineers observe that some TCP sessions between VPCs in different Availability Zones are dropped by the firewalls as out-of-state. What is the MOST likely fix?

  1. AConfigure 2-tuple flow stickiness on the Gateway Load Balancer target group
  2. BAdd a second transit gateway route table that is associated with the inspection VPC attachment
  3. CEnable cross-zone load balancing on the Gateway Load Balancer
  4. DEnable appliance mode on the transit gateway attachment of the inspection VPC Correct answer

Answer and explanation: Without appliance mode, the transit gateway keeps traffic in the Availability Zone of the originating attachment, so the request and the response of a cross-AZ flow can traverse different firewall instances and be dropped as asymmetric. Appliance mode makes the transit gateway pick one network interface in the inspection VPC for the life of the flow. Cross-zone load balancing and stickiness settings act inside the Gateway Load Balancer and cannot fix asymmetry introduced before traffic reaches it, and adding a route table does not change the AZ selection behavior.

Question 2 of 10, Network Design

A gaming company runs session servers on EC2 instances, and its matchmaking service must direct each player to a specific instance and port through a fixed set of global static IP addresses. Traffic must traverse the AWS backbone. Which solution meets these requirements?

  1. AA Global Accelerator custom routing accelerator mapping listener ports to specific instance IPs and ports Correct answer
  2. BAmazon CloudFront with the session server instances configured as custom origins behind origin groups
  3. CA standard Global Accelerator with Network Load Balancer endpoints in each Region and client affinity set to source IP
  4. DRoute 53 multivalue answer records that return the Elastic IP addresses of healthy session server instances

Answer and explanation: Custom routing accelerators deterministically map accelerator ports to individual EC2 destinations, allowing application logic to send a player to a specific instance over static anycast IPs and the AWS backbone. Standard accelerators load balance to endpoints, and client affinity only keeps a client sticky rather than letting the application choose an instance. CloudFront is designed for HTTP and does not map ports to instances, and multivalue DNS answers neither provide static global IPs nor use the backbone.

Question 3 of 10, Network Design

A company runs 60 VPCs in us-east-1 attached to a single transit gateway. Security requires that development VPCs can reach shared-services VPCs but never production VPCs, while production VPCs can also reach shared services. All VPCs must reach on-premises through an existing Direct Connect gateway association. Which transit gateway design meets these requirements with the LEAST ongoing route management?

  1. AKeep one transit gateway route table and apply network ACLs in every production subnet that deny the development CIDR ranges, so routing stays simple and filtering happens at the subnet edge
  2. BCreate separate transit gateway route tables for development, production, and shared services; associate each VPC with its environment table and propagate only permitted attachments Correct answer
  3. CReplace the transit gateway with VPC peering between each development VPC and the shared-services VPCs and between production and shared services, keeping the on-premises path on separate VGWs
  4. DKeep a single transit gateway route table and add a blackhole route for every production CIDR, updating the table each time a new production VPC is attached so development cannot reach it

Answer and explanation: Segmenting with multiple transit gateway route tables, using associations to choose which table an attachment uses and propagations to control which routes appear, isolates environments while route learning stays automatic. Blackhole routes in a shared table must be updated whenever a production CIDR is added, which is ongoing manual work. VPC peering does not scale to 60 VPCs, is not transitive, and would need separate on-premises connectivity, and NACL-based filtering leaves routing open and adds per-subnet rule maintenance as CIDRs change.

Question 4 of 10, Network Implementation

A network engineer must deploy an AWS Network Firewall to protect traffic entering and leaving a single VPC's public subnets through the internet gateway. Which routing configuration is required?

  1. ACreate a transit gateway, attach the VPC, and route all internet traffic from the public subnets through the transit gateway to the firewall endpoints
  2. BAssociate the firewall with the VPC's main route table only, so every subnet that uses the main table sends its internet-bound traffic through the firewall
  3. CAssociate an edge route table with the internet gateway that sends public subnet CIDRs to the firewall endpoints, and route each subnet's 0.0.0.0/0 to its zonal endpoint Correct answer
  4. DRoute the public subnets' 0.0.0.0/0 directly to the internet gateway and associate the firewall policy with the internet gateway so it filters traffic in both directions

Answer and explanation: Ingress routing uses an edge route table on the internet gateway to send inbound traffic to the firewall endpoint, and the protected subnets send outbound traffic to the zonal firewall endpoint, which keeps flows symmetric. Internet gateways do not accept firewall policies. Firewalls are not associated with route tables, and the main route table alone does not intercept inbound traffic from the internet gateway. A transit gateway is unnecessary for single-VPC protection.

Question 5 of 10, Network Implementation

In an AWS Cloud WAN core network, VPCs in the prod and shared segments must reach each other, but prod and dev must remain isolated, and dev must also reach shared. How should the core network policy be written?

  1. APlace all VPCs in one segment and isolate prod from dev with security groups and network ACLs
  2. BSet isolate-attachments to false on prod and to true on dev so only prod reaches shared
  3. CCreate a send-via segment action from prod to dev that routes through the shared segment
  4. DUse a share segment action for shared with share-with prod and dev, without sharing prod with dev Correct answer

Answer and explanation: A share segment action with the shared segment as the hub and prod and dev as share-with targets propagates routes between shared and each segment while keeping prod and dev isolated. One segment loses routing isolation and relies on host controls. send-via is for steering traffic through network functions, not route sharing, and isolate-attachments controls whether attachments within the same segment can talk to each other.

Question 6 of 10, Network Implementation

An organization uses a central networking account to own a VPC and shares its private subnets with application accounts through AWS Resource Access Manager. An application team in a participant account tries to modify the route table of a shared subnet and receives an access error. What explains this behavior?

  1. ARoute tables in a shared VPC can be modified only by principals in the AWS Organizations management account, which must make the change on the team's behalf
  2. BParticipants can launch resources into shared subnets but cannot modify VPC-level resources such as route tables, NACLs, or gateways, which stay with the owner Correct answer
  3. CThe RAM resource share must explicitly include the route table resource type in addition to the subnets before participants are allowed to edit routes
  4. DThe participant account must first accept the RAM invitation and then be granted ec2:ReplaceRoute through an IAM policy in the owner account

Answer and explanation: In VPC sharing, the owner account keeps control of the VPC, subnets, route tables, network ACLs, and gateways, while participants manage only their own resources such as instances and security groups. Route tables are not a RAM-shareable resource type that grants edit rights, and accepting the invitation or adding IAM permissions in the owner account does not let participants edit owner resources. The management account has no special permission to edit route tables in a member account's VPC.

Question 7 of 10, Network Management and Operation

A company must verify continuously that no EC2 instance in its production VPCs can be reached from the internet on any port other than 443 through an internet gateway, and must produce findings for auditors. Which AWS service is designed for this task?

  1. AAmazon GuardDuty with VPC Flow Logs analysis and findings for unexpected inbound connections to production
  2. BAWS Network Access Analyzer with a scope matching internet gateway paths to production resources excluding port 443 Correct answer
  3. CAmazon Inspector network reachability findings for each production instance, exported to AWS Security Hub
  4. DVPC Reachability Analyzer, with a scheduled analysis from the internet gateway to each production instance on every port

Answer and explanation: Network Access Analyzer evaluates all network paths that match a defined scope, such as internet gateway to production ENIs on ports other than 443, and reports findings that show unintended access. Reachability Analyzer tests one path between a specific source and destination, which does not scale to proving the absence of access. Inspector focuses on vulnerabilities and per-instance exposure rather than custom organizational access requirements, and GuardDuty detects malicious activity in observed traffic rather than evaluating configuration paths.

Question 8 of 10, Network Management and Operation

A company has a Direct Connect connection and a backup Site-to-Site VPN to on-premises. Operators want continuous measurement of packet loss and round-trip latency from specific VPC subnets to on-premises servers, with an AWS-attributed network health indicator, and without deploying or managing agents. Which solution meets these requirements?

  1. AScheduled VPC Reachability Analyzer runs from the VPC subnets against the on-premises IP addresses through the VPN and Direct Connect paths
  2. BAmazon CloudWatch Synthetics canaries in the VPC subnets that make scheduled HTTP calls to the on-premises servers and record response times
  3. CAmazon CloudWatch Network Monitor with probes from the VPC subnets to the on-premises IP addresses Correct answer
  4. DAmazon CloudWatch Internet Monitor configured for the VPC, using its health events to track loss and latency toward the on-premises networks

Answer and explanation: CloudWatch Network Monitor is fully managed, sends ICMP or TCP probes from chosen subnets to hybrid destinations, publishes loss and latency metrics, and reports whether degradation is attributable to the AWS network. Internet Monitor measures internet performance for application end users, not private hybrid paths. Reachability Analyzer checks configuration only and measures neither loss nor latency, and Synthetics canaries are application-level scripts that give no packet loss figures or AWS network attribution.

Question 9 of 10, Network Security, Compliance, and Governance

Two VPCs in the same Region are attached to a transit gateway. The database security group in VPC B must allow access only from the application security group in VPC A, without hardcoding CIDR ranges. What should the network engineer do?

  1. AEnable security group referencing on the transit gateway and its VPC attachments, then reference the app security group Correct answer
  2. BUse a customer-managed prefix list that contains the application instance IPs and reference it in the database security group
  3. CCreate a VPC peering connection between the two VPCs so the database security group can reference the application security group
  4. DShare the application security group with VPC B's account through AWS RAM and reference the shared group in the inbound rule

Answer and explanation: Transit gateways support security group referencing for VPCs attached in the same Region when the feature is enabled on the transit gateway and attachments, allowing inbound rules to reference a security group in another VPC. Adding VPC peering only to gain referencing duplicates connectivity. A prefix list of instance IPs must be updated as instances change, and sharing a security group through RAM is designed for shared VPC use cases, not referencing across transit gateway attachments.

Question 10 of 10, Network Security, Compliance, and Governance

A company with 150 accounts must ensure that every VPC in the organization has the same baseline security group rules and AWS Network Firewall policy, and that new accounts are covered automatically. Which service should the security team use?

  1. AAWS Firewall Manager security group and Network Firewall policies applied to the organization Correct answer
  2. BService control policies that deny creating or modifying security groups outside a pipeline role
  3. CAWS Config managed rules deployed through a conformance pack, with remediation through Systems Manager Automation runbooks
  4. DAWS Security Hub with the AWS Foundational Security Best Practices standard enabled for all accounts

Answer and explanation: Firewall Manager centrally deploys and enforces security group, Network Firewall, WAF, Shield Advanced, and DNS Firewall policies across Organizations accounts and automatically applies them to new accounts and resources. Config rules with remediation can detect drift but need custom remediation logic to create firewalls. Security Hub reports findings without deploying controls, and an SCP that restricts security group changes does not establish the baseline rules or firewall policy.