A company runs a microservice application that writes JSON-formatted log events to an Amazon CloudWatch Logs group named `/aws/microservices/orders`. A SysOps Administrator needs to monitor guest checkout failures. The log events have the following structure:
{
"request_id": "req-402",
"payment_status": "DENIED",
"auth_type": "GUEST",
"amount": 250.00
}
The Administrator wants to track occurrences where the `payment_status` is `DENIED` and `auth_type` is `GUEST` by publishing a custom metric named `UnauthorizedCheckoutCount` in the `MicroserviceMonitoring` namespace. If no matching logs are processed during a reporting period, the metric must record a value of . Additionally, the logs must be retained for exactly days to minimize storage costs.
Which TWO actions should the SysOps Administrator take to meet these requirements? (Select TWO.)
- Create an Amazon CloudWatch metric filter on the log group using the filter pattern `{ (.payment_status = "DENIED") && (.auth_type = "GUEST") }`, specifying a metric value of and a default value of .Cevap
- Configure the retention settings of the `/aws/microservices/orders` log group to days.Cevap
- CEstablish an Amazon EventBridge rule that triggers an AWS Lambda function daily to purge log streams older than days from the log group.
- DEnable detailed monitoring on the Amazon EC2 instances hosting the microservice to ensure the custom metric is populated at -minute intervals.
- EConfigure an AWS Config rule to evaluate the log group for compliance and trigger a Systems Manager Automation runbook to publish the custom metric.