AWS Certified CloudOps Engineer - Associate (SOA-C03) Practice Questions

AWS Certified CloudOps Engineer - Associate (SOA-C03) exam preparation

AWS Certified CloudOps Engineer - Associate (SOA-C03) practice questions in English: 180 questions with explanations. The mock exam has 65 questions and 130 minutes.

AWS Certified CloudOps Engineer - Associate (SOA-C03) free question 1 / 10 · Domain 1: Monitoring, Logging, Analysis, Remediation, and Performance Optimization

A fleet of Linux web servers in one Auto Scaling group runs the CloudWatch agent and publishes memory metrics under the CWAgent namespace. An engineer wants to view and alarm on the fleet-wide value of each metric instead of one series per instance. Which change to the agent configuration file does this?

  1. Set metrics_destinations to amp in the metrics section so the agent sends one combined stream of values to the managed Prometheus workspace
  2. Add the procstat plugin to the metrics_collected section so that the agent reports the process-level metrics of the whole group in one value
  3. Add AutoScalingGroupName to append_dimensions and list it in aggregation_dimensions so the metrics roll up per group and can be viewed as a whole
  4. Add a dimension named Fleet with the value web to the top-level append_dimensions field so that CloudWatch groups the metrics by that label
Show the answer and explanation

Answer: C

Why this is correct
The configuration file page describes aggregation_dimensions as the setting that specifies the dimensions that collected metrics are aggregated on. Its example is the one in the question: if you roll up metrics on the AutoScalingGroupName dimension, the metrics from all instances in each Auto Scaling group are aggregated and can be viewed as a whole. The dimension comes from append_dimensions, where "AutoScalingGroupName":"${aws:AutoScalingGroupName}" sets the group name as a dimension.

Why the other options are wrong
"Add a dimension named Fleet with the value web to the top-level append_dimensions field so that CloudWatch groups the metrics by that label" … The configuration page lists four supported append_dimensions keys: ImageId, InstanceId, InstanceType, and AutoScalingGroupName. Any other key-value pair is ignored, so a Fleet dimension is never published.
"Set metrics_destinations to amp in the metrics section so the agent sends one combined stream of values to the managed Prometheus workspace" … The metrics_destinations field only chooses where the agent sends metrics: cloudwatch, amp, or both. It does not combine instances, and the per-instance series would still be published.
"Add the procstat plugin to the metrics_collected section so that the agent reports the process-level metrics of the whole group in one value" … The procstat plugin retrieves metrics from individual processes on the server. It is not a way to aggregate instance metrics by Auto Scaling group.

Key points
append_dimensions adds EC2 dimensions to every metric the agent collects, and aggregation_dimensions chooses which dimension sets the agent additionally rolls up. You can roll up along single or multiple dimensions.

Go to the AWS Certified CloudOps Engineer - Associate (SOA-C03) practice app (10 free questions; purchase unlocks all questions)

See the full practice set