Courseiva
Accelerate Workload Migration and ModernizationmediumMultiple ChoiceObjective-mapped

SAP-C02 Practice Question: Accelerate Workload Migration and Modernization

Exhibit

Refer to the exhibit.

Resources:
  MyBucket:
    Type: AWS::S3::Bucket
    Properties:
      VersioningConfiguration:
        Status: Enabled
      LifecycleConfiguration:
        Rules:
          - Id: ArchiveRule
            Status: Enabled
            Prefix: logs/
            Transitions:
              - TransitionInDays: 30
                StorageClass: GLACIER
      PublicAccessBlockConfiguration:
        BlockPublicAcls: true

Refer to the exhibit. A company creates this CloudFormation stack. After 30 days, what happens to objects with the prefix 'logs/'?

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

They are moved to the GLACIER storage class.

The lifecycle rule in the CloudFormation template specifies a transition to GLACIER after 30 days for objects with the prefix 'logs/'. Therefore, after 30 days, those objects are moved to GLACIER. Option A is incorrect because the lifecycle rule is set to transition, not delete. Option B is incorrect because versioning does not prevent lifecycle transitions. Option C is incorrect because expiration is not required for transition; the transition action moves objects to GLACIER after 30 days.

Answer analysis

Option-by-option breakdown

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

  • They are deleted because of the lifecycle rule.

    Why it's wrong here

    The lifecycle rule transitions objects, it does not delete them. Rule is enabled but that doesn't cause deletion.

  • They remain in Standard storage because versioning is enabled.

    Why it's wrong here

    Versioning does not prevent lifecycle transitions; objects are still transitioned.

  • They are deleted after 30 days because no expiration is defined.

    Why it's wrong here

    No expiration is needed; the transition action itself moves objects to GLACIER after 30 days.

  • They are moved to the GLACIER storage class.

    Why this is correct

    Correct, as the transition action moves objects to GLACIER after 30 days.

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

Courseiva writes every SAP-C02 question from scratch — 1,660 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.