AWS Certified CloudOps Engineer Associate SOA-C03 Practice Question

An Auto Scaling group launches Amazon Linux 2 instances that run a Java application. Operations needs to collect memory utilization and the application's /var/log/app.log file, and they want to be able to change the collection settings without baking a new AMI or manually connecting to instances. What is the MOST maintainable way to deploy and manage the CloudWatch agent across all current and future instances?

  • Rely on default EC2 metrics and create a CloudWatch Logs subscription filter that streams /var/log/app.log to CloudWatch Logs.

  • Store the agent's JSON configuration as a Systems Manager Parameter and use a State Manager association with the AmazonCloudWatch-ManageAgent document to install and start the agent on all instances.

  • Bake the agent and its configuration into a custom AMI that the Auto Scaling group uses for all launches.

  • Add the agent's configuration file to user data and run amazon-cloudwatch-agent-ctl in the Auto Scaling group launch template.

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