AWS Certified Data Engineer – Associate (DEA-C01) — Question 233

A company stores information about its subscribers in an Amazon S3 bucket. The company runs an analysis every time a subscriber ends their subscription. The company uses AWS Lambda functions to respond to events from the S3 bucket by performing analyses.

The Lambda functions clean data from the S3 bucket and initiate an AWS Glue workflow. The Lambda functions have 128 MB of memory and 512 MB of ephemeral storage. The Lambda functions have a timeout of 15 seconds.

All three functions successfully finish running. However, CPU usage is often near 100%, which causes slow performance. The company wants to improve the performance of the functions and reduce the total runtime of the pipeline.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

Increasing the memory allocation for the Lambda functions to 512 MB will provide more CPU power, which can enhance performance and reduce runtime. The other options do not directly address the CPU usage issue; increasing retries or timeout may help with execution but will not improve processing speed, while running in a VPC can introduce additional latency.