What can be done to allow the company to deploy the legacy application on Amazon EC2 and still meet the monitoring requirement?

Posted by: Pdfprep Category: SCS-C01 Tags: , ,

A company has a legacy application that outputs all logs to a local text file. Logs from all applications running on AWS must be continually monitored for security related messages.

What can be done to allow the company to deploy the legacy application on Amazon EC2 and still meet the monitoring requirement?
A . Create a Lambda function that mounts the EBS volume with the logs and scans the logs for security incidents. Trigger the function every 5 minutes with a scheduled Cloudwatch event.
B . Send the local text log files to CloudWatch Logs and configure a CloudWatch metric filter. Trigger cloudwatch alarms based on the metrics.
C . Install the Amazon inspector agent on any EC2 instance running the legacy application.
Generate CloudWatch alerts a based on any Amazon inspector findings.
D . Export the local text log files to CloudTrail. Create a Lambda function that queries the CloudTrail logs for security ‘ incidents using Athena.

Answer: B

Explanation:

One can send the log files to Cloudwatch Logs. Log files can also be sent from On-premise servers. You can then specify metrii 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/QuickStartEC2lnstance.hti The correct answer is: Send the local text log files to Cloudwatch Logs and configure a Cloudwatch metric filter. Trigger cloudwatch alarms based on the metrics. Submit your Feedback/Queries to our Experts

Leave a Reply

Your email address will not be published.