AWS Certified CloudOps Engineer Associate SOA-C03 [2026]

AWS CloudWatch Metrics, Namespaces, Dimensions, and Statistics: SOA-C03 Study Guide

Study AWS CloudWatch metric structure, namespaces, dimensions, retention periods, statistics, timestamps, and metric API actions for the SOA-C03 exam.

AWS Certified CloudOps Engineer Associate SOA-C03 [2026]AWS Certified CloudOps Engineer Associate SOA-C03 [2026]Updated Sep 1, 2026
Study options
WatchComing later
ListenComing later
ReadAvailable
ReviewComing later

Study guide

Technical reference and lesson notes

AWS CloudWatch Metrics, Namespaces, Dimensions, and Statistics

Purpose of This Lesson

This lesson explains how Amazon CloudWatch organizes and processes metric data. The key assessment focus is recognizing how metrics are identified, how long data is retained at different resolutions, how custom metrics are published, and which CloudWatch API action fits a retrieval or publishing task.

Key Concepts

Metrics

A metric is a time-ordered set of data points published to CloudWatch. Each data point includes a timestamp and a reported value. AWS services commonly publish metrics automatically, and applications can publish custom metrics when they have permission to call CloudWatch APIs.

A metric is uniquely identified by its namespace, metric name, and—when used—its dimensions. Metrics exist within an AWS Region. They cannot be manually deleted, but metric data expires according to CloudWatch retention behavior.

Custom Metrics and Permissions

An application can publish custom metrics with the PutMetricData API action. The workload running the application must have appropriate permissions to make the required CloudWatch API calls. This usually means checking the permissions of the instance, task, function, or other runtime identity publishing the data.

Namespaces

A namespace is a container that organizes CloudWatch metrics. Metrics in separate namespaces are isolated from one another. Every data point published to CloudWatch must specify a namespace, and a custom namespace name can be supplied when creating a custom metric.

Examples of AWS service namespaces include:

  • AWS/ApiGateway for Amazon API Gateway metrics
  • AWS service metrics grouped by their respective service namespaces

The namespace is part of the metric’s identity, so a metric name in one namespace is distinct from the same metric name in another namespace.

Dimensions

A dimension is a key-value pair that further identifies and categorizes a metric. Dimensions can represent attributes such as a resource ID, service type, instance, or Auto Scaling group. CloudWatch supports up to 10 dimensions per metric.

Dimensions allow metric data to be organized and filtered at a more specific level. For example, EC2 metrics may be distinguished by per-instance dimensions or by Auto Scaling group dimensions.

Statistics

Statistics are aggregations of metric data points over a specified period. Common statistics include:

  • Minimum: The lowest observed value during the period
  • Maximum: The highest observed value during the period
  • Sum: The total of all submitted values
  • Average: The arithmetic average of the submitted values
  • Sample count: The number of data points or samples represented

The selected statistic affects how the metric is interpreted. For example, a maximum may reveal a peak, while an average shows typical behavior over the selected period.

CloudWatch Metric Retention and Timestamp Rules

CloudWatch retention depends on the metric’s period, meaning the interval represented by each data point:

Data point periodResolution categoryAvailability
Less than 60 secondsHigh-resolution metric3 hours
60 seconds / 1 minuteStandard metric data15 days
300 seconds / 5 minutesStandard metric data63 days
3,600 seconds / 1 hourStandard metric data455 days, approximately 15 months

Metric data is retained at progressively coarser periods for longer durations. When planning dashboards or troubleshooting workflows, select a period that preserves the resolution needed for the relevant time window.

For custom metric timestamps, CloudWatch accepts timestamps up to 2 weeks in the past and up to 2 hours in the future. Applications publishing custom data should ensure their timestamps remain within these limits.

Metric API Actions

PutMetricData

Publishes metric data points to CloudWatch. If the specified metric does not already exist, CloudWatch creates it. This is the primary API action for publishing custom application metrics.

GetMetricData

Retrieves metric data and can return as many as 500 different metrics in one request.

GetMetricStatistics

Retrieves statistics for a specified metric. CloudWatch aggregates the metric’s data points according to the period supplied in the request. A single call can return a maximum of 1,440 data points.

