Question 42 of 247
CloudFormation Resource Ordering with DependsOn and CreationPolicy
A SysOps administrator is creating an AWS CloudFormation template to deploy a web application. The template will create an Application Load Balancer (ALB), an Auto Scaling group, and an Amazon RDS database. The administrator wants to ensure that the Auto Scaling group is created only after the ALB and the RDS database are fully created and available. Which TWO actions should the administrator take? (Choose two.)
Quick Answer
The correct answer involves using both DependsOn and CreationPolicy to control CloudFormation resource ordering. DependsOn ensures that the Auto Scaling group is created only after the ALB and RDS database resources have been initiated, while a CreationPolicy on the RDS database resource forces CloudFormation to wait for a success signal—such as from a cfn-signal script—confirming the database is fully available before proceeding. This combination addresses the exam’s focus on resource dependencies and readiness checks, a common scenario in the AWS Certified SysOps Administrator Associate SOA-C02 where you must distinguish between creation order (DependsOn) and availability verification (CreationPolicy). A frequent trap is assuming DependsOn alone guarantees a resource is functional, but it only ensures the resource exists, not that it’s ready. For the exam, remember: DependsOn orders the launch, CreationPolicy confirms the landing.
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
✓
Add a DependsOn attribute to the Auto Scaling group resource that lists both the ALB and the RDS database resources.
To ensure the Auto Scaling group is created only after both the ALB and RDS database are fully available, the administrator should add a DependsOn attribute to the Auto Scaling group that lists both the ALB and RDS resources (Option B). This ensures CloudFormation creates the group after those resources. Additionally, a CreationPolicy on the RDS database resource (Option D) can be used to wait for a signal (e.g., from a cfn-signal script) indicating that the database is fully operational and accepting connections, ensuring it is 'fully available' before the Auto Scaling group creation proceeds. Option A is incorrect because it only lists the ALB, ignoring RDS. Option C is irrelevant for creation order. Option E addresses instance signaling, not resource creation.
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 a DependsOn attribute to the Auto Scaling group resource that lists only the ALB resource.
Why it's wrong here
This would not wait for the RDS database.
- ✓
Add a DependsOn attribute to the Auto Scaling group resource that lists both the ALB and the RDS database resources.
Why this is correct
This ensures the Auto Scaling group is created after both resources are created.
- ✗
Add an UpdatePolicy to the Auto Scaling group resource to wait for a signal.
Why it's wrong here
UpdatePolicy is for updates, not initial creation.
- ✓
Add a CreationPolicy to the RDS database resource to wait for a signal that the database is available.
Why this is correct
This ensures CloudFormation waits for the database to be fully available, not just created.
- ✗
Add a CreationPolicy to the Auto Scaling group resource to wait for a signal from the instances.
Why it's wrong here
This is for instances within the group, not for the group resource itself.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more way this is tested on SOA-C02
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A company uses AWS CloudFormation to deploy a multi-tier application. The administrator wants to ensure that the database layer is fully provisioned and available before the application layer starts. How can this be achieved?
hard- A.Create separate stacks for the database and application layers.
- B.Use a CloudFormation creation policy on the application instances.
- ✓ C.Use the DependsOn attribute on the application layer resources to depend on the database layer.
- D.Use a CloudFormation wait condition in the database stack.
Why C: Using CloudFormation's `DependsOn` attribute ensures that the database layer resources are created before the application layer resources, thereby meeting the requirement. Option A (separate stacks) does not inherently enforce creation order across stacks. Option B (creation policy) is used to control when instances are considered created after receiving signals, not for resource ordering. Option D (wait condition) is for pausing stack creation until an external signal is received, not for directly specifying dependencies between resources.
Last reviewed: Jun 20, 2026
This SOA-C02 practice question is part of Courseiva's free Amazon Web Services 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 SOA-C02 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.