A SysOps Administrator is configuring an Amazon CloudWatch metric filter to parse custom application log events written to an Amazon CloudWatch Logs log group named `/apps/payment-service`. The application logs events in the following JSON format:
{
"request_id": "req-98213",
"operation": "ProcessPayment",
"response_code": 500,
"execution_time_ms": 450,
"client_details": {
"tier": "Premium",
"region": "us-east-1"
}
}
The Administrator wants to monitor when `ProcessPayment` operations for `Premium` tier clients fail with a `response_code` of 500 or higher, and record the `execution_time_ms` value as a custom metric.
Which two configurations must the Administrator apply to the metric filter and its metric transformation to accomplish this? (Select TWO.)
- Use `{ .operation = "ProcessPayment" && .client_details.tier = "Premium" && $.response_code >= 500 }` as the filter pattern.Cevap
- Set the Metric Value in the metric transformation to `$.execution_time_ms`.Cevap
- CUse `[operation = "ProcessPayment", client_details.tier = "Premium", response_code >= 500]` as the filter pattern.
- DEnable detailed monitoring on the EC2 instances hosting the application to ensure that the custom metric publishes data at 1-minute intervals.
- EConfigure an Amazon EventBridge rule to match the log patterns and invoke an AWS Systems Manager Automation document to extract the custom metric values.