ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 150 - DOP-C02 discussion

Report
Export

A company hosts applications in its AWS account Each application logs to an individual Amazon CloudWatch log group. The company's CloudWatch costs for ingestion are increasing

A DevOps engineer needs to Identify which applications are the source of the increased logging costs.

Which solution Will meet these requirements?

A.
Use CloudWatch metrics to create a custom expression that Identifies the CloudWatch log groups that have the most data being written to them.
Answers
A.
Use CloudWatch metrics to create a custom expression that Identifies the CloudWatch log groups that have the most data being written to them.
B.
Use CloudWatch Logs Insights to create a set of queries for the application log groups to Identify the number of logs written for a period of time
Answers
B.
Use CloudWatch Logs Insights to create a set of queries for the application log groups to Identify the number of logs written for a period of time
C.
Use AWS Cost Explorer to generate a cost report that details the cost for CloudWatch usage
Answers
C.
Use AWS Cost Explorer to generate a cost report that details the cost for CloudWatch usage
D.
Use AWS CloudTrail to filter for CreateLogStream events for each application
Answers
D.
Use AWS CloudTrail to filter for CreateLogStream events for each application
Suggested answer: C

Explanation:

The correct answer is C.

A comprehensive and detailed explanation is:

Option A is incorrect because using CloudWatch metrics to create a custom expression that identifies the CloudWatch log groups that have the most data being written to them is not a valid solution. CloudWatch metrics do not provide information about the size or volume of data being ingested by CloudWatch logs. CloudWatch metrics only provide information about the number of events, bytes, and errors that occur within a log group or stream. Moreover, creating a custom expression with CloudWatch metrics would require using the search_web tool, which is not necessary for this use case.

Option B is incorrect because using CloudWatch Logs Insights to create a set of queries for the application log groups to identify the number of logs written for a period of time is not a valid solution. CloudWatch Logs Insights can help analyze and filter log events based on patterns and expressions, but it does not provide information about the cost or billing of CloudWatch logs. CloudWatch Logs Insights also charges based on the amount of data scanned by each query, which could increase the logging costs further.

Option C is correct because using AWS Cost Explorer to generate a cost report that details the cost for CloudWatch usage is a valid solution. AWS Cost Explorer is a tool that helps visualize, understand, and manage AWS costs and usage over time. AWS Cost Explorer can generate custom reports that show the breakdown of costs by service, region, account, tag, or any other dimension. AWS Cost Explorer can also filter and group costs by usage type, which can help identify the specific CloudWatch log groups that are the source of the increased logging costs.

Option D is incorrect because using AWS CloudTrail to filter for CreateLogStream events for each application is not a valid solution. AWS CloudTrail is a service that records API calls and account activity for AWS services, including CloudWatch logs. However, AWS CloudTrail does not provide information about the cost or billing of CloudWatch logs. Filtering for CreateLogStream events would only show when a new log stream was created within a log group, but not how much data was ingested or stored by that log stream.

References:

CloudWatch Metrics

CloudWatch Logs Insights

AWS Cost Explorer

AWS CloudTrail

asked 16/09/2024
Cynan Jones
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first