Learning
Learning
Loading practice session...
AWS Certified Developer - Associate · Exam domain
46 practice questions in this domain. AI-tutored explanations for every answer.
Sign in to practice all 46 questions with progress tracking and AI explanations.
1. A developer needs to track the number of failed login attempts in an application running on Amazon EC2. Which approach provides the most real-time visibility into this specific application-level metric?
Explanation
The PutMetricData API allows you to publish custom application metrics to CloudWatch. Standard EC2 metrics only cover infrastructure-level data like CPU or network usage, not application logic.
2. A development team is publishing a custom metric using the CloudWatch PutMetricData API. They want to ensure they can aggregate the data across different customer tiers (e.g., Free, Pro, Enterprise). How should they structure the metric data?
Explanation
Dimensions are name/value pairs that uniquely identify a metric and allow you to filter or aggregate data. Appending attributes to metric names or namespaces makes cross-tier aggregation difficult.
3. An application writes error logs to a custom log file on an Amazon EC2 instance. A developer wants to track the frequency of 'NullReferenceException' occurrences and view this as a graph in CloudWatch. What is the most efficient way to achieve this?
Explanation
The CloudWatch agent continuously streams local log files to CloudWatch Logs. Metric filters can then continuously parse these logs for specific patterns and increment a custom CloudWatch metric.
4. A developer wants to centralize application logs from several Amazon EC2 instances into Amazon CloudWatch Logs. Which sequence of steps is required to implement this solution?
Explanation
To send logs from an EC2 instance to CloudWatch Logs, the instance requires an IAM role with the appropriate permissions (like logs:PutLogEvents) and the CloudWatch agent must be installed and configured.
5. An application's custom metric tracks the queue length of a background processing system. When the queue length exceeds 1000 items for 3 consecutive minutes, the development team needs to be notified via email. How should this be configured?
Explanation
CloudWatch Alarms continuously evaluate metrics against a defined threshold. When the threshold is breached, the alarm transitions to the ALARM state and can automatically trigger an SNS topic to send emails.
Practice all 46+ questions in this domain
Start free practice →