Bird
0
0

You need to track the number of user logins per minute for a custom application. What is the best method to implement this using CloudWatch?

hard📝 Application Q8 of 15
AWS - CloudWatch
You need to track the number of user logins per minute for a custom application. What is the best method to implement this using CloudWatch?
AUse the default EC2 CPU utilization metric as a proxy for user logins
BPublish a custom metric with the login count every minute using the AWS SDK or CLI
CEnable CloudTrail to log user login events and analyze logs manually
DConfigure CloudWatch Alarms on default metrics to estimate login activity
Step-by-Step Solution
Solution:
  1. Step 1: Understand metric requirements

    Tracking user logins per minute requires a custom metric since default metrics do not provide this data.
  2. Step 2: Choose appropriate method

    Publishing a custom metric every minute with login counts via AWS SDK or CLI is the best approach.
  3. Step 3: Evaluate other options

    Default metrics and alarms do not track logins; CloudTrail logs require additional processing and are not real-time metrics.
  4. Final Answer:

    Publish a custom metric with the login count every minute using the AWS SDK or CLI -> Option B
  5. Quick Check:

    Custom metric publishing is best for application-specific data [OK]
Quick Trick: Publish custom metrics for application-specific data [OK]
Common Mistakes:
  • Using default metrics as proxies
  • Relying on CloudTrail logs for real-time metrics
  • Using alarms on unrelated default metrics

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes