AWS Certified Advanced Networking – Specialty (ANS-C00) — Question 28
Your company operates a single AWS account. A common services VPC is deployed to provide shared services, such as network scanning and compliance tools.
Each AWS workload uses its own VPC, and each VPC must peer with the common services VPC. You must choose the most efficient and cost effective approach.
Which approach should be used to automate the required VPC peering?
Answer options
- A. AWS CloudTrail integration with Amazon CloudWatch Logs to trigger a Lambda function.
- B. An OpsWorks Chef recipe to execute a command-line peering request.
- C. Cfn-init with AWS CloudFormation to execute a command-line peering request.
- D. An AWS CloudFormation template that includes a peering request.
Correct answer: D
Explanation
The correct answer is D because an AWS CloudFormation template can automate the creation and configuration of AWS resources, including VPC peering requests. The other options, while useful for other tasks, do not directly facilitate the automated creation of VPC peering connections as efficiently as a CloudFormation template does.