Question 451 · 548 in bank
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?
Show answer
Answer: B
Explanation
A) Eliminated - Using the AWS SDK means you must write custom code to capture and send logs to CloudWatch via the PutLogEvents API. This is not automatic as mentioned in option B) CloudWatch agent is specifically designed for collecting logs and metrics from both AWS and on-premises environments. C) Eliminated - unnecessary complexity. D) Eliminated - unnecessarily complex and costly.
Source: Adapted from community discussion — sumanshu