Soru

Zorluk: KolayStream Processing and Event Routing with Amazon Kinesis and EventBridge

A development team is deploying a monitoring agent to forward application performance logs from multiple web servers to Amazon Kinesis Data Streams. The logs must be partitioned so that all logs from a specific web server are ordered sequentially within a single shard. Additionally, logs containing critical errors must be routed to an Amazon EventBridge event bus to trigger automated recovery tasks.

Which of the following configurations should the developer implement? (Select TWO.)

  1. Use a unique identifier for each web server, such as the server host name, as the partition key when publishing log records to the Kinesis Data Stream.Cevap
  2. Define an EventBridge routing rule containing a JSON event pattern that matches logs where the severity level is equal to critical error.Cevap
  3. C
    Use a single, constant string value as the partition key for all log records to ensure they are processed by a single consumer group.
  4. D
    Set the execution timeout of the downstream AWS Lambda function that processes the EventBridge events to 3 seconds, assuming that connection pools and execution contexts are automatically cleaned up immediately after each event delivery.
  5. E
    Deploy the downstream AWS Lambda consumer in a private VPC subnet without a NAT Gateway or VPC Endpoint to process events and send recovery alerts to an external third-party webhook.

Cevap

To achieve ordering per server and filter error events, the developer should use a unique identifier like the server host name as the partition key in Kinesis, and define an EventBridge routing rule with a JSON event pattern matching critical error logs.
The correct configurations involve using a unique server host name as the partition key to ensure message ordering per server within a shard, and setting up an EventBridge rule with a JSON event pattern matching critical error severity to filter events.

Adım Adım Çözüm

1
Select a partition key strategy for Amazon Kinesis Data Streams that groups logs by server.
Using the server host name maps logs from the same server to the same shard, guaranteeing sequential order of delivery to the consumer.
Kinesis guarantees order within a shard, and records with the same partition key are routed to the same shard.
2
Determine the EventBridge routing mechanism for filtering logs.
Define an EventBridge rule with a JSON pattern to match only logs where the severity level is equal to critical error.
EventBridge rules evaluate the JSON structure of incoming events to route them to targets based on patterns.

Anahtar Kavram

Partitioning in Kinesis Data Streams for ordering and event filtering in EventBridge.
Bu soruyu puanla