Courseiva

SAP-C02 Continuous Improvement for Existing Solutions Practice Question

A company uses AWS CloudFormation to deploy infrastructure. The team wants to ensure that all resources are tagged with a CostCenter tag. They want to automatically remediate any stack that creates resources without the required tag. Which approach is MOST effective?

⚠ Common exam trap

SAP-C02 often tests the difference between preventive and detective controls; candidates may choose IAM policies (preventive) but the question asks for automatic remediation, which requires a detective control like AWS Config with SSM Automation.

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 an AWS Config rule with auto-remediation via SSM Automation.

AWS Config rules can evaluate whether resources have the required CostCenter tag, and auto-remediation via SSM Automation can automatically apply the tag or stop/delete non-compliant resources. This provides continuous compliance and automatic remediation, which is the most effective approach. Other options either do not enforce tagging or are not automatic.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Create a Lambda function that tags resources after creation.

    Why it's wrong here

    A post-creation Lambda tags resources only after they exist, leaving a window where untagged resources are billed and no guarantee the function runs for every resource type. CloudFormation hooks or service control policies block non-compliant creation outright, which is the required remediation.

  • ✗

    Use IAM policies to require tagging on all resource creation.

    Why it's wrong here

    IAM policies can require a CostCenter condition key on tag-on-create API calls, but many CloudFormation-provisioned resource types do not support tag-on-create, so the stack fails rather than being remediated. CloudFormation hooks validate and remediate stack resources directly against the tagging requirement.

  • ✗

    Use a CloudFormation stack policy with a deny effect for resource creation without tags.

    Why it's wrong here

    Stack policies govern update actions on existing resources, not tag enforcement at creation, and cannot express a tag-based deny. It is tempting because policies sound like guardrails, but tag remediation requires AWS Config rules or CloudFormation hooks that evaluate resource configuration and trigger automatic remediation.

  • ✓

    Use an AWS Config rule with auto-remediation via SSM Automation.

    Why this is correct

    An AWS Config rule evaluates resource configuration continuously, detecting any resource missing the CostCenter tag regardless of which stack created it. Auto-remediation through SSM Automation then applies the tag automatically, satisfying the requirement for automatic remediation across all CloudFormation deployments rather than only at stack creation time.

About these practice questions

This SAP-C02 question is part of Courseiva's 984-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 and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint

This SAP-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 SAP-C02 exam.