exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional exam

Exam AWS Certified Solutions Architect - Professional topic 1 question 994 discussion

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?

  • A. Configure an Amazon CloudWatch Logs metric filter that saves each successful login as a metric. Configure the user name and client name as dimensions for the metric.
  • B. Change the application logic to make each successful login generate a call to the AWS SDK to increment a custom metric that records user name and client name dimensions in CloudWatch.
  • C. Configure the CloudWatch agent to extract successful login metrics from the logs. Additionally, configure the CloudWatch agent to save the successful login metrics as a custom metric that uses the user name and client name as dimensions for the metric.
  • D. Configure an AWS Lambda function to consume an Amazon CloudWatch Logs stream of the application logs. Additionally, configure the Lambda function to increment a custom CloudWatch that uses the user name and client name as dimensions for the metric.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Ebi
1 year, 4 months ago
Answer isA
upvoted 1 times
...
3a632a3
1 year, 5 months ago
The answer is A. The correct answer is don't do this. You will be charged for a custom metric per user. Let's say you have 10k users at $0.30 per custom metric you will be charged $3k. There are definitely cheaper ways to do this. https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntaxForMetricFilters.html#logs-metric-filters-dimensions
upvoted 1 times
...
Pr44
1 year, 9 months ago
Selected Answer: A
With least privilege we can achieve the desried result. Coudwatch has the capability to create filter.
upvoted 1 times
...
ggrodskiy
1 year, 12 months ago
Correct A.
upvoted 1 times
...
SkyZeroZx
2 years ago
Selected Answer: A
The solution that will provide the information with the LEAST change to the application is A. Configure an Amazon CloudWatch Logs metric filter that saves each successful login as a metric. Configure the user name and client name as dimensions for the metric. This solution does not require any changes to the application logic. The CloudWatch Logs metric filter will extract the user name and client name from the log file and save them as dimensions for the metric. This information can then be used to calculate the number of unique users each client has on a daily basis, weekly basis, and monthly basis. The other solutions require changes to the application logic or the deployment of additional AWS services. For example, solution B requires the application to make a call to the AWS SDK to increment a custom metric. Solution C requires the CloudWatch agent to be configured to extract successful login metrics from the logs. Solution D requires an AWS Lambda function to be deployed to consume the application logs.
upvoted 2 times
...
Sudeepshiv
2 years, 1 month ago
Selected Answer: A
With least efforts
upvoted 2 times
...
AMEJack
2 years, 1 month ago
Selected Answer: A
Create new metric from cloudwatch logs directly.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...