Topic 1 Question 451
A developer is using an AWS Lambda function to process data. The developer needs to extract custom metrics about processing times from the Lambda logs. The developer needs to analyze the metrics, set alarms, and detect issues in real time.
Which solution will meet these requirements?
Publish custom metric data to AWS CloudTrail by using the PutMetricData API operation. Classify and collect the metrics. Create graphs and alarms in CloudTrail for the custom metrics.
Use the open source client libraries provided by Amazon to generate the logs in the Amazon CloudWatch embedded metric format. Use CloudWatch to create the required graphs and alarms for the custom metrics.
Use Amazon CloudWatch Logs Insights to create custom metrics by querying the logs that come from the Lambda function. Use CloudWatch to create the required graphs and alarms for the custom metrics.
Create an Amazon Kinesis data stream to stream log events in real time from Lambda. Specify an Amazon S3 bucket as the destination for the Kinesis data stream. Use Amazon CloudWatch to visualize the log data and to set alarms.
ユーザの投票
コメント(2)
- 正解だと思う選択肢: B
B is more direct to real-time data due to automatic integration of indicators into CloudWatch, and is best if the data in the logs is static and needs constant monitoring. C gives you more flexibility but not necessarily as fast as B because it relies on queries that are run separately
👍 3Saudis2024/11/05 - 正解だと思う選択肢: C
CloudWatch Logs Insights: CloudWatch Logs Insights allows you to interactively search and analyze log data from various AWS services, including AWS Lambda. You can use Logs Insights to query the Lambda logs and extract custom metrics, such as processing times, based on specific patterns or conditions in the log data.
👍 1tullio852025/01/14
シャッフルモード