A company has decided to move its fleet of Linux-based web server instances to an Amazon EC2 Auto Scaling group. Currently, the instances are static and are launched manually. When an administrator needs to view log files, the administrator uses SSH to establish a connection to the instances and retrieves the logs manually.
The company often needs to query the logs to produce results about application sessions and user issues. The company does not want its new automatically scaling architecture to result in the loss of any log files when instances are scaled in.
Which combination of steps should a security engineer take to meet these requirements MOST cost-effectively? (Choose two.)
- Configure a cron job on the instances to forward the log files to Amazon S3 periodically.
- Configure AWS Glue and Amazon Athena to query the log files.
- Configure the Amazon CloudWatch agent on the instances to forward the logs to Amazon CloudWatch Logs.
- Configure Amazon CloudWatch Logs Insights to query the log files.
- Configure the instances to write the logs to an Amazon Elastic File System (Amazon EFS) volume.
Reveal Solution Next Question