DOP-C02 exam dumps

DOP-C02 practice question 44 of 411

AWS Certified DevOps Engineer - Professional. Professional level, Amazon Web Services. Free question with the correct answer and a full explanation.

DOP-C02 Question 44

Select 2

You are managing an application hosted on AWS that uses an Auto Scaling group to handle traffic spikes. The application logs are stored in Amazon S3, and you need to implement a solution to notify your team if the S3 bucket begins to exceed a size threshold of 1 TB. Which combination of actions would meet this requirement with the least operational overhead?

  1. A

    Use AWS Lambda to periodically check the bucket size and send a notification if it exceeds 1 TB.

  2. B

    Enable Amazon S3 Storage Lens and configure a CloudWatch alarm on the metrics to notify the team.

  3. C

    Set up an AWS Config rule to monitor the bucket size and trigger an SNS notification when the size exceeds 1 TB.

  4. D

    Use an Amazon CloudWatch Events rule to monitor S3 bucket size and trigger an action if it exceeds 1 TB.

  5. E

    Create an S3 event notification to trigger an Amazon SNS topic when new objects are added, and calculate the bucket size in real-time.

Show answer and explanation

Correct answers: A, B

Explanation

The best solution combines Amazon S3 Storage Lens with CloudWatch alarms for monitoring bucket size metrics and notifying the team when the threshold is exceeded. This approach uses managed services, requires minimal custom configuration, and reduces operational overhead compared to other options. While AWS Lambda can achieve the same result, it involves additional effort to write and maintain custom code, making it less optimal.

  • A. Correct.

    This is a valid solution because AWS Lambda can be used to periodically calculate the bucket size and send notifications, but it requires custom code and monitoring, which increases operational overhead.

  • B. Correct.

    This is the correct answer because Amazon S3 Storage Lens provides metrics on bucket size, and a CloudWatch alarm can notify your team when the size exceeds the threshold with minimal operational overhead.

  • C. Incorrect.

    AWS Config is not designed to monitor bucket size; it is used for resource compliance and configuration tracking.

  • D. Incorrect.

    Amazon CloudWatch Events does not natively monitor S3 bucket size. You would need additional custom setup, which is not the most optimal solution here.

  • E. Incorrect.

    S3 event notifications are triggered by object-level events, not by overall bucket size, so this solution is not suitable for tracking and alerting based on the total bucket size.

Timed practice exam

Take a DOP-C02 practice test under exam conditions

75 questions in 180 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam