SOA-C02 exam dumps

SOA-C02 practice question 15 of 341

AWS Certified SysOps Administrator - Associate. Associate level, Amazon Web Services. Free question with the correct answer and a full explanation.

SOA-C02 Question 15

Select 3

A company is running an application on Amazon EC2 instances and wants to collect custom application-level metrics such as request count and error rate, as well as system-level metrics like CPU and memory usage. The company is using the CloudWatch agent to achieve this. Which steps are necessary to ensure the CloudWatch agent collects both system and custom application metrics from the EC2 instances?

  1. A

    Install and configure the CloudWatch agent on the EC2 instances.

  2. B

    Ensure the IAM role attached to the EC2 instances has the 'CloudWatchAgentServerPolicy' managed policy.

  3. C

    Create a CloudWatch alarm to send notifications for custom application metrics.

  4. D

    Modify the CloudWatch agent configuration file to include both system and custom application metrics.

  5. E

    Enable detailed monitoring on the EC2 instances.

Show answer and explanation

Correct answers: A, B, D

Explanation

To collect both system and custom application metrics using the CloudWatch agent, you need to install and configure the agent, ensure the EC2 instances have the appropriate IAM permissions, and modify the agent's configuration file to specify the metrics to be collected. While enabling detailed monitoring and creating alarms are useful for monitoring, they are not necessary steps for collecting metrics via the CloudWatch agent.

  • A. Correct.

    Correct: The CloudWatch agent must be installed and configured on the EC2 instances to collect metrics. This is a required step.

  • B. Correct.

    Correct: The EC2 instances need an IAM role with the necessary permissions, such as the 'CloudWatchAgentServerPolicy', to allow the CloudWatch agent to send metrics to Amazon CloudWatch.

  • C. Incorrect.

    Incorrect: Creating a CloudWatch alarm is not required to collect metrics. Alarms are used to monitor metrics and send notifications but are not part of the setup process for collecting metrics.

  • D. Correct.

    Correct: To collect system and custom application metrics, the CloudWatch agent configuration file must be properly modified to include the desired metrics.

  • E. Incorrect.

    Incorrect: Enabling detailed monitoring on EC2 instances is not required when using the CloudWatch agent, as the agent provides more granular and customizable metrics independently of detailed monitoring.

Timed practice exam

Take a SOA-C02 practice test under exam conditions

65 questions in 130 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam