Question 824 of 1,546
Deployment, Provisioning, and AutomationmediumMultiple SelectObjective-mapped

SOA-C02 Stack Policy 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. A key principle to apply: stack Policy. 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 company is using AWS CloudFormation to manage infrastructure. The administrator needs to update a stack that contains a critical Amazon RDS database. The administrator wants to prevent accidental updates to the database while allowing updates to other resources. Which TWO steps should the administrator take? (Choose TWO.)

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

Apply a stack policy that denies updates to the RDS resource.

Option B is correct because a stack policy explicitly denies updates to specified resources, such as the RDS database, while allowing updates to other resources in the CloudFormation stack. Option D is incorrect because setting the DeletionPolicy to 'Snapshot' does not prevent updates; it only ensures a final snapshot is taken if the resource is deleted during a stack update. The question specifically asks for steps to prevent accidental updates, so only Option B fulfills that requirement.

Key principle: Stack Policy

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 condition to prevent the RDS resource from being updated.

    Why it's wrong here

    Using a condition does not prevent updates to an existing resource; conditions only control whether a resource is created or updated based on parameter values, but they cannot block an update once the resource exists.

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

    Why this is correct

    A stack policy can deny update or delete actions on specific resources, effectively preventing accidental modifications to the RDS database while allowing other stack updates.

    Related concept

    Stack Policy

  • Enable termination protection on the CloudFormation stack.

    Why it's wrong here

    Termination protection prevents the entire stack from being deleted, but it does not prevent updates to individual resources within the stack, so it does not address the requirement.

  • Set the DeletionPolicy attribute to 'Snapshot' on the RDS resource.

    Why it's wrong here

    The DeletionPolicy attribute only controls what happens when a resource is deleted (e.g., retaining a snapshot), not whether an update can occur. It does not prevent accidental updates.

  • Remove the RDS resource from the CloudFormation template.

    Why it's wrong here

    Removing the RDS resource from the template would cause it to be deleted, which is the opposite of protecting it. This does not prevent updates, it results in data loss.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Candidates often confuse termination protection (which only prevents stack deletion) with update protection, or they incorrectly assume that a DeletionPolicy can prevent updates when it only affects deletion behavior.

Detailed technical explanation

How to think about this question

Stack policies are JSON-based policies applied to a CloudFormation stack that define allowed or denied update actions on specific resources using Effect, Action, and Resource statements; they operate at the AWS API level, blocking UpdateStack calls that would modify protected resources. The DeletionPolicy attribute with 'Snapshot' triggers an RDS manual snapshot before the resource is deleted, which is critical for stateful resources like databases during stack updates that replace the resource (e.g., changing the DB instance class). In real-world scenarios, combining a stack policy with a DeletionPolicy of 'Snapshot' ensures both operational safety (no accidental updates) and data durability (snapshot on deletion).

KKey Concepts to Remember

  • Stack Policy

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

Stack Policy

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. Stack Policy 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.

Review stack Policy, then practise related SOA-C02 questions on the same topic to reinforce the concept.

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 — Stack Policy.

What is the correct answer to this question?

The correct answer is: Apply a stack policy that denies updates to the RDS resource. — Option B is correct because a stack policy explicitly denies updates to specified resources, such as the RDS database, while allowing updates to other resources in the CloudFormation stack. Option D is incorrect because setting the DeletionPolicy to 'Snapshot' does not prevent updates; it only ensures a final snapshot is taken if the resource is deleted during a stack update. The question specifically asks for steps to prevent accidental updates, so only Option B fulfills that requirement.

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

Review stack Policy, then practise related SOA-C02 questions on the same topic to reinforce the concept.

What is the key concept behind this question?

Stack Policy

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

Keep practising

More SOA-C02 practice questions

Last reviewed: Jul 4, 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.