Cost-Optimized Architecture Design

An application sends logs through the CloudWatch agent, but its DEBUG messages have no operational or compliance value. Which change reduces CloudWatch Logs ingestion charges while preserving all other messages?

Show the answer

Correct answerB. Configure an agent-side exclusion filter for DEBUG messages.

AWhy not this: Subscription filtering controls forwarding after ingestion, so the original ingestion charges remain.

BWhy this is right: Filtering in the agent prevents unwanted messages from being sent to CloudWatch Logs.

CWhy not this: Query filtering changes query results rather than preventing log ingestion.

DWhy not this: Shorter retention reduces stored data, not the volume ingested, and also removes other messages sooner.

Agent-side filtering removes unwanted messages before CloudWatch Logs ingests them. Subscription filters act on events that have already been ingested, so they do not avoid the original ingestion charges.