Bird
0
0

A Lambda function runs 100,000 times with 1 GB memory for 0.3 seconds each, but you want to estimate cost if memory is doubled and duration halves. What is the new GB-seconds?

hard📝 Application Q9 of 15
AWS - Lambda
A Lambda function runs 100,000 times with 1 GB memory for 0.3 seconds each, but you want to estimate cost if memory is doubled and duration halves. What is the new GB-seconds?
A60,000 GB-seconds
B150,000 GB-seconds
C300,000 GB-seconds
D30,000 GB-seconds
Step-by-Step Solution
Solution:
  1. Step 1: Calculate original GB-seconds

    Original = 100,000 x 0.3 x 1 = 30,000 GB-seconds.
  2. Step 2: Calculate new GB-seconds with doubled memory and halved duration

    New = 100,000 x 0.15 x 2 = 30,000 GB-seconds.
  3. Step 3: Verify calculation

    Doubling memory and halving duration keeps GB-seconds same, but question asks for new GB-seconds, so 30,000 is correct.
  4. Final Answer:

    30,000 GB-seconds -> Option D
  5. Quick Check:

    Doubling memory x halving duration = same GB-seconds [OK]
Quick Trick: Doubling memory and halving duration keeps GB-seconds same [OK]
Common Mistakes:
  • Multiplying memory and duration without halving
  • Ignoring duration change
  • Confusing GB-seconds calculation

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes