# Free ANS-C01 practice questions

> 10 free ANS-C01 practice questions with the correct answer and an explanation.

Page: https://devopscodelab.com/exams/aws-ans-c01/free-practice-questions/
Practice exams: https://devopscodelab.com/exams/aws-ans-c01/

### Question 1 of 10

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?

- A. Configure 2-tuple flow stickiness on the Gateway Load Balancer target group
- B. Add a second transit gateway route table that is associated with the inspection VPC attachment
- C. Enable cross-zone load balancing on the Gateway Load Balancer
- D. Enable appliance mode on the transit gateway attachment of the inspection VPC

**Answer:** D

**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

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?

- A. A Global Accelerator custom routing accelerator mapping listener ports to specific instance IPs and ports
- B. Amazon CloudFront with the session server instances configured as custom origins behind origin groups
- C. A standard Global Accelerator with Network Load Balancer endpoints in each Region and client affinity set to source IP
- D. Route 53 multivalue answer records that return the Elastic IP addresses of healthy session server instances

**Answer:** A

**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

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?

- A. Keep 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
- B. Create separate transit gateway route tables for development, production, and shared services; associate each VPC with its environment table and propagate only permitted attachments
- C. Replace 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
- D. Keep 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:** B

**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

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?

- A. Create a transit gateway, attach the VPC, and route all internet traffic from the public subnets through the transit gateway to the firewall endpoints
- B. Associate 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
- C. Associate 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
- D. Route 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:** C

**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

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?

- A. Place all VPCs in one segment and isolate prod from dev with security groups and network ACLs
- B. Set isolate-attachments to false on prod and to true on dev so only prod reaches shared
- C. Create a send-via segment action from prod to dev that routes through the shared segment
- D. Use a share segment action for shared with share-with prod and dev, without sharing prod with dev

**Answer:** D

**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

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?

- A. Route 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
- B. Participants can launch resources into shared subnets but cannot modify VPC-level resources such as route tables, NACLs, or gateways, which stay with the owner
- C. The RAM resource share must explicitly include the route table resource type in addition to the subnets before participants are allowed to edit routes
- D. The participant account must first accept the RAM invitation and then be granted ec2:ReplaceRoute through an IAM policy in the owner account

**Answer:** B

**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

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?

- A. Amazon GuardDuty with VPC Flow Logs analysis and findings for unexpected inbound connections to production
- B. AWS Network Access Analyzer with a scope matching internet gateway paths to production resources excluding port 443
- C. Amazon Inspector network reachability findings for each production instance, exported to AWS Security Hub
- D. VPC Reachability Analyzer, with a scheduled analysis from the internet gateway to each production instance on every port

**Answer:** B

**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

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?

- A. Scheduled VPC Reachability Analyzer runs from the VPC subnets against the on-premises IP addresses through the VPN and Direct Connect paths
- B. Amazon CloudWatch Synthetics canaries in the VPC subnets that make scheduled HTTP calls to the on-premises servers and record response times
- C. Amazon CloudWatch Network Monitor with probes from the VPC subnets to the on-premises IP addresses
- D. Amazon CloudWatch Internet Monitor configured for the VPC, using its health events to track loss and latency toward the on-premises networks

**Answer:** C

**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

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?

- A. Enable security group referencing on the transit gateway and its VPC attachments, then reference the app security group
- B. Use a customer-managed prefix list that contains the application instance IPs and reference it in the database security group
- C. Create a VPC peering connection between the two VPCs so the database security group can reference the application security group
- D. Share the application security group with VPC B's account through AWS RAM and reference the shared group in the inbound rule

**Answer:** A

**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

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?

- A. AWS Firewall Manager security group and Network Firewall policies applied to the organization
- B. Service control policies that deny creating or modifying security groups outside a pipeline role
- C. AWS Config managed rules deployed through a conformance pack, with remediation through Systems Manager Automation runbooks
- D. AWS Security Hub with the AWS Foundational Security Best Practices standard enabled for all accounts

**Answer:** A

**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.

Ready for a timed run? Take the free 15-question ANS-C01 mini exam: https://devopscodelab.com/app/exams/aws-ans-c01/mini/

DevOpsCode Lab is not affiliated with AWS. ANS-C01 and related names are trademarks of their owners. We write every question ourselves; these are not real exam questions.
