Home › AWS Developer Associate › cloudcomputing › awsdevtroubleshooting › A Lambda function intermittently exceeds its mem…
A Lambda function intermittently exceeds its memory limit. The team has identified high memory use comes from PDF parsing for some inputs. Which is the BEST first remediation step?
AMigrate the function to AWS Snowball
BReduce the function's memory below the current setting
CDisable IAM checks
DIncrease the function's memory allocation to a higher tier (which also bumps CPU proportionally)
Answer & Solution
Correct answer: D. Increase the function's memory allocation to a higher tier (which also bumps CPU proportionally)
Bumping Lambda memory both raises the cap AND gives proportionally more CPU — typical fix for memory-bound workloads. The other options either remove safety or have nothing to do with memory.
Related questions
A serverless app's Lambda functions are billed per-millisecond. Which cost-optimization stWhich CloudWatch construct sends an SNS notification when a Lambda's error rate exceeds 5%An application sends events to an SQS queue. Suddenly the queue's `ApproximateNumberOfMessA Lambda function in a VPC hits an external HTTPS API. Cold starts now take 8+ seconds insA team needs to query Lambda logs ad-hoc with SQL-like syntax (filter by request id, errorWhich CloudWatch feature lets a developer build a dashboard showing graphs of multiple metA Lambda function called from API Gateway returns 502 Bad Gateway under load. Logs show "TA Lambda function's 99th-percentile latency is dominated by cold starts. Which optimisatio