Can You Answer These 5 ANS-C01 Questions on Network Design? (Set 2)

ANS-C01 is being retired: the last day to take this exam is Dec 31, 2026.

Here are 5 ANS-C01 practice questions on Network Design. It carries about 30% of the exam score. Each answer explains the correct choice and what is wrong with the others.

ANS-C01 Network Design: 5 practice questions

AWS Advanced Networking – Specialty (ANS-C01) · Network Design · 5 questions with answers and explanations

📊 This set at a glance

Exam: ANS-C01 · 65 questions · 170 minutes · passing score 750 · the largest of 4 domains
This set: 5 advanced · 2 scenario, 1 comparison, 1 concept check, 1 troubleshooting
Topics: Amazon Route 53, Gateway Load Balancer, VPC Flow Logs, Amazon CloudFront, AWS Lambda, AWS Transit Gateway, Amazon VPC

Question 1 of 5

A team wants to send 5% of production traffic to a new backend, then 25%, then 100%, with the ability to roll back instantly, using DNS. Which Route 53 setup fits, and what limits rollback speed?

AFailover records with the new version as secondary, promoted by health checks
BLatency records per version
CGeolocation records by continent
DWeighted records with health checks; DNS TTL caching slows shifts
Show answer

✅ Answer: D

Difficulty: advanced · Topic: Amazon Route 53

Weighted routing for gradual rollouts
Route 53 weighted routing lets several records with the same name and type share traffic. Each record has a weight from 0 to 255, and the chance of returning a record is its weight divided by the total.
• Old version weight 95, new version weight 5 → about 5% of DNS answers point to the new backend.
• Change to 75/25, then 0/100 to finish. Rolling back is setting the new version's weight to 0.
• Health checks on the records remove an unhealthy backend from answers automatically.

Why DNS rollback is not instant
Resolvers and clients cache answers for the record's TTL. After you change the weights, users keep using the cached IP until it expires, and some clients cache longer than the TTL. Use a low TTL (for example 60 seconds) during the rollout.

Why each option works or fails
• ✗ A. Failover records: failover is all-or-nothing, the secondary receives traffic only when the primary is unhealthy, so there is no way to send 5% or 25%.
• ✗ B. Latency records: latency routing sends each user to the Region with the lowest latency; it has no setting for a percentage split between two versions.
• ✗ C. Geolocation by continent: traffic moves by where users are, in large all-or-nothing blocks, not by controlled percentages.
• ✓ D. Weighted records with health checks (correct): weights give exact percentage steps (5%, 25%, 100%) and fast rollback by changing a number, while TTL caching is what limits how quickly each change reaches users.

Question 2 of 5

A centralized inspection architecture routes VPC traffic through Gateway Load Balancer endpoints to a fleet of stateful firewall appliances behind a Gateway Load Balancer. Engineers observe that some flows are inspected correctly, but for other flows the return traffic takes a different path through a different Availability Zone than the outbound leg, causing the stateful firewall to drop the traffic as unrecognized. What should be enabled to fix this?

ASource-IP stickiness on the GWLB target group
BCross-zone load balancing on the Gateway Load Balancer
CA dedicated NAT gateway per AZ in the inspection VPC
DAppliance mode, keeping each flow on the same target and AZ
Show answer

✅ Answer: D

Difficulty: advanced · Topic: Gateway Load Balancer

Why stateful firewalls need symmetric paths
A stateful firewall remembers each connection. It accepts a reply only if it saw the request go out. If the reply goes through a different appliance, that appliance has no record of the flow and drops it.

Where asymmetry comes from
In a centralized inspection design, spoke VPCs connect to a transit gateway, which sends traffic to an inspection VPC with a GWLB endpoint in each AZ. By default the transit gateway tries to keep traffic in the AZ where it entered, so the request can enter the inspection VPC in AZ-a while the reply enters in AZ-b and reaches a different appliance.

Appliance mode
Appliance mode on the inspection VPC's transit gateway attachment makes the transit gateway choose one AZ per flow (based on a flow hash) for both directions. Both legs then reach the same GWLB endpoint, and GWLB's flow stickiness sends them to the same appliance.

