
Ultimate access to all questions.
A company is transitioning to a user-based licensing model and needs to track key performance indicators (KPIs) from their multi-tier, web-based application. They currently use the CloudWatch agent to log all application data, including login events, into Amazon CloudWatch. To support the new licensing strategy, the company must determine the number of unique users per client on a daily, weekly, and monthly basis. What is the most efficient solution that requires the least modification to the existing application setup?
A
Set up an Amazon CloudWatch Logs metric filter to record each successful login as a metric, with the user name and client name configured as dimensions.
B
Modify the application's logic to trigger an AWS SDK call for each successful login, incrementing a custom CloudWatch metric with user name and client name dimensions.
C
Configure the CloudWatch agent to parse successful login metrics from the logs and additionally set up the agent to log these metrics as a custom metric in CloudWatch, using the user name and client name as dimensions.
D
Deploy an AWS Lambda function to process the application's log stream in Amazon CloudWatch Logs, and configure the Lambda function to increment a custom CloudWatch metric with user name and client name dimensions.