Cost-Optimized Architecture Design

An application uses CloudWatch embedded metric format to publish latency with Service, Operation, and RequestId dimensions, creating millions of custom metrics. Operators need service-operation latency alarms and request-level log searches; which change reduces metric costs while preserving both capabilities?

Show the answer

Correct answerC. Use Service and Operation as dimensions; retain RequestId only as a log field.

AWhy not this: Changing resolution does not remove the distinct metric identities created by unique RequestId values.

BWhy not this: Removing RequestId from logs loses request-level searches and does not provide the required dimension redesign.

CWhy this is right: Service-operation dimensions support aggregate alarms, while an ordinary RequestId log field supports request searches.

DWhy not this: Log retention affects log storage, not the number of custom metrics created by dimension combinations.

Each unique dimension combination creates a separate metric, so removing RequestId from dimensions reduces cardinality while preserving request searches in logs. Standard-resolution publishing does not eliminate the distinct metrics created by request identifiers.