exam questions

Exam AWS DevOps Engineer Professional All Questions

View all questions & answers for the AWS DevOps Engineer Professional exam

Exam AWS DevOps Engineer Professional topic 1 question 170 discussion

Exam question from Amazon's AWS DevOps Engineer Professional
Question #: 170
Topic #: 1
[All AWS DevOps Engineer Professional Questions]

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?

  • A. Configure the unified Amazon CloudWatch agent on the EC2 instances to publish the application logs files to a CloudWatch log group. Configure a metric filter on the CloudWatch log group to detect the critical errors and to create a custom metric. Create an Amazon Simple Notification Service (Amazon SNS) topic. Configure a CloudWatch alarm to use the custom metric to notify the SNS topic. Subscribe the application team's email address to the SNS topic.
  • B. Install the Amazon Kinesis agent on the EC2 instances. Configure the Kinesis agent with the location of the log files. Stream the logs to a Kinesis Data Firehose delivery stream with an Amazon CloudWatch metrics stream as a destination. Configure an AWS Lambda function to detect the error message and to create a custom metric. Associate the Lambda function with the stream. Create an Amazon Simple Notification Service (Amazon SNS) topic. Configure a CloudWatch alarm to use the custom metric to notify the SNS topic. Subscribe the application team's email address to the SNS topic.
  • C. Install the AWS X-Ray daemon on the EC2 instances. Instrument the application with the AWS Distro for OpenTelemetry (ADOT). Configure the ADOT collector with the location of the custom log files and the name of an Amazon CloudWatch log group. Use the CloudWatch embedded metric format to generate a custom metric that is based on the error message. Create an Amazon Simple Notification Service (Amazon SNS) topic. Configure a CloudWatch alarm to use the custom metric to notify the SNS topic. Subscribe the application team's email address to the SNS topic.
  • D. Configure the unified Amazon CloudWatch agent on the EC2 instances to publish the application logs files to a CloudWatch log group. Create an Amazon OpenSearch Service domain. Subscribe the CloudWatch log group to the OpenSearch Service domain. Create an Amazon Simple Notification Service (Amazon SNS) topic. Configure an OpenSearch Service alert monitor to notify the SNS topic. Subscribe the application team's email address to 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
auxwww
9 months, 4 weeks ago
Selected Answer: A
Most operationally efficient - A Centralized/Search logs - CloudWatch Log Insights can do this for much cheaper price and without needing additional services
upvoted 1 times
...
Nila_Cloud_PRO
2 years, 2 months ago
Selected Answer: D
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
upvoted 2 times
...
saeidp
2 years, 2 months ago
Selected Answer: A
A seems to be the best but why saying create custom metric? metric filter doesn't create custom metric
upvoted 1 times
...
Piccaso
2 years, 2 months ago
Selected Answer: D
A is good. D is more operationally efficient https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_OpenSearch_Stream.html
upvoted 1 times
Piccaso
2 years, 2 months ago
"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
upvoted 2 times
SHoKMaSTeR
2 years, 2 months ago
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 ...
upvoted 1 times
...
...
...
Bulti
2 years, 3 months ago
A is correct.
upvoted 4 times
...
Christina666
2 years, 3 months ago
Selected Answer: A
A for me
upvoted 4 times
...
Dimidrol
2 years, 3 months ago
Selected Answer: A
A for me
upvoted 4 times
...
Oleg_gol
2 years, 3 months ago
Selected Answer: A
I vote A
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago