Courseiva
hardMultiple ChoiceObjective-mapped

CV0-004 Practice Question: Using AWS CloudFormation to deploy a multi-tier…

A company is using AWS CloudFormation to deploy a multi-tier application. The stack includes an Auto Scaling group and an Application Load Balancer. The operations team reports that deployments are failing because the new instances are not passing health checks. Which CloudFormation template attribute should be modified to ensure that the stack update rolls back automatically if the health check fails?

⚠ Common exam trap

CompTIA often tests the distinction between CreationPolicy (which waits for signals before marking resource creation as complete) and UpdatePolicy (which manages rolling updates but does not inherently enforce health check-based rollbacks), leading candidates to incorrectly choose UpdatePolicy when the question specifically asks for rollback on health check failure.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use a CreationPolicy attribute on the Auto Scaling group with a timeout and signal count.

The CreationPolicy attribute on an Auto Scaling group, when combined with a timeout and a signal count, instructs CloudFormation to wait for a specified number of success signals from the new instances before considering the resource creation complete. If the signals are not received within the timeout (e.g., because the instances fail health checks and never report as healthy), CloudFormation treats the creation as failed and automatically rolls back the stack update. This directly addresses the requirement to roll back on health check failure.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Add an UpdatePolicy attribute to the Auto Scaling group.

    Why it's wrong here

    UpdatePolicy controls rolling updates, not initial launch health checks.

  • Use a CreationPolicy attribute on the Auto Scaling group with a timeout and signal count.

    Why this is correct

    CreationPolicy ensures instances are healthy before marking resource as created.

  • Modify the DeletionPolicy attribute of the instances.

    Why it's wrong here

    DeletionPolicy is for stack deletion behavior.

  • Set the DependsOn attribute to ensure the load balancer is created first.

    Why it's wrong here

    DependsOn does not enforce health checks.

About these practice questions

This CV0-004 question is part of Courseiva's 977-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This CV0-004 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CV0-004 exam.