AWS - CloudWatchYou 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 loginsBPublish a custom metric with the login count every minute using the AWS SDK or CLICEnable CloudTrail to log user login events and analyze logs manuallyDConfigure CloudWatch Alarms on default metrics to estimate login activityCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand metric requirementsTracking user logins per minute requires a custom metric since default metrics do not provide this data.Step 2: Choose appropriate methodPublishing a custom metric every minute with login counts via AWS SDK or CLI is the best approach.Step 3: Evaluate other optionsDefault metrics and alarms do not track logins; CloudTrail logs require additional processing and are not real-time metrics.Final Answer:Publish a custom metric with the login count every minute using the AWS SDK or CLI -> Option BQuick 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 proxiesRelying on CloudTrail logs for real-time metricsUsing alarms on unrelated default metrics
Master "CloudWatch" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes Auto Scaling - Why auto scaling matters - Quiz 15hard Auto Scaling - Cooldown periods - Quiz 13medium Auto Scaling - Scheduled scaling - Quiz 15hard CloudWatch - Log groups and log streams - Quiz 9hard DynamoDB - DynamoDB Streams overview - Quiz 5medium Elastic Load Balancing - Why load balancing matters - Quiz 9hard Elastic Load Balancing - Network Load Balancer (NLB) - Quiz 1easy RDS and Relational Databases - RDS pricing considerations - Quiz 15hard RDS and Relational Databases - Multi-AZ deployment for high availability - Quiz 4medium SNS and SQS - Why messaging services matter - Quiz 3easy