Courseiva
Continuous Improvement for Existing SolutionsmediumMultiple ChoiceObjective-mapped

SAP-C02 Continuous Improvement for Existing Solutions Practice Question

A company is using Amazon S3 to store critical data and needs to ensure that objects are automatically deleted after 30 days. The current lifecycle policy is configured to expire objects after 30 days, but objects are not being deleted. What is the most likely cause?

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

The bucket has S3 Object Lock enabled with a retention period exceeding 30 days.

S3 Object Lock with a retention period exceeding 30 days prevents lifecycle expiration until the retention period ends. Option A is incorrect: when versioning is enabled, lifecycle expiration still applies – S3 creates a delete marker for the current version and permanently deletes noncurrent versions based on the noncurrent days configuration. Option B is incorrect: storage class (including Glacier Deep Archive) does not block expiration; objects in any class can be expired. Option D is incorrect: S3 Lifecycle does not use an IAM role; it operates under the bucket's permissions, and while a bucket policy denying s3:DeleteObject could block deletion, the issue described is not with an IAM role.

Answer analysis

Option-by-option breakdown

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

  • The bucket has versioning enabled, and lifecycle rules apply only to current versions.

    Why it's wrong here

    Lifecycle rules can apply to both current and noncurrent versions.

  • The objects are stored in the S3 Glacier Deep Archive storage class.

    Why it's wrong here

    Storage class does not affect lifecycle expiration.

  • The bucket has S3 Object Lock enabled with a retention period exceeding 30 days.

    Why this is correct

    Object Lock prevents object deletion before retention expires.

  • The IAM role used by S3 Lifecycle lacks the s3:DeleteObject permission.

    Why it's wrong here

    Lifecycle actions are performed by S3 internally, not by an IAM role.

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 SAP-C02 question is part of Courseiva's 1,660-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 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.