‹ All DOP-C02 questions

DOP-C02 Practice Question 23: CreationPolicy Resource Signal

AWS Certified DevOps Engineer – Professional (DOP-C02) · Test 3 · question 3 of 10

Configuration Management and IaCmedium

A deployment pipeline creates an AWS CloudFormation stack that provisions an Auto Scaling group of six Amazon EC2 instances. User data installs and configures the application, which takes about eight minutes per instance. The next pipeline stage runs integration tests against the load balancer as soon as the stack reports CREATE_COMPLETE, and those tests fail intermittently because instances are still bootstrapping. The team wants the stack to reach CREATE_COMPLETE only after at least five instances report that the application started successfully, and to roll back if that does not happen within 15 minutes.

What should the team add to the template?

Select one answer
Show answer and explanation

Answer:

  • A. A CreationPolicy on the Auto Scaling group with ResourceSignal Count: 5 and Timeout: PT15M, and a call to cfn-signal at the end of the user data that reports the bootstrap script's exit code

A CreationPolicy prevents a resource from reaching create-complete "until CloudFormation receives a specified number of success signals or the timeout period is exceeded." ResourceSignal.Count sets how many signals are required and Timeout is an ISO 8601 duration, so Count: 5 and Timeout: PT15M express the requirement directly. The cfn-signal helper script sends the signal from the instance once bootstrapping finishes, and passing the script's exit code means a failed bootstrap sends a failure signal. If the signals do not arrive in time, or a failure signal arrives, resource creation fails and CloudFormation rolls the stack back, which is the second requirement.

Option B only orders resource creation. DependsOn waits for CloudFormation to consider the Auto Scaling group created, which happens as soon as the group exists, not when the software inside the instances is running. The race the team is hitting stays exactly as it is.

Option C is the right idea attached to the wrong lifecycle. UpdatePolicy with AutoScalingRollingUpdate governs how instances are replaced when the group is *updated*; it has no effect on the initial stack creation this question is about.

Option D configures Auto Scaling, not CloudFormation. The health check grace period tells the Auto Scaling group how long to wait before acting on a failing health check. CloudFormation does not watch Auto Scaling health checks, so the stack still completes while instances bootstrap.

Reference: CreationPolicy attribute

Practice Test 3 ›

Study guides for DOP-C02

AWS Service Control Policies Explained: SCPs and DenialsAWS service control policies explained: how SCPs cap permissions, why admins still get access denied, inheritance, deny vs allow lists and the exam traps.
How AI Is Changing Software Jobs: Where to PrepareHow AI is changing software jobs: what history shows, the evidence on junior developers, what Klarna learned, new AI roles and five domains to prepare for.
How AWS Certification Exams Work: Scoring and RenewalHow AWS certification exams work: levels, booking, question types, unscored questions, scaled scores, pass marks, validity and how recertification works.
What Is Amazon RDS? Multi-AZ, Read Replicas and BackupsWhat is Amazon RDS? Engines, Multi-AZ, read replicas, backups, RDS Proxy, Aurora and pricing explained, with the traps that AWS exams set around each one.
Best DevOps certification: AWS, Azure, Google or CKAThe best DevOps certification for your stack: AWS DOP-C02, Azure AZ-400, Google Cloud DevOps Engineer and CKA compared on cost, level and prerequisites.
What Is AWS Lambda? Triggers, Concurrency and Cold StartsWhat is AWS Lambda? How functions run, cold starts, triggers vs event source mappings, concurrency, layers, aliases, pricing and the exam traps.
AWS CloudOps Engineer Associate (SOA-C03) exam guideAWS Certified CloudOps Engineer – Associate (SOA-C03) replaced SysOps Administrator. Format, cost, the five domains, what changed and how to prepare.
Which AWS certification should you get? 2026 roadmapWhich AWS certification to get first, by role and experience, with each exam's status in October 2026, what is changing, and prices in USD and INR.
What Is Amazon EC2? Instances, AMIs, EBS and Auto ScalingAmazon EC2 explained: instances, AMIs, instance types, security groups, EBS, Auto Scaling groups and pricing options, with the traps AWS exams set.
SQS vs SNS vs EventBridge on AWSWhen to use an SQS queue, an SNS topic or an EventBridge bus, plus fan-out, FIFO ordering, visibility timeouts and dead-letter queues for AWS exams.