Courseiva
Infrastructure Security →mediumMultiple Select

SCS-C02 AWS Config Practice Question

A company uses AWS CloudFormation to deploy infrastructure. The security team wants to ensure that all S3 buckets created by CloudFormation have encryption enabled by default. Which TWO approaches can achieve this?

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

✓

Create an AWS Config rule that checks for S3 bucket encryption and auto-remediates

An AWS Config rule can check that S3 buckets have encryption enabled and automatically remediate any non-compliant buckets. Option C is correct because a service control policy (SCP) can be attached to the root OU to deny the creation of S3 buckets without encryption, using a condition on the s3:x-amz-server-side-encryption header. Option B is incorrect because S3 Block Public Access does not enforce encryption. Option D is incorrect because attaching an IAM role to CloudFormation only grants permissions but does not enforce encryption. Option E is incorrect because CloudFormation stack policies only protect existing resources from updates and cannot enforce conditions on bucket 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.

  • ✓

    Create an AWS Config rule that checks for S3 bucket encryption and auto-remediates

    Why this is correct

    The AWS Config managed rule s3-bucket-server-side-encryption-enabled evaluates every S3 bucket against your encryption policy and marks those without default encryption as non-compliant. By attaching an automatic remediation action, Config invokes an SSM Automation document that runs PutBucketEncryption on the non-compliant bucket, bringing it into compliance without manual intervention. This detects buckets that CloudFormation created without encryption and repairs them, making it an effective retrospective and continuous control.

  • ✗

    Enable S3 Block Public Access at the account level

    Why it's wrong here

    S3 Block Public Access is a security control that only restricts who can access an object or bucket via public policies; it has no bearing on how data is encrypted at rest. Enabling it at the account level would not detect or prevent CloudFormation from deploying an S3 bucket with SSE disabled, because the bucket's encryption configuration is entirely independent of public access settings. This option fails to address the encryption requirement.

  • ✓

    Attach a service control policy (SCP) to the root OU that denies S3 bucket creation without encryption

    Why this is correct

    A service control policy attached to the root organizational unit can deny s3:CreateBucket API calls when the request does not include an encryption setting, such as the x-amz-server-side-encryption header. Since SCPs govern all IAM principals under the OU—including the CloudFormation service role—any template that attempts to create a bucket without specifying encryption will be blocked at the API level. This is a strong preventive control that stops unencrypted buckets from ever being created, regardless of whether the caller is an administrator or an automated service.

  • ✗

    Attach an IAM role to the CloudFormation service that grants permissions to encrypt buckets

    Why it's wrong here

    Attaching an IAM role to the CloudFormation service simply grants permissions to perform API calls; it does not mandate that those calls include encryption parameters. Even with the s3:PutEncryptionConfiguration permission, CloudFormation will happily create an unencrypted bucket if the template omits the BucketEncryption property. IAM roles are not policy engines for resource configuration—they only authorize actions, so this approach cannot enforce encryption as a condition of resource creation.

  • ✗

    Use a CloudFormation stack policy to deny creation of S3 buckets without encryption

    Why it's wrong here

    A CloudFormation stack policy is designed to protect existing stack resources from being accidentally updated during a stack update operation; it does not impose conditions on resource creation. When CloudFormation initially creates an S3 bucket, the stack policy has no effect because the bucket does not yet exist to be protected. Moreover, stack policies cannot require that the template's BucketEncryption property be set—they only restrict update actions like replacement or deletion, not the initial configuration.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

This SCS-C02 question is part of Courseiva's 1,205-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 SCS-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 SCS-C02 exam.