Why each option works or fails
• ✗ A. Source-IP stickiness on the GWLB target group: GWLB already keeps a flow on one appliance per load balancer node; the problem is that the return leg arrives in a different AZ, which stickiness settings do not change.
• ✗ B. Cross-zone on the GWLB: it lets GWLB nodes use appliances in other AZs but does not make the reply enter the same AZ as the request; AWS's documented fix for this asymmetry is appliance mode.
• ✗ C. NAT gateway per AZ: NAT gateways translate addresses for outbound internet traffic; they do not decide which AZ a flow's return traffic uses.
• ✓ D. Appliance mode (correct): it keeps both directions of each flow in the same AZ of the inspection VPC, so the same stateful appliance sees the request and the reply.

Question 3 of 5

Security wants flow logs for every ENI in a VPC, including ENIs created later by Lambda and load balancers, with custom fields including pkt-srcaddr. What should be configured?

ASubnet-level flow logs for existing subnets only
BOne VPC-level flow log with a custom format
CCloudTrail data events for EC2
DPer-ENI flow logs added by an EventBridge rule
Show answer

✅ Answer: B

Difficulty: advanced · Topic: VPC Flow Logs

The three scopes of a flow log
A VPC Flow Log can be created on a network interface, a subnet or a whole VPC.
• A VPC-level flow log covers every ENI in the VPC, including ENIs created later by Lambda, Elastic Load Balancing, NAT gateways or Amazon EKS.
• A subnet-level flow log covers only ENIs in that subnet, so a new subnet is not covered.
• An ENI-level flow log covers only that single ENI.

Custom formats
The default format has fixed fields (version 2). A custom format lets you pick fields such as pkt-srcaddr and pkt-dstaddr, which show the original packet addresses. They matter when traffic passes through a NAT gateway or other middlebox, where srcaddr shows the interface address instead.
Example: ${srcaddr} ${pkt-srcaddr} ${dstaddr} ${action} ${flow-direction}.

Why each option works or fails
• ✗ A. Existing subnets only: subnet flow logs miss any subnet created later, so ENIs placed there would not be logged, which breaks the "every ENI" requirement.
• ✓ B. VPC-level flow log with custom format (correct): one flow log on the VPC automatically covers all current and future ENIs, and the custom format adds pkt-srcaddr and other chosen fields.
• ✗ C. CloudTrail data events: CloudTrail records API activity, not packets. It never records network flows between interfaces.
• ✗ D. Per-ENI via EventBridge: automation that reacts to ENI creation adds moving parts, can miss or lag new ENIs (short-lived Lambda ENIs, errors in the rule) and creates many flow logs to manage, while a VPC-level log already does this natively.

Question 4 of 5

An engineering team needs to call an external third-party fraud-detection API and inspect the response body before forwarding a request to their origin, adding significant per-request latency and requiring outbound network calls from the edge. Which CloudFront edge compute feature should they use, and why can the alternative not be used?

ACloudFront Functions, which support outbound calls to third-party APIs
BCloudFront Functions on origin-response, with more memory and time than Lambda@Edge
CLambda@Edge on origin-request; CloudFront Functions can't make network calls
DLambda@Edge on viewer-response only, since origin-request isn't supported
Show answer

✅ Answer: C

Difficulty: advanced · Topic: Amazon CloudFront, AWS Lambda

Two kinds of CloudFront edge compute
• CloudFront Functions run lightweight JavaScript at edge locations on the viewer request and viewer response events only. They are built for sub-millisecond work such as header changes, redirects, URL rewrites and simple token checks. They have no network access and no request body access.
• Lambda@Edge runs Node.js or Python functions at Regional edge caches on all four events: viewer request, viewer response, origin request and origin response. It can make network calls, runs longer and can use more memory, especially on origin events.

Why origin request
The origin request event fires only on a cache miss, just before CloudFront contacts the origin. A function there can call an external API, read its answer, and then allow, change or reject the request before it reaches the origin.

