In this task, we use Systems Manager to install the CloudWatch agent on an EC2 instance. We configure it to collect both application and system metrics.