D1: CloudWatch Agent on EC2, ECS & EKS
AWS Associate AWS Certified CloudOps Engineer – Associate exam practice questions · 10 flashcards
Question
What does the unified CloudWatch agent collect?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 CloudWatch Agent on EC2, ECS & EKS practice questions and answers
- What does the unified CloudWatch agent collect?System-level metrics (memory, disk, swap, processes) and log files from EC2 and on-premises servers.
- Where is CloudWatch agent configuration stored for fleet use?In Systems Manager Parameter Store; push it with Systems Manager Run Command.
- What IAM permission does the agent need?An instance role with CloudWatchAgentServerPolicy (and SSM policy if using Parameter Store).
- How do you install the agent at scale?Systems Manager Distributor / Run Command (AWS-ConfigureAWSPackage) or State Manager.
- Agent installed but no metrics appear. Common causes?Missing IAM role/permissions, no outbound network/endpoint access, wrong config, or agent not started.
- How do you collect memory metrics from EKS nodes?Install the Amazon CloudWatch Observability EKS add-on (Container Insights).
- How do you collect logs from ECS tasks?Use the awslogs log driver or FireLens (Fluent Bit) in the task definition.
- What is procstat plugin?CloudWatch agent plugin collecting per-process metrics.
- What is StatsD/collectd support?The agent can receive custom application metrics via StatsD or collectd.
- Can the agent run on on-premises servers?Yes, using IAM user credentials or Systems Manager hybrid activation.