AWS Certified Solutions Architect – Professional — Question 788

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

Option A is the correct answer because configuring an Amazon CloudWatch Logs metric filter requires zero modifications to the application code, as the logs are already being sent to CloudWatch. Option B is incorrect because modifying the application logic to call the AWS SDK violates the requirement for minimal application changes. Options C and D are incorrect because the CloudWatch agent cannot natively publish custom multi-dimensional metrics from parsed log lines, and using AWS Lambda introduces unnecessary operational overhead compared to using a native metric filter.