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.
Storing the CloudWatch agent JSON configuration as a Systems Manager Parameter allows a single, centrally managed source of truth. A State Manager association that targets the Auto Scaling group's instance profile can install or update the agent by invoking the AWS-provided AmazonCloudWatch-ManageAgent document and passing the Parameter name. When the association runs at launch or on a schedule, every new or existing instance retrieves the latest configuration, starts the agent, and publishes memory metrics and log files without any manual intervention. Embedding the file in user data or an AMI would require redeployment for every change, and the default EC2 metrics or the older CloudWatch Logs agent cannot publish memory utilization.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the AWS Systems Manager Parameter Store?
Open an interactive chat with Bash
What is a State Manager association in AWS Systems Manager?
Open an interactive chat with Bash
How does the AmazonCloudWatch-ManageAgent document function?
Open an interactive chat with Bash
What is an Amazon Systems Manager Parameter?
Open an interactive chat with Bash
How does a State Manager association work for managing instances?
Open an interactive chat with Bash
What is the AmazonCloudWatch-ManageAgent document?
Open an interactive chat with Bash
AWS Certified CloudOps Engineer Associate SOA-C03
Monitoring, Logging, Analysis, Remediation, and Performance Optimization
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .