DOP-C02 Exam QuestionsBrowse all questions from this exam

DOP-C02 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.)

Show Answer
Correct Answer: AD

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

5 comments
Sign in to comment
SeoyongOptions: AD
Mar 13, 2024

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

WhyIronManOptions: AD
Mar 30, 2024

A,D, Simple and accurate

Nano803Options: AD
Mar 13, 2024

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/

dkpOptions: AD
Apr 13, 2024

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.

trungtdOptions: AD
Jul 11, 2024

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.