Soru

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

A developer is configuring a system where web application clickstream events are sent to an Amazon Kinesis Data Stream. The developer also needs to route user purchase events to an Amazon EventBridge custom event bus. Which two configurations should the developer implement to meet these requirements?

  1. Use a unique session identifier as the partition key when writing records to the Kinesis Data Stream.Cevap
  2. Configure an Amazon EventBridge rule with a JSON-based event pattern to filter and route only the purchase events.Cevap
  3. C
    Use a constant string such as 'web_logs' as the partition key for all records sent to the Kinesis Data Stream.
  4. D
    Deploy the consumer AWS Lambda function in a private VPC subnet with no NAT Gateway or VPC endpoints to process the stream events.
  5. E
    Update the IAM trust policy of the custom event bus to grant permissions for writing data directly to Amazon DynamoDB.

Cevap

Use a unique session identifier as the partition key when writing records to the Kinesis Data Stream, and configure an Amazon EventBridge rule with a JSON-based event pattern to filter and route only the purchase events.
The correct options are to use a unique session identifier as the partition key and to configure an EventBridge rule with a JSON event pattern. A high-entropy partition key ensures records are distributed evenly across shards, while EventBridge filters and routes events based on JSON structure matching.

Adım Adım Çözüm

1
Select the Kinesis partition key strategy.
Using a unique session ID distributes traffic evenly across all shards, avoiding throttling.
Kinesis routes records to specific shards based on the hash of the partition key.
2
Determine the routing mechanism for purchase events.
Define an EventBridge rule with a JSON event pattern matching purchase events.
EventBridge evaluates incoming JSON payloads against defined rules to filter and route matching events to targets.

Anahtar Kavram

Partition key selection in Amazon Kinesis Data Streams for data distribution, and event routing via JSON pattern matching in Amazon EventBridge.
Bu soruyu puanla