AWS Certified Advanced Networking – Specialty (ANS-C01) Study Guide¶
Condensed review for the AWS Advanced Networking Specialty exam: decision trees, the route-priority ladders, each service area, gap fills against exam guide v2.0, and scenario drills.
Exam Overview¶
| Detail | Value |
|---|---|
| Duration | 170 minutes |
| Questions | 65 (50 scored, 15 unscored) |
| Passing score | 750/1000 |
| Cost | $300 |
| Format | Multiple choice and multiple response |
Official exam guide: https://docs.aws.amazon.com/aws-certification/latest/advanced-networking-specialty-01/advanced-networking-specialty-01.html
Note
Scenarios and drills here are original practice material, not exam questions. Verify version-sensitive limits against current vendor documentation.
AWS Certified Advanced Networking — Specialty · Exam Guide v2.0
ANS-C01 Combined Review¶
One page: a study path that follows the exam guide task by task, the full reference guide, the gap fills, and the order, pattern, judgment and triage drills. Start with the Study Path and let it send you to everything else. 65Questions (50 scored) 170Minutes 750Pass · scaled 100–1000 $300USD ~2m37sPer question
D1 Network Design · D2 Network Implementation D3 Network Management & Operation · D4 Security, Compliance & Governance
00
Decision trees — start here¶
D1 D2 D3 D4
In plain terms — How to use this sectionNearly every question gives you a situation and four plausible-looking answers. The fastest way through is not to recall everything about the topic, but to find the one constraint in the wording that only one answer satisfies. These trees take you from that constraint to the answer. The elimination list at the end is the reverse: things that are simply never true, so an option containing one can be struck out without further thought.
65 questions in 170 minutes is about 2 minutes 37 seconds each. That is not enough time to reason from first principles, so the goal is recognition. Read the trees, then the trigger table, then the elimination list — in that order.
How to attack a question¶
First Read the last sentence first. That is the actual ask. Long scenarios often bury one requirement — least cost, least operational overhead, no downtime, private addressing only — that decides everything. Second Find the hard constraint: overlapping CIDRs, on-premises must reach it, must be encrypted, must be a static IP, must survive an AZ failure, must apply to future accounts. One constraint usually kills two options outright. Third Run the elimination list below. If an option relies on something that is never true, strike it without reading the rest. Then Choose between what remains on operational overhead, then cost. AWS almost always rewards the managed service over the self-built one. Never Leave a blank. There is no penalty for guessing, and 15 of the 65 questions are unscored anyway — a question that feels impossible may not even count. Flag and move on rather than burning four minutes.
Tree A — "Connect these two things"¶
What actually needs to reach what? Consumer needs one service, not the network — or CIDRs overlap — or there are hundreds of consumers PrivateLink: NLB + endpoint service + interface endpoints Exactly two VPCs, full network reachability, lowest cost and latency VPC peering Only if CIDRs don't overlap and nothing needs to be transitive. Many VPCs, or VPCs plus hybrid, or central routing control Transit Gateway Many VPCs across many Regions, managed centrally by policy AWS Cloud WAN Teams just need somewhere to launch instances, not their own network VPC sharing via AWS RAM No peering, no attachment, no data-transfer charge. Needs multicast Transit Gateway — nothing else supports it Needs to reference the peer's security groups Intra-Region VPC peering only Never over TGW, never inter-Region.
Tree B — Hybrid: which connection, which VIF, which gateway¶
1 · What kind of link? Consistent bandwidth, predictable latency, high volume, willing to wait weeks and pay Direct Connect Fast to stand up, encrypted by default, cost-sensitive, or a backup for DX Site-to-Site VPN Internet path to the VPN endpoint is inconsistent Accelerated Site-to-Site VPN — TGW attachment only Individual remote workers Client VPN Office-to-office across AWS backbone, no VPC involved Direct Connect SiteLink
2 · Which VIF? Target is inside a VPC, private IPs, one or a few VPCs Private VIF → VGW, or → DX Gateway for multi-Region Target is behind a Transit Gateway Transit VIF → DX Gateway → TGW One transit VIF per connection in exam-era material (4 today). Set the allowed-prefixes list or nothing advertises. Target is S3, DynamoDB, public ELB, or any AWS public endpoint Public VIF Need on-prem to reach a gateway endpoint or the VPC DNS resolver No VIF does this — use an interface endpoint / inbound resolver endpoint
3 · Encryption over Direct Connect? Public addressing acceptable Site-to-Site VPN over a public VIF Private addressing required, terminating on a TGW Private IP VPN over a transit VIF Line-rate, dedicated 10/100/400 Gbps port MACsec Only protects the link to the DX location — never end to end.
4 · Resiliency, by name 99.99% required Maximum Resiliency — 2 DX locations, separate devices at each 99.9% required High Resiliency — 2 DX locations, one device each Non-critical Development/test — 1 location, 2 devices Failover currently takes ~90 seconds, needs to be sub-second Enable BFD An option offers a LAG as the resiliency answer Wrong — one device, one location
Tree C — "Which route wins?"¶
Are the prefixes the same length? No — one is more specific Longest prefix match wins. Stop here. Yes, and this is a VPC route table Static > propagated. Among propagated: DX BGP > VPN static > VPN BGP Yes, and this is a TGW route table Static > prefix-list > propagated VPC > DXGW > Connect > VPN Yes, and AWS is choosing between private/transit VIFs Local-pref community (7300>7200>7100) > Region-to-DX distance > AS_PATH Yes, and AWS is choosing between public VIFs AS_PATH only — and only with a public ASN
Tree D — DNS¶
Who is asking, and about what? On-premises asking about AWS names Inbound resolver endpoint AWS asking about on-premises names Outbound resolver endpoint + forwarding rule Both directions Both endpoints — they are separate objects Many accounts need the same forwarding Share the resolver rules via AWS RAM Another account's VPC needs a private hosted zone CLI two-step: authorize in zone account, associate from VPC account Blocking lookups of malicious or unapproved domains Route 53 Resolver DNS Firewall Blocking connections to unapproved domains, including by direct IP AWS Network Firewall domain list Naming a load balancer at the bare domain Alias A record — never CNAME at the apex Intermittent resolution failures in one AZ 1024 packets/sec per ENI limit toward base+2
Tree E — Edge and load balancing¶
What does the traffic look like? Cacheable HTTP/HTTPS, global audience CloudFront UDP, gaming, VoIP, or clients must whitelist fixed IPs Global Accelerator — two static anycast IPs Regional failover must beat DNS TTL Global Accelerator Route by path or hostname, or attach WAF ALB Extreme throughput, static IP per AZ, or fronting PrivateLink NLB Static IPs and L7 routing NLB in front, ALB as its target Transparent inline firewall / IDS / DPI, no re-addressing Gateway Load Balancer + GWLB endpoints One AZ's targets overloaded while another idles Enable cross-zone — off by default on NLB and GWLB
Tree F — Which security control?¶
What must be stopped, and where does it become visible? Allow specific sources to one instance or ENI Security group Deny a specific IP or range at the subnet edge Network ACL deny rule Deny an IP arriving via CloudFront or an ALB AWS WAF IP set Blocking at the instance SG is useless — the source is the load balancer. SQL injection, XSS, rate limiting, bots, geo-blocking AWS WAF Egress restricted to approved domains, or IPS signatures, or TLS inspection AWS Network Firewall Volumetric L3/L4 flood Shield Standard (already on) — add Shield Advanced for the response team and cost protection Same policy across every account, including future ones AWS Firewall Manager Prevent an action entirely, org-wide Service Control Policy Third-party appliance fleet inline for many VPCs GWLB + centralised inspection VPC + TGW appliance mode
Tree G — Troubleshooting: which tool, and what is broken¶
What question are you actually answering? Was traffic accepted or rejected, and how much VPC Flow Logs What was inside the packets Traffic Mirroring — Nitro only Can A reach B, and which component blocks it Reachability Analyzer — sends no packets Prove no path to the internet exists anywhere Network Access Analyzer Is the physical DX link healthy CloudWatch DX metrics — ConnectionState, light levels Who changed this, and what did it look like before CloudTrail for the actor, AWS Config for the state
Symptom → cause Flow log shows ACCEPT inbound then REJECT outbound NACL missing the ephemeral return range 1024–65535 Flow log shows only REJECT Blocked by the security group or the inbound NACL Source always shows the NAT gateway's address Add pkt-srcaddr / pkt-dstaddr to a custom flow log format Small requests fine, large uploads hang MTU black hole — allow ICMP type 3 code 4, or clamp MSS One AZ cannot reach anything through the TGW No attachment subnet in that AZ Stateful firewall resets long-lived sessions intermittently Enable appliance mode on the inspection VPC attachment TGW peering established, routes propagate locally, nothing crosses Peering needs static routes — propagation is unsupported BGP up on the transit VIF, on-prem learns nothing Empty allowed-prefixes list on the DXGW-to-TGW association VPN drops overnight and returns when someone pings Dead Peer Detection clearing on idle — set action to restart VPN drops cleanly every few hours IKE rekey — align phase 1/2 lifetimes Client VPN connects, routes exist, still times out Missing authorization rule Single transfer stuck at 5 Gbps Per-flow limit — cluster placement group (10 Gbps) or parallelise Throughput fine for ten minutes then drops Network I/O credits exhausted Route to on-prem broke after someone added a route A static route now beats the VGW propagation
Trigger phrases¶
If the stem contains the phrase on the left, the answer almost always contains the thing on the right.
| Stem says | Answer contains |
|---|---|
| Overlapping CIDRs, will not re-IP | PrivateLink (or private NAT gateway) |
| On-premises needs S3 over private IPs | S3 interface endpoint |
| Hundreds or thousands of consumers | PrivateLink endpoint service |
| Provider cannot identify the caller | Proxy Protocol v2 |
| Must not traverse the internet | Direct Connect, or interface endpoint |
| Encrypted, private addressing, Transit Gateway | Private IP VPN over transit VIF |
| 4 Gbps+ encrypted over the internet | TGW + multiple VPN tunnels + ECMP |
| Sub-second failover on a hybrid link | BFD |
| 99.99% hybrid availability | Maximum Resiliency |
| Prepending isn't working (private VIF) | A local-pref community outranks AS_PATH |
| Prepending isn't working (public VIF) | Private ASN — use longer prefixes instead |
| ISP complains about re-advertised routes | NO_EXPORT community |
| Firewall sees only half the conversation | Appliance mode |
| Inspect transparently, no address changes | Gateway Load Balancer + GENEVE |
| Static IPs and UDP | Global Accelerator |
| Static IPs and host/path routing | NLB fronting an ALB |
| Zone apex pointing at an AWS resource | Alias record |
| Data leaving via DNS queries | Resolver DNS Firewall + Resolver query logging |
| Every account including future ones | Firewall Manager |
| Prove something cannot happen | Network Access Analyzer |
| Which component is blocking this path | Reachability Analyzer |
| Certificate must go on an EC2 instance | ACM Private CA — public ACM keys can't be exported |
| Certificate for CloudFront | Must be in us-east-1 |
| IPv6 outbound only | Egress-only internet gateway |
| Multicast | Transit Gateway |
| Cut NAT gateway cost across many VPCs | Centralised egress VPC behind a TGW |
| Reduce operational overhead across Regions | Cloud WAN |
Elimination list — an option containing any of these is wrong - A gateway endpoint reached from on-premises, over DX, VPN, peering or TGW.
-
VPC peering being transitive, or a peer using your IGW, NAT gateway, VGW or gateway endpoint.
-
TGW peering with route propagation — it is static-only.
-
A security group denying anything. They allow only.
-
WAF attached to an NLB. WAF is CloudFront, ALB, API Gateway, AppSync, Cognito, App Runner.
-
A NAT gateway for IPv6. That is an egress-only internet gateway.
-
ECMP on a VGW, or more than 1.25 Gbps aggregate through one.
-
Accelerated VPN on a VGW — Transit Gateway attachments only.
-
Jumbo frames over a VPN or a public VIF. Both are 1500.
-
Peering, TGW or DX joining networks with overlapping CIDRs.
-
Security group referencing across inter-Region peering or Transit Gateway peering. (Across one Transit Gateway in one Region the exam-era answer is also "no". Today it works if enabled on the TGW and both VPC attachments.)
-
Exporting the private key of a public ACM certificate.
-
Local-preference communities on a public VIF, or scope communities on a private VIF.
-
AS_PATH prepending on a public VIF with a private ASN — it is ignored.
-
More than one transit VIF per Direct Connect connection. (True when the exam was written. The limit is 4 today, so do not eliminate on this alone.)
-
A LAG offered as the answer to a resiliency requirement.
-
A subnet being resized, or a VPC's primary CIDR being changed.
-
Traffic mirroring or TGW multicast on non-Nitro instances.
01
The Route Priority Ladders¶
D1 D2
In plain terms — Why routes need a refereeA router keeps a list of destinations and where to send traffic for each. The problem is that the same destination often appears more than once, learned in different ways — so something has to break the tie. Think of a postal sorting office with several instruction sheets pinned to the wall, some handwritten by the manager and some faxed in automatically. When two sheets disagree, staff need a standing rule about which one to obey. These four ladders are that standing rule, and AWS applies them silently every time a packet moves.
If you memorise one thing for ANS-C01, make it these four ladders. A large share of the hardest questions are just "two routes match — which one wins?" dressed up in a diagram. Tap any rung for the detail.
Ladder A · VPC route table evaluation¶
traffic leaving a VPC subnet
1 Longest prefix match Most specific wins, always, regardless of how the route got there. 10.10.2.15/32 beats 10.10.2.0/24 beats 10.10.0.0/16. This is the tiebreaker AWS reaches for first and it overrides everything below.
2 Static over propagated Same prefix, one static and one propagated from a VGW → the static route wins. This is the classic "my Direct Connect stopped working after someone added a static route" question.
3 Among propagated: DX BGP Direct Connect BGP (dynamic) routes are preferred over anything VPN.
4 Then: VPN static Static routes configured on the Site-to-Site VPN connection.
5 Then: VPN BGP Dynamic BGP routes learned over the VPN. Lowest priority of the propagated set — which is exactly why DX-plus-VPN-backup works without any manual failover.
DX BGP > VPN static > VPN BGP — but a same-prefix static entry beats all three.
Ladder B · Transit Gateway route table evaluation¶
equal-CIDR routes across attachment types 1 Most specific route Same rule as a VPC route table. Only when prefixes are identical do the rungs below matter. 2 Static routes Manually created TGW routes — including the static route you must add for a TGW peering attachment, which cannot use propagation at all. 3 Prefix list references Prefix-list-referenced routes sit just below statics and above every propagated source. 4 Propagated: VPC VPC attachment propagations. 5 Propagated: DX Gateway Routes learned via a Transit VIF / DX Gateway association. 6 Propagated: TGW Connect SD-WAN appliance routes over a Connect attachment (GRE + BGP). 7 Propagated: Site-to-Site VPN Bottom of the stack. VPC beats DX beats Connect beats VPN when the CIDR is identical. VPC > DXGW > Connect > VPN. TGW peering is static only — no propagation, no route tables shared.
Ladder C · Private / Transit VIF — how AWS picks a path back to you¶
AWS → on-premises, multiple VIFs advertising the same prefix
1 Longest prefix match A VIF advertising 172.31.0.0/24 takes that traffic even if two other VIFs advertise 172.31.0.0/16. Splitting your advertisement into longer prefixes is the private-ASN way to force a primary.
2 Local preference BGP community 7224:7300 high > 7224:7200 medium > 7224:7100 low. Evaluated before AS_PATH — this is the single most-missed ordering fact on the exam.
3 Region-to-DX-location distance With equal prefixes and no local-pref tags, AWS prefers the DX location closest to the Region — "lower network cost wins". A us-east-1 VPC prefers the us-east DX location over us-west.
4 AS_PATH length Only breaks ties between VIFs at the same DX location. Prepend your ASN to make a VIF less attractive. Cannot beat a local-pref community.
Prefix → local-pref community → distance → AS_PATH. Local-pref outranks AS_PATH.
Ladder D · Public VIF¶
path selection vs. scope control — two different jobs
P Path: longest prefix, then AS_PATH Public VIFs get no local-preference communities. Your only levers are prefix length and AS_PATH prepending — and prepending only works if you own a public ASN.
I Inbound scope (you → AWS) 7224:9100 local Region only · 7224:9200 whole continent · 7224:9300 global, all public Regions — and 9300 is the default if you tag nothing.
O Outbound scope (AWS → you) AWS tags what it sends you: 7224:8100 routes from the same Region as the DX PoP · 7224:8200 same continent · no tag = global. Every route also carries NO_EXPORT, so you must not re-advertise AWS prefixes beyond your own network.
9xxx = inbound, 8xxx = outbound, 7xxx = local-pref (private/transit VIF only).
Two Private VIFs at the same DX location both advertise 10.1.0.0/16. The customer prepends AS_PATH on VIF-B, but AWS still sends return traffic down VIF-B. What did they miss?
** A local-preference community is set on VIF-B (7224:7300 or 7224:7200) and it outranks AS_PATH. ** Local-pref communities are evaluated before AS_PATH. Remove the higher tag from VIF-B or raise VIF-A to 7224:7300.
A customer with a private ASN wants an active/passive pair of Public VIFs. AS_PATH prepending isn't changing anything. What actually works?
Advertise longer prefixes on the primary — split X.X.X.0/24 into X.X.X.0/25 and X.X.X.128/25 — and keep the /24 on the backup. On a Public VIF with a private ASN, AWS ignores AS_PATH prepending and load balancing isn't supported. Longest prefix match is the only lever.
A VPC has a propagated 192.168.0.0/16 route from the VGW and someone adds a static 192.168.0.0/16 route pointing to a NAT gateway. Traffic to on-prem breaks. Why?
Static routes beat propagated routes at equal prefix length. The static entry silently supersedes the VGW propagation. Delete the static or make the VGW route more specific. 02
IP addressing, VPC anatomy & scale¶
D1 D2
In plain terms — Addresses and the space they live inEvery machine on a network needs an address, and a CIDR block is just a way of writing down a range of them — 10.0.0.0/16 means roughly 65,000 addresses starting at 10.0.0.0. A VPC is your own private stretch of address space inside AWS.
The recurring headache is that two organisations independently picked the same range, the way two towns can both have a Main Street. You cannot deliver post to "14 Main Street" without saying which town. Most of this section is about avoiding that collision, or working around it once it has happened.
The unglamorous domain that quietly decides half the design questions: how many addresses you actually get, what you can and cannot change later, and how you avoid the overlap that ruins a merger.
The five addresses AWS takes from every subnet¶
In a 10.0.0.0/24 subnet you get 251 usable addresses, not 256:
| Address | Reserved for |
|---|---|
| .0 | Network address |
| .1 | VPC router |
| .2 | Amazon DNS — the "VPC base + 2" resolver (also.2 in every subnet, mapping to VPC base +2) |
| .3 | Reserved for future AWS use |
| .255 | Broadcast address (AWS doesn't support broadcast, but it's still reserved) |
Sizing rules¶
-
VPC CIDR: /16 minimum size down to /28 — that is, between /16 and /28 inclusive.
-
You can add up to 4 secondary CIDR blocks (5 total) to a live VPC; the primary CIDR can never be changed or removed.
-
Secondary CIDRs must not overlap, and cannot come from a different RFC 1918 range than the primary if that range is already routed elsewhere in the route table.
-
Subnets cannot be resized. Ever. Delete and recreate.
Solving overlapping CIDRs — the four-option decision¶
| Constraint | Answer |
|---|---|
| You control both sides and can take an outage | Re-IP one network. Cleanest, rarely the exam answer. |
| Consumer only needs to reach a service, not the whole VPC | AWS PrivateLink. Overlap is irrelevant — traffic lands on an ENI in the consumer's own address space. The canonical answer. |
| Only part of the VPC overlaps | Secondary non-overlapping CIDR on the VPC, move workloads into it, advertise only that range. |
| Must present a different source range to the peer | Private NAT Gateway to hide the overlapping subnet behind a non-overlapping one. |
TrapVPC peering, Transit Gateway, and Direct Connect all refuse overlapping CIDRs. If the stem says "overlapping" and offers TGW, it's a distractor — look for PrivateLink or private NAT.
IPAM, BYOIP and prefix lists¶
Amazon VPC IPAMPlans, tracks and allocates CIDRs org-wide. Scopes (public/private) contain pools, which are hierarchical. Auto-discovers existing resources, alerts on overlap, and shows utilisation. Shared through AWS RAM.
BYOIPBring your own public range: /24 minimum for IPv4, /48 for IPv6. Requires a ROA in RPKI plus an X.509 self-signed cert in the RDAP/whois record to prove ownership. Takes days. Used to preserve IP reputation on migration.
Managed prefix listsNamed sets of CIDRs usable in route tables and security groups. Customer-managed (yours, shareable via RAM) or AWS-managed (e.g. com.amazonaws.region.s3, DynamoDB, CloudFront) — the AWS ones are read-only and are how you allow S3 egress without hardcoding ranges.
Egress-only IGWThe IPv6 equivalent of a NAT gateway: outbound-only, stateful, free. There is no such thing as NAT for IPv6 in AWS — if the stem says "IPv6 instances need internet access but must not be reachable", this is the answer.
Two companies merge. Both run 10.0.0.0/16. Company A must consume a single REST API in Company B. Least-effort connectivity?
PrivateLink: NLB in front of the API in B, VPC endpoint service, interface endpoint in A. No routing between the VPCs at all, so the overlap never matters. Peering and TGW would both be rejected.
An architect wants instances in a private subnet to reach the internet over IPv6 for OS patching, with no inbound reachability. NAT gateway is proposed. Correct?
No — use an egress-only internet gateway. NAT gateways handle IPv4 only. EIGW is the IPv6 outbound-only path, and it's free. 03
Peering, endpoints & PrivateLink¶
D1 D2 D4
In plain terms — Three different meanings of "connect"These three options sound interchangeable and are not. Peering joins two private networks so machines on both sides can talk — like knocking a door through a shared wall. PrivateLink exposes one single service without joining the networks at all — like a serving hatch: things come through it, but nobody walks between the rooms. Endpoints are private side doors into AWS services such as storage, so your traffic never goes out onto the public internet to reach them. The exam's favourite trick is that one kind of side door only works from inside the building.
Three ways to reach something privately, and the exam lives in the differences between them. The deciding questions are always: how many networks, whose address space, and does anything need to be transitive?
Gateway vs Interface endpoint — the fork¶
| Gateway endpoint | Interface endpoint (PrivateLink) | |
|---|---|---|
| Services | S3 and DynamoDB only | Almost everything else, plus partner and your own services |
| Mechanism | Route table prefix-list entry | ENI with a private IP in your subnet |
| Cost | Free | Hourly per-AZ charge + per-GB |
| Security | Endpoint policy only — no security group | Endpoint policy and security group |
| On-prem reachable? | No. Not over DX, VPN, peering, or TGW | Yes — over DX, VPN, peering and TGW |
| Cross-Region | No | No (but see cross-Region PrivateLink for endpoint services) |
The single highest-yield fact hereIf on-premises needs private access to S3, a gateway endpoint will not work — you need an S3 interface endpoint (or a proxy in the VPC). Gateway endpoints are unreachable from outside the VPC, full stop.
Gateway endpoints are route-table constructs and stop at the VPC edge. Interface endpoints are ENIs, so anything that can route to the VPC can reach them.
VPC Peering — what it will not do¶
-
Non-transitive. A↔B and B↔C does not give you A↔C. This is the whole reason Transit Gateway exists.
-
No overlapping CIDRs. No exceptions.
-
Edge-to-edge routing is not supported: a peer cannot use your IGW, NAT gateway, VPN/VGW, gateway endpoint, or DX connection.
-
You must add routes on both sides, in every relevant route table.
-
Security group referencing across a peering works — but only intra-Region. Inter-Region peering cannot reference peer security groups.
-
Inter-Region peering traffic is encrypted by AWS and stays on the AWS backbone; MTU drops to 8500.
-
Only one peering connection between the same pair of VPCs.
PrivateLink / endpoint services — provider side¶
-
Provider fronts the service with a Network Load Balancer (or a Gateway Load Balancer for appliances). ALB is supported only behind an NLB.
-
Provider creates a VPC endpoint service; consumers create interface endpoints and must be allow-listed by principal ARN unless acceptance is disabled.
-
Traffic is one-directional: consumer → provider. The provider cannot initiate.
-
Provider sees the endpoint ENI's IP, not the consumer's — enable Proxy Protocol v2 on the NLB to recover the true source.
-
Private DNS lets consumers keep using the public service hostname; it requires
enableDnsHostnamesandenableDnsSupporton the consumer VPC.
TrapPrivateLink scales to thousands of consumers and tolerates overlapping CIDRs; peering and TGW do neither. But PrivateLink exposes one service, not a network — if the stem needs full bidirectional network reachability, it's the wrong answer.
On-prem servers must write to S3 over Direct Connect without traversing the internet. Team has a gateway endpoint and it isn't working. Two valid fixes?
(1) Interface endpoint for S3 in the VPC, reached over the private VIF. (2) Public VIF to Amazon's public S3 prefixes — private in the sense of not using the internet, though it uses public IPs. Gateway endpoints are only usable from inside the VPC. Interface endpoint is the answer when "private IPs" is stated; public VIF when "avoid the internet" is stated but public addressing is acceptable.
A SaaS provider must expose their app to 400 customer VPCs, many of which use 10.0.0.0/16. Which pattern?
VPC endpoint service (PrivateLink) fronted by an NLB. Overlap-proof and scales to thousands of consumers. Peering would need 400 connections and would fail on overlap.
Provider's application logs show every request coming from 10.0.1.x, so they can't tell customers apart. Fix?
Enable Proxy Protocol v2 on the NLB target group. Through PrivateLink the provider sees the endpoint ENI's address. Proxy Protocol v2 prepends the original source, including the endpoint ID. 04
Transit Gateway¶
D1 D2
In plain terms — The switchboardIf you have twenty private networks that all need to reach each other, connecting each pair individually means 190 separate links to build and maintain. That does not scale, and it is the reason Transit Gateway exists. It works like an old telephone switchboard: everything plugs in once, and the operator's rules decide which callers can be connected to which. Two settings do all the work — where an attachment's traffic gets looked up, and who gets told the attachment exists.
The centre of gravity for Domain 2. Almost every large-scale design question resolves to a TGW route-table decision, and the exam loves the four behaviours below: appliance mode, attachment-specific routing, ECMP, and what peering can't do.
Core mechanics¶
-
A TGW attachment is created per AZ: you pick one subnet per AZ, and AWS puts an ENI there. Traffic to an AZ with no attachment subnet is dropped.
-
Each attachment has two independent settings: which route table it associates with (where its traffic is looked up) and which route tables it propagates into (who learns about it). Isolation patterns are built purely from these two knobs.
-
Default route table association and propagation can be disabled — do that whenever the stem says "spoke VPCs must not talk to each other".
-
Per VPC attachment: 50 Gbps in exam-era material, up to 100 Gbps today; 1.25 Gbps per VPN tunnel, up to 50 Gbps aggregate with ECMP.
-
TGW supports multicast (VPC peering and DX do not) and appliance mode.
-
Shared across accounts with AWS RAM. Attachments can be cross-account; route tables stay with the owner.
The isolation patterns¶
| Requirement | Route table design |
|---|---|
| Full mesh | One route table; all attachments associate and propagate into it. |
| Spokes reach shared services but not each other | Two tables. Spokes associate with "Spoke RT" which only has the shared-services route; shared services associates with "Shared RT" which receives all spoke propagations. |
| Spokes reach on-prem only | Spoke RT contains only the DX/VPN attachment route; no spoke propagations into it. |
| All traffic inspected | Spoke RT has 0.0.0.0/0 → inspection VPC attachment; inspection RT has the return routes. |
Appliance mode — the flow-symmetry fix¶
By default a TGW picks an AZ per flow direction independently, so a stateful appliance can see the request in AZ-a and the response in AZ-b and drop it. Appliance mode, enabled on the inspection VPC's attachment, pins both directions of a flow to the same AZ. Exam shape"Firewall drops asymmetric traffic" / "intermittent connection resets through the inspection VPC" / "return traffic taking a different AZ" → enable appliance mode on the security VPC attachment. Not on the spokes.
Connect, peering, multicast¶
TGW ConnectAttaches an SD-WAN or third-party virtual appliance using GRE tunnels + BGP, over an existing VPC or DX attachment. Up to 5 Gbps per Connect peer (one GRE tunnel), 4 peers per Connect attachment, so 20 Gbps with ECMP. Higher throughput than a VPN attachment and no IPsec overhead.
TGW peeringInter-Region and cross-account. Static routes only — no propagation, no route-table sharing. Traffic is encrypted on the AWS backbone. Does not support multicast, and does not support ECMP across peering attachments.
MulticastTGW multicast domains with a source, group and members. Requires IGMPv2 or static member registration. Nitro instances only; not supported over peering.
Centralised egressSpoke VPCs route 0.0.0.0/0 to the TGW; an egress VPC holds the NAT gateway and IGW. Saves per-VPC NAT cost, but adds TGW data-processing charges — the exam usually rewards it above ~3 VPCs.
TrapExam-era rule: you cannot reference a security group across a Transit Gateway, only over intra-Region VPC peering, so use CIDRs or prefix lists. Today it works between VPC attachments on the same TGW when enabled on the TGW and the attachments, and still never across TGW peering or Regions.
TGW vs peering vs PrivateLink — pick one¶
| Signal in the stem | Answer |
|---|---|
| Two VPCs, lowest cost, lowest latency, no transitivity needed | VPC peering (no per-GB processing fee inside an AZ pair; no hourly attachment charge) |
| Dozens/hundreds of VPCs, central routing, hybrid | Transit Gateway |
| Expose one service, overlapping CIDRs, many consumers | PrivateLink |
| Multicast | Transit Gateway only |
| Reference peer security groups | Intra-Region VPC peering only |
| Share subnets rather than connect VPCs | VPC sharing via RAM — participants launch into the owner's subnets; no data-transfer charge at all |
Spoke VPCs reach the shared-services VPC fine, but a stateful firewall in the inspection VPC intermittently resets long-lived sessions. Single change?
Enable appliance mode on the inspection VPC's TGW attachment. Without it, forward and return flows can land in different AZs and the appliance sees half a conversation.
Two TGWs are peered across Regions. Routes propagate fine within each Region but nothing traverses the peering. Why?
TGW peering attachments require static routes — propagation is not supported. Add a static route in each TGW route table pointing the remote CIDR at the peering attachment.
Instances in AZ-c can't reach anything through the TGW; AZ-a and AZ-b are fine. Cause?
The VPC attachment has no subnet selected in AZ-c. TGW needs an attachment ENI in every AZ where traffic originates; otherwise it's silently dropped.
50 spoke VPCs each run their own NAT gateway. Finance wants the egress bill cut without giving spokes internet-reachable subnets. Design?
Centralised egress VPC: one NAT gateway (per AZ) plus IGW in an egress VPC, spokes default-route to the TGW. Collapses 50 NAT gateways to 2–3. Weigh the added TGW data-processing charge, but at 50 VPCs it wins comfortably. 05
Site-to-Site VPN & Client VPN¶
D1 D2 D4
In plain terms — A private tunnel over a public roadA VPN sends your traffic across the ordinary internet, but wrapped in encryption so nobody in between can read it. The internet is a public road; the VPN is an armoured van on it. You get privacy, but not control over traffic conditions. Site-to-Site joins a whole office network to AWS permanently. Client VPN connects one person's laptop from wherever they are. Most troubleshooting in this section is about tunnels quietly dropping when nothing is being sent through them.
Site-to-Site VPN essentials¶
-
Every connection is two tunnels terminating on endpoints in two different AZs. AWS considers a connection "up" with one tunnel; your CGW should be configured for both.
-
1.25 Gbps per tunnel, and a single VGW aggregates to 1.25 Gbps no matter how many connections you attach. To go faster you need Transit Gateway + ECMP, which scales to 50 Gbps.
-
ECMP requires dynamic (BGP) routing and a Transit Gateway. A VGW cannot ECMP.
-
Ports: UDP 500 (IKE), UDP 4500 (NAT-T), IP protocol 50 (ESP). Missing 4500 behind NAT is a classic troubleshooting stem.
-
Default Amazon-side ASN on a VGW is 64512. Customer ASN can be public or private (64512–65534, or 32-bit).
-
Terminate on a VGW (simple, one VPC) or a TGW (many VPCs, ECMP, accelerated VPN).
-
MTU over any Site-to-Site VPN is 1500 — no jumbo frames, whether via VGW or TGW.
Troubleshooting an unstable tunnel¶
| Symptom | Cause / fix |
|---|---|
| Tunnel drops when idle | Dead Peer Detection timeout with no traffic. Generate keepalive traffic, or set DPD action to restart instead of clear. |
| Drops every few hours, cleanly | IKE rekey. Align phase 1/2 lifetimes on both ends; use the AWS rekey fuzz/margin settings. |
| Comes up then fails on data | Phase 2 mismatch, or an MTU/MSS problem — clamp MSS to 1379 for IPsec. |
| One tunnel never comes up | Peer only configured for one endpoint, or asymmetric firewall rules. |
| Routes learned but no traffic | Route propagation not enabled on the VPC route table, or the subnet uses a different table. |
The specialised VPN patterns¶
Accelerated Site-to-Site VPNRoutes tunnel traffic onto the AWS global backbone from the nearest edge via AWS Global Accelerator. Transit Gateway attachments only — not supported on a VGW. NAT-T is required (on by default) and the customer gateway must start IKE. It cannot be switched on for an existing connection: create a new one. Corrected: this card used to say NAT-T was unsupported. Answer whenever the stem says "inconsistent internet latency to the VPN endpoint". VPN CloudHubMultiple customer gateways to a single VGW with BGP, letting branch offices route to each other through AWS. Cheap hub-and-spoke WAN. Requires dynamic routing and unique ASNs per site. Private IP VPN over DXIPsec over a transit VIF using private IP tunnel endpoints. Needs a Transit Gateway. This is how you get encryption over Direct Connect without exposing public IPs — and it supports ECMP. VPN as DX backupStandard resilient design: DX primary, Site-to-Site VPN standby. Failover is automatic because DX BGP routes outrank VPN routes in the propagation ladder. Prepend AS_PATH on the VPN to be explicit.
Client VPN¶
-
Managed OpenVPN-based remote access. Authentication: mutual certificate, Active Directory (Directory Service), or SAML federation (IAM Identity Center / Okta).
-
Client CIDR must be /22 or larger (up to /12), must not overlap the VPC or any routed network, and cannot be changed after creation.
-
Split tunnel sends only VPC-bound traffic through the tunnel — enable it when the stem complains about internet traffic hairpinning or endpoint bandwidth cost. Default is full tunnel.
-
Two separate controls: a route to the destination, and an authorization rule granting a group access to that CIDR. Missing either one breaks it — and "route exists but users still denied" means the authorization rule.
-
Client-to-client traffic requires a route and authorization rule for the client CIDR itself.
-
Security groups are applied to the endpoint's association with a subnet.
A customer needs 4 Gbps of encrypted throughput to AWS over the internet. They propose four Site-to-Site VPN connections to a VGW. Will it work?
No — a VGW is capped at 1.25 Gbps aggregate regardless of connection count. Terminate on a Transit Gateway with multiple VPN connections and BGP, using ECMP to bond the tunnels.
VPN tunnel drops nightly during a maintenance window with no traffic, and reconnects only when someone pings. Fix?
Dead Peer Detection is clearing the SA on idle — set the DPD action to restart, or run a keepalive. The default DPD behaviour tears the tunnel down after ~30s of no response and doesn't rebuild it until traffic arrives.
Client VPN users authenticate successfully and the route to 10.20.0.0/16 exists, but connections time out. What's missing?
An authorization rule for 10.20.0.0/16. Routes and authorization are independent. Both are required. 06
Direct Connect¶
D1 D2 D3
In plain terms — Your own private roadDirect Connect is a physical cable — actual fibre — running from your equipment to Amazon's, meeting inside a shared building called a DX location. No internet involved. If a VPN is an armoured van on a public road, this is a private road you have leased. A single cable can carry several separate logical channels, called virtual interfaces, each reaching a different part of AWS. Two things people assume but that are not true: the cable is not encrypted, and one cable is not redundancy.
The densest single topic on the exam. Know the three VIF types cold, know what a DX Gateway will and won't do, and know the resiliency models by name — AWS asks for them by name.
The three virtual interfaces¶
| Public VIF | Private VIF | Transit VIF | |
|---|---|---|---|
| Reaches | All AWS public endpoints, globally (S3, DynamoDB, public ELB, EIPs) | Private IPs inside a VPC | Transit Gateways via a DX Gateway |
| Terminates on | Nothing — direct to AWS public prefixes | VGW or DX Gateway | DX Gateway only |
| MTU | 1500 | 1500 or 9001 | 1500 or 8500 |
| Prefixes you can advertise | 1000 | 100 | 100 |
| Per connection | Many | Many | One exam-era · 4 today |
| Routing control | Prefix length, AS_PATH, scope communities (9xxx/8xxx) | Prefix length, local-pref communities (7xxx), AS_PATH |
Private VIF blind spotsA private VIF does not give on-prem access to the VPC's DNS resolver at base+2 (you need Route 53 Resolver inbound endpoints) and does not reach gateway endpoints.
Direct Connect Gateway¶
-
Global object, reachable from any Region (except China). Lets one DX connection serve many VPCs in many Regions and accounts.
-
Associates with up to 10 VGWs (private VIF path) or 3 Transit Gateways (transit VIF path) in exam-era material. Today: 20 and 6.
-
No transitive routing. VPC-to-VPC through a DXGW is not possible, and neither is on-prem-to-on-prem across two VIFs.
-
Attached VPCs must have non-overlapping CIDRs.
-
Advertises a maximum of 100 routes each for IPv4 and IPv6 to your router.
-
For TGW associations you configure an allowed-prefixes list (max 20 exam-era, 200 today) — this is what actually gets advertised on-prem, and forgetting it is why "TGW attached but nothing advertised" happens.
Resiliency models — by name¶
| Model | Build | SLA |
|---|---|---|
| Maximum Resiliency | Two connections at two separate DX locations, each terminating on separate devices. Four connections total for critical workloads. | 99.99% |
| High Resiliency | Two connections at two separate DX locations, single device each. | 99.9% |
| Development / test | Two connections at a single location, separate devices. Resilient to device failure only. | — |
| Single + VPN backup | One DX plus Site-to-Site VPN failover. Cheapest resilient option. | — |
Failover testing: the DX Resiliency Toolkit can force a BGP session down for a set period so you can prove failover without pulling a cable.
Connection features¶
LAGBundles up to 4 connections into one logical link using LACP. All members must be the same bandwidth, on the same AWS device, and you set a minimum links value — if fewer are up, the whole LAG goes down. Note a LAG is not a resiliency story: single device, single location. BFDBidirectional Forwarding Detection. AWS default is 300 ms × 3 = ~900 ms detection, versus ~90 s for BGP hold time. Enabled on the AWS side by default but must be configured on your router. The answer to "failover takes 90 seconds, make it faster". MACsecLayer-2 line-rate encryption on dedicated 10, 100 and 400 Gbps connections at supported locations. Point-to-point to the DX location only — it does not encrypt end-to-end into the VPC. SiteLinkOn-prem to on-prem across the AWS global backbone between DX locations, without touching a VPC. Enabled per-VIF. Answer for "connect our branch offices to each other using our existing DX footprint". Dedicated vs hostedDedicated: 1 / 10 / 100 / 400 Gbps, ordered from AWS, you can create multiple VIFs. Hosted: 50 Mbps – 25 Gbps from a partner, and a hosted connection supports exactly one VIF. Sub-1 Gbps means hosted, always. BillingYou pay port hours plus data transfer out at the reduced DX rate. Port hours are billed to whoever owns the connection; DTO is billed to the account that owns the VIF. Data transfer in is free.
Encryption over DXDirect Connect is not encrypted by default. Three answers depending on the constraint: VPN over public VIF (classic, public IPs), private IP VPN over transit VIF (private IPs, needs TGW), or MACsec (line-rate, but only as far as the DX location).
DX fails and failover to the backup VPN takes about 90 seconds. Business needs sub-second. What do you enable?
BFD on the Direct Connect BGP session. Detection drops from BGP's ~90 s hold timer to roughly 900 ms. AWS enables it on its side; configure your router to match.
A customer needs 99.99% DX availability for a payments workload. What exactly do you specify?
Maximum Resiliency: separate connections at two different DX locations, terminating on separate devices at each location. Two connections at one location is dev/test. Two locations with one device each is High Resiliency at 99.9%.
Transit VIF is up, TGW is associated with the DX Gateway, BGP is established — but on-prem learns nothing. Cause?
The allowed-prefixes list on the DX Gateway ↔ TGW association is empty. Unlike a VGW association, a TGW association advertises only what you explicitly list (max 20 prefixes exam-era, 200 today).
Compliance demands encryption in transit over Direct Connect, using private addressing only, terminating on a Transit Gateway. Which option?
Private IP Site-to-Site VPN over a transit VIF. VPN over public VIF uses public IPs. MACsec only protects the link to the DX location and isn't TGW-specific.
Two 1 Gbps connections in a LAG with minimum links = 2. One fails. What happens to traffic?
The entire LAG goes down — both links stop carrying traffic. Minimum links is a hard threshold. Set it to 1 if degraded operation is preferable to an outage. 07
BGP: the four levers¶
D1 D2
In plain terms — How networks tell each other what they can reachBGP is a conversation between routers. Each one announces "I can get you to these addresses," and when several routers announce the same destination, the listener has to choose. The attributes in this section are the polite ways of saying "prefer me" or "please avoid me." The part that catches people out is direction. You can make your own traffic leave by a chosen door, and you can make your announcements look less attractive so others avoid a path — but you can never directly command another network's choices.
Every "make this path primary" question is answered by choosing the right attribute for the right direction. Get the direction wrong and the plausible-looking answer is wrong.
Which lever, which direction¶
| Attribute | Controls | Better = | Scope |
|---|---|---|---|
| Weight | Outbound from one router | Higher | Cisco-proprietary, never leaves the router |
| ** LOCAL_PREF ** | ** Outbound** — how your AS leaves | Higher | Propagates inside your AS only (iBGP) |
| ** AS_PATH ** | ** Inbound** — how others reach you | Shorter | Global; prepend to make a path less attractive |
| MED | Inbound from one specific neighbour AS | Lower | Only compared between paths from the same AS; often ignored by default |
Standard tiebreak order (once prefix length is equal): Weight → LOCAL_PREF → locally originated → shortest AS_PATH → Origin (IGP < EGP < Incomplete) → lowest MED → eBGP over iBGP → lowest IGP metric → oldest route → lowest router ID. MnemonicLocal-pref pushes traffic out; AS_PATH and MED pull traffic in. You cannot change how someone else's AS behaves — you can only make your advertisements look better or worse.
Mapped onto AWS¶
| Goal | Public VIF | Private / Transit VIF |
|---|---|---|
| Make AWS prefer a path back to you | Longer prefix, or AS_PATH prepend ( public ASN only) | 7224:7300 / 7200 / 7100 local-pref community, then AS_PATH |
| Make your routers prefer a path to AWS | Set LOCAL_PREF on your own routers — AWS has no say in this | |
| Control how far your prefixes travel in AWS | 7224:9100 / 9200 / 9300 (default 9300 = global) | n/a — a private VIF reaches only its associated VPCs |
| Know what AWS is sending you | 7224:8100 / 8200 / untagged, all with NO_EXPORT |
n/a |
| Active/active load share | Same prefix, identical BGP attributes, public ASN | Same prefix, same local-pref community, same AS_PATH |
ASN facts worth memorising¶
-
Private 16-bit ASN range: 64512–65534. 32-bit private: 4200000000–4294967294.
-
AWS ASN on a public VIF is 7224 — which is why the communities are all
7224:xxxx. -
Default Amazon-side ASN on a VGW is 64512; on a TGW it's 64512 too. Choose them at creation, and remember that a DX gateway and the Transit Gateway it associates with must use different ASNs or the association fails.
-
Two DX connections in different Regions can use the same customer ASN; VIFs to the same DX gateway must not create an AS loop.
On-prem has two DX connections. They want AWS to send traffic down DX-1 and only fail to DX-2. Both are private VIFs at different locations. Cleanest change?
Tag DX-1's advertisement with 7224:7300 (high) and DX-2 with 7224:7100 (low). Local-pref communities are evaluated before both DX-location distance and AS_PATH, so they beat the geography.
A customer prepends AS_PATH three times on their backup link so AWS avoids it, but their own outbound traffic still uses the backup. Why?
** AS_PATH prepending only changes inbound traffic. Their outbound decision needs LOCAL_PREF on their own routers. ** Direction is the whole exam here: prepending affects what AWS does, not what you do.
A customer re-advertises AWS-learned public prefixes to their ISP and the ISP complains. What did they violate?
** The NO_EXPORT community AWS attaches to every public VIF advertisement. ** AWS prefixes must not be advertised beyond your own network boundary. 08
DNS: Route 53 & hybrid resolution¶
D1 D2 D4
In plain terms — The internet's address bookDNS turns names people can remember into the numeric addresses machines actually use. Every time you type a web address, something quietly looks it up first. The complication here is that a company usually has two address books — one for its own offices and one inside AWS — and neither can read the other by default. The fix is a pair of one-way bridges, and the only thing you must get right is which direction each bridge carries the question.
Task statement 2.3 — "implement complex hybrid and multi-account DNS architectures" — is worth a lot of marks, and it nearly always resolves to inbound versus outbound resolver endpoints.
Hybrid DNS: which endpoint, which direction¶
| Requirement | Answer |
|---|---|
| On-prem needs to resolve AWS names (private hosted zones, VPC endpoints, base+2) | Inbound resolver endpoint. On-prem DNS forwards to the endpoint's ENIs. |
| AWS resources need to resolve on-prem names | Outbound resolver endpoint + a resolver rule (forwarding rule) for the on-prem domain, associated with the VPC. |
| Both directions | Both endpoints. They are separate objects. |
| Many accounts need the same forwarding rules | Share the resolver rules via AWS RAM, then associate them with each VPC. |
-
Endpoints need at least two IP addresses in two AZs; each ENI handles ~10,000 queries per second.
-
A private VIF alone gives on-prem no access to base+2 — this is exactly why inbound endpoints exist.
-
Rule precedence: the most specific domain match wins. A rule for
corp.example.combeats one forexample.com. TypeSYSTEMrules overrideFORWARDrules for a domain, which is how you carve exceptions out of a broad forward.
Inbound = into AWS. Outbound = out of AWS. Name them by the direction the query travels, not the answer.
Routing policies¶
| Policy | Use it when |
|---|---|
| Simple | One record, no health checks possible on a multi-value simple record. |
| Failover | Active/passive with a health check. Classic static maintenance page on S3. |
| Weighted | Percentage splits — canary releases, blue/green, gradual migration. |
| Latency | Send users to the Region with the lowest measured latency to them. Not the same as geographic proximity. |
| Geolocation | Route by where the user is — compliance, language, licensing. Always add a default record or unmatched locations get no answer. |
| Geoproximity | Route by distance to your resources, with a bias to expand or shrink a region's catchment. Requires Traffic Flow. |
| Multi-value answer | Up to 8 healthy records returned; poor-man's load balancing with health checks. |
| IP-based | Route by client CIDR block — for ISP-aware routing. |
Alias vs CNAMEAlias works at the zone apex, is free to query, and targets AWS resources (ELB, CloudFront, S3 website, API Gateway, Global Accelerator, another record in the same zone). CNAME cannot exist at the apex and cannot coexist with other records for the same name. Apex + ELB → alias, every time.
Private hosted zones, DNS security, logging¶
Private hosted zoneRequires enableDnsHostnames and enableDnsSupport on every associated VPC. Cross-account association is a two-step dance: create-vpc-association-authorization in the zone owner's account, then associate-vpc-with-hosted-zone from the VPC owner's. Cannot be done in the console.
Route 53 Resolver DNS FirewallBlocks or alerts on outbound DNS queries by domain list — the control for DNS exfiltration. Uses AWS-managed lists (malware, botnet) or your own. Modes: ALERT and BLOCK, with block responses of NODATA, NXDOMAIN or OVERRIDE. Rule groups are ordered by priority.
DNSSECRoute 53 supports signing for public hosted zones (KSK backed by KMS asymmetric key, us-east-1 only) and validation on the Resolver. Signing proves your answers are authentic; validation protects your VPC from spoofed answers. Different features — read the stem carefully.
Query loggingTwo separate things: public hosted zone query logging → CloudWatch Logs, and Resolver query logging → CloudWatch Logs, S3, or Kinesis Data Firehose, covering VPC-originated queries. The Resolver one is what you need for "which instance looked up this malicious domain".
-
VPC DNS attributes:
enableDnsSupportturns on the base+2 resolver;enableDnsHostnamesassigns public DNS names. Both must be true for private hosted zones and for private DNS on interface endpoints. -
Route 53 Resolver limit: 1024 packets per second per ENI toward base+2. Hitting it shows as intermittent resolution failures — spread across more ENIs or cache locally.
EC2 instances must resolve corp.internal, hosted on-prem. On-prem must resolve records in a Route 53 private hosted zone. What do you build?
Both: an outbound endpoint with a forwarding rule for corp.internal, and an inbound endpoint that on-prem DNS conditionally forwards to. Endpoints are one-directional. Two requirements, two endpoints.
Security suspects data is leaving via DNS TXT queries to a suspicious domain. Which control, and how do you find the culprit?
Route 53 Resolver DNS Firewall to block the domain; Resolver query logging to identify the source instance. DNS Firewall is the enforcement, Resolver query logs are the attribution. GuardDuty also raises DNS-based findings.
example.com must point at an ALB at the zone apex, and the team wants to avoid extra query charges. Record type?
An alias A record targeting the ALB. CNAMEs are illegal at the apex, and alias queries to AWS targets are free.
An account-B VPC needs to resolve a private hosted zone owned by account A. Console shows no option. What's the procedure?
CLI/API only: account A runs create-vpc-association-authorization, then account B runs associate-vpc-with-hosted-zone. Cross-account PHZ association is not exposed in the console. 09
Edge services & load balancing¶
D1 D4
In plain terms — Getting closer to the user, and sharing the workCloudFront keeps copies of your content in hundreds of cities so a visitor in Bangkok is served locally instead of waiting for a round trip to Virginia. Global Accelerator does not keep copies; it just gets traffic onto Amazon's private network as early as possible. A load balancer sits in front of several servers and spreads requests across them, so no single machine is overwhelmed and a failed one can be skipped. The three types differ in how deeply they inspect what they are forwarding.
CloudFront vs Global Accelerator¶
| CloudFront | Global Accelerator | |
|---|---|---|
| Layer | HTTP/HTTPS (L7), caches | TCP/UDP (L4), no caching |
| Addressing | Distribution domain name | Two static anycast IPs |
| Best for | Static and cacheable dynamic content, WAF at the edge | Non-HTTP protocols, gaming, VoIP, IoT, MQTT; whitelisting a static IP |
| Failover | Origin groups | Near-instant regional failover — no DNS TTL to wait out |
Both use the AWS edge and backbone. The decision is almost always: cacheable HTTP → CloudFront; static IPs, UDP, or DNS-free failover → Global Accelerator.
CloudFront details that get asked¶
OAC vs OAIOrigin Access Control is current: supports SSE-KMS, all HTTP methods, and S3 in every Region. OAI is legacy and S3-only. New designs → OAC. Signed URL vs cookieURL = one file. Cookie = many files, and you don't have to rewrite URLs. Both use a trusted key group. Functions vs Lambda@EdgeCloudFront Functions: JS, sub-millisecond, viewer request/response only, no network or filesystem — header manipulation, redirects, URL rewrites at massive scale. Lambda@Edge: all four triggers, can call other services, up to 30 s at origin-side triggers. Four trigger pointsViewer request → origin request → origin → origin response → viewer response. Cache is checked between viewer request and origin request, so origin-side triggers only fire on a cache miss. Field-level encryptionEncrypts up to 10 POST fields with a public key at the edge, so only the service holding the private key can read them. For PCI-style "card number must not be readable by the app tier". Origin failoverAn origin group with primary and secondary plus failover status codes. Works with S3, ALB, or custom origins.
Load balancer selection and behaviour¶
| ALB | NLB | GWLB | |
|---|---|---|---|
| Layer / protocol | 7 — HTTP, HTTPS, gRPC | 4 — TCP, UDP, TLS | 3/4 — GENEVE, port 6081 |
| IP addressing | Dynamic, DNS name only | Static IP per AZ, EIP supported | Fronted by a GWLB endpoint |
| Cross-zone | On by default | Off by default | Off by default |
| Client IP | Preserved in X-Forwarded-For |
Preserved for instance targets; Proxy Protocol v2 for IP targets | Preserved — the appliance sees the original packet |
| Security group | Yes | Yes (since 2023) | No |
| Used for | Path/host routing, WAF, auth | Extreme throughput, static IPs, PrivateLink front end | Transparent inline appliances: firewalls, IDS/IPS, DPI |
-
GWLB keeps flow stickiness to one appliance using a 5-tuple (or 3-tuple) hash, so stateful inspection works. Traffic is encapsulated in GENEVE, preserving the original packet end to end.
-
A GWLB endpoint is a PrivateLink construct: you route to it from the VPC route table, exactly like a gateway to an appliance fleet in another VPC or another account.
-
NLB + ALB together (NLB in front, ALB as target) gives you static IPs and L7 routing — a recurring answer for "customer needs to whitelist IPs but we need host-based routing".
-
Cross-zone on NLB and CLB incurs inter-AZ data transfer charges; on ALB it does not.
A gaming backend uses UDP and customers must whitelist fixed IPs, with sub-second failover between two Regions. Design?
AWS Global Accelerator with two static anycast IPs, fronting an NLB in each Region. CloudFront can't do UDP. Route 53 failover is bound by TTL. GA fails over at the edge.
A third-party firewall appliance fleet must inspect all traffic between spoke VPCs transparently, without re-IPing anything. Which components?
Gateway Load Balancer with GENEVE, GWLB endpoints in each spoke, and appliance mode on the inspection VPC's TGW attachment. GWLB preserves the original packet; appliance mode keeps flow symmetry across AZs.
NLB targets in one AZ are overwhelmed while another AZ sits idle. Single setting?
Enable cross-zone load balancing on the NLB. It's off by default on NLB and GWLB, on by default on ALB. Note it adds inter-AZ data transfer cost. 10
Network performance¶
D1 D3
In plain terms — Why fast networks still feel slowTwo separate ideas get confused here. Bandwidth is how much can flow at once — the width of the pipe. Latency is how long one thing takes to arrive — the length of the pipe. A wide pipe does not make a long one shorter. MTU is the largest parcel a path will carry. Bigger parcels mean less overhead, but if one leg of the journey only accepts small ones, oversized parcels are either broken up or silently discarded. That silent discard is behind a surprising number of "it works for small files and hangs on big ones" faults.
The MTU table — memorise this¶
| Path | MTU |
|---|---|
| Within a VPC | 9001 |
| Intra-Region VPC peering | 9001 |
| Direct Connect — private VIF | 9001 |
| Inter-Region VPC peering | 8500 |
| VPC interface endpoint / PrivateLink | 8500 |
| Transit Gateway — VPC, peering and DX attachments | 8500 |
| Direct Connect via TGW ( transit VIF) | 8500 |
| Internet gateway / NAT gateway | 1500 |
| Direct Connect — public VIF | 1500 |
| Site-to-Site VPN — via VGW or TGW | 1500 |
TrapJumbo frames are on inside a VPC by default, so an instance sending 9001-byte frames toward the internet or a VPN will fragment or black-hole. Path MTU Discovery needs ICMP type 3 code 4 permitted through NACLs and security groups — blocking ICMP wholesale is the classic cause of "small requests work, large uploads hang".
Bandwidth ceilings¶
| Path | Limit |
|---|---|
| Single flow, outside a cluster placement group | 5 Gbps |
| Single flow, inside a cluster placement group | 10 Gbps |
| Aggregate, multi-flow, within a VPC / to a peered VPC / to S3 | Up to 100 Gbps (ENA) |
| To another Region, an IGW, or Direct Connect | 50% of instance bandwidth (current-gen, ≥32 vCPU), else 5 Gbps |
| NAT gateway | 45 Gbps; add gateways to scale |
| VGW aggregate / single VPN tunnel | 1.25 Gbps |
| Transit Gateway VPN aggregate (ECMP) | 50 Gbps |
| Transit Gateway per VPC attachment | 50 Gbps exam-era · up to 100 today |
| Internet gateway / VPC peering themselves | No limit — the instance is the bottleneck |
A flow is the 5-tuple (protocol, src IP, src port, dst IP, dst port). Single-flow limits are why a single large file transfer stalls at 5 Gbps while ten parallel streams saturate the link — the exam answer to "increase throughput" is often parallelise the transfer, not a bigger instance.
The acceleration stack¶
Enhanced networkingSR-IOV bypasses the hypervisor. Driver is ENA (up to 100 Gbps, current gen) or the legacy Intel 82599 VF / ixgbevf (10 Gbps). Verify with ethtool -i eth0. Free — enable it whenever the instance supports it.
EFAAn ENA with OS-bypass. HPC and ML workloads talk to Libfabric via MPI/NCCL, skipping the kernel entirely. Linux only (on Windows it behaves as a plain ENA). Pair with a cluster placement group.
DPDKReduces packet-processing overhead inside the OS, where SR-IOV reduces it between instance and hypervisor. Requires the application to be written against DPDK libraries. Complementary to ENA, not a replacement.
Placement groupsCluster — one AZ, lowest latency, 10 Gbps single-flow. Spread — distinct hardware, max 7 instances per AZ, for critical individual nodes. Partition — separate racks per partition, for HDFS/Cassandra-style topology awareness.
Network I/O creditsSmaller instances get a baseline plus burst on credits. Sustained high throughput on a burstable instance degrades to baseline — the answer to "throughput was fine for ten minutes then dropped".
Nitro requirementTraffic mirroring, TGW multicast, EFA and the highest bandwidth tiers all need Nitro-based instances. If the stem names an older family, that's the constraint being tested.
A file transfer between two instances in the same VPC plateaus at 5 Gbps even though both are 100 Gbps-capable. Two fixes?
(1) Put them in a cluster placement group to raise the single-flow cap to 10 Gbps. (2) Parallelise into multiple TCP flows to use the 100 Gbps aggregate. 5 Gbps is the per-flow limit outside a placement group; instance size doesn't change it.
Small HTTP requests over a Site-to-Site VPN succeed; large POSTs hang indefinitely. Cause?
MTU/PMTUD black hole — ICMP type 3 code 4 is being dropped, so the sender never learns to fragment. Permit that ICMP through NACLs and security groups, or clamp MSS (1379 for IPsec). 11
Observability & troubleshooting¶
D3
In plain terms — Finding out what actually happenedWhen traffic does not arrive, you need evidence, and the tools here answer genuinely different questions. Some tell you that something was blocked; one tells you what was inside the traffic; others reason about your configuration and tell you what would happen without sending anything at all. Picking the wrong one wastes hours. "Was this rejected?" and "what was in the packet?" and "could A ever reach B?" are three separate investigations.
Domain 3 is 20% of the exam and is mostly "which tool answers this question". The distinctions below are the whole game.
Tool selection¶
| Question being asked | Tool |
|---|---|
| "Is traffic being accepted or rejected, and by how much?" | VPC Flow Logs — metadata only |
| "What is in the packets?" | Traffic Mirroring — full payload |
| "Can A reach B, and if not, which component blocks it?" | Reachability Analyzer — config analysis, sends no packets |
| "Does any unintended path to the internet exist?" | Network Access Analyzer — scope-based, proves absence of a path |
| "Is my global TGW topology healthy?" | Transit Gateway Network Manager (+ Cloud WAN) |
| "Is my DX link healthy? BGP up? Light levels?" | CloudWatch DX metrics: ConnectionState, ConnectionBpsEgress/Ingress, ConnectionLightLevelTx/Rx, VirtualInterfaceBpsEgress |
| "Who made this network change?" | CloudTrail; AWS Config for the before/after state and drift |
| "Is internet-path performance to my users degrading?" | CloudWatch Internet Monitor; Network Monitor for hybrid path health |
VPC Flow Logs — the details¶
-
Levels: VPC, subnet, or ENI. Destinations: CloudWatch Logs, S3, or Kinesis Data Firehose. Aggregation interval 1 or 10 minutes.
-
Captures metadata, not payload: source/dest IP and port, protocol, packets, bytes, and
ACCEPT/REJECT. -
Not captured: traffic to the Amazon DNS server (base+2), instance metadata (169.254.169.254), Amazon Time Sync (169.254.169.123), DHCP, traffic to the reserved VPC router address, and Windows licence activation.
-
log-status:OKnormal ·NODATAno traffic in the window ·SKIPDATArecords were dropped due to capacity. -
Analyse with Athena (S3) or CloudWatch Logs Insights. Custom formats can add
pkt-srcaddr/pkt-dstaddr— essential behind a NAT gateway, wheresrcaddrshows the NAT's address instead of the real origin.
Reading a REJECTSecurity groups are stateful: a rejected inbound flow shows one REJECT. NACLs are stateless: a missing ephemeral port return rule (1024–65535) shows the request ACCEPTed and the response REJECTed. That asymmetry in the log is the tell for a NACL problem.
Traffic Mirroring¶
-
Source is an ENI on a Nitro instance. Targets: an ENI, a Network Load Balancer (UDP 4789), or a Gateway Load Balancer endpoint.
-
Traffic is VXLAN-encapsulated, so account for the overhead against MTU.
-
Three components: filters (what to capture, with rule numbers), sessions (source→target, with a priority number), and targets.
-
Mirrored traffic counts against the instance's bandwidth and is not subject to security groups on the way out.
-
Cross-VPC and cross-account mirroring is supported when the VPCs are peered or attached to the same TGW.
Flow logs show ACCEPT on inbound 443 and REJECT on the outbound response. Which control is misconfigured?
A network ACL — it's missing the outbound ephemeral port range (1024–65535). NACLs are stateless. A stateful security group would never produce that asymmetric pair.
Auditors want proof that no instance in a set of VPCs has any path to the internet. Which tool?
Network Access Analyzer. Reachability Analyzer tests one specified source-to-destination pair; Network Access Analyzer evaluates all paths against a scope and returns findings — it's the one that can demonstrate absence.
Behind a NAT gateway, every flow log entry shows the NAT's private IP as the source. How do you recover the originating instance?
Use a custom flow log format including pkt-srcaddr and pkt-dstaddr. srcaddr/dstaddr show the immediate hop; the pkt- fields show the true original addresses. 12
Security, compliance & governance¶
D4
In plain terms — Locks at different depthsSecurity here is layered, and each layer sees a different amount. A security group guards one machine and only ever says yes. A network ACL guards a whole neighbourhood and can also say no. A web application firewall reads the actual request and can spot a malicious one that looks perfectly normal at the address level. Most questions are really asking: at what depth does this threat become visible, and therefore which layer can even see it? A guard who only checks addresses cannot notice what is written in the letter.
24% of the exam. Most of it is layer selection: given a threat and a blast radius, which control belongs where.
The layer picker¶
| Control | Attaches to | State | Rules |
|---|---|---|---|
| Security group | ENI | Stateful | Allow only. Can reference other SGs and prefix lists. |
| Network ACL | Subnet | Stateless | Allow and deny, evaluated by rule number, lowest first. The only way to block a single IP at the subnet edge. |
| AWS WAF | CloudFront, ALB, API Gateway, AppSync, Cognito, App Runner | L7 | SQLi, XSS, rate limiting, geo-match, managed rule groups, bot control. Not on an NLB. |
| AWS Network Firewall | VPC (firewall endpoint per AZ) | Stateful and stateless | Suricata-compatible IPS rules, domain allow/deny lists, TLS inspection. Filters at the VPC perimeter — IGW, NAT, VPN, DX. |
| Shield Standard | Everything, free | L3/L4 | SYN/UDP flood, reflection attacks. |
| Shield Advanced | Route 53, CloudFront, ELB, Global Accelerator, EIP | L3–L7 | $3,000/month, DDoS Response Team, cost protection for scaling during an attack, automatic application-layer mitigation. |
| Firewall Manager | Organization-wide | Policy | Enforces WAF, Shield Advanced, security groups, Network Firewall and DNS Firewall policies across all accounts, including new ones. |
"Block one malicious IP"Security groups cannot deny. The answer is a NACL deny rule — or, if the traffic arrives via CloudFront or an ALB, AWS WAF with an IP set. Behind a load balancer, blocking at the instance SG is useless because the source is the LB.
Network Firewall — evaluation order¶
-
Stateless rule groups first, by priority (lower number first). Actions:
pass,drop, orforward to stateful. -
Traffic explicitly forwarded then hits the stateful rule groups: 5-tuple rules, domain list rules, or raw Suricata signatures.
-
Stateful rule order is either default action order or strict order (pass → drop → alert, evaluated in the order you set) — strict order is the answer when the stem needs deterministic precedence.
Deployment: distributed (a firewall endpoint in every VPC — simpler blast radius, more endpoints to pay for) or centralised (one inspection VPC behind a Transit Gateway — cheaper at scale, needs appliance mode).
Sharing, governance and the rest¶
AWS RAMShares Transit Gateways, subnets (VPC sharing), Route 53 Resolver rules, prefix lists and IPAM pools across accounts in an Organization. VPC sharing means participants launch into the owner's subnets — no peering, no data transfer charge, and the owner keeps control of route tables.
AWS Cloud WANManaged global WAN with a network policy document defining segments and attachment rules. Replaces hand-built multi-Region TGW peering meshes. Segments give you routing isolation declaratively; the exam signal is "central policy across many Regions".
ACM & ACM Private CAPublic ACM certificates are free and auto-renew but only attach to AWS services (ELB, CloudFront, API Gateway) — you cannot export the private key or install it on EC2. For that, or for internal PKI, use ACM Private CA. CloudFront certificates must live in us-east-1.
Penetration testingPermitted without approval on a defined list including EC2, NAT gateways, ELB, CloudFront, API Gateway, Lambda and RDS. DDoS simulation, DNS zone walking and flooding remain prohibited without prior authorisation.
GuardDutyAnalyses VPC Flow Logs, DNS logs and CloudTrail without you enabling any of them. Findings like Backdoor:EC2/C&CActivity and DNS exfiltration are the networking-relevant ones. Delegate a security account as administrator for org-wide findings.
IMDSv2Session-token based, and it sets PUT response hop limit of 1 by default — which blocks the SSRF-through-a-proxy path that IMDSv1 allowed. Raise the hop limit only if containers need it.
An organisation needs every existing and future account to have a WAF web ACL on every ALB, with no per-team action. Which service?
AWS Firewall Manager with a WAF policy scoped to the Organization. It auto-remediates new accounts and new resources. Config rules only detect; SCPs only prevent.
Egress from private subnets must be restricted to a list of approved domains, and TLS traffic must be inspected. Which service?
AWS Network Firewall with a stateful domain-list rule group and TLS inspection. Security groups and NACLs are IP-based only. DNS Firewall blocks lookups but not direct-IP connections.
An ALB is under a sustained L7 flood from thousands of IPs. Shield Standard is already active. Best additional control?
AWS WAF rate-based rules, plus Shield Advanced if cost protection and the DDoS Response Team are wanted. Shield Standard covers L3/L4 only. Rate limiting at L7 is a WAF job. 13
Final mixed drill¶
D1 D2 D3 D4
In plain terms — What this last set is forThese eight are deliberately unsorted. Everywhere else on this page the surrounding section tells you roughly what kind of answer is wanted; here it does not, which is much closer to how the questions actually arrive. If one does not click within about thirty seconds, that is the topic to glance back at — not a reason to start over.
Eight scenarios with no topic labels and no ordering, drawn from across all four domains. Use them as a warm-up: read, decide, then reveal.
Final Exam Echo — mixed drill¶
Two Regions, one TGW each, peered. Spoke VPCs in Region A can't reach spokes in Region B despite propagation being enabled everywhere.
Add static routes for the remote CIDRs pointing at the peering attachment. TGW peering does not support propagation.
On-prem must reach an S3 bucket over private IPs only, and also resolve names in a Route 53 private hosted zone.
S3 interface endpoint + Route 53 Resolver inbound endpoint, both reached over the private VIF. Gateway endpoints and base+2 are both unreachable from on-prem.
After enabling jumbo frames on instances, traffic within the VPC is fine but transfers to on-prem over the VPN stall.
VPN MTU is 1500 — clamp MSS or allow ICMP type 3 code 4 for PMTUD. Neither VGW nor TGW VPN supports jumbo frames.
A SaaS provider must let 200 customers reach their service; several customers use identical CIDRs and none will re-IP.
VPC endpoint service behind an NLB (PrivateLink), with Proxy Protocol v2 for source attribution. Only PrivateLink is overlap-agnostic at that scale.
DX to us-east-1 is primary; a second DX in us-west-2 should only carry traffic if the first fails. Both are private VIFs on the same DX Gateway.
Tag the us-east-1 advertisement 7224:7300 and us-west-2 7224:7100. Local-pref communities beat both region distance and AS_PATH.
Instances in one AZ intermittently fail DNS while others are fine.
Hitting the 1024 packets-per-second-per-ENI limit toward the Route 53 Resolver at base+2. Spread load across more instances/ENIs or run a local caching resolver.
A firewall fleet must inspect north-south traffic for 30 VPCs with no changes to application VPC routing beyond a default route.
Centralised inspection VPC with Gateway Load Balancer, GWLB endpoints, TGW attachment in appliance mode. Distributed Network Firewall would mean 30 firewall deployments.
Compliance requires that no route from any production VPC can reach an internet gateway, and requires evidence.
Network Access Analyzer with an internet-path scope, run on a schedule; back it with an SCP denying IGW attachment. Analyzer provides the evidence; SCP provides the prevention.
15
Gap fills — what the exam guide asks that the main guide skipped¶
D1 D2 D4
In plain terms — Why this section existsEvery task statement in the exam guide was checked against this page and against the v46 course slides. These cards cover the topics that were missing or only mentioned in passing. Task 2.4 (automation) was the one real hole.
Read the cue, say the answer, then open the card. P1 cards are the ones most likely to be worth a question.
Task 2.4 — Automate and configure network infrastructure¶
A network template deploys in one Region and fails everywhere else. What is wrong with it, and what replaces each hardcoded value?
Hardcoded values. Replace them with parameters, pseudo parameters, intrinsic functions and lookups. AZ names → Fn::GetAZs + Fn::Select. Region and account → AWS::Region, AWS::AccountId. Per-Region values such as AMI IDs → Mappings or SSM Parameter Store parameter types. CIDRs → a parameter plus Fn::Cidr, or an IPAM pool that hands out the range. IDs from another stack → Outputs with Export and Fn::ImportValue. CIDR lists in security groups and routes → a managed prefix list. The exam guide names hardcoding as a risk in its own right: it breaks reuse, hides drift and causes address collisions.
The same network baseline must exist in every account of several OUs, including accounts created next month. Which tool, and which two settings?
CloudFormation StackSets with service-managed permissions and automatic deployment. Service-managed StackSets use the Organizations trust, target OUs rather than account lists, and deploy to an account when it joins the OU. Self-managed StackSets need you to create the admin and execution roles yourself. For a single risky change, preview it with a change set. Protect routers and gateways from accidental replacement with a stack policy or DeletionPolicy: Retain. Drift detection shows what was changed by hand.
"When X happens in the network, do Y automatically." What are the three trigger sources and when is each the answer?
EventBridge for something that happened, AWS Config for a state that is wrong, a CloudWatch alarm for a number that crossed a line. EventBridge rule on a CloudTrail API call or a service event → Lambda or Systems Manager Automation. Example: a new Transit Gateway attachment appears, a function associates it with the right route table from its tags. Config rule with a remediation action → the resource is non-compliant no matter how it got that way. Example: flow logs not enabled, SSH open to the world. CloudWatch alarm → SNS → Lambda for metrics. Example: a NAT instance fails its status check and a function repoints the route. Org-wide security group clean-up is Firewall Manager rather than a rule per account.
Where do the CDK, the CLI and the SDKs fit when the stem says "AWS-native infrastructure as code"?
CDK synthesizes CloudFormation. CLI and SDK calls are imperative scripts. CDK lets you write constructs in a programming language, then produces a CloudFormation template, so everything true of CloudFormation (change sets, drift, StackSets, rollback) still applies. A script of CLI calls has no state and no rollback: it is the weaker answer whenever "repeatable" or "reduce risk" is in the stem.
Task 2.1 — Direct Connect at layers 1 and 2¶
Put a new dedicated Direct Connect connection in order, from the request to passing traffic. What does the port itself require?
Request the connection → AWS allocates the port → download the LOA-CFA → the facility runs the cross-connect → create the virtual interface → configure BGP. The LOA-CFA normally appears within 72 hours and is what the colocation provider needs. Port requirements: single-mode fiber, 1000BASE-LX for 1 Gbps, 10GBASE-LR for 10 Gbps, 100GBASE-LR4 for 100 Gbps, 802.1Q VLAN tagging, auto-negotiation off above 1 Gbps, BGP with MD5 authentication. BFD is optional and speeds failure detection.
Dedicated connection, hosted connection, hosted VIF. Who creates each, and how many virtual interfaces does each give you?
Dedicated: you order a whole port, many VIFs. Hosted connection: a partner provisions it for your account, one VIF. Hosted VIF: a connection owner creates one VIF for another account. A hosted connection has a fixed capacity set by the partner and traffic above it is dropped. Because it carries a single VIF, you choose private, public or transit once. A hosted VIF shares the owner's bandwidth and the receiving account must accept it. Direct Connect connections are never shared with RAM. MACsec and LAGs are for dedicated connections.
Task 1.3 — Load balancing for Amazon EKS¶
EKS stem: "Ingress with path routing straight to pods" or "the subnets ran out of IP addresses". What are the two answers?
AWS Load Balancer Controller with target type ip, and more address space for the VPC CNI. The controller turns an Ingress into an ALB and a Service of type LoadBalancer into an NLB. Target type instance goes through a NodePort (extra hop). Target type ip registers pod IPs directly and is required for Fargate. The VPC CNI gives every pod a real VPC address, so subnets drain fast. Fixes: add a secondary CIDR from 100.64.0.0/10 and use custom networking for pods, turn on prefix delegation (a /28 per ENI slot), or run the cluster on IPv6. Security groups for pods use trunk and branch ENIs.
Tasks 1.2 and 2.3 — Route 53 details¶
Three Route 53 behaviours that turn up as distractors: a health check for a private resource, combining health checks, and the same name in a public and a private zone.
Alarm-based health check, calculated health check, split-view DNS. Route 53 health checkers sit on the public internet and cannot reach a private IP. Publish a CloudWatch metric, alarm on it, and base the health check on the alarm. A calculated health check combines child checks (all, any, or at least N healthy). With split-view DNS, a VPC associated with the private zone answers from the private zone only. If the record is missing there, the answer is NXDOMAIN. It does not fall back to the public zone.
Tasks 1.4 and 4.2 — Where each log goes¶
For each source, where can the log be delivered? VPC Flow Logs, load balancer access logs, CloudFront, Route 53, Network Firewall, WAF.
Know the destination, because the wrong options name one that does not exist. VPC Flow Logs → CloudWatch Logs, S3 or Data Firehose. ALB and NLB access logs → S3 only (NLB writes them only for TLS listeners). CloudFront standard logs → S3; real-time logs → Kinesis Data Streams. Route 53 public query logs → CloudWatch Logs in us-east-1. Resolver query logs (queries from VPCs) → CloudWatch Logs, S3 or Firehose. Network Firewall alert and flow logs → the same three. WAF logs → the same three, with names starting aws-waf-logs-. To alert on a pattern in a log, create a metric filter (a custom metric) and alarm on it. To query logs sitting in S3, use Athena.
Match the audit question to the tool: who changed it, is it compliant, is it exposed, is something attacking, is it the same in every account?
CloudTrail, Config, Network Access Analyzer, GuardDuty, Firewall Manager. CloudTrail: who made which API call. AWS Config: what the configuration is and was, managed rules such as restricted-ssh and vpc-flow-logs-enabled, an aggregator for many accounts. Network Access Analyzer: unintended paths, such as anything that can reach the internet. Reachability Analyzer: one path, hop by hop. Trusted Advisor: quick checks such as security groups with unrestricted ports. Amazon Inspector: network reachability of EC2 instances along with vulnerabilities. GuardDuty: threats found in flow logs, DNS logs and CloudTrail, without you turning those logs on. Security Hub: one place for the findings. Firewall Manager: the same policy enforced across the organization.
Task 4.1 — Endpoint and bucket policy conditions¶
An S3 bucket must be reachable only through one VPC endpoint. An existing bucket policy that filters on aws:SourceIp stopped working once the endpoint was added. Why, and what is the fix?
Requests through a VPC endpoint carry private addresses, so aws:SourceIp no longer matches. Use aws:sourceVpce (or aws:SourceVpc). Deny in the bucket policy unless aws:sourceVpce equals the endpoint ID. To filter on the private address, use aws:VpcSourceIp. The endpoint policy is the other half: it limits which buckets and actions can be used through the endpoint. It grants nothing by itself, and the default endpoint policy allows everything.
Tasks 1.6 and 3.3 — IPv6, and the edges of the Region¶
IPv6-only subnets must reach IPv4-only services. Separately, IPv6 instances need outbound-only internet access. Which component does each job?
NAT64 on a NAT gateway with DNS64 on the subnet, and an egress-only internet gateway. DNS64 makes the Resolver synthesize an AAAA answer inside 64:ff9b::/96. Route that prefix to a NAT gateway, which translates to IPv4. An egress-only internet gateway is the IPv6 equivalent of a NAT gateway for outbound-only access, with no address translation. IPv6 addresses in a VPC are all globally unique, and security groups and NACLs need their own IPv6 rules.
Local Zones, Wavelength, Outposts. Which gateway belongs to which, and what is each for?
Local Zone: a subnet in a metro, normal internet gateway. Wavelength: inside a 5G network, carrier gateway. Outposts: AWS rack on your site, local gateway and a service link back to the Region. All three extend a VPC by adding a subnet outside the Region's Availability Zones. Pick by where the latency must be low: a city's end users, mobile devices on a carrier network, or equipment in your own building.
Two names that are newer or older than the exam guide: VPC Lattice and the transit VPC. How should you treat them in an answer list?
VPC Lattice is application-layer service networking and is not in the ANS-C01 guide. A transit VPC is the pre-Transit-Gateway hub built from EC2 VPN appliances. Lattice connects services across VPCs and accounts with IAM auth policies and tolerates overlapping CIDRs. Treat it as unlikely to be the intended answer on this exam version. A transit VPC is correct only when the stem needs appliance features in the hub that Transit Gateway cannot provide. Otherwise Transit Gateway replaces it. 16
Use cases — practise the scenario, then read why¶
D1 D2 D3 D4
In plain terms — How these workEach card is a short scenario. Decide what you would do before you open it. The card then gives the answer, the reason, why the tempting alternatives fail, and the AWS page that says so. The scenarios are written for this guide.
Turn on QUIZ MODE in the bar above to keep every card closed until you tap it.
Hybrid connectivity¶
A Site-to-Site VPN uses BGP. Both tunnels are up. Traffic from AWS to the data center must use tunnel A, with tunnel B as standby. What do you configure, and where?
** On the customer gateway: advertise a more specific prefix on tunnel A, or make tunnel B less attractive with AS_PATH prepending or a higher MED. ** AWS chooses its outbound tunnel from what your router advertises. The order it applies is longest prefix, then shortest AS_PATH, then lowest MED. Nothing on the AWS side lets you pin a tunnel. Why not the others: local preference set on your router only steers traffic leaving on-premises. Static routes are not available on a dynamic VPN. Disabling tunnel B removes the redundancy. AWS: configure tunnel preference
Two Direct Connect connections each carry a public VIF. The company has a public ASN and wants both links active, sharing the load. Later it wants one link as standby instead. What changes between the two?
** Active/active: advertise the same public prefixes with identical BGP attributes on both VIFs. Active/passive: prepend AS_PATH on the standby VIF, and raise local preference on your router for the primary. With equal attributes AWS load-shares per flow. Prepending makes AWS prefer the shorter path inbound to you. Your own local preference picks the outbound link. Why not the others: ** AS_PATH prepending is ignored when the public VIF uses a private ASN. The 7224:7100–7300 local-preference communities belong to private and transit VIFs. A LAG needs both ports on the same device, so it is not two independent paths. AWS: active/active and active/passive on a public VIF
An application in a VPC reads customer data from the data center over Direct Connect. Performance must stay consistent and compliance requires the data to be encrypted in transit. What do you build?
An IPsec Site-to-Site VPN that runs over the Direct Connect link. Direct Connect gives the steady latency but no encryption. Put the VPN on top: a public VIF to reach the VPN endpoints of a virtual private gateway, or a private IP VPN over a transit VIF to a Transit Gateway. MACsec is the layer 2 alternative on a dedicated connection. Why not the others: a VPN over the internet encrypts but loses the consistent performance. A private VIF by itself is private, not encrypted. TLS in the application helps only if every flow uses it. AWS whitepaper: Direct Connect + VPN
A hybrid network has a Direct Connect connection and a Site-to-Site VPN on a Transit Gateway. The company wants dual-stack IPv4 and IPv6 everywhere. What does each of the three pieces need?
Direct Connect: add an IPv6 BGP peering to the existing VIF. VPN on the Transit Gateway: a second VPN connection for IPv6. Transit Gateway VPC attachment: IPv6 CIDRs on the VPC and on the attachment subnets. A VIF can hold an IPv4 peering, an IPv6 peering, or both, and AWS assigns the /125 for the IPv6 peering. Inside its tunnels a VPN connection carries IPv4 or IPv6, not both, so dual-stack means two connections. Transit Gateway routing, association and propagation work the same for both families. Why not the others: you do not need new VIFs. A virtual private gateway VPN is not the IPv6 path. IPv6 inside the tunnels needs a Transit Gateway. AWS blog: dual-stack hybrid architectures
A VPC's virtual private gateway learns the same prefix three ways: Direct Connect BGP, a static VPN route and VPN BGP. The subnet route table also has a static route for it. Rank them.
Longest prefix first. Then the static route in the route table. Then Direct Connect BGP, VPN static, VPN BGP. Longest prefix match always decides first. For equal prefixes, a static route in the route table beats anything propagated. Among propagated routes the gateway prefers Direct Connect, then static VPN, then dynamic VPN. That is why a VPN works as a backup to Direct Connect without any tuning. Why not the others: AS_PATH and MED only break ties between routes of the same kind. They never lift a VPN route above a Direct Connect route. AWS: route tables and VPN route priority
A VPC is 172.31.0.0/16. The on-premises network is 172.31.1.0/24, and that /24 is propagated into the VPC route table from the VPN. Where does traffic to 172.31.1.10 go?
Nowhere outside the VPC. The local route wins, so the on-premises network is unreachable. This is the one exception to longest prefix match: a propagated route that overlaps the VPC's local route loses, even when it is more specific. The fix is to stop overlapping, by renumbering or by NAT. Why not the others: "the /24 is more specific so it goes to the VPN" is the trap. The internet gateway plays no part. AWS: route tables and VPN route priority
One 10 Gbps dedicated connection is 70% used. A new application needs 99.9% network uptime to the data center, at the lowest cost. What do you add?
A second dedicated connection at a different Direct Connect location, with its own VIF and BGP sharing the load. The 99.9% target needs connections at two or more locations. Two connections at one location, or a LAG, still share one site. 99.99% would need two locations with two devices each, which costs more than the requirement asks for. Why not the others: a VPN backup adds resilience but does not meet the Direct Connect SLA configuration. A hosted connection has a single VIF and partner-set capacity. Note: the older rule that a hosted connection under 1 Gbps cannot carry a transit VIF changed in August 2022. Transit VIFs now work at any speed. AWS: Direct Connect SLA · AWS: hosted virtual interfaces
Transit Gateway 1 in one Region has two VPC attachments. Transit Gateway 2 in another Region has a VPN and a Direct Connect attachment. A service-discovery tool that relies on multicast must work across all of it. Will it?
No. Multicast works only between VPC attachments on one Transit Gateway. Multicast routing is not supported over Direct Connect, Site-to-Site VPN or Transit Gateway peering attachments. The tool can discover hosts in VPC A and VPC B and nothing beyond them. Why not the others: any option that says multicast crosses peering, Direct Connect or VPN is wrong, whatever else it adds. AWS: multicast on transit gateways
VPC design¶
A VPC uses 10.2.0.0/16. Which two IPv4 addresses reach the Amazon-provided DNS server?
10.2.0.2 and 169.254.169.253. The Resolver sits at the VPC base address plus two, and at a link-local address that is the same in every VPC. In each subnet AWS reserves the first four addresses and the last one. Why not the others:.1 is the VPC router,.3 is reserved for future use, and 169.254.169.254 is instance metadata. AWS: DNS attributes for your VPC
Four department VPCs must each exchange data with the data center over Direct Connect. A monitoring tool in one VPC must also reach instances in the other three. Data transfer charges must be as low as possible. What do you build?
A private VIF path from on-premises to every VPC, and VPC peering between the VPCs. A Direct Connect gateway (or separate private VIFs) gives each VPC its own on-premises path, but it never routes VPC to VPC. Peering fills that gap with no hourly charge and no per-GB processing fee, which is what "lowest data transfer cost" points to. Why not the others: one VIF to the monitoring VPC plus peering fails, because a peered VPC cannot use its neighbour's Direct Connect. A Transit Gateway works but charges per GB processed. A public VIF does not reach a VPC's private addresses. AWS: Direct Connect gateways and virtual private gateways · AWS whitepaper: VPC peering
VPC A and VPC B are peered. VPC A also has a Direct Connect link to the corporate network and a gateway endpoint for S3. What can VPC B use?
Neither. The corporate network cannot reach VPC B through VPC A, and VPC B cannot use VPC A's gateway endpoint. Peering has no edge-to-edge routing. Traffic must start or end in one of the two peered VPCs. The same rule blocks a peer's internet gateway, NAT device and VPN. Why not the others: swapping Direct Connect for a VPN changes nothing. For B to reach S3 privately, give B its own endpoint. For B to reach on-premises, give it its own hybrid path or use a Transit Gateway. AWS: unsupported VPC peering configurations
QuickSight Enterprise edition must query an RDS database that sits in a private subnet. Nothing may be exposed to the internet. How do you connect them?
Create a VPC connection in QuickSight. The VPC connection places an elastic network interface in your subnet. QuickSight traffic enters through it, so route tables, NACLs and security groups apply as they do to any instance. Allow the interface's security group in the database's security group. The same connection reaches on-premises data if the VPC has a hybrid path. Why not the others: making the database public breaks the requirement. Peering is not possible with a service you do not own. A NAT gateway handles outbound traffic from the VPC, not inbound from QuickSight. AWS: connecting QuickSight to a VPC
DNS failover¶
You are combining weighted and latency records with failover in Route 53. State how Route 53 treats: a record with no health check, a group where every record is unhealthy, an alias record, and a record with weight zero.
No health check = always healthy. All unhealthy = all treated as healthy. Alias = set Evaluate Target Health instead of attaching a health check. Weight zero = used only when every non-zero record is unhealthy. Route 53 must always return an answer, which explains the second rule. In active/active, every healthy record can be returned. In active/passive, secondaries are returned only when all primaries are unhealthy. Why not the others: "a record with no health check is skipped" and "Route 53 returns no answer when everything is unhealthy" are the usual wrong statements. AWS: how Route 53 chooses records when health checking is configured
Failover records in a private hosted zone point at EC2 instances with private addresses only. How do you give them health checks?
Create a CloudWatch alarm on a metric such as StatusCheckFailed, then a Route 53 health check that monitors that alarm. Route 53 health checkers are outside the VPC and cannot reach a private IP. A health check can watch an endpoint, other health checks, or a CloudWatch alarm. It follows the alarm's data stream, so it can turn unhealthy before the alarm itself changes state. Why not the others: a health check cannot watch a metric directly, and it cannot watch an SNS topic. Pointing it at the private IP fails. Giving the instance a public IP works but exposes it. AWS: configuring failover in a private hosted zone
Automation and audit¶
A three-tier application runs on EC2. The security team must be notified automatically when an instance is reachable on ports that policy forbids, with the least development effort. Which two services?
Amazon Inspector for the network reachability findings, and Amazon SNS for the notification. Inspector analyses the network configuration and reports which ports on which instances are reachable, with no port scanner to build. Findings are sent to a topic (through EventBridge in the current Inspector), and a Lambda function can go further and remove the offending rule. Why not the others: VPC Flow Logs could show it, but you would have to write the parsing. CloudWatch does not assess exposure. Shield is for DDoS. AWS blog: Inspector network reachability assessments DRILL A
Put it in order¶
Tap the steps in the order they have to happen. A step is accepted once everything it depends on is in place. When a run is done you get who does each step and what breaks if it is skipped.
DRILL B
Patterns under pressure¶
Read the cue the way a stem would give it, say the build to yourself, then open the card. The trap is what the tempting wrong answer gets wrong.
Isolated spokes, shared services “Workload VPCs reach shared services and on-premises, never each other.” D1
Build - Turn off default route table association and propagation on the TGW. - Spoke table: associate every spoke attachment. Propagate only shared services and the DX or VPN attachments. - Shared table: associate shared services and the DX or VPN attachments. Propagate everything. Trap Association picks the one table an attachment's traffic is looked up in. Propagation decides which tables learn its routes. Blackhole routes in a single shared table also kill the replies coming back to the spokes. Not this NACLs or security groups in 40 VPCs. It works and is never the least operational overhead.
Centralized egress “One exit to the internet for every VPC. Cut the NAT gateway bill.” D1
Build - Spoke table: static 0.0.0.0/0 to the egress VPC attachment. - Same table: blackhole routes for the private ranges, so spokes can't reach each other through the NAT. - Egress table: propagate the spokes for the return path. - Egress VPC: TGW subnets default to a NAT gateway in the same AZ. Public subnets route the spoke CIDRs back to the TGW. Trap Without the blackhole, spoke-to-spoke packets follow the default route, get NATed in the egress VPC and come back in. One NAT gateway per AZ, or losing that AZ takes the exit with it. Not this A NAT gateway for inbound connections. It only ever initiates outward.
Centralized inspection “Inspect all VPC-to-VPC and on-premises traffic with a stateful firewall.” D1 D4
Build - Pre-inspection table: associate spokes and DX or VPN. Static default to the inspection VPC attachment. No spoke propagation. - Post-inspection table: associate the inspection attachment. Propagate spokes and on-premises. - Appliance mode on the inspection VPC attachment. - Inspection VPC: TGW subnet routes to the firewall endpoint in its own AZ. Firewall subnet routes back to the TGW. - Network Firewall: set HOME_NET to cover the spoke CIDRs. Third-party appliances: Gateway Load Balancer with GWLB endpoints (GENEVE, port 6081). Trap No appliance mode: the return leg can land in another AZ and the stateful firewall drops it, intermittently. Default HOME_NET is only the inspection VPC's own CIDR, so rules silently skip spoke traffic. Not this Traffic Mirroring. It copies packets for analysis and can't block anything.
Direct Connect to many VPCs “One Direct Connect, many VPCs, several Regions or accounts.” D1
Build, by what must talk to what - Private VIF to a VGW: one VPC, in the Region of the DX location. - Private VIF to a DX gateway to VGWs: VPCs in any Region or account, on-premises traffic only, no TGW charges. - Transit VIF to a DX gateway to TGWs: many VPCs per Region plus VPC-to-VPC, central routing and inspection. Trap A DX gateway never routes between its own associations. VPC to VPC needs a TGW. Region to Region needs TGW peering. Site to site across DX locations is SiteLink. The DX gateway and the TGW need different ASNs. Not this A transit VIF and TGWs when the stem says most cost-effective and the VPCs never talk to each other.
Encrypting the hybrid link “Traffic over Direct Connect must be encrypted.” D4
Build, by the layer the stem asks for - MACsec: layer 2, from your router to the AWS device at the DX location. Dedicated 10, 100 or 400 Gbps only. Close to line rate. - Private IP VPN on a transit VIF: IPsec to the TGW with private addresses only. 1.25 Gbps per tunnel, scaled with ECMP over BGP. - VPN over a public VIF: IPsec with public IPs, to a VGW or a TGW. - MACsec and IPsec together when the stem wants the physical hop protected and end-to-end encryption. Trap MACsec is hop by hop, never end to end. On a hosted connection or a 1 Gbps port MACsec is impossible, so the answer is IPsec. “No public IP addresses” means private IP VPN, not a public VIF. Not this “Direct Connect is private, so it is already encrypted.” It isn't.
Direct Connect primary, VPN backup “Fail over to the VPN automatically.” D1 D3
Build - Advertise the same prefixes with BGP over both and propagate both attachments into the same TGW route tables. - For an identical prefix the TGW picks the DX gateway route over the VPN route. When Direct Connect withdraws it, the VPN route takes over. - On a VGW the order for an identical prefix is DX BGP, then VPN static, then VPN BGP. - On your routers: prefer DX outbound with local preference, and configure BFD for fast detection. Trap Longest prefix match comes before all of this. A more specific route on the VPN wins even while Direct Connect is healthy. A static TGW route to the DX attachment never withdraws, so it never fails over. Not this ECMP across DX and VPN: a TGW doesn't share load across attachment types. And a VPN backup is not the 99.99% design. That takes two locations with two devices each.
Centralized interface endpoints “Hundreds of interface endpoints across VPCs. Reduce the cost.” D1 D2
Build - Create the endpoints once in a shared-services VPC with private DNS turned off. - Create a private hosted zone named for the service, such as sqs.us-east-1.amazonaws.com, with an alias record to the endpoint. - Associate that zone with every spoke VPC. Across accounts: authorize, then associate. - Reach the hub over the TGW or peering. The endpoint's security group allows 443 from the spoke CIDRs. Trap With private DNS left on, the zone AWS manages only resolves inside the endpoint's own VPC. Gateway endpoints (S3, DynamoDB) can't be centralized like this and can't be reached from on-premises. Not this Sharing the endpoint through RAM. Endpoints aren't shareable.
Hybrid DNS, centralized “On-premises resolves AWS private names, and VPCs resolve on-premises names.” D1 D2
Build - On-premises to AWS: an inbound Resolver endpoint in the hub. On-premises DNS forwards conditionally to its IPs. Associate the private hosted zones with the hub VPC. - AWS to on-premises: an outbound endpoint with forwarding rules, shared with RAM and associated with every VPC. - Endpoints get IPs in two AZs and security groups open for TCP and UDP 53. Trap On-premises can't query a VPC's.2 resolver over DX or VPN. That is exactly what the inbound endpoint is for. Rules and RAM shares are Regional. Not this A DHCP options set that points every VPC at the on-premises DNS servers. Private hosted zones and endpoint private DNS stop working.
Peering, TGW, PrivateLink or a shared VPC “Connect workloads across VPCs and accounts.” D1 D3
Build, by the cue - A few VPCs, heavy traffic, lowest cost: VPC peering. Nothing transits through it. - Many VPCs, transitive routing, an on-premises hub: Transit Gateway. - One service, overlapping CIDRs, a third party or strict isolation: PrivateLink. - Many accounts on one centrally run network: shared VPC subnets through RAM. Trap Overlapping CIDRs rule out peering and TGW routing outright. Peering has no hourly or per-GB processing charge, so “most cost-effective” between two VPCs is peering. Not this A TGW for two VPCs that exchange terabytes a day when cost is the constraint.
Multi-Region “Connect networks in several Regions.” D1
Build - TGW peering: static routes only. Traffic stays on the AWS backbone and is encrypted between Regions. - Cloud WAN: one policy, segments that span Regions, inter-Region routes created for you. - A DX gateway with a TGW in each Region: on-premises reaches every Region, but the Regions don't reach each other through it. Trap Peering attachments never propagate. Every Region pair needs static routes on both sides. Not this A full mesh of peered TGWs when the stem says central policy or minimal route management. Those words mean Cloud WAN.
SD-WAN into AWS “Third-party SD-WAN appliances, dynamic routing, more than VPN throughput.” D1
Build - A Transit Gateway Connect attachment on top of a VPC or DX attachment: GRE tunnels with BGP. - Up to 5 Gbps per Connect peer, four peers per attachment, ECMP across them. - The TGW needs a CIDR block for the GRE outer addresses. Trap VPN attachments would work, but each tunnel stops at 1.25 Gbps and carries IPsec overhead. Not this Static routes to an appliance ENI. No route exchange and no failover.
Firewall Manager policy picker “Enforce it in every account, including accounts created later.” D4
Build, by what is being enforced - A web ACL on every ALB, API Gateway or CloudFront distribution: WAF policy. - The same baseline security group everywhere: common security group policy. - Find or remove rules such as SSH from 0.0.0.0/0: security group content audit policy. - Unused or redundant security groups: usage audit policy. - Firewalls in every VPC or in one inspection VPC: Network Firewall policy (distributed, centralized, or import existing). - Block bad domains at the resolver: DNS Firewall policy. Trap Every policy depends on AWS Config in each member account and Region. DNS queries to the VPC resolver never pass through Network Firewall, NACLs or security groups, so blocking lookups is a DNS Firewall job. Not this StackSets or per-account Config rules when the stem says centrally and automatically for new accounts.
Verify and audit: which tool “Prove the network does what it should.” D3 D4
Build, by the question being asked - Should A reach B, and where does it stop: Reachability Analyzer. It reads configuration and sends no packets. - Is there any path that shouldn't exist, such as internet to database subnets: Network Access Analyzer. - The path between attachments across TGW route tables: Route Analyzer in Network Manager. It ignores security groups, NACLs and VPC route tables. - What actually happened, accepted or rejected: VPC Flow Logs. No payload. - Packet contents for an IDS: Traffic Mirroring (VXLAN, UDP 4789). - DNS queries from VPCs: Resolver query logging. Flow logs don't record traffic to the Amazon DNS server. Trap “Reachable” in Reachability Analyzer doesn't mean the application answers. Host firewalls and listeners are outside its view. Not this Flow logs to check a change before it is made. They only show the past.
DRILL C
Judgment calls¶
Fifty exam-style scenarios written for this page. The Study Path can filter them to one task. After you answer, every wrong option says why it is wrong. Your answers are kept on this device.
DRILL D
What broke¶
Read the symptom, name the cause, then open the card. Direct Connect and BGP
The connection is up. The virtual interface is down. D3
Layer 2. A VLAN ID mismatch, 802.1Q not carried by a device in the path, or wrong peer IPs so ARP never resolves. Fix layer 2 before touching BGP. Q-in-Q isn't supported.
You can ping the Amazon peer IP, but BGP won't establish. D3
Layer 3. Wrong ASN, wrong BGP MD5 key, or TCP 179 blocked. Ping proves layers 1 and 2. What is left is the BGP configuration itself.
BGP was fine, then dropped to idle right after an on-premises routing change. D3
The router now advertises more than 100 prefixes on a private or transit VIF. Summarize, or send a default route. AWS holds the session in idle until the count is back under the limit.
The connection is down with no or low Tx/Rx light. D3
Layer 1. Cross-connect, optics or fibre. Single-mode fibre with the right optic, auto-negotiation off on ports faster than 1 Gbps, and the colocation provider checks the cross-connect.
On-premises reaches VPC A through the TGW but not the newly attached VPC B. D3
VPC B's CIDR isn't in the allowed prefixes of the DX gateway association, so on-premises never learned it. For a TGW association AWS advertises only what that list says. After that, check propagation into the DX attachment's route table and VPC B's own route table.
Two TGWs in different Regions share one DX gateway. On-premises reaches both. The Regions can't reach each other. D1
By design. Peer the TGWs and add static routes on both sides. A DX gateway doesn't route between the gateways associated with it.
The DX gateway to TGW association request fails. D2
Both use the same ASN. They need different ones, and both default to 64512.
Failover between two DX connections takes more than a minute. D3
Detection is waiting on the BGP hold timer. Configure BFD on your router. AWS already has asynchronous BFD on for every VIF (300 ms, multiplier 3). It does nothing until your side runs it too.
Traffic from a us-east-1 VPC keeps arriving at the Virginia DX location although you prepend AS_PATH there. D1
** Local preference is evaluated before AS_PATH. Tag the routes on the VIF you want preferred with 7224:7300. ** By default AWS gives the location in the VPC's own Region the higher local preference. 7224:7100 is low, 7200 medium, 7300 high.
A public prefix advertised on a public VIF is reachable from every AWS Region. It should be the local Region only. D1
Tag what you advertise with 7224:9100. 9100 local Region, 9200 continent, 9300 global: tags you set. 8100 and 8200 are the tags AWS sets on what it sends you, for filtering.
MACsec key associated, mode set to must_encrypt, and the link passes nothing. D4
** The on-premises router isn't keyed, or the keys don't match. Go back to should_encrypt until both ends are encrypting. ** In must_encrypt a failed negotiation means no traffic at all.
Transit Gateway and sharing
East-west flows through the inspection VPC time out, but only between certain AZs. D3
Appliance mode is off on the inspection VPC attachment. Each direction stays in its own source AZ, so the stateful firewall sees half a flow.
Instances in a new AZ can't use the TGW. The other AZs are fine. D3
The VPC attachment has no subnet in that AZ. Add one.
A TGW route shows as blackhole and nobody created a blackhole route. D3
A static route still points at an attachment that was deleted. Static routes don't withdraw. This is also why a static route to a DX attachment never fails over.
The network account shared the TGW, but the spoke account can't see it. D2
Sharing with Organizations was never enabled in RAM, so an invitation is waiting to be accepted. Or you're in the wrong Region. RAM shares are Regional. Inside an organization with sharing enabled there is nothing to accept.
A spoke's TGW attachment stays in pendingAcceptance. D2
The TGW owner has to accept it, or turn on Auto accept shared attachments. Accepting a RAM share and accepting an attachment are two separate things.
Small requests work. Large transfers hang after moving two VPCs from peering to a TGW. D3
MTU. The TGW carries 8500 bytes and the instances still send 9001. Set 8500 or lower on both sides. Over VPN the ceiling is 1500. Path MTU discovery needs ICMP “fragmentation needed” allowed, and the TGW doesn't do it on VPN, DX or peering attachments.
VPN and the VPC data path
Both VPN tunnels are up. Traffic flows one way or drops intermittently. D3
Asymmetric routing across the two tunnels. The customer device must accept traffic on either tunnel, or steer AWS to one tunnel with AS_PATH prepending or MED.
VPN throughput is stuck near 1.25 Gbps. D3
That is the per-tunnel limit. Use ECMP over several tunnels: a TGW, BGP, and VPN ECMP support turned on. A virtual private gateway can't ECMP, and static routing can't either.
Flow log: inbound ACCEPT on 443, then outbound REJECT to the client's high port. D3 D4
The network ACL's outbound rules don't allow the ephemeral ports. A security group is stateful and would have let the reply out. Only a stateless NACL accepts one direction and rejects the other.
Connections through a NAT gateway to one busy destination fail at random. ErrorPortAllocation is climbing. D3
Port exhaustion. Add secondary IP addresses to the NAT gateway, or spread the load over more NAT gateways. About 55,000 simultaneous connections per destination for each NAT gateway IP. The idle timeout is fixed at 350 seconds.
Reachability Analyzer says reachable. The application still times out. D3
It only analyses configuration. Look at the host firewall and the listener, then at flow logs.
DNS and endpoints
Records in a private hosted zone don't resolve inside a VPC. D3
The VPC isn't associated with the zone, or enableDnsSupport or enableDnsHostnames is off, or a DHCP options set points at another DNS server.
On-premises can't resolve records in a private hosted zone. D3
Queries must go to the inbound Resolver endpoint's IPs, and the zone must be associated with that endpoint's VPC. Then check the endpoint's security group for TCP and UDP 53.
The hub VPC resolves corp.example.com. A spoke VPC doesn't. D3
The forwarding rule is shared but not associated with the spoke VPC. Sharing through RAM makes the rule available. Only the association applies it.
A spoke resolves an AWS service name to public IPs although a central interface endpoint exists. D3
The private hosted zone for that service isn't associated with the spoke VPC. The endpoint's own private DNS only works inside the hub VPC.
S3 traffic from on-premises over Direct Connect doesn't use the VPC's S3 gateway endpoint. D1
Gateway endpoints only serve traffic that starts inside the VPC. Use an S3 interface endpoint, or a public VIF.
Flow logs show nothing for DNS queries to the VPC resolver. D4
Flow logs don't capture traffic to the Amazon DNS server. Turn on Resolver query logging. Instance metadata, DHCP and mirrored traffic aren't captured either.
Security and governance
Centralized Network Firewall: the domain rule group ignores traffic from spoke VPCs. D4
** HOME_NET still holds only the inspection VPC's CIDR. Add the spoke ranges in the firewall policy. **
A Firewall Manager policy shows a member account as noncompliant and protects nothing there. D4
AWS Config isn't enabled in that account and Region, or isn't recording the resource types the policy needs. For a Network Firewall or DNS Firewall policy, also check that RAM sharing with Organizations is on.
CloudFront fronts an ALB, but clients can still reach the ALB directly. D4
Allow only the CloudFront origin-facing managed prefix list in the ALB's security group, and check a secret custom header that CloudFront adds. The prefix list proves the request came from CloudFront. The header proves it came from your distribution.
DRILL E
Numbers that decide answers¶
Several Direct Connect and Transit Gateway limits were raised after this exam was written. The guide sections above now show both where it matters.
| Limit | Older value | Today |
|---|---|---|
| Transit VIFs per dedicated connection | 1 | 4 |
| TGWs per DX gateway | 3 | 6 |
| VGWs per DX gateway | 10 | 20 |
| Allowed prefixes per TGW association (AWS to on-premises) | 20 | 200 |
| Bandwidth per TGW VPC attachment, per AZ | 50 Gbps | up to 100 Gbps |
| MACsec port speeds | 10, 100 Gbps | 10, 100, 400 Gbps |
The question pool predates these changes. If an answer hinges on one of these numbers, the older value is the likelier intent. If two options both work under the old value, the number isn't what the question is testing. Stable
| What | Value |
|---|---|
| Prefixes you can advertise per BGP session, private or transit VIF | 100 |
| Prefixes you can advertise, public VIF | 1,000 |
| VIFs on a hosted connection | 1 |
| Connections in a LAG (same speed, same device) | 4, or 2 at 100G |
| VPN tunnel throughput | 1.25 Gbps |
| TGW Connect, per peer / peers per attachment | 5 Gbps / 4 |
| MTU: inside a VPC, private VIF | 9001 |
| MTU: TGW, transit VIF | 8500 |
| MTU: VPN, public VIF | 1500 |
| BFD on Direct Connect | 300 ms × 3 |
| NAT gateway connections per destination, per IP | 55,000 |
| RAM invitation expiry: TGW, subnets, Resolver rules, prefix lists | 7 days |
| RAM invitation expiry: other resource types | 12 hours |
Route preference, same prefix
| Where | Order, most preferred first |
|---|---|
| Everywhere | Longest prefix match comes first. |
| VPC route table | Static, then prefix list, then propagated. |
| Virtual private gateway | DX BGP, then VPN static, then VPN BGP. |
| TGW route table | Static, then prefix list, then VPC, DX gateway, Connect, VPN. |
| Same attachment type on a TGW | Shorter AS_PATH, then lower MED. |
| Private or transit VIF, AWS to you | Local preference community, then AS_PATH, then MED. |
BGP communities on Direct Connect
| Tag | Meaning | Who sets it |
|---|---|---|
| 7224:7100 / 7200 / 7300 | Local preference low, medium, high. Private and transit VIFs. | You |
| 7224:9100 / 9200 / 9300 | How far AWS spreads your prefix: Region, continent, global. Public VIF. | You |
| 7224:8100 / 8200 | Where an AWS route comes from: same Region, same continent. Public VIF. | AWS |
Sources checked for this drill
- ANS-C01 exam guide - How Transit Gateway works: route evaluation, appliance mode, ECMP - Transit Gateway quotas and MTU - Shared transit gateways - Direct Connect quotas - MAC Security in Direct Connect - Get started with MACsec on a dedicated connection - Direct Connect routing policies and BGP communities - Direct Connect gateway associations across accounts, allowed prefixes - Direct Connect Resiliency Toolkit - Create a private IP VPN over Direct Connect - Site-to-Site VPN route priority - Accelerated Site-to-Site VPN - Firewall Manager prerequisites - Enabling AWS Config for Firewall Manager - Network Firewall policies in Firewall Manager - RAM: sharing your resources - RAM: creating a resource share - Route 53: private hosted zone and a VPC in another account - Route 53: enabling DNSSEC signing - Whitepaper: centralized access to VPC private endpoints - IPAM with AWS Organizations
14
Glossary¶
D1 D2 D3 D4
In plain terms — Why so many acronymsNetworking names things by what engineers had to type in the 1990s, not by what they do. Almost every three-letter term below is hiding one ordinary idea: a door, a wall, a signpost, an address book, a guard, or a cable. Each entry opens with a plain-English line before the technical one. If a term is unfamiliar anywhere on this page, it is underlined — tap it and the explanation appears without losing your place.
Every term the exam expects you to decode on sight. Search matches the term, its expansion, the plain-English line and the definition. Anywhere else on this page, an underlined keyword opens the same entry in place.
No match. Try a shorter query.
ANS-C01 Combined Review — built against exam guide v2.0 (Network Design 30 · Implementation 26 · Management & Operation 20 · Security, Compliance & Governance 24). Sources: official AWS exam guide, the Maarek and KPLabs decks in this project, and AWS service documentation. Scenario cards are drills, not exam questions. Verify anything version-sensitive against current AWS documentation before the sitting.