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.
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.
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
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.
SmileyCloud
Highly Voted 2 years, 8 months agobakamon
2 years, 2 months agofrizzolo
Most Recent 1 year, 8 months agobakamon
2 years, 2 months agoParagSanyashiv
2 years, 3 months ago_Juwon
2 years, 6 months agobihani
2 years, 6 months agojanam
2 years, 6 months agoBulti
2 years, 7 months agoChaiyaporn
2 years, 8 months agoxMaru
2 years, 8 months agoapcloud
2 years, 7 months agocedawiv742
2 years, 6 months agoMaygam
2 years, 8 months agoadozoo
2 years, 8 months agoMaygam
2 years, 8 months ago