AWS Certified Solutions Architect – Professional — Question 61
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?
Answer options
- 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
The correct answer is B, as 'list-metrics' and 'get-metric-statistics' are the appropriate AWS CLI commands for accessing metrics related to Lambda functions. Options A and D include incorrect command names, while option C uses an incorrect case for the commands, which makes them invalid in the AWS CLI context.