QuestionQ21

Data Operations and Support

A company keeps information about its subscribers in an Amazon S3 bucket. The company performs an analysis whenever a subscriber terminates their subscription. The company uses AWS Lambda functions to respond to Amazon S3 bucket events by running analyses.

The Lambda functions cleanse data from the S3 bucket and start an AWS Glue workflow. The Lambda functions are configured with 128 MB of memory and 512 MB of ephemeral storage. The Lambda functions have a 15-second timeout.

All three functions complete successfully. However, CPU utilization is frequently close to 100%, resulting in slow performance. The company wants to improve function performance and decrease the pipeline's total runtime.

Which solution will satisfy these requirements?

  • A Increase the memory of the Lambda functions to 512 MB.
  • B Increase the number of retries by using the Maximum Retry Attempts setting.
  • C Configure the Lambda functions to run in the company's VPC.
  • D Increase the timeout value for the Lambda functions from 15 seconds to 30 seconds.
Explanation

AWS Lambda increases the CPU power allocated to a function proportionally as its memory setting increases. Increasing memory from 128 MB to 512 MB gives CPU-bound functions more compute capacity, improving execution performance and reducing total pipeline runtime. Configure Lambda function memory

Learn more

Community Discussion

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