How to Share VPC Subnets Across AWS Accounts with RAM?
A company has many AWS accounts and uses AWS Organizations to manage all of them. A solutions architect must implement a solution that the company can use to share a common network across multiple accounts. The company’s infrastructure team has a dedicated infrastructure account that has a VPC. The infrastructure team must use this account to manage the network. Individual accounts cannot have the ability to manage their own networks. However, individual accounts must be able to create AWS resources within subnets. Which combination of actions should the solutions architect perform to meet these requirements? (Choose two.)
Community Insight
This tests AWS RAM subnet sharing within Organizations, and the trap is replacing delegated subnet use with transit gateway routing or duplicate peered VPCs.
Sharing a common VPC network across many AWS accounts requires enabling AWS RAM resource sharing in Organizations and sharing the infrastructure account's specific subnets with the target OU. This page establishes that options B and D are correct because they centralize network management while letting member accounts launch resources in shared subnets.
The most common wrong answer is A: a transit gateway sounds like the natural cross-account networking tool, but it only routes traffic and cannot authorize an account to create resources in the infrastructure account's subnets.
Community Discussion (68 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
The requirement is delegated subnet consumption, not just connectivity: the infrastructure account must own and manage the VPC, while individual accounts may only create resources in shared subnets. Option B is necessary because AWS RAM resource sharing with an AWS Organizations OU must first be enabled from the Organizations management account; otherwise the infrastructure account cannot share with the OU. Option D then creates the actual RAM resource share in the infrastructure account, scopes it to the target OU, and includes the specific subnets that consuming accounts can use. Together they satisfy centralized network management with least-privilege subnet use, and the shared subnet model is exactly AWS VPC sharing via AWS Resource Access Manager.Why the Other Options Are Wrong
Option A is not required because a transit gateway provides routing between VPCs and on-premises networks; it does not let an account launch resources in another account's subnet, and the stem does not require VPC-to-VPC routing. Option C is wrong because duplicating VPCs with the same CIDR ranges and peering them creates separate networks that each account manages, directly violating the rule that individual accounts cannot manage their own networks. Option E is wrong because a prefix list is a set of CIDRs for routing or security group references, not a shareable subnet container, so it cannot grant resource-creation rights in the infrastructure VPC. Option B alone is only an Organizations-level enablement and Option D alone would fail if resource sharing were not enabled for the organization.Community Comment Notes
Multiple learners converged on BD, including masetromain, who stated "I go with BD" and explained that the infrastructure account shares specific subnets so other accounts can create resources without managing networks. razguru likewise rejected the transit gateway because the scenario did not describe multiple VPCs needing routing. whenthan pointed to an AWS blog on VPC sharing as the relevant model, while Parimal1983's BE proposal focused on prefix lists, which does not meet the requirement to create resources inside shared subnets. The consensus supports treating this as AWS RAM subnet sharing, not a routing or prefix-list problem.Official Reference
Exam Strategy
Anchor on who must manage the network and what individual accounts need to do. If the infrastructure account owns the VPC and member accounts only launch resources in subnets, choose AWS RAM subnet sharing and remember to enable resource sharing at the Organizations management account first.
Frequently Asked Questions
Why is a transit gateway (A) not needed for sharing subnets across accounts?
A TGW routes traffic between VPCs but does not grant accounts permission to launch resources in another account's subnets; the requirement is delegated subnet use via AWS RAM.
Why must resource sharing be enabled in the Organizations management account?
AWS RAM sharing with an OU requires resource sharing enabled at the organization level; without it, the infrastructure account's resource share cannot target the OU.
Related Analysis
Practice All SAP-C02 Questions
Access 85 questions with complete answers and detailed explanations.
View Full SAP-C02 Practice Test →