Easy1 markMultiple Choice
Domain 3.1: Operational ExcellenceOperational ExcellenceCloudWatchLogging

AWS SAP-C02 · Question 52 · Domain 3.1: Operational Excellence

A company has a fleet of Amazon EC2 instances running a legacy application. The application logs are written to local text files. The company wants to centralize these logs, search them in near real-time, and create dashboards to monitor application errors. Which solution requires the LEAST operational overhead?

Answer options:

A.

Write a cron job to copy the logs to Amazon S3. Use Amazon Athena to query the logs and Amazon QuickSight for dashboards.

B.

Install the CloudWatch agent on the EC2 instances to push logs to Amazon CloudWatch Logs. Use CloudWatch Logs Insights to search the logs and create CloudWatch Dashboards.

C.

Deploy an ELK (Elasticsearch, Logstash, Kibana) stack on EC2 instances and configure Filebeat on the application instances.

D.

Use Amazon Kinesis Data Firehose to stream the logs to Amazon Redshift.

How to approach this question

Identify the native AWS logging and monitoring solution.

Full Answer

B.Install the CloudWatch agent on the EC2 instances to push logs to Amazon CloudWatch Logs. Use CloudWatch Logs Insights to search the logs and create CloudWatch Dashboards.✓ Correct
Install the CloudWatch agent on the EC2 instances to push logs to Amazon CloudWatch Logs. Use CloudWatch Logs Insights to search the logs and create CloudWatch Dashboards.
The Amazon CloudWatch agent can collect custom logs from EC2 instances. CloudWatch Logs Insights provides near real-time search capabilities, and CloudWatch Dashboards provide visualization, all with minimal operational overhead.

Common mistakes

Choosing ELK stack, which is powerful but requires managing infrastructure.

Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 7

75 questions · hints · full answers · grading

More questions from this exam