AWS Certified Developer – Associate — Question 22

A developer has a legacy application that is hosted on-premises. Other applications hosted on AWS depend on the on-premises application for proper functioning.
In case of any application errors, the developer wants to be able to use Amazon CloudWatch to monitor and troubleshoot all applications from one place.
How can the developer accomplish this?

Answer options

Correct answer: B

Explanation

The correct answer is B because downloading the CloudWatch agent and configuring it with IAM user credentials allows the on-premises server to send logs directly to CloudWatch for monitoring. Option A is incorrect as the AWS SDK does not automatically send logs to CloudWatch without additional configuration. Options C and D involve extra steps like uploading logs to S3 or an EC2 instance, which is not as efficient as using the CloudWatch agent.