AWS Certified SysOps Administrator – Associate (legacy) — Question 339
A user is trying to send custom metrics to CloudWatch using the PutMetricData APIs. Which of the below mentioned points should the user needs to take care while sending the data to CloudWatch?
Answer options
- A. The size of a request is limited to 8KB for HTTP GET requests and 40KB for HTTP POST requests
- B. The size of a request is limited to 128KB for HTTP GET requests and 64KB for HTTP POST requests
- C. The size of a request is limited to 40KB for HTTP GET requests and 8KB for HTTP POST requests
- D. The size of a request is limited to 16KB for HTTP GET requests and 80KB for HTTP POST requests
Correct answer: A
Explanation
When using the PutMetricData API to publish custom metrics to Amazon CloudWatch, the HTTP request size is strictly limited. Specifically, HTTP GET requests cannot exceed 8KB in size, whereas HTTP POST requests are allowed up to a maximum of 40KB. The other options specify incorrect size thresholds for these HTTP methods.