Why each option works or fails
• ✗ A. CloudFront Functions with outbound calls: CloudFront Functions cannot open network connections, so calling a third-party API is impossible there.
• ✗ B. CloudFront Functions on origin response with more resources: CloudFront Functions run only on viewer events and have far tighter time and memory limits than Lambda@Edge, not larger ones.
• ✓ C. Lambda@Edge on origin request (correct): it can make the outbound call to the fraud API and act on the response before forwarding to the origin, which CloudFront Functions cannot do because they have no network access.
• ✗ D. Lambda@Edge on viewer response only: Lambda@Edge supports origin request, and a viewer response function runs after the origin has already been contacted, too late to check the request before forwarding it.

Question 5 of 5

A company wants all outbound internet traffic from dozens of spoke VPCs to egress through a single centralized set of NAT gateways in a shared services VPC, rather than deploying NAT gateways in every spoke VPC, in order to reduce cost and centralize egress monitoring. How should this be architected using Transit Gateway?

AA NAT gateway in every spoke VPC, with TGW used only for east-west traffic
BSpokes route 0.0.0.0/0 to the TGW, which routes it to the egress VPC
CUse VPC endpoints for all internet-bound traffic instead of NAT gateways
DPeer each spoke with the shared VPC and route 0.0.0.0/0 over peering
Show answer

✅ Answer: B

Difficulty: advanced · Topic: AWS Transit Gateway, Amazon VPC

Centralized egress with a transit gateway
Instead of NAT gateways in every VPC, one egress VPC holds NAT gateways and an internet gateway, and all spokes send internet traffic there.
• Spoke VPC route tables: 0.0.0.0/0 points to the transit gateway.
• TGW route table for spokes: 0.0.0.0/0 points to the egress VPC attachment. Blackhole routes for spoke CIDRs can stop spokes reaching each other through this path if that is not wanted.
• Egress VPC: the TGW attachment subnets route 0.0.0.0/0 to the NAT gateway; the NAT gateway subnets route to the internet gateway and route spoke CIDRs (for example 10.0.0.0/8) back to the transit gateway.
Example: an instance at 10.1.2.10 reaches the internet as the NAT gateway's Elastic IP, and every flow can be monitored in one place.

Why each option works or fails
• ✗ A. NAT gateway in every spoke: this is the per-VPC design the company wants to replace; it multiplies NAT gateway hourly costs and spreads monitoring out.
• ✓ B. Default route to the TGW then the egress VPC (correct): spokes send 0.0.0.0/0 to the transit gateway, which forwards it to the shared NAT gateways, giving one place to pay for and monitor egress.
• ✗ C. VPC endpoints instead of NAT: endpoints reach specific AWS services privately. They cannot reach arbitrary internet destinations.
• ✗ D. Peering with a default route: VPC peering does not allow edge-to-edge routing, so a spoke cannot use a NAT gateway in the peered VPC.

🎯 Key ideas from this set

• Percentage-based canary and rollback with DNS → weighted routing with low TTLs; DNS caching is the limit on how fast shifts take effect.
• Stateful appliances dropping return traffic that crosses AZs in a centralized inspection VPC → enable appliance mode on the transit gateway attachment.
• Scope the flow log to the VPC to catch every present and future ENI, and use a custom format for fields like pkt-srcaddr.
• Lightweight, no-network logic on viewer events → CloudFront Functions; external calls, heavier logic or origin events → Lambda@Edge.
• Centralized egress means spokes default-route to the transit gateway and the TGW route table sends it to an egress VPC with NAT; peering cannot share a NAT gateway.

🔗 Keep practicing on this blog

• ANS-C01 Practice Set: Network Implementation
• 5 Questions to Test Your Network Management and Operation Knowledge (ANS-C01)
• 5 Questions to Test Your Network Security, Compliance, and Governance Knowledge (ANS-C01)
• All ANS-C01 practice sets
• Every exam on this blog

📚 Beyond this set

More ANS-C01 questions: https://hyunhp.github.io/cert-bank/#exam=ANS-C01
Study guide: https://hyunhp.github.io/cert-bank/study.html#exam=ANS-C01

These are original practice questions, not real exam questions, and cert-bank is not affiliated with any certification vendor.

Original practice questions written for this blog, not exam dumps.

Comments