Day 14 of 70 · Week 2
Day 14 / 70 Week 2 of 14 Phase 1: Multi-Account Governance & Networking

Week 2 Synthesis & Networking Lab Exam

🕑 ~48 min read · 4 services covered
TGW Direct Connect Route 53 Resolver PrivateLink

Week 2 Recap

Week 2 built a single argument in seven pieces: that connectivity in a multi-account estate is a routing problem before it is a bandwidth problem. Day 8 established Transit Gateway as the regional hub that replaces an unmanageable full mesh of VPC peering, with each attachment associated to one TGW route table and propagating routes into others — the mechanism that makes segmentation possible at all. Day 9 then showed the same service behaving differently across regions: TGW peering runs over the AWS backbone, but peering attachments do not propagate routes, so every path must be added statically, and inter-region MTU is capped at 1500 bytes. Day 10 turned the hub into an inspection point, routing spoke egress through a centralized inspection VPC running Network Firewall with Suricata-compatible rules.

Days 11 through 13 moved outward from the AWS-only topology. Direct Connect introduced Private, Transit, and Public VIFs, and the point that resilience requires redundant connections at separate locations with BGP failover rather than a single link. Route 53 Resolver closed the DNS half of the hybrid story with inbound endpoints for on-prem queries into private hosted zones and outbound endpoints plus forwarding rules for the reverse direction. PrivateLink then offered the deliberate contrast: service-level exposure through an ENI-backed interface endpoint, with no peering, no route table changes, and no CIDR conflict. The week's real deliverable is the decision boundary between those four tools, which is what the rest of this page drills.

Foundations You'll Need Today

Today's page is a synthesis day, which means it assumes the vocabulary of the previous six days is already in place and moves quickly across four different connectivity tools. Before the decision matrix makes sense, it is worth being explicit about the handful of building blocks that every one of those tools is assembled from. None of this is exotic — it is the same small set of ideas reused in different combinations — but the rest of the page will use these terms without stopping to define them.

VPCs, CIDR ranges, and why overlap matters

A Virtual Private Cloud is a private, isolated network inside AWS that you define yourself. When you create one, you pick an address range for it written in CIDR notation — something like 10.0.0.0/16 — which is simply a compact way of saying "this network owns every IP address from 10.0.0.0 through 10.0.255.255." The number after the slash tells you how large the range is: a smaller number means a bigger network. Inside that range you carve out subnets, which are smaller slices tied to a specific data center location, and resources like servers get their IP addresses from those subnets.

The reason this matters today is that connecting two networks together only works cleanly if their address ranges do not overlap. If two VPCs both claim 10.0.0.0/16, a router cannot tell which network a packet addressed to 10.0.0.5 is actually meant for, so route-based connectivity between them is impossible by definition. That single constraint is what makes PrivateLink the answer in several of today's scenarios: it sidesteps the problem entirely by not joining the two networks at all.

Route tables: how traffic knows where to go

A route table is a list of rules that tells a network where to send traffic. Each rule says, in effect, "traffic destined for this range of addresses should be handed to this target." Every subnet in a VPC is associated with a route table, and if there is no matching rule for a destination, the traffic is simply dropped. This is the mechanism behind almost everything on this page: when a VPC is attached to a Transit Gateway, the attachment is associated with a TGW route table, and whether two VPCs can reach each other depends entirely on which routes exist in that table and which attachments have been allowed to contribute their routes to it.

The distinction worth holding onto is between association and propagation. Association decides which route table an attachment uses when it sends traffic out. Propagation decides whether that attachment's own network ranges get added into the table so that other attachments can send traffic back. They are independent settings, and a great many real-world "why can't these two VPCs talk" problems come down to one being configured and the other not.

Security groups: the per-resource firewall

A security group is a set of allow rules attached to a resource — an EC2 instance, a load balancer, or in the case of PrivateLink, the network interface that represents an endpoint. It is stateful, meaning that if you allow a connection in one direction, the reply is automatically allowed back, and it is default-deny, meaning anything you have not explicitly permitted is blocked. Security groups operate at the level of the individual resource rather than the network, which is why they show up in today's discussion of Resolver endpoints: a forwarding rule can be perfectly correct and still fail because the endpoint's security group does not permit DNS traffic to reach it.

