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 88 discussion

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

A company is deploying a new application that uses Amazon EC2 instances. The company needs a solution to query application logs and AWS account API activity.

Which solution will meet these requirements?

  • A. Use the Amazon CloudWatch agent to send logs from the EC2 instances to Amazon CloudWatch Logs. Configure AWS CloudTrail to deliver the API logs to Amazon S3. Use CloudWatch to query both sets of logs.
  • B. Use the Amazon CloudWatch agent to send logs from the EC2 instances to Amazon CloudWatch Logs. Configure AWS CloudTrail to deliver the API logs to CloudWatch Logs. Use CloudWatch Logs Insights to query both sets of logs.
  • C. Use the Amazon CloudWatch agent to send logs from the EC2 instances to Amazon Kinesis. Configure AWS CloudTrail to deliver the API logs to Kinesis. Use Kinesis to load the data into Amazon Redshift. Use Amazon Redshift to query both sets of logs.
  • D. Use the Amazon CloudWatch agent to send logs from the EC2 instances to Amazon S3. Use AWS CloudTrail to deliver the API logs to Amazon S3. Use Amazon Athena to query both sets of logs in Amazon S3.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
SmileyCloud
Highly Voted 2 years, 8 months ago
Selected Answer: B
A - You can't use CloudWatch to query anything. You have to use CloudWatch Logs Insights, but even then - you can't use it to query S3. B - Correct. Very simple to configure and use. C - Why would you use this complex solution? RedShift is super expensive. D - This is viable too, but you want your logs in CloudWatch not S3.
upvoted 11 times
bakamon
2 years, 2 months ago
i am confused... where is it written that i want logs in cloudwatch not in s3
upvoted 1 times
...
...
frizzolo
Most Recent 1 year, 8 months ago
Selected Answer: B
B is correct
upvoted 1 times
...
bakamon
2 years, 2 months ago
Option B is correct.. We cannot send cloud watch agent logs directly to the S3, we will have to use lambda function to send each logs to S3.. thats why better solution is to use B
upvoted 1 times
...
ParagSanyashiv
2 years, 3 months ago
Selected Answer: B
B is more suitable in this case
upvoted 1 times
...
_Juwon
2 years, 6 months ago
Selected Answer: B
B is answer.
upvoted 1 times
...
bihani
2 years, 6 months ago
Selected Answer: B
very simple.
upvoted 1 times
...
janam
2 years, 6 months ago
B is correct
upvoted 1 times
...
Bulti
2 years, 7 months ago
Selected Answer: B
B is the correct answer. CloudWatch log insights can't query S3.
upvoted 1 times
...
Chaiyaporn
2 years, 8 months ago
B for sure.
upvoted 2 times
...
xMaru
2 years, 8 months ago
Why not D?
upvoted 2 times
apcloud
2 years, 7 months ago
The features of cloud watch logs insights. Otherwise yes D also works, but B is “better”
upvoted 1 times
cedawiv742
2 years, 6 months ago
I don't think CloudWatch Agent can "send" logs to s3. You can only export them to s3 later, from log group
upvoted 1 times
...
...
...
Maygam
2 years, 8 months ago
Selected Answer: B
1. https://docs.aws.amazon.com/awscloudtrail/latest/userguide/send-cloudtrail-events-to-cloudwatch-logs.html 2. https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html
upvoted 3 times
...
adozoo
2 years, 8 months ago
Selected Answer: A
yes,the CloudTrail to deliver the API logs to Amazon S3 is better
upvoted 1 times
Maygam
2 years, 8 months ago
Can you use cloudwatch to query logs in S3, as mentioned Option A?.
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 ...