AmazonAmazon DevOps Engineer Professional DOP-C02 Certification ·EN ·Updated 4 Aug 2026

A DevOps engineer deployed a CloudFormation template that launches a web app (ALB, target group, launch template using Amazon Linux 2 AMI, Auto Scaling group, security group, and an RDS MySQL DB). The launch template’s user data runs a script to install and start the app. After updating the user data to a new app version and redeploying via the CI/CD pipeline, the ALB health checks fail and all targets show unhealthy. The CloudFormation stack shows UPDATE_COMPLETE, but an EC2 instance log shows Apache failed to start due to a configuration error. How can the engineer make CloudFormation fail the deployment if the user data script does not complete successfully?

Choose an answer

Tap an option to check your answer.

Pass your exam — without the endless answer hunt

Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.

Pass your exam faster No card needed
✓ Verified by ExamRoll editorial · Updated 4 August 2026 · Source: official academy
All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product