Bird
0
0

A serverless function fails because it exceeds memory limits. What is the best fix?

medium📝 Debug Q7 of 15
AWS - Serverless Architecture
A serverless function fails because it exceeds memory limits. What is the best fix?
AIncrease the function's memory allocation
BReduce the function's timeout
CSwitch to a virtual machine
DDelete the function and recreate it
Step-by-Step Solution
Solution:
  1. Step 1: Identify cause of failure

    Exceeding memory limits means the function needs more memory to run properly.
  2. Step 2: Choose appropriate fix

    Increasing memory allocation solves the problem; reducing timeout or deleting function won't help.
  3. Final Answer:

    Increase the function's memory allocation -> Option A
  4. Quick Check:

    Memory errors fixed by more memory = C [OK]
Quick Trick: Adjust memory settings to fix memory errors [OK]
Common Mistakes:
  • Reducing timeout instead of memory
  • Switching to VM unnecessarily
  • Deleting function without fixing cause

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes