AWS Certified Solutions Architect – Professional SAP-C01 – Question396

After your Lambda function has been running for some time, you need to look at some metrics to ascertain how your function is performing and decide to use the AWS CLI to do this.
Which of the following commands must be used to access these metrics using the AWS CLI?

A.
mon-list-metrics and mon-get-stats
B. list-metrics and get-metric-statistics
C. ListMetrics and GetMetricStatistics
D. list-metrics and mon-get-stats

Correct Answer: B

Explanation:

Explanation: AWS Lambda automatically monitors functions on your behalf, reporting metrics through Amazon CloudWatch. To access metrics using the AWS CLI Use the list-metrics and get-metric-statistics commands.
Reference:
http://docs.aws.amazon.com/lambda/latest/dg/monitoring-functions-ac…