AWS Certified Sysops Administrator Associate · Free Practice Question Medium
Question 2
A SysOps Administrator has deployed a fleet of Amazon EC2 instances using an EC2 Auto Scaling group. The instances must be configured to send local logs to Amazon CloudWatch and the solution must minimize operational overhead.
Which action should the Administrator take to meet this requirement?
-
A
Configure AWS Config to forward events to CloudWatch.
-
B
Install and configure the Amazon Inspector agent.
-
C
Install and configure the unified CloudWatch agent.
-
D
Create a script that forwards events to CloudWatch.
Reveal correct answer
Correct answer: C
Explanation
The unified CloudWatch agent enables you to do the following:
• Collect more system-level metrics from Amazon EC2 instances across operating systems. The metrics can include in-guest metrics, in addition to the metrics for EC2 instances.
• Collect system-level metrics from on-premises servers. These can include servers in a hybrid environment as well as servers not managed by AWS.
• Retrieve custom metrics from your applications or services using the StatsD and collectd protocols.
• Collect logs from Amazon EC2 instances and on-premises servers, running either Linux or Windows Server.
CORRECT: "Install and configure the unified CloudWatch agent" is the correct answer.
INCORRECT: "Configure AWS Config to forward events to CloudWatch" is incorrect. AWS Config is not involved with collecting log files.
INCORRECT: "Create a script that forwards events to CloudWatch" is incorrect. This solution does not minimize operational overhead as the script must be created and managed on each EC2 instance. Using an agent is a better solution.
INCORRECT: "Install and configure the Amazon Inspector agent" is incorrect. Amazon Inspector reports on best practice compliance of AWS resources, it does not collect logs.
References:
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Install-CloudWatch-Agent.html
Save time with our AWS cheat sheets:
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
