Question 1,131 of 1,546
Deployment, Provisioning, and AutomationmediumMultiple ChoiceObjective-mapped

Quick Answer

The answer is to use a CloudFormation stack policy that denies updates to the RDS resource. A stack policy is a JSON-based document that explicitly defines which update actions are allowed or denied on specific resources within a stack, acting as a protective guardrail. By applying a policy that denies replacement or update actions on the RDS DB instance, you prevent any stack update—even one targeting a different resource like an EC2 instance type change—from accidentally modifying or replacing the database. On the AWS Certified SysOps Administrator Associate SOA-C02 exam, this scenario tests your understanding of how stack policies differ from IAM policies; IAM controls who can make changes, while stack policies control what changes can be made to specific resources. A common trap is confusing stack policies with deletion policies or update replacement policies—remember that stack policies are proactive, not reactive. Memory tip: think of a stack policy as a "resource bodyguard" that says "deny" to any update touching your RDS, regardless of the template change.

SOA-C02 Deployment, Provisioning, and Automation Practice Question

This SOA-C02 practice question tests your understanding of deployment, provisioning, and automation. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A SysOps administrator manages a CloudFormation stack that deploys a web application. The stack includes an Amazon EC2 instance and an Amazon RDS DB instance. The administrator needs to update the stack to change the EC2 instance type. The administrator wants to ensure that the update does not accidentally replace the RDS database. Which CloudFormation feature should the administrator use to protect the RDS resource from being replaced during the stack update?

Question 1mediummultiple choice
Full question →

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 stack policy that denies updates to the RDS resource.

A stack policy is an AWS CloudFormation feature that explicitly denies update or replacement actions on specified resources. By applying a stack policy that denies updates to the RDS resource, the administrator prevents any stack update operation (including changing the EC2 instance type) from modifying or replacing the database, even if the template changes would otherwise affect it. This is the correct approach because it provides a guardrail specifically against accidental replacement during updates.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • Use a DeletionPolicy of Retain on the RDS resource.

    Why it's wrong here

    A DeletionPolicy only controls what happens when a resource is deleted from the stack, not when it is replaced during an update. Replacement involves both creation and deletion, but this policy does not prevent the update.

  • Use a stack policy that denies updates to the RDS resource.

    Why this is correct

    A stack policy can explicitly deny update, replace, or delete actions on specific resources. By applying a policy that denies update to the RDS resource, the CloudFormation update will fail if it attempts to modify the RDS instance, thus protecting it from accidental replacement.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Use the Resource Signal and CreationPolicy attributes.

    Why it's wrong here

    CreationPolicy and Resource Signal are used to wait for successful resource creation or configuration completion. They do not prevent resource replacement during an update.

  • Use a Change Set to review changes before executing.

    Why it's wrong here

    A Change Set allows you to preview the changes that will be made, but it does not block the update execution. If the administrator executes the change set, the RDS resource could still be replaced.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse DeletionPolicy (which only applies on stack deletion) with stack policies (which control updates), leading them to incorrectly choose Option A as a safety measure during updates.

Detailed technical explanation

How to think about this question

Stack policies are JSON documents that define explicit deny or allow rules for update actions on specific resources, evaluated before any change is applied. They support condition keys like 'ResourceType' and 'LogicalResourceId' to target individual resources, and the default effect is 'Allow' unless overridden. In practice, a stack policy with a Deny on 'Update:Replace' for the RDS resource ensures that even if the template modifies the database's logical ID or properties that trigger replacement, CloudFormation will reject the entire update operation.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related SOA-C02 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free SOA-C02 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this SOA-C02 question test?

Deployment, Provisioning, and Automation — This question tests Deployment, Provisioning, and Automation — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Use a stack policy that denies updates to the RDS resource. — A stack policy is an AWS CloudFormation feature that explicitly denies update or replacement actions on specified resources. By applying a stack policy that denies updates to the RDS resource, the administrator prevents any stack update operation (including changing the EC2 instance type) from modifying or replacing the database, even if the template changes would otherwise affect it. This is the correct approach because it provides a guardrail specifically against accidental replacement during updates.

What should I do if I get this SOA-C02 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

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 →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

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.

Loading comments…

Sign in to join the discussion.

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.