Exam- or Assessment-Relevant Takeaways

  • A metric is identified by its namespace, metric name, and any dimensions attached to it.
  • A namespace is a container and isolation boundary for metrics; every published data point requires one.
  • Dimensions are key-value pairs used to distinguish and filter metric data, with a maximum of 10 dimensions per metric.
  • Custom metric publication requires both PutMetricData and suitable permissions for the publishing workload.
  • High-resolution data has a shorter availability window: less-than-60-second periods are available for 3 hours.
  • Know the retention values associated with 1-minute, 5-minute, and 1-hour periods.
  • Use GetMetricData when retrieving multiple metrics in one request; use GetMetricStatistics when requesting aggregated statistics for a specified metric.
  • Do not confuse a metric’s period with its retention duration. The period controls the granularity of the data being requested or stored, while the retention table determines how long that resolution remains available.

Tool / Feature Decision Guide

RequirementAppropriate feature or actionReason
Publish application-specific measurementsPutMetricDataSends custom data points and creates the metric if necessary
Retrieve multiple metrics togetherGetMetricDataSupports up to 500 different metrics in one request
Retrieve aggregated values for one specified metricGetMetricStatisticsReturns statistics based on the requested period
Separate metrics by service or application domainNamespaceProvides metric grouping and isolation
Distinguish instances, resource IDs, or Auto Scaling groupsDimensionsAdds key-value attributes for categorization and filtering
Investigate recent, sub-minute behaviorHigh-resolution metricProvides periods below 60 seconds, but the data is available for only 3 hours
Analyze older dataUse an available coarser periodLonger retention is associated with 1-minute, 5-minute, and 1-hour periods

Common Traps / Misconceptions

  • Assuming metric names alone identify metrics: Namespace and dimensions can also be part of the metric identity.
  • Treating dimensions as free-form notes: Dimensions are key-value identifiers that affect how metric data is categorized and selected.
  • Forgetting publisher permissions: An application cannot publish custom metrics merely because it is running on AWS; its runtime identity needs permission to call CloudWatch.
  • Assuming high-resolution data is retained the longest: Data with periods below 60 seconds is available for only 3 hours.
  • Confusing GetMetricData and GetMetricStatistics: The former retrieves multiple metrics, while the latter retrieves statistics for a specified metric.
  • Using unsupported timestamps: Custom metric timestamps cannot be arbitrarily old or far in the future; the supported limits are 2 weeks in the past and 2 hours ahead.
  • Assuming metrics can be manually deleted: The lesson describes metrics as non-deletable, with data expiring automatically according to retention behavior.

Real-World Engineer / Analyst Notes

When designing custom metrics, decide first what question the metric must answer. A useful namespace keeps application measurements separate from unrelated data, while dimensions allow the same measurement to be analyzed by instance, resource, or group.

Be deliberate with resolution. High-resolution metrics are valuable for short-lived incidents and rapid behavior changes, but their short availability window makes them unsuitable as the sole source for long-term analysis. For historical investigations, verify which period remains available before relying on a dashboard or API query.

When troubleshooting missing custom metrics, check the publishing workload’s permissions, namespace, metric name, dimensions, timestamp, and publication period. A mismatch in namespace or dimensions can make a valid data stream appear to be a different metric.

Quick Reference Summary

  • Metric: Timestamped, time-ordered data points.
  • Namespace: Required container and isolation boundary for metrics.
  • Dimension: Key-value identifier; up to 10 per metric.
  • Custom publication: PutMetricData, requiring CloudWatch permissions.
  • Multiple-metric retrieval: GetMetricData, up to 500 metrics per request.
  • Statistics retrieval: GetMetricStatistics, up to 1,440 returned data points per call.
  • Timestamp limits: Up to 2 weeks past and 2 hours future.
  • Retention: Less than 60 seconds for 3 hours; 1 minute for 15 days; 5 minutes for 63 days; 1 hour for 455 days.

Flashcards

Q: An application must publish a custom business measurement to CloudWatch. Which API action should it use, and what prerequisite must be checked?

A: Use PutMetricData. The workload’s runtime identity must have permission to call the required CloudWatch API.

Q: What three elements can uniquely identify a CloudWatch metric?

A: The namespace, metric name, and any dimensions associated with the metric.

