Which of the following commands must be used to access these metrics using the AWS CLI?
mon-list-metrics and mon-get-stats
list-metrics and get-metric-statistics
ListMetrics and GetMetricStatistics
list-metrics and mon-get-stats
Explanations:
mon-list-metricsandmon-get-statsare not valid AWS CLI commands. The correct commands for interacting with CloudWatch metrics arelist-metricsandget-metric-statistics.
list-metricsandget-metric-statisticsare valid AWS CLI commands used to retrieve CloudWatch metrics and statistics. These are the correct commands for accessing Lambda metrics.
ListMetricsandGetMetricStatisticsare valid API operation names but not valid AWS CLI commands. The correct CLI command syntax is lowercase.
mon-get-statsis not a valid AWS CLI command. The correct command isget-metric-statistics, andlist-metricsis the correct command for listing CloudWatch metrics.