AWS Certified Advanced Networking – Specialty (ANS-C00) — Question 318
A user is having data generated randomly based on a certain event. The user wants to upload that data to CloudWatch. It may happen that event may not have data generated for some period due to randomness.
Which of the below mentioned options is a recommended option for this case?
Answer options
- A. For the period when there is no data, the user should not send the data at all
- B. The user must upload the data to CloudWatch as having no data for some period will cause an error at CloudWatch monitoring
- C. For the period when there is no data the user should send the value as 0
- D. For the period when there is no data the user should send a blank value
Correct answer: C
Explanation
When monitoring metrics in CloudWatch, sending a value of 0 during periods of inactivity is recommended to ensure alarms can accurately evaluate the metric's state. If no data is sent at all, CloudWatch may flag the metric as INSUFFICIENT_DATA, making it difficult to differentiate between a healthy idle system and a failure in metric reporting. Sending blank or null values is not supported or effective for metric monitoring.