Q: When would you use a dimension instead of creating a separate namespace?

A: Use a dimension when you need to categorize or filter a metric by an attribute such as instance ID, resource ID, or Auto Scaling group. A namespace is better for separating broader metric collections.

Q: A query must retrieve data for many different metrics in one request. Which action is the best fit?

A: Use GetMetricData, which can retrieve up to 500 different metrics in a single request.

Q: When would GetMetricStatistics be preferable to GetMetricData?

A: Use GetMetricStatistics when you need aggregated statistics for a specified metric over a requested period.

Q: How many dimensions can be assigned to one CloudWatch metric?

A: Up to 10 dimensions.

Q: What is the retention difference between a sub-minute metric and a 1-hour metric?

A: A period below 60 seconds is available for 3 hours, while a 1-hour period is available for 455 days, or approximately 15 months.

Q: A custom metric publisher sends a timestamp from three weeks ago. What is the problem?

A: The timestamp exceeds CloudWatch’s stated custom metric limit of 2 weeks in the past.

Q: What does a CloudWatch namespace provide beyond a label?

A: It is a required container that organizes metrics and isolates them from metrics in other namespaces.

Q: A dashboard needs to distinguish EC2 measurements by instance and Auto Scaling group. Which CloudWatch feature supports this design?

A: Dimensions support this categorization by attaching key-value attributes such as instance or Auto Scaling group identifiers.

Q: What does the CloudWatch Maximum statistic represent?

A: It is the highest value observed during the selected period.

Q: Why might an engineer choose high-resolution metrics during an incident?

A: They provide periods below 60 seconds, which can reveal short-lived behavior more precisely. The tradeoff is that this resolution is available for only 3 hours.

Practice Questions

Question 1

A monitoring application must send a custom metric, but no data appears in CloudWatch. The application is running on an EC2 instance and uses PutMetricData. Which issue should be checked first?

A. Whether the metric has more than 10 statistics
B. Whether the EC2 instance’s runtime identity has permission to call CloudWatch
C. Whether the metric uses a 5-minute period
D. Whether the metric was manually deleted

Correct answer: B

The application must have permission to make the CloudWatch API call. The other options do not explain the fundamental publishing requirement described in the lesson.

Question 2

An operations team needs one API request to retrieve data for 300 different metrics. Which CloudWatch action should they select?

A. PutMetricData
B. GetMetricStatistics
C. GetMetricData
D. PutMetricStatistics

Correct answer: C

GetMetricData is designed to retrieve multiple metrics and supports up to 500 different metrics in one request.

Question 3

An engineer wants to retain sub-minute metric data for a full month. Which statement best describes the limitation?

A. Sub-minute data is available for 3 hours at that resolution
B. Sub-minute data is automatically retained for 455 days
C. Sub-minute data cannot be published by applications
D. Sub-minute data is available for 63 days

Correct answer: A

High-resolution data with a period below 60 seconds is available for 3 hours. Longer availability is associated with coarser periods.

Question 4

A team needs to distinguish the same EC2 metric by individual instance. Which design is most appropriate?

A. Use a separate AWS Region for every instance
B. Add an instance-related dimension to the metric
C. Create a new statistic for every instance
D. Use GetMetricStatistics to create the distinction

Correct answer: B

Dimensions are key-value pairs used to categorize and filter metrics by attributes such as resource or instance identifiers.

Question 5

An analyst needs aggregated minimum, maximum, and average values for a specified metric over a selected period. Which action is the most direct choice?

A. GetMetricStatistics
B. PutMetricData
C. GetMetricData only because statistics cannot be requested
D. Namespace creation

Correct answer: A

GetMetricStatistics retrieves statistics for a specified metric and aggregates data points according to the requested period.

WordPress Metadata

Suggested Slug:
aws-cloudwatch-metrics-namespaces-dimensions-soa-c03

Meta Description:
Study AWS CloudWatch metric structure, namespaces, dimensions, retention periods, statistics, timestamps, and metric API actions for the SOA-C03 exam.

Tags:
AWS CloudWatch, CloudWatch metrics, CloudWatch namespaces, CloudWatch dimensions, CloudWatch statistics, custom metrics, PutMetricData, GetMetricData, AWS Certified CloudOps Engineer, SOA-C03