nerdexam
Amazon

DEA-C01 · Question #268

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 respon

The correct answer is A. Increase the memory of the Lambda functions to 512 MB.. In AWS Lambda, increasing memory also proportionally increases the allocated CPU. By raising the Lambda functions’ memory from 128 MB to 512 MB, the functions receive more CPU power, which reduces execution time and improves performance without changing logic or timeouts.

Data Ingestion and Transformation

Question

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?

Options

  • AIncrease the memory of the Lambda functions to 512 MB.
  • BIncrease the number of retries by using the Maximum Retry Attempts setting.
  • CConfigure the Lambda functions to run in the company's VPC.
  • DIncrease the timeout value for the Lambda functions from 15 seconds to 30 seconds.

How the community answered

(52 responses)
  • A
    81% (42)
  • B
    12% (6)
  • C
    6% (3)
  • D
    2% (1)

Explanation

In AWS Lambda, increasing memory also proportionally increases the allocated CPU. By raising the Lambda functions’ memory from 128 MB to 512 MB, the functions receive more CPU power, which reduces execution time and improves performance without changing logic or timeouts.

Topics

#AWS Lambda#Performance Tuning#Resource Allocation#Serverless Computing

Community Discussion

No community discussion yet for this question.

Full DEA-C01 Practice