nerdexam
Amazon

DEA-C01 · Question #206

A company stores server logs in an Amazon S3 bucket. The company needs to keep the logs for 1 year. The logs are not required after 1 year. A data engineer needs a solution to automatically delete…

The correct answer is A. Define an S3 Lifecycle configuration to delete the logs after 1 year. Amazon S3 Lifecycle configurations are a native, built-in S3 feature specifically designed to automate object expiration. You define a rule with an expiration action set to 365 days, and S3 handles deletion automatically with zero ongoing maintenance. This is entirely…

Data Store Management

Question

A company stores server logs in an Amazon S3 bucket. The company needs to keep the logs for 1 year. The logs are not required after 1 year. A data engineer needs a solution to automatically delete logs that are older than 1 year. Which solution will meet these requirements with the LEAST operational overhead?

Options

  • ADefine an S3 Lifecycle configuration to delete the logs after 1 year.
  • BCreate an AWS Lambda function to delete the logs after 1 year.
  • CSchedule a cron job on an Amazon EC2 instance to delete the logs after 1 year.
  • DConfigure an AWS Step Functions state machine to delete the logs after 1 year.

How the community answered

(22 responses)
  • A
    86% (19)
  • C
    9% (2)
  • D
    5% (1)

Explanation

Amazon S3 Lifecycle configurations are a native, built-in S3 feature specifically designed to automate object expiration. You define a rule with an expiration action set to 365 days, and S3 handles deletion automatically with zero ongoing maintenance. This is entirely serverless and requires no code. Creating an AWS Lambda function (B) requires writing, deploying, and scheduling deletion logic-unnecessary complexity when S3 handles it natively. Running a cron job on EC2 (C) requires maintaining an instance just for this task, which is high operational overhead. Using AWS Step Functions (D) requires designing a state machine and a trigger mechanism, far more complex than a simple Lifecycle rule.

Topics

#S3 Lifecycle#Data Retention#Operational Overhead#Amazon S3

Community Discussion

No community discussion yet for this question.

Full DEA-C01 Practice