BGP: how two networks agree on a path

BGP is the routing protocol that networks use to tell each other which destinations they can reach. When you connect your own data center to AWS over Direct Connect, the two sides exchange BGP advertisements, and each side learns the other's address ranges automatically. More importantly for today, BGP is what makes failover automatic: if you have two connections and one goes down, the routes it was advertising are withdrawn, and traffic shifts to the surviving path without anyone changing a configuration by hand. When this page talks about "BGP failover" or "path preference," that is the machinery being described — the two sides continuously renegotiating which link carries traffic.

DNS resolution and forwarding

DNS is the system that translates human-readable names into IP addresses. Normally a computer asks a DNS server, and that server either knows the answer or asks another server on its behalf. In a hybrid environment, the complication is that some names live only inside AWS and some live only in your own data center, so each side needs a way to ask the other. That is what "forwarding" means: configuring a DNS server to say "for names ending in this domain, do not try to resolve them yourself — pass the question along to this specific other server." Today's section on hybrid DNS is entirely about which direction those questions travel and which AWS component handles each direction.

With that grounding, here is how those pieces combine into the four connectivity tools this week was built around, and how to tell which one a given scenario is actually asking for.

The Connectivity Decision Matrix

Almost every networking scenario on this exam reduces to one question asked in different clothing: what is the smallest connectivity primitive that satisfies the requirement? Candidates reach for Transit Gateway because it is the most capable answer, but capability is not free — a TGW attachment implies route table design, propagation decisions, and a shared routing domain that every connected VPC now participates in. PrivateLink, by contrast, creates no shared routing domain at all; the consumer VPC gets an elastic network interface with a private IP, and the only traffic that can flow is traffic to the service behind that endpoint. The exam rewards the architect who can articulate why the narrower primitive is correct, not the one who reaches for the hub by default.

The second question is whether the requirement is network-level or service-level. Network-level means the consumer needs to reach many things in the provider's network, or needs bidirectional reachability, or needs to be reachable itself. Service-level means the consumer needs exactly one API, one endpoint, one port. That distinction is what separates TGW from PrivateLink in practice, and it is also what makes PrivateLink the only viable answer when CIDR ranges overlap, because overlapping ranges make route-based connectivity impossible by definition. The table below is the compressed form of that reasoning; the subsections that follow unpack each row.

RequirementBest fitWhy the others fail
Many VPCs need broad mutual or shared-services reachabilityTransit GatewayPeering is O(n²) and PrivateLink exposes only one service
Two VPCs, same region, few routes, no hub wantedVPC peeringTGW adds cost and route table management for no benefit
Expose one service to many consumer accountsPrivateLinkTGW shares the whole network, not one endpoint
Consumer and provider CIDRs overlapPrivateLinkPeering and TGW both require non-overlapping ranges
On-prem to many VPCs over one private linkDX with a Transit VIFPrivate VIF reaches one VPC; Public VIF is for public endpoints
On-prem to a single VPC, minimal scopeDX with a Private VIFA Transit VIF pulls in TGW route tables unnecessarily
On-prem resolvers must resolve AWS private zonesResolver inbound endpointOutbound endpoints resolve the opposite direction
AWS resources must resolve on-prem namesResolver outbound endpoint + forwarding ruleInbound endpoints do not forward queries outward

Direct Connect Resiliency Patterns

Direct Connect questions are almost never about the VIF types; they are about what happens when a link, a device, or an entire location fails. The exam expects you to know that a single connection is a single point of failure regardless of its bandwidth, and that the AWS resiliency model is expressed in terms of diversity: separate connections, terminating on separate devices, at separate DX locations. Two connections at the same location can share a device and therefore share a failure domain, which is why the highest-resiliency answer almost always names two locations. BGP is the mechanism that makes the failover automatic — path preference via AS PATH prepending or local preference determines which link carries traffic while both are healthy, and withdrawal of routes handles the failure case.

The second layer is what happens when both DX paths are unavailable. A VPN backup over the internet is the standard answer for that residual case, and it is worth being precise about why: it is not there to carry production load, it is there to keep control-plane and management access alive while the DX paths are restored. The exam also tests the VIF choice as a scope decision rather than a resiliency decision. A Private VIF terminates on a virtual private gateway and reaches exactly one VPC, which is the right scope for a single-VPC hybrid workload. A Transit VIF terminates on a Transit Gateway and inherits whatever reachability the TGW route tables provide, which is the right scope when on-prem needs to reach many VPCs. A Public VIF is for AWS public service endpoints and does not participate in VPC routing at all.

DesignSurvivesDoes not survive
Single DX connectionNothing meaningfulDevice failure, location failure, fiber cut
Two connections, same locationSingle connection failureShared device or location failure
Two connections, two locationsDevice and location failureSimultaneous multi-location event
Two locations plus VPN backupAll of the above, with degraded capacityNothing short of a full regional event

Hybrid DNS Resolution Paths

Hybrid DNS is where most candidates lose points, because the two endpoint types are named from the perspective of the AWS VPC rather than the query. A Resolver inbound endpoint accepts queries from outside AWS and answers them from the VPC's private hosted zones — it is the door on-prem resolvers knock on. A Resolver outbound endpoint sends queries from AWS to a destination you specify, and it only does anything when paired with a forwarding rule that matches a domain and names the target resolver IPs. The direction naming is the whole trap: inbound means queries coming in, outbound means queries going out, and a scenario that describes on-prem servers resolving an AWS private zone is an inbound question no matter how it is phrased.

The transport underneath matters too. Resolver endpoints are reachable from on-prem only if there is a network path — Direct Connect or VPN — and the endpoint's ENIs live in subnets you choose, which means the on-prem resolver IPs must be routable to those subnets and the security groups on the endpoint must permit DNS. A common production failure is a correctly configured forwarding rule with no working path, which presents as intermittent resolution timeouts rather than clean failures. The second common failure is a forwarding rule that matches too broadly and captures queries that should have been answered locally, which presents as slow resolution for names that never needed to leave the VPC.

DirectionEndpointSupporting configTypical scenario phrasing
On-prem to AWSInbound endpointOn-prem conditional forwarder pointing at endpoint IPs"On-prem servers must resolve names in a private hosted zone"
AWS to on-premOutbound endpointForwarding rule naming on-prem resolver IPs"EC2 instances must resolve corp.internal"
AWS to AWS, cross-VPCNone requiredPrivate hosted zone associated to the VPCs"Two VPCs must share a private zone"

Hands-on Lab / Practical Action (45 min)

Build the smallest topology that exercises all four decision boundaries at once, then break it deliberately. Start with three VPCs in one region: a shared-services VPC, a production VPC, and a development VPC, each with non-overlapping CIDRs. Attach all three to a single Transit Gateway, then create two TGW route tables — one for production and one for development — and associate each spoke with its own table. Propagate only the shared-services attachment into both tables, and propagate nothing between production and development. Verify from an instance in production that shared services is reachable and development is not, and confirm the reverse from development. This is the segmentation pattern from Day 8, and the point of rebuilding it is to feel how much of the isolation lives in route table association rather than in security groups.

Next, add the service-level path. Deploy a simple listener behind a Network Load Balancer in the shared-services VPC, create an endpoint service for it, and consume it from the development VPC through an interface endpoint. Confirm that development can reach the service on its port while still having no route to the shared-services VPC's other subnets — that contrast is the entire TGW-versus-PrivateLink argument in one test. Then add the hybrid DNS half: create a Resolver outbound endpoint in the shared-services VPC, add a forwarding rule for a fake domain such as corp.internal pointing at a resolver you control, and confirm queries leave the VPC. Create an inbound endpoint and confirm a query from outside the VPC resolves a record in a private hosted zone. Finally, write down for each of the four paths you built which single configuration change would break it, and what the symptom would look like in each case. That list is the runbook shape the exam expects you to reason about.

Mixed Scenario Quiz (25 questions)

Q1. A company has 40 VPCs across three accounts that all need to reach a shared-services VPC, but production VPCs must never reach development VPCs. What is the most operationally sustainable design?

A. Full mesh VPC peering between all 40 VPCs
B. A single Transit Gateway with separate route tables for production and development, each propagating only the shared-services attachment
C. A PrivateLink endpoint in every VPC pointing at every other VPC
D. Security groups alone, with all VPCs peered
Correct answer: B. TGW route table segmentation gives linear scaling with explicit isolation, unlike a peering mesh which is O(n²) and offers no segmentation primitive.

Q2. Two VPCs in the same region need to exchange traffic on a small number of routes, and the team wants the lowest possible cost and no shared routing domain. What should they use?

A. Transit Gateway
B. VPC peering
C. PrivateLink endpoint service
D. Direct Connect with a Private VIF
Correct answer: B. For a small number of same-region VPCs, peering is the cheapest and simplest option; TGW adds attachment and processing cost for reachability that is not needed.

Q3. A SaaS provider must expose a single HTTPS API to 200 customer VPCs, and several customers have CIDR ranges that overlap the provider's. What is the correct approach?

A. VPC peering with each customer
B. A Transit Gateway shared through AWS RAM
C. A PrivateLink endpoint service consumed via interface endpoints
D. Direct Connect from each customer
Correct answer: C. PrivateLink exposes one service without merging route tables or CIDRs, so overlapping ranges are irrelevant — peering and TGW both require non-overlapping ranges.

Q4. After creating a Transit Gateway peering attachment between us-east-1 and eu-west-1, spoke VPCs in each region still cannot reach each other. What is the most likely cause?

A. TGW peering does not support cross-region traffic
B. Peering attachments do not propagate routes, so static routes must be added to each TGW route table
C. The TGWs are in different Availability Zones
D. Security groups block inter-region traffic by default
Correct answer: B. Unlike VPC and TGW attachments, peering attachments require manually created static routes in each TGW route table — automatic propagation is not supported.

Q5. A workload transfers large files between two regions through peered Transit Gateways and is seeing throughput well below expectations with no packet loss. What should be checked first?

A. Whether the MTU is capped at 1500 bytes across inter-region TGW peering
B. Whether the VPCs are in the same Availability Zone
C. Whether PrivateLink would be faster
D. Whether the TGW route tables are propagating routes
Correct answer: A. Inter-region TGW peering caps MTU at 1500 bytes, which reduces throughput for large transfers compared with the higher MTU available within a region.

Q6. An organization wants all internet-bound traffic from 30 spoke VPCs inspected by a single firewall with a consistent rule set. What is the standard pattern?

A. Deploy AWS Network Firewall in each spoke VPC
B. A centralized inspection VPC attached to the Transit Gateway, with spoke route tables sending 0.0.0.0/0 to the TGW
C. NACLs on every spoke subnet
D. A NAT Gateway per spoke with logging enabled
Correct answer: B. The centralized inspection VPC pattern routes all spoke egress through TGW into one Network Firewall, avoiding per-VPC duplication and keeping rules consistent.

Q7. A Network Firewall rule set must inspect TLS traffic for a specific set of domains without decrypting all traffic. Which capability applies?

A. Stateless rule groups only
B. Suricata-compatible stateful rules with domain-based matching
C. VPC Flow Logs
D. Route 53 Resolver DNS Firewall
Correct answer: B. Network Firewall's stateful engine uses Suricata-compatible rules, which support domain-based matching for TLS inspection without full decryption.

Q8. A company needs a mission-critical hybrid connection with the highest practical resiliency. What should be provisioned?

A. One 10 Gbps Direct Connect connection
B. Two Direct Connect connections at two different locations, on separate devices, with BGP failover and a VPN backup
C. Two connections at the same location
D. A Public VIF only
Correct answer: B. AWS's DX resiliency model requires diversity across locations and devices with BGP failover; a VPN backup covers the residual case where both DX paths are unavailable.

Q9. On-premises needs to reach workloads in 25 VPCs over a single Direct Connect connection. Which VIF type is appropriate?

A. Private VIF
B. Transit VIF
C. Public VIF
D. Hosted VIF
Correct answer: B. A Transit VIF terminates on a Transit Gateway and inherits its route tables, providing reachability to many VPCs; a Private VIF reaches exactly one VPC.

Q10. A single-VPC hybrid workload needs the simplest possible Direct Connect termination with no shared routing domain. Which VIF should be used?

A. Private VIF to a virtual private gateway
B. Transit VIF to a Transit Gateway
C. Public VIF
D. A VPN over the DX connection
Correct answer: A. A Private VIF terminates on a virtual private gateway and reaches exactly one VPC, which is the minimal scope for a single-VPC hybrid workload.

Q11. Two Direct Connect connections are active at the same location and both fail simultaneously during a device maintenance event. What design flaw does this reveal?

A. The connections should have used Public VIFs
B. Both connections shared a failure domain because they terminated at the same location and potentially the same device
C. BGP was misconfigured
D. The connections needed Link Aggregation
Correct answer: B. Diversity requires separate locations and separate devices; two connections at one location can share a device and therefore share a failure domain.

Q12. On-premises DNS servers must resolve records in an AWS private hosted zone. What must be configured?

A. A Route 53 Resolver outbound endpoint
B. A Route 53 Resolver inbound endpoint, with on-prem DNS forwarding queries to it
C. A public hosted zone
D. A NAT Gateway with DNS forwarding enabled
Correct answer: B. Inbound endpoints accept queries from outside AWS and answer them from the VPC's private hosted zones; outbound endpoints resolve the opposite direction.

Q13. EC2 instances in a VPC must resolve names in an on-premises domain over Direct Connect. What is required?

A. A Resolver inbound endpoint
B. A Resolver outbound endpoint plus a forwarding rule naming the on-prem resolver IPs
C. A private hosted zone associated with the VPC
D. A public hosted zone with a CNAME
Correct answer: B. Outbound endpoints send queries from AWS to a destination, and they only act when paired with a forwarding rule that matches a domain and names target resolver IPs.

Q14. A forwarding rule is correctly configured but on-prem name resolution from AWS fails intermittently. What is the most likely cause?

A. The rule matches too many domains
B. There is no working network path from the Resolver endpoint subnets to the on-prem resolver IPs, or the endpoint security group does not permit DNS
C. The private hosted zone is not associated
D. Resolver does not support conditional forwarding
Correct answer: B. Resolver endpoints are only reachable if there is a network path and the endpoint security groups permit DNS; a correct rule with no path presents as intermittent timeouts.

Q15. Two VPCs in the same account need to share a private hosted zone so that each resolves the same internal names. What is required?

A. A Resolver inbound endpoint in each VPC
B. Associating the private hosted zone with both VPCs
C. A Resolver outbound endpoint with a forwarding rule
D. VPC peering plus a public hosted zone
Correct answer: B. Cross-VPC private zone sharing within AWS is done by associating the hosted zone with each VPC; Resolver endpoints are only needed when queries cross the AWS boundary.

Q16. A consumer VPC needs to reach exactly one API in a provider VPC, and the provider does not want the consumer to see any other subnet. What should be used?

A. VPC peering with restrictive security groups
B. A PrivateLink endpoint service consumed via an interface endpoint
C. A Transit Gateway with a dedicated route table
D. A Direct Connect Private VIF
Correct answer: B. PrivateLink exposes only the service behind the endpoint; the consumer has no route to any other subnet in the provider VPC.

Q17. Which statement about S3 and DynamoDB access from a VPC is correct?

A. Both require an interface endpoint
B. Both support gateway endpoints, which use route table entries and carry no hourly endpoint charge
C. Neither supports private access
D. Both require a NAT Gateway
Correct answer: B. Gateway endpoints exist only for S3 and DynamoDB, work through route table entries rather than ENIs, and are free — unlike interface endpoints.

Q18. A team wants to expose an internal service to consumers in other accounts without any consumer being able to initiate connections to the provider's other resources. Which property of PrivateLink makes this true?

A. It uses security groups on the provider side only
B. The consumer only receives an ENI with a private IP for the specific service, with no shared routing domain
C. It encrypts all traffic with a customer-managed key
D. It requires VPC peering to be disabled
Correct answer: B. PrivateLink shares a single service endpoint, not a routing domain, so the consumer's reachability is limited to that endpoint by construction.

Q19. VPC A is peered with VPC B, and VPC B is peered with VPC C. Instances in A cannot reach instances in C. What is the correct explanation?

A. A security group is blocking the traffic
B. VPC peering is not transitive, so A has no route to C
C. The route tables need a 0.0.0.0/0 entry
D. Peering requires a Transit Gateway to function
Correct answer: B. Peering shares one route between exactly two VPCs and provides no transitive routing; the fix is a Transit Gateway rather than additional peering.

Q20. A central network account owns a VPC and wants application accounts to launch resources into its subnets without owning the VPC. What enables this?

A. VPC peering between the network account and each application account
B. Sharing the subnets through AWS Resource Access Manager
C. A PrivateLink endpoint service per application account
D. Copying the VPC configuration into each account
Correct answer: B. RAM subnet sharing lets many accounts launch resources into subnets owned by a single central VPC, avoiding per-account VPCs and peering.

Q21. A Transit Gateway route table has the shared-services attachment associated but not propagated. What is the effect?

A. The attachment cannot send or receive any traffic
B. The attachment can use the route table's routes, but its own routes are not added to that table
C. The attachment is automatically deleted
D. Propagation is required for association to work
Correct answer: B. Association determines which route table an attachment uses; propagation determines whether that attachment's routes are added to the table. They are independent settings.

Q22. A company wants to reduce the number of Direct Connect connections while increasing aggregate throughput beyond a single connection's capacity. What should they use?

A. A Public VIF
B. A Link Aggregation Group bundling multiple connections
C. A Transit Gateway peering attachment
D. A VPN over the existing connection
Correct answer: B. A LAG bundles multiple physical connections into one logical connection, increasing aggregate throughput and providing link-level redundancy.

Q23. An inspection VPC uses Network Firewall, and after a route change, spoke VPCs can reach the internet but traffic is no longer inspected. What is the most likely cause?

A. The firewall policy was deleted
B. Spoke route tables no longer direct 0.0.0.0/0 to the Transit Gateway, bypassing the inspection VPC
C. Suricata rules expired
D. The firewall needs a public IP
Correct answer: B. The inspection pattern depends entirely on spoke route tables sending egress to the TGW; a route change that points 0.0.0.0/0 elsewhere silently bypasses inspection.

Q24. Which combination best describes a mature hybrid connectivity baseline for a multi-account enterprise?

A. VPC peering between every pair of VPCs plus a single DX connection
B. A Transit Gateway hub with segmented route tables, redundant Direct Connect at two locations, Resolver endpoints for hybrid DNS, and PrivateLink for service-level exposure
C. PrivateLink for all connectivity, including on-prem
D. A single shared VPC for all workloads
Correct answer: B. Each tool covers a different scope: TGW for network-level reachability, redundant DX for hybrid transport, Resolver for DNS, and PrivateLink for narrow service exposure.

Q25. A scenario states that two companies with overlapping CIDRs need full bidirectional network-level reachability between their VPCs. What is the correct architectural response?

A. Use Transit Gateway peering, which tolerates overlap
B. The requirement is unsatisfiable as stated — either re-address one side or narrow the requirement to service-level exposure via PrivateLink
C. Use VPC peering with a longer prefix
D. Use a Public VIF
Correct answer: B. Route-based connectivity requires non-overlapping ranges, so full network-level reachability with overlap is impossible; the options are re-addressing or reducing scope to PrivateLink.

Looking Ahead

Everything this week assumed a network that already exists and a workload that already runs somewhere. The open question the week leaves unresolved is what happens when the compute itself is the thing being designed — when there is no VPC to attach, no instance to place, and no host to patch. Day 15 moves into Phase 2 with Amazon ECS on Fargate, where the unit of deployment is a task definition rather than an instance, and where the networking model changes in a way that matters: awsvpc mode gives every task its own elastic network interface and its own security group, so the per-workload isolation this week achieved through route tables and endpoint policies becomes a property of the task itself.

That shift has a direct consequence for the connectivity decisions just reviewed. When each task carries its own ENI, the security group becomes the primary segmentation primitive at the workload layer, and the question of which subnets a task can be placed in becomes a placement decision rather than a routing one. The hybrid paths built this week still carry the traffic, but the thing generating it is now ephemeral and independently addressed. The next day's material is where the governance and networking scaffolding from Phase 1 stops being the subject and starts being the substrate.

Sources