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:
Step 1: Understand cost components
Cost depends on requests and GB-seconds (memory size x execution time x requests).
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.
Final Answer:
Number of requests being 1,000,000 -> Option D
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
Master "Lambda" in AWS
9 interactive learning modes - each teaches the same concept differently