QuestionQ81

VerifiedConfiguration Management and IaC

A DevOps engineer created an AWS CloudFormation template that deploys an application on Amazon EC2 instances. The EC2 instances run Amazon Linux. Shell scripts contained in user data deploy the application to the EC2 instances. The EC2 instances use an IAM instance profile with an IAM role that has the AmazonSSMManagedinstanceCore managed policy attached.

The DevOps engineer changed the user data in the CloudFormation template to install a new version of the application and applied the stack update. However, the application did not update on the running EC2 instances. The engineer must ensure that application changes are installed on the running EC2 instances.

Which combination of steps meets these requirements?

Choose two
Explanation

The cfn-hup daemon detects changes to CloudFormation resource metadata after a stack update and can invoke cfn-init to apply revised AWS::CloudFormation::Init configuration on running EC2 instances. Systems Manager State Manager associations apply an SSM document to targeted managed nodes and can enforce the updated application configuration without replacing the instances.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!