Bird
0
0

If a Lambda function runs 1,000,000 times with 512 MB memory for 1 second each, which factor mainly increases the cost?

medium📝 Predict Output Q13 of 15
AWS - Lambda
If a Lambda function runs 1,000,000 times with 512 MB memory for 1 second each, which factor mainly increases the cost?
AExecution time of 1 second per request
BNetwork bandwidth used by the function
CMemory size doubling from 256 MB to 512 MB
DNumber of requests being 1,000,000
Step-by-Step Solution
Solution:
  1. Step 1: Understand cost components

    Cost depends on requests and GB-seconds (memory size x execution time x requests).
  2. Step 2: Analyze impact of memory size

    Doubling memory from 256 MB to 512 MB doubles GB-seconds, increasing cost significantly, but the number of requests (1,000,000) is the main driver of total cost.
  3. Final Answer:

    Number of requests being 1,000,000 -> Option D
  4. Quick Check:

    Requests x GB-seconds = total cost [OK]
Quick Trick: Number of requests greatly impacts total cost [OK]
Common Mistakes:
MISTAKES
  • Ignoring number of requests effect
  • Thinking network bandwidth affects Lambda cost
  • Assuming execution time or memory alone drives cost

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes