Share a Transit Gateway with AWS RAM for a self-service cross-account connection
Short answer
B Share the shared services transit gateway through AWS RAM with auto acceptance, then attach it from the development account as needed.
Question
Key Takeaways
AWS RAM shares the existing transit gateway rather than creating a new one, so the development team creates and deletes its own attachments on the shared gateway without any cross-account request workflow.
A development account needs access to applications in a shared services VPC that is attached to a transit gateway. Resources in the development account are created and destroyed frequently, and the team must be able to re-establish its own connection on demand.
Common mistake: Creating a second transit gateway in the development account and peering the two. That adds a gateway and a peering relationship to manage, and the connection cannot be re-established by the development team alone because peering acceptance lives in the other account.
Expert Analysis
Why the Answer Is Correct
AWS RAM can share a transit gateway with another account, and automatic acceptance makes the resource share available without a manual accept step in the shared account. The development team then creates its own transit gateway attachment whenever it needs connectivity and deletes it when the environment is torn down, which is exactly the self-service requirement.
Why the Other Options Are Wrong
A: Creating a transit gateway in the development account and peering it adds an extra gateway plus a peering relationship to maintain, and it does not give the development team on-demand control over the connection. C: A VPC endpoint service requires a Network Load Balancer or a Gateway Load Balancer, and the option does not describe creating one, so the endpoint service cannot be deployed as written. D: AWS Network Manager does not share transit gateways, and invoking Lambda from EventBridge to accept attachments is an unnecessarily complex substitute for a RAM share.
Community Comment Notes
The community voted 93 to 1 for B. Commenters confirmed that VPC endpoint services need an NLB or GWLB, which rules out C, and that RAM is the purpose-built mechanism for sharing a transit gateway with auto-accepted attachments.
Official Reference
https://docs.aws.amazon.com/vpc/latest/tgw/tgw-transit-gateways.html
This link opens the official vendor documentation in a new tab.
Community Votes
100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 7 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 7
-
trungtd 👍 3 Answered BA is incorrect: creating and managing another transit gateway in the development account and setting up peering. This adds unnecessary complexity and management overhead. B is correct: the development account can create transit gateway attachments without needing manual intervention every time an attachment is made. C is incorrect: Not usecase of VPC endpoints. VPC endpoints are typically used for connecting to AWS services privately without traversing the public internet. This option does not align well with the requirement to access applications in a VPC through a transit gateway. D is incorrect: too complicated
-
Dgix 👍 3 Answered BB is correct. A is wrong becase TGW peering is done between regions, not accounts. C is rubbish D is overengineered and weird, using Network Manager for sharing the TGW rather than RAM which is best practice.
-
pangchn 👍 3 Answered BB Auto accept shared attachments https://docs.aws.amazon.com/vpc/latest/tgw/tgw-transit-gateways.html Then, create create TGW attachment in dev account
-
AzureDP900 👍 2Option B uses AWS Resource Access Manager (RAM) to share the transit gateway resource with the development account. This eliminates the need for manual peering requests and allows the development team to access the shared services account without requiring intervention on both sides. The use of RAM also simplifies the process of granting permissions and managing resources, making it a suitable solution for this use case. Option B is more straightforward and easier to implement than Option C, which involves creating a VPC endpoint and configuring an endpoint service.
-
titi_r 👍 2 Answered B"B" is correct. "C" is wrong: Endpoint services require either a Network Load Balancer or a Gateway Load Balancer., However, the answer does not mention the creation of a NLB. https://docs.aws.amazon.com/vpc/latest/privatelink/create-endpoint-service.html
Show 2 more comments
-
CMMC 👍 2 Answered BProvide the flexibility needed for the development team to recreate their connection to the shared services account
-
dman 👍 1 Answered AThe dev account has frequent changes and needs to connect with the ShareServices account hence connection request is from Dev -> SS
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All SAP-C02 Questions
Access 85 questions with complete answers and detailed explanations.
View Full SAP-C02 Practice Test →