exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 73 discussion

A company runs an application on AWS. The company deployed the application on Amazon EC2 instances. The application stores data on Amazon Aurora.

The application recently logged multiple application-specific custom DECRYP_ERROR errors to Amazon CloudWatch logs. The company did not detect the issue until the automated tests that run every 30 minutes failed. A developer must implement a solution that will monitor for the custom errors and alert a development team in real time when these errors occur in the production environment.

Which solution will meet these requirements with the LEAST operational overhead?

  • A. Configure the application to create a custom metric and to push the metric to CloudWatch. Create an AWS CloudTrail alarm. Configure the CloudTrail alarm to use an Amazon Simple Notification Service (Amazon SNS) topic to send notifications.
  • B. Create an AWS Lambda function to run every 5 minutes to scan the CloudWatch logs for the keyword DECRYP_ERROR. Configure the Lambda function to use Amazon Simple Notification Service (Amazon SNS) to send a notification.
  • C. Use Amazon CloudWatch Logs to create a metric filter that has a filter pattern for DECRYP_ERROR. Create a CloudWatch alarm on this metric for a threshold >=1. Configure the alarm to send Amazon Simple Notification Service (Amazon SNS) notifications.
  • D. Install the CloudWatch unified agent on the EC2 instance. Configure the application to generate a metric for the keyword DECRYP_ERROR errors. Configure the agent to send Amazon Simple Notification Service (Amazon SNS) notifications.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
MrTee
Highly Voted 1 year, 6 months ago
Selected Answer: C
To monitor for custom DECRYP_ERROR errors and alert a development team in real time when these errors occur in the production environment with the least operational overhead, the developer should use Amazon CloudWatch Logs to create a metric filter that has a filter pattern for DECRYP_ERROR. The developer should then create a CloudWatch alarm on this metric for a threshold >=1 and configure the alarm to send Amazon Simple Notification Service (Amazon SNS) notifications (Option C). This solution will allow the developer to monitor for custom errors in real time and receive notifications when they occur with minimal operational overhead.
upvoted 9 times
...
sumanshu
Most Recent 4 months ago
Selected Answer: C
CloudWatch Logs Metric Filter allows you to directly track specific keywords (e.g., DECRYP_ERROR) in logs and generate metrics without additional code or infrastructure. After creating a metric filter, you can configure a CloudWatch Alarm to monitor the metric and send an alert if the threshold is exceeded (e.g., >=1 occurrence). Using Amazon SNS, the alarm can notify the development team in real time.
upvoted 1 times
sumanshu
4 months ago
A) Eliminated - Custom metric creation by the application requires code changes in the application, which introduces development overhead. B) Eliminated - Running a Lambda function periodically adds complexity, additional cost, and delays in detecting errors (up to 5 minutes). D) Eliminated - installing and maintaining the CloudWatch agent introduces operational complexity
upvoted 1 times
...
...
65703c1
5 months, 1 week ago
Selected Answer: C
C is the correct answer.
upvoted 1 times
...
badsati
6 months, 2 weeks ago
Selected Answer: C
Options A, B, and D introduce additional complexity, operational overhead, and potential points of failure compared to Option C, which leverages native CloudWatch capabilities for log monitoring and alerting with minimal setup and maintenance overhead. Therefore, Option C is the most suitable choice for meeting the requirements with the least operational overhead.
upvoted 1 times
...
SerialiDr
9 months, 3 weeks ago
Selected Answer: C
This is a straightforward and effective solution. CloudWatch Logs allows you to create a metric filter for specific log patterns (such as DECRYP_ERROR) and then create an alarm based on that metric. When the alarm is triggered, it can send a notification through Amazon SNS. This approach provides real-time monitoring with minimal operational overhead.
upvoted 1 times
...
hsinchang
1 year, 1 month ago
Selected Answer: C
A and B are not real-time, and the CloudWatch unified agent in D is used to collect metrics and logs from EC2 instances and on-premises servers, not to send notifications. So C.
upvoted 4 times
...
Fyssy
1 year, 6 months ago
Selected Answer: C
CloudWatch Logs can use filter expressions. For example, find a specific IP inside of a log Or count occurrences of “ERROR” in your logs• Metric filters can be used to trigger CloudWatch alarms
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago