0 votes
in AWS by

A company has an application hosted in AWS. This application consists of EC2 Instances that sit behind an ELB. The following are the requirements from an administrative perspective:

a) Ensure that notifications are sent when the read requests go beyond 1000 requests per minute.

b) Ensure that notifications are sent when the latency goes beyond 10 seconds.

c)  Monitor all AWS API request activities on the AWS resources.

Which of the following can be used to satisfy these requirements?

A. Use CloudTrail to monitor the API Activity

B. Use CloudWatch Logs to monitor the API Activity

C. Use CloudWatch Metrics for the metrics that need to be monitored as per the requirement and set up an alarm activity to send out notifications when the metric reaches the set threshold limit

D. Use custom log software to monitor the latency and read requests to the ELB

1 Answer

0 votes
by

A. Use CloudTrail to monitor the API Activity

C. Use CloudWatch Metrics for the metrics that need to be monitored as per the requirement and set up an alarm activity to send out notifications when the metric reaches the set threshold limit

Answer: A & C
Explanation
Option A is correct. CloudTrail is a web service that records AWS API calls for all the resources in your AWS account. It also delivers log files to an Amazon S3 bucket. The recorded information includes the identity of the user, the start time of the AWS API call, the source IP address, the request parameters, and the response elements returned by the service.
Option B is incorrect because CloudWatch Logs can be used to monitor log files from other services. CloudWatch Logs and CloudWatch are different.
Amazon CloudWatch Logs are used to monitor, store, and access your log files from Amazon Elastic Compute Cloud (Amazon EC2) instances, AWS CloudTrail, Route 53, and other sources. CloudWatch Logs reports the data to a CloudWatch metric.
Rather you can monitor Amazon EC2 API requests using Amazon CloudWatch.
Option C is correct. Use Cloudwatch Metrics for the metrics that need to be monitored as per the requirement. Set up an alarm activity to send out notifications when the metric reaches the set threshold limit.
Option D is incorrect because there is no need to use custom log software as you can set up CloudWatch alarms based on CloudWatch Metrics.

Related questions

0 votes
asked Jul 4, 2022 in AWS by john ganales
0 votes
asked Sep 4, 2022 in AWS by Robindeniel
...