A SysOps Administrator is configuring a monitoring solution for a batch-processing application. The application logs are published to an Amazon CloudWatch Logs log group. The logs are formatted as space-delimited text, with each line containing the following fields in order: date, time, transaction ID, status code, and processing time in milliseconds.
An example log line is:
`2026-07-14 17:30:56 TXN-99482 502 120`
The Administrator needs to create a CloudWatch metric filter to extract the processing time as a metric, but only for transactions that resulted in a server error (status codes 500 through 599). The metric must report a value of 0 when no matching log events are found during a reporting period.
Which TWO configurations should the Administrator apply to meet these requirements? (Select TWO.)
- Use `[date, time, txn_id, status_code >= 500 && status_code <= 599, processing_time]` as the filter pattern.Answer
- In the metric transformation, set the metric value to `$processing_time` and set the default value to `0`.Answer
- CIn the metric transformation settings, set the log group retention period to 0 days to delete non-matching log events and reduce storage costs.
- DEnable detailed monitoring on the metric filter to ensure the custom metric reports data at 1-minute intervals instead of the default 5-minute intervals.
- EConfigure an Amazon EventBridge rule triggered by a Systems Manager Automation document to reset the custom metric value to 0 when no log events are ingested.