How Do You Get Notified When EC2 CPU Utilization Exceeds 80%?

An ecommerce startup is preparing for an annual sales event. As the traffic to the company's application increases, the development team wants to be notified when the Amazon EC2 instance's CPU utilization exceeds 80%. Which solution will meet this requirement?

  1. Create a custom Amazon CloudWatch alarm that sends a notification to an Amazon SNS topic when the CPU utilization exceeds 80%. Source Reference Answer
  2. Create a custom AWS CloudTrail alarm that sends a notification to an Amazon SNS topic when the CPU utilization exceeds 80%.
  3. Create a cron job on the EC2 instance that invokes the --describe-instance-information command on the host instance every 15 minutes and sends the results to an Amazon SNS topic.
  4. Create an AWS Lambda function that queries the AWS CloudTrail logs for the CPUUtilization metric every 15 minutes and sends a notification to an Amazon SNS topic when the CPU utilization exceeds 80%.

Community Votes

A
100%

100% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.

Community Insight

The exam tests whether you associate performance metrics with CloudWatch rather than CloudTrail; the trap is choosing CloudTrail-based options that cannot observe CPUUtilization at all.

An Amazon CloudWatch alarm on the EC2 CPUUtilization metric with an 80% threshold and an Amazon SNS notification action is the standard AWS pattern for proactive performance alerting. The community unanimously (100% of votes) confirms option A as the correct, simplest solution.

The most common wrong pick is B (or D): candidates see the words 'alarm' or 'logs' and assume CloudTrail handles monitoring, but CloudTrail only records API calls and contains no CPUUtilization metric to alarm on or query.

Community Discussion (3 comments)

examuserss 👍 1 Selected: A
The correct answer is A. CloudWatch is the AWS service specifically designed for monitoring metrics like CPU utilization. Creating a CloudWatch alarm with a threshold of 80% and configuring it to send notifications to an SNS topic is the most straightforward and efficient method for achieving this requirement.
Saudis 👍 1
A is the correct answer
ogogundare 👍 1
A is the correct answer

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

Option A creates a custom Amazon CloudWatch alarm on the EC2 CPUUtilization metric with a threshold of 80% and configures the alarm to publish a notification to an Amazon SNS topic. CPUUtilization is a standard, out-of-the-box EC2 metric that CloudWatch collects automatically, so no agents or custom code are required. When utilization crosses 80%, the alarm transitions to the ALARM state and SNS fans the notification out to subscribers via email, SMS, or mobile push. This is the fully managed, near-real-time, serverless alerting pattern that AWS explicitly recommends for metric-based monitoring.

Why the Other Options Are Wrong

Option B fails because AWS CloudTrail is an audit service that records API calls and account activity; it has no concept of performance metrics and cannot alarm on CPU utilization. Option C uses a cron job that polls every 15 minutes, which delays detection by up to 15 minutes, adds operational overhead on the instance itself, and violates the AWS best practice of using managed services instead of custom scripts. Option D is doubly wrong: CloudTrail logs do not contain a CPUUtilization metric (that data exists only in CloudWatch), and a Lambda function polling every 15 minutes adds unnecessary cost, latency, and complexity compared with a native alarm.

Community Comment Notes

The vote distribution is unanimous — 100% of community votes went to A — indicating strong consensus with no dissenting interpretations. The most-liked comment explains that CloudWatch is the AWS service purpose-built for monitoring metrics like CPU utilization and that an 80% threshold alarm publishing to SNS is the most straightforward and efficient method. The remaining comments are short confirmations that A is correct, reinforcing that this is a straightforward service-selection question rather than a nuanced architecture trade-off.

Official Reference

Exam Strategy

Map the pattern 'metric + threshold + notification' directly to CloudWatch alarm plus SNS on exam day. Remember the division of labor: CloudTrail answers 'who did what' (API audit), while CloudWatch answers 'how is it performing' (metrics, logs, alarms). Instantly eliminate any option that polls on a schedule or claims to query CloudTrail for performance metrics.

Related Analysis

Practice All DVA-C02 Questions

Access 100 questions with complete answers and detailed explanations.

View Full DVA-C02 Practice Test →

← Back to DVA-C02 Study Guide