
Ultimate access to all questions.
A DevOps engineer is tasked with ensuring that an application, which runs on a set of Amazon EC2 instances within an Auto Scaling group managed by AWS CloudFormation, always has the latest configuration file upon instance launch. Additionally, any updates to this configuration file must be quickly propagated to all instances. The company policy mandates that all application configuration files be kept in source control alongside the AWS infrastructure configuration files. What is the most effective solution to meet these requirements?
A
In the CloudFormation template, incorporate an AWS Config rule with the configuration file content in the InputParameters property, set the Scope to the EC2 Auto Scaling group, and include an AWS Systems Manager Resource Data Sync resource to monitor for configuration updates.
B
In the CloudFormation template, integrate an EC2 launch template resource containing the configuration file. Set up the cfn-init script to execute upon instance launch and the cfn-hup script to check for configuration updates.
C
In the CloudFormation template, include an EC2 launch template resource with the configuration file. Add an AWS Systems Manager Resource Data Sync resource to the template to periodically check for configuration updates.
D
In the CloudFormation template, use CloudFormation init metadata to store the configuration file content. Configure the cfn-init script to run at instance launch and the cfn-hup script to detect configuration updates.