exam questions

Exam AWS Certified Security - Specialty All Questions

View all questions & answers for the AWS Certified Security - Specialty exam

Exam AWS Certified Security - Specialty topic 1 question 45 discussion

Exam question from Amazon's AWS Certified Security - Specialty
Question #: 45
Topic #: 1
[All AWS Certified Security - Specialty Questions]

An application outputs logs to a text file. The logs must be continuously monitored for security incidents.
Which design will meet the requirements with MINIMUM effort?

  • A. Create a scheduled process to copy the component's logs into Amazon S3. Use S3 events to trigger a Lambda function that updates Amazon CloudWatch metrics with the log data. Set up CloudWatch alerts based on the metrics.
  • B. Install and configure the Amazon CloudWatch Logs agent on the application's EC2 instance. Create a CloudWatch metric filter to monitor the application logs. Set up CloudWatch alerts based on the metrics.
  • C. Create a scheduled process to copy the application log files to AWS CloudTrail. Use S3 events to trigger Lambda functions that update CloudWatch metrics with the log data. Set up CloudWatch alerts based on the metrics.
  • D. Create a file watcher that copies data to Amazon Kinesis when the application writes to the log file. Have Kinesis trigger a Lambda function to update Amazon CloudWatch metrics with the log data. Set up CloudWatch alerts based on the metrics.
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
sarava
Highly Voted 3 years, 9 months ago
Answer : Send the local text log files to CloudWatch Logs and configure a CloudWatch metric filter. Trigger cloudWatch alarms based on the metrics. Explanation Answer – B One can send the log files to Cloudwatch Logs. Log files can also be sent from On-premise servers. You can then specify metrics to search the logs for any specific values. And then create alarms based on these metrics. Option A is invalid because this will be just a long over drawn process to achieve this requirement Option C is invalid because AWS Inspector cannot be used to monitor for security related messages. Option D is invalid because files cannot be exported to AWS Cloudtrail For more information on Cloudwatch logs agent, please visit the below URL https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/QuickStartEC2Instance.html
upvoted 54 times
...
josellama2000
Highly Voted 3 years, 9 months ago
B is correct, You can set your application to send logs and cloudwatch to receive them using the cloudwatrch agent. A Lambda is not necessary https://aws.amazon.com/blogs/devops/new-how-to-better-monitor-your-custom-application-metrics-using-amazon-cloudwatch-agent/
upvoted 26 times
Mike_1
3 years, 8 months ago
B is the ans assuming it is an Ec2 instance!!
upvoted 2 times
...
...
Raphaello
Most Recent 1 year, 4 months ago
Selected Answer: B
CW Logs + CW metric filter + CW alarm (and possibly +Lambda function in some other cases). B is the correct answer
upvoted 1 times
...
osojg
1 year, 11 months ago
B Correct. You can see all of your logs, regardless of their source, as a single and consistent flow of events ordered in time by using CloudWatch Logs. You can query and sort your logs based on other dimensions, group them by specific fields, create custom computations by using a query language, and visualize log data on the dashboards. For more information about CloudWatch Logs, see What is Amazon CloudWatch Logs? For more information about CloudWatch metric filters, see Creating metrics from log events using filters.
upvoted 1 times
...
bbddmm
2 years, 1 month ago
Selected Answer: B
B is correct.
upvoted 1 times
...
pearl15
2 years, 5 months ago
It's wrongly worded question. No where the question says that Application is running on EC2 instance. Had the application been running on EC2 instances, it's no brainer that B is correct. But in the current form of Question, answer can be D as well.
upvoted 4 times
Andrii223
2 years ago
true!!
upvoted 1 times
...
...
xplusfb
2 years, 5 months ago
Selected Answer: B
B the right one. no discussion.
upvoted 1 times
...
skillz2investor
2 years, 7 months ago
B is correct
upvoted 1 times
...
arae
2 years, 8 months ago
B it is
upvoted 1 times
...
dcasabona
2 years, 11 months ago
Selected Answer: B
B makes sense to me as the simple way to do it.
upvoted 1 times
...
Kurp
3 years ago
Selected Answer: B
This is what CloudWatch logs agent is designed for
upvoted 2 times
...
remyy
3 years, 1 month ago
Selected Answer: B
makes more sense
upvoted 1 times
...
RaySmith
3 years, 4 months ago
B is correct
upvoted 1 times
...
amaltare
3 years, 4 months ago
Selected Answer: B
Cloudwatch logs agent is the best way to achieve this
upvoted 1 times
...
MoreOps
3 years, 4 months ago
Selected Answer: B
B makes most sense
upvoted 1 times
...
fortune
3 years, 5 months ago
"Least Effort" B is the most correct answer.
upvoted 1 times
...
lotfi50
3 years, 5 months ago
Selected Answer: B
B is correct
upvoted 1 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 ...