DOP-C01 Exam QuestionsBrowse all questions from this exam

DOP-C01 Exam - Question 170


A company is running an application on Amazon EC2 instances. A DevOps engineer needs to aggregate the application logs to a central system for the company's application team to search. A critical error message periodically appears in the log files. The DevOps engineer needs to notify the application team by email when these error messages occur.

Which solution will meet these requirements in the MOST operationally efficient manner?

Show Answer
Correct Answer: A

The most operationally efficient solution is to configure the unified Amazon CloudWatch agent on the EC2 instances to publish the application log files to a CloudWatch log group. Then, configure a metric filter on the CloudWatch log group to detect critical errors and create a custom metric. Subsequently, create an Amazon Simple Notification Service (Amazon SNS) topic and configure a CloudWatch alarm to use the custom metric to notify the SNS topic. Finally, subscribe the application team's email address to the SNS topic. This method leverages built-in AWS services that simplify log management and alerting while minimizing operational overhead compared to other options involving additional services like Amazon Kinesis or Amazon OpenSearch Service.

Discussion

8 comments
Sign in to comment
DimidrolOption: A
Jan 17, 2023

A for me

Christina666Option: A
Jan 21, 2023

A for me

Bulti
Jan 28, 2023

A is correct.

Oleg_golOption: A
Jan 15, 2023

I vote A

Nila_Cloud_PROOption: D
Mar 4, 2023

The Key here is, the engineer needs to aggregate the application logs to a central system for the company's application team to search. Opensearch is the best option for the centralized log search

PiccasoOption: D
Feb 13, 2023

A is good. D is more operationally efficient https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_OpenSearch_Stream.html

Piccaso
Feb 17, 2023

"MOST operationally efficient", I think A is more operationally efficient than D. On A, we only need to operate CWL and SNS On D, we have to operate CWL, SNS and OpenSearch

SHoKMaSTeR
Mar 2, 2023

Both A and D are valid for me. For A you need to provide all the developers access to AWS for checking CloudWatch, and searching in CloudWatch is worst than in OpenSearch, maybe it is less efficient ...

saeidpOption: A
Feb 25, 2023

A seems to be the best but why saying create custom metric? metric filter doesn't create custom metric

auxwwwOption: A
Jul 10, 2024

Most operationally efficient - A Centralized/Search logs - CloudWatch Log Insights can do this for much cheaper price and without needing additional services