LeetQuiz Logo
Privacy Policy•contact@leetquiz.com
© 2025 LeetQuiz All rights reserved.
AWS Certified DevOps Engineer - Professional

AWS Certified DevOps Engineer - Professional

Get started today

Ultimate access to all questions.


A DevOps engineer has successfully implemented a CI/CD pipeline to deploy an AWS CloudFormation template that sets up a web application. This application includes an Application Load Balancer (ALB), a target group, a launch template using an Amazon Linux 2 AMI, an Auto Scaling group of EC2 instances, a security group, and an Amazon RDS for MySQL database. The launch template contains user data with a script to install and start the application. After a successful initial deployment, the engineer updates the application version in the user data. The CI/CD pipeline deploys the new version, but the ALB health checks now fail, marking all targets as unhealthy. Upon investigation, the CloudFormation stack shows a status of UPDATE_COMPLETE, but logs on an EC2 instance reveal that the Apache web server failed to start due to a configuration error. What method should the DevOps engineer use to ensure the CloudFormation deployment fails if the user data script does not execute successfully?

Exam-Like



Powered ByGPT-5