AWS Certified CloudOps Engineer Associate SOA-C03 Practice Question

An operations engineer installed the CloudWatch agent on several Amazon Linux 2 EC2 instances by using the Systems Manager document AWS-ConfigureAWSPackage. A custom JSON file (shown below) was deployed to each instance and the agent was restarted.

{
  "agent": {"metrics_collection_interval": 60},
  "metrics": {
    "append_dimensions": {"InstanceId": "${aws:InstanceId}"},
    "aggregation_dimensions": [["InstanceId"]]
  },
  "logs": {
    "logs_collected": {
      "files": {
        "collect_list": [
          {
            "file_path": "/opt/app/server.log",
            "log_group_name": "app-logs",
            "log_stream_name": "{instance_id}"
          }
        ]
      }
    }
  }
}

Application logs are now visible in CloudWatch Logs, but no memory or disk space metrics appear in CloudWatch Metrics. What is the simplest way to collect these missing metrics on every instance?

  • Turn on detailed monitoring for the instances in the EC2 console.

  • Insert mem and disk sections under metrics_collected in the agent JSON file, then restart the CloudWatch agent on each instance.

  • Attach the managed policy CloudWatchAgentAdminPolicy to the instance profile role.

  • Edit the AWS-ConfigureAWSPackage document to run the agent in collectd compatibility mode.

AWS Certified CloudOps Engineer Associate SOA-C03
Monitoring, Logging, Analysis, Remediation, and Performance Optimization
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot