ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 374 - SOA-C02 discussion

Report
Export

A company needs to monitor the disk utilization of Amazon Elastic Block Store (Amazon EBS) volumes The EBS volumes are attached to Amazon EC2 Linux Instances A SysOps administrator must set up an Amazon CloudWatch alarm that provides an alert when disk utilization increases to more than 80%.

Which combination of steps must the SysOps administrator lake lo meet these requirements? (Select THREE.)

A.
Create an 1AM role that includes the Cloud Watch AgentServerPol icy AWS managed policy Attach me role to the instances
Answers
A.
Create an 1AM role that includes the Cloud Watch AgentServerPol icy AWS managed policy Attach me role to the instances
B.
Create an 1AM role that includes the CloudWatchApplicationInsightsReadOnlyAccess AWS managed policy. Attach the role to the instances
Answers
B.
Create an 1AM role that includes the CloudWatchApplicationInsightsReadOnlyAccess AWS managed policy. Attach the role to the instances
C.
Install and start the CloudWatch agent by using AWS Systems Manager or the command line
Answers
C.
Install and start the CloudWatch agent by using AWS Systems Manager or the command line
D.
Install and start the CloudWatch agent by using an 1AM role. Attach the Cloud Watch AgentServerPolicy AWS managed policy to the role.
Answers
D.
Install and start the CloudWatch agent by using an 1AM role. Attach the Cloud Watch AgentServerPolicy AWS managed policy to the role.
E.
Configure a CloudWatch alarm to enter ALARM state when the disk_used_percent CloudWatch metric is greater than 80%.
Answers
E.
Configure a CloudWatch alarm to enter ALARM state when the disk_used_percent CloudWatch metric is greater than 80%.
F.
Configure a CloudWatch alarm to enter ALARM state when the disk_used CloudWatch metric is greater than 80% or when the disk_free CloudWatch metric is less than 20%.
Answers
F.
Configure a CloudWatch alarm to enter ALARM state when the disk_used CloudWatch metric is greater than 80% or when the disk_free CloudWatch metric is less than 20%.
Suggested answer: A, C, E

Explanation:

Create an IAM role with the CloudWatchAgentServerPolicy:

This policy grants the necessary permissions for the CloudWatch agent to collect and send metrics.

Steps:

Go to the AWS Management Console.

Navigate to IAM and create a new role.

Choose 'EC2' as the trusted entity.

Attach the 'CloudWatchAgentServerPolicy' managed policy to the role.

Attach this IAM role to your EC2 instances.

Install and start the CloudWatch agent:

The CloudWatch agent must be installed and configured to collect disk utilization metrics.

Steps:

Use AWS Systems Manager or SSH to connect to your instances.

Install the CloudWatch agent using the following commands:

sudo yum install amazon-cloudwatch-agent

sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-config-wizard

sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -c file:/path/to/your-config-file.json -s

Start the agent:

sudo systemctl start amazon-cloudwatch-agent

Configure a CloudWatch alarm:

Create an alarm based on the disk_used_percent metric.

Steps:

Go to the AWS Management Console.

Navigate to CloudWatch and select 'Alarms' from the left-hand menu.

Click on 'Create alarm.'

Select the disk_used_percent metric.

Set the threshold to 80% and configure the alarm actions (e.g., sending a notification).

asked 16/09/2024
Samya Sharab
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first