QuestionQ12

Monitoring and Logging

A company operates an application on AWS Lambda that sends logs to Amazon CloudWatch Logs. An Amazon Kinesis data stream subscribes to the CloudWatch Logs log groups. One consumer Lambda function processes logs from the data stream and writes them to an Amazon S3 bucket.

The company’s DevOps team has identified high latency while some logs are being processed and ingested.

Which combination of steps will reduce the latency?

Choose three
  • A Create a data stream consumer with enhanced fan-out. Set the Lambda function that processes the logs as the consumer.
  • B Increase the ParallelizationFactor setting in the Lambda event source mapping.
  • C Configure reserved concurrency for the Lambda function that processes the logs.
  • D Increase the batch size in the Kinesis data stream.
  • E Turn off the ReportBatchItemFailures setting in the Lambda event source mapping.
  • F Increase the number of shards in the Kinesis data stream.
Explanation

Enhanced fan-out gives the Lambda consumer dedicated per-shard throughput and is intended to minimize latency. Increasing ParallelizationFactor permits multiple concurrent Lambda batches from each Kinesis shard, which raises processing throughput. Increasing the number of Kinesis shards raises the stream’s aggregate capacity and allows more shard-level parallel processing. Using Lambda to process records from Amazon Kinesis Data Streams, Amazon Kinesis Data Streams quotas and limits

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!