AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 292

A company has a file-reading application that saves files to a database that runs on Amazon EC2 instances. Regulations require the company to delete files from EC2 instances every day at a specific time. The company must delete database records that are older than 60 days.

The database record deletion must occur after the file deletions. The company has created scripts to delete files and database records. The company needs to receive an email notification for any failure of the deletion scripts.

Which solution will meet these requirements with the LEAST development effort?

Answer options

Correct answer: A

Explanation

Option A requires the least development effort because AWS Systems Manager State Manager and Run Command can natively execute existing scripts on EC2 instances sequentially without writing custom code. Furthermore, using Amazon EventBridge and Amazon SNS to handle failures and send email alerts leverages built-in AWS integrations. Solutions involving AWS Lambda or Amazon SES require significantly more custom code development and configuration effort.