exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional exam

Exam AWS Certified Solutions Architect - Professional topic 1 question 396 discussion

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
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
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-access-metrics.html

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
JayK
Highly Voted 3 years, 8 months ago
B, https://docs.aws.amazon.com/cli/latest/reference/cloudwatch/get-metric-statistics.html
upvoted 7 times
...
ExtHo
Highly Voted 3 years, 7 months ago
https://docs.aws.amazon.com/cli/latest/reference/cloudwatch/list-metrics.html https://docs.aws.amazon.com/cli/latest/reference/cloudwatch/get-metric-statistics.html
upvoted 5 times
...
DarthYoda
Most Recent 2 years, 6 months ago
C is the actual API calls while B is how they look using the CLI, so definitely B.
upvoted 1 times
...
jujumomma
2 years, 8 months ago
(X) A. mon-list-metrics and mon-get-stats - Amazon CloudWhatch CLI (No support from November 7, 2017) https://docs.aws.amazon.com/AmazonCloudWatch/latest/cli/cli-mon-get-stats.html (O) B. list-metrics and get-metric-statistics - Amazon AWS CLI v2 https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudwatch/list-metrics.html https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudwatch/get-metric-statistics.html (X) C. ListMetrics and GetMetricStatistics - Amazon CloudWatch REST API https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html (X) D. list-metrics and mon-get-stats = AWS CLI & CloudWatch CLI (Not supported now)
upvoted 2 times
...
jj22222
3 years, 2 months ago
Selected Answer: B
B looks ok
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...