exam questions

Exam AWS Certified Developer Associate All Questions

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

Exam AWS Certified Developer Associate topic 1 question 389 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 389
Topic #: 1
[All AWS Certified Developer Associate Questions]

A company deploys a new application to AWS. The company is streaming application logs to Amazon CloudWatch Logs. The company’s development team must receive notification by email when the word “ERROR” appears in any log lines. A developer sets up an Amazon Simple Notification Service (Amazon SNS) topic and subscribes the development team to the topic.

What should the developer do next to meet the requirements?

  • A. Select the appropriate log group. Create a CloudWatch metric filter with “ERROR” as the search term. Create an alarm on this metric that notifies the SNS topic when the metric is 1 or higher.
  • B. In CloudWatch Logs Insights, select the appropriate log group. Create a metric query to search for the term “ERROR” in the logs. Create an alarm on this metric that notifies the SNS topic when the metric is 1 or higher.
  • C. Select the appropriate log group. Create an SNS subscription filter with “ERROR” as the filter pattern. Select the SNS topic as the destination.
  • D. Create a CloudWatch alarm that includes “ERROR” as a filter pattern, a log group dimension that defines the appropriate log group, and a destination that notifies the SNS topic.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
pancman
Highly Voted 2 years, 5 months ago
Selected Answer: A
The answer is A. I went on to my AWS console and did this hands-on just to see the exact steps. I had to go to the log group, create a metric filter with the term "ERROR" and specify a metric value.
upvoted 8 times
tony554556
2 years, 5 months ago
thanks for that.
upvoted 1 times
...
...
a15ce96
Most Recent 1 year, 3 months ago
Selected Answer: A
A. I had to implement this case once.
upvoted 1 times
...
breathingcloud
2 years, 5 months ago
Selected Answer: A
Its A, select the log group and apply the metric filter
upvoted 4 times
...
JagpreetLM10
2 years, 5 months ago
Selected Answer: D
It should be D. D. Create a CloudWatch alarm that includes “ERROR” as a filter pattern, a log group dimension that defines the appropriate log group, and a destination that notifies the SNS topic. This will allow the developer to set up a CloudWatch alarm that will trigger when the word "ERROR" appears in any log lines, and notify the SNS topic which the development team is subscribed to, thus receiving the email notification
upvoted 1 times
...
Phinx
2 years, 5 months ago
Selected Answer: A
I think it's A. https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/MonitoringLogData.html
upvoted 3 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 ...