SOA-C02 exam dumps

SOA-C02 practice question 13 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 13

Select 3

A company wants to monitor custom application logs and collect additional system-level metrics from its Amazon EC2 instances. You are tasked with configuring the CloudWatch agent to achieve this. After installing the CloudWatch agent and creating a configuration file, what steps must you take to ensure the agent collects the required data and sends it to Amazon CloudWatch?

  1. A

    Start the CloudWatch agent service on the EC2 instance.

  2. B

    Ensure the EC2 instance has an IAM role with the necessary permissions to write to CloudWatch.

  3. C

    Modify the instance metadata to include CloudWatch agent configuration parameters.

  4. D

    Use the CloudWatch console to manually push logs and metrics from the EC2 instance.

  5. E

    Verify the CloudWatch agent configuration file and restart the agent if necessary.

Show answer and explanation

Correct answers: A, B, E

Explanation

To configure the CloudWatch agent to collect metrics and logs, you need to install and start the agent, ensure appropriate IAM permissions are in place, and verify the agent’s configuration. Starting the agent initiates the data collection process, and IAM permissions allow data to be sent to CloudWatch. Verifying and restarting the agent ensures the configuration is applied correctly. Modifying instance metadata and manually pushing data from the CloudWatch console are not part of the standard process.

  • A. Correct.

    Correct. Starting the CloudWatch agent service is necessary to begin the collection and transmission of metrics and logs.

  • B. Correct.

    Correct. The EC2 instance requires an IAM role with permissions such as 'cloudwatch:PutMetricData' and 'logs:PutLogEvents' to send data to CloudWatch.

  • C. Incorrect.

    Incorrect. Modifying the instance metadata is not required for configuring or running the CloudWatch agent.

  • D. Incorrect.

    Incorrect. The CloudWatch console is used for visualizing data, not for manually pushing logs and metrics from an EC2 instance.

  • E. Correct.

    Correct. Verifying and restarting the CloudWatch agent ensures the configuration file is loaded and any changes are applied.

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