Question 1
Topic: Automate cloud provisioning processes and maintenance
Skill tested: Use AWS CloudFormation to provision repeatable infrastructure and detect configuration drift.
A cloud operations team creates VPCs, security groups, and application roles manually for each new environment. The process is slow, and production settings have begun to diverge from the documented baseline. The team wants version-controlled, repeatable deployments and a way to identify later changes made outside its deployment process. It must continue managing the resources through AWS-native services and avoid rebuilding the environment just to check its current configuration. Which approach best meets these requirements?
CloudFormation templates provide declarative, repeatable infrastructure definitions, and stack drift detection compares supported resource properties with the expected template configuration. This reduces manual steps and helps reveal out-of-band changes without requiring a rebuild. State Manager is useful for maintaining managed-node configuration, but it is not a general VPC provisioning mechanism or a comparison tool for CloudFormation templates. AWS Config can evaluate and remediate selected resource configurations, but it does not replace an initial version-controlled deployment definition. CloudTrail records API activity; it is not an infrastructure template or a reliable event-replay deployment system.