nerdexam
Amazon

DOP-C02 · Question #359

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…

The correct answer is A. Use AWS Systems Manager State Manager to automatically invoke a Systems Manager. AWS Systems Manager State Manager: This service allows for scheduled automation tasks, including invoking a Systems Manager Automation document at a specified time each day. Sequential execution in Automation document: Using the Automation document with a run command enables…

Submitted by andres_qro· Mar 6, 2026Reliability & Resilience

Question

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?

Options

  • AUse AWS Systems Manager State Manager to automatically invoke a Systems Manager
  • BUse AWS Systems Manager State Manager to automatically invoke a Systems Manager
  • CCreate an Amazon EventBridge rule that invokes an AWS Lambda function at the specified time.
  • DCreate an Amazon EventBridge rule that invokes an AWS Lambda function at the specified time.

How the community answered

(53 responses)
  • A
    51% (27)
  • B
    13% (7)
  • C
    8% (4)
  • D
    28% (15)

Explanation

AWS Systems Manager State Manager: This service allows for scheduled automation tasks, including invoking a Systems Manager Automation document at a specified time each day. Sequential execution in Automation document: Using the Automation document with a run command enables the scripts to execute in the required order, with the database record deletion occurring after file deletion. Amazon EventBridge rule and SNS for notifications: An EventBridge rule can capture any failures from the Automation document execution and send failure notifications via Amazon SNS. This setup provides reliable error handling and notification with minimal development effort.

Topics

#Systems Manager State Manager#Run Command#Scheduled tasks#Orchestration#SNS

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice