Multiple Choice
A three-tier web application runs on Amazon EC2 instances. Cron daemons are used to trigger scripts that collect the web server, application, and database logs and send them to a centralized location every hour. Occasionally, scaling events or unplanned outages have caused the instances to stop before the latest logs were collected, and the log files were lost. Which of the following options is the MOST reliable way of collecting and preserving the log files?
A) Update the cron jobs to run every 5 minutes instead of every hour to reduce the possibility of log messages being lost in an outage.
B) Use Amazon CloudWatch Events to trigger Amazon Systems Manager Run Command to invoke the log collection scripts more frequently to reduce the possibility of log messages being lost in an outage.
C) Use the Amazon CloudWatch Logs agent to stream log messages directly to CloudWatch Logs. Configure the agent with a batch count of 1 to reduce the possibility of log messages being lost in an outage.
D) Use Amazon CloudWatch Events to trigger AWS Lambda to SSH into each running instance, and invoke the log collection scripts more frequently to reduce the possibility of log messages being lost in an outage.
Correct Answer:

Verified
Correct Answer:
Verified
Q492: A customer has a 10 GB AWS
Q493: A company runs an application in the
Q494: A company runs an e-commerce platform with
Q495: An organization is setting up a multi-site
Q496: A company operating a website on AWS
Q498: Your company has an on-premises multi-tier PHP
Q499: What is the role of the PollForTask
Q500: A multimedia company with a single AWS
Q501: An organization is setting up an application
Q502: Your company is storing millions of sensitive