Bird
0
0

A developer notices their Lambda cost is higher than expected. They set memory to 1024 MB but function runs only 100 ms. What is the likely issue?

medium📝 Debug Q14 of 15
AWS - Lambda
A developer notices their Lambda cost is higher than expected. They set memory to 1024 MB but function runs only 100 ms. What is the likely issue?
AMemory size is too high for short execution time
BNumber of requests is too low
CFunction execution time is too long
DFree tier is not applied to this function
Step-by-Step Solution
Solution:
  1. Step 1: Review memory and execution time relation

    Cost depends on memory size multiplied by execution time. High memory with short time still costs more than lower memory.
  2. Step 2: Identify cost cause

    Setting memory to 1024 MB increases GB-seconds cost even if function runs only 100 ms.
  3. Final Answer:

    Memory size is too high for short execution time -> Option A
  4. Quick Check:

    High memory + short time can increase cost [OK]
Quick Trick: High memory with short run still costs more [OK]
Common Mistakes:
  • Assuming short execution time always means low cost
  • Ignoring memory size impact
  • Thinking free tier always applies

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes