AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 207
A company has an application that runs on AWS Lambda and sends logs to Amazon CloudWatch Logs. An Amazon Kinesis data stream is subscribed to the log groups in CloudWatch Logs. A single consumer Lambda function processes the logs from the data stream and stores the logs in an Amazon S3 bucket.
The company’s DevOps team has noticed high latency during the processing and ingestion of some logs.
Which combination of steps will reduce the latency? (Choose three.)
Answer options
- 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.
Correct answer: A, B, F
Explanation
Creating a data stream consumer with enhanced fan-out allows for lower latency by enabling multiple consumers to read from the stream simultaneously. Increasing the ParallelizationFactor allows the Lambda function to process more batches concurrently, also reducing latency. Adding more shards increases the throughput of the Kinesis data stream, which further decreases latency. The other options either do not directly address latency issues or may not provide the same level of improvement.