A company is launching a photo-sharing app on AWS. Users upload images to an S3 bucket. A Lambda function generates thumbnails and stores them in another S3 bucket. During development the Lambda function sometimes takes more than 2 minutes to generate thumbnails, but the company requires each image to be processed in under 30 seconds. What change should the developer make to meet this requirement?
Choose an answer
Tap an option to check your answer.
Correct answer: Increase the Lambda function's memory allocation..
Why this is the answer
Increasing a Lambda function's memory allocation directly increases its proportional CPU, network, and disk I/O resources. This often leads to faster execution times for CPU-bound or I/O-bound tasks like image processing, helping to meet the 30-second requirement. Incorrect options: Lambda functions do not have a configurable vCPU allocation in the same way EC2 instances do; CPU resources scale with memory. Lambda functions do not have instance types like EC2 (e.g., m6a.4xlarge). Their underlying infrastructure is managed by AWS. Lambda functions do not support burstable performance in the same way EC2 instances do. Performance scales with allocated memory.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed