Exam DOP-C02 All QuestionsBrowse all questions from this exam
Question 210

A company has a fleet of Amazon EC2 instances that run Linux in a single AWS account. The company is using an AWS Systems Manager Automation task across the EC2 instances.

During the most recent patch cycle, several EC2 instances went into an error state because of insufficient available disk space. A DevOps engineer needs to ensure that the EC2 instances have sufficient available disk space during the patching process in the future.

Which combination of steps will meet these requirements? (Choose two.)

    Correct Answer: A, D

    Ensuring that the Amazon CloudWatch agent is installed on all EC2 instances allows the tracking and monitoring of system-level metrics, including available disk space. Creating an Amazon CloudWatch alarm to monitor the available disk space enables the automation task to check the disk space before proceeding with patching, preventing errors due to insufficient disk space.

Discussion
WhyIronManOptions: AD

A,D, Simple and accurate

SeoyongOptions: AD

A: Install AWS CloudWatch agent which will push disk information to a log group. B: Alarm depends on disk space.

dkpOptions: AD

answer A & D to configure disk usage, we can use custom metrics in the Cloudwatch agent configuration. don't need a cron job to pipe the disk usage.

Nano803Options: AD

This article details the solution: https://aws.amazon.com/blogs/mt/avoid-patching-failures-due-to-low-disk-space-with-aws-systems-manager-automation-and-cloudwatch-alarms/

trungtdOptions: AD

A. Ensure that the Amazon CloudWatch agent is installed on all EC2 instances. The Amazon CloudWatch agent can collect system-level metrics, including disk space usage, and send them to Amazon CloudWatch. This will allow you to monitor the available disk space on each EC2 instance. D. Create an Amazon CloudWatch alarm to monitor available disk space on all EC2 instances. Add the alarm as a safety control to the Systems Manager Automation task. By setting up a CloudWatch alarm to monitor the available disk space, you can trigger actions or notifications when the disk space falls below a certain threshold. Adding this alarm as a safety control to the Systems Manager Automation task ensures that the patching process will only proceed if there is sufficient available disk space.