AWS Certified SysOps Administrator – Associate — Question 185
A company recently moved its server infrastructure to Amazon EC2 instances. The company wants to use Amazon CloudWatch metrics to track instance memory utilization and available disk space.
What should a SysOps administrator do to meet these requirements?
Answer options
- A. Configure CloudWatch from the AWS Management Console for all the instances that require monitoring by CloudWatch. AWS automatically installs and configures the agents for the specified instances.
- B. Install and configure the CloudWatch agent on all the instances. Attach an IAM role to allow the instances to write logs to CloudWatch.
- C. Install and configure the CloudWatch agent on all the instances. Attach an IAM user to allow the instances to write logs to CloudWatch.
- D. Install and configure the CloudWatch agent on all the instances. Attach the necessary security groups to allow the instances to write logs to CloudWatch.
Correct answer: B
Explanation
The correct answer is B because it specifies the installation of the CloudWatch agent and the attachment of an IAM role, which is necessary for instances to send logs to CloudWatch. Option A is incorrect as it implies CloudWatch can manage the agent automatically, which is not the case for memory and disk metrics. Option C is wrong because IAM users cannot be attached to instances, and option D fails to address the need for the correct IAM role to allow logging.