AWS Certified Solutions Architect – Professional (SAP-C02) — Question 449

A company wants to record key performance indicators (KPIs) from its application as part of a strategy to convert to a user-based licensing schema. The application is a multi-tier application with a web-based UI. The company saves all log files to Amazon CloudWatch by using the CloudWatch agent. All logins to the application are saved in a log file.

As part of the new license schema, the company needs to find out how many unique users each client has on a daily basis, weekly basis, and monthly basis.

Which solution will provide this information with the LEAST change to the application?

Answer options

Correct answer: A

Explanation

Using an Amazon CloudWatch Logs metric filter is the most efficient solution because it extracts metrics directly from the existing logs already being forwarded to CloudWatch, requiring zero code changes to the application. Option B is incorrect because it requires modifying the application code to use the AWS SDK, which violates the requirement for minimal changes. Options C and D introduce unnecessary operational complexity compared to native CloudWatch metric filters.