0
0
AWScloud~10 mins

Lambda pricing model in AWS - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the unit for Lambda memory pricing.

AWS
lambda_memory_price_per_[1] = 0.00001667
Drag options to blanks, or click blank then click option'
AGB-hour
BGB-second
CMB-second
DMB-hour
Attempts:
3 left
💡 Hint
Common Mistakes
Using hours instead of seconds
Using MB instead of GB
2fill in blank
medium

Complete the code to calculate the total Lambda cost given memory in GB and duration in seconds.

AWS
total_cost = memory_in_[1] * duration_in_[2] * price_per_gb_second
Drag options to blanks, or click blank then click option'
AGB
BMB
Cminutes
Dseconds
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing MB with GB
Using minutes instead of seconds
3fill in blank
hard

Fix the error in the Lambda cost calculation by choosing the correct unit for duration.

AWS
cost = memory_gb * duration_in_[1] * price_per_gb_second
Drag options to blanks, or click blank then click option'
Ahours
Bminutes
Cseconds
Dmilliseconds
Attempts:
3 left
💡 Hint
Common Mistakes
Using minutes or hours instead of seconds
Using milliseconds which is too granular
4fill in blank
hard

Fill both blanks to complete the Lambda pricing formula for total cost.

AWS
total_cost = [1] * [2] * price_per_gb_second
Drag options to blanks, or click blank then click option'
Amemory_gb
Bduration_minutes
Cduration_seconds
Dmemory_mb
Attempts:
3 left
💡 Hint
Common Mistakes
Using MB for memory
Using minutes for duration
5fill in blank
hard

Fill all three blanks to complete the Lambda pricing calculation including request count.

AWS
total_cost = ([1] * [2] * price_per_gb_second) + ([3] * price_per_request)
Drag options to blanks, or click blank then click option'
Amemory_gb
Bduration_seconds
Crequest_count
Dduration_minutes
Attempts:
3 left
💡 Hint
Common Mistakes
Using minutes instead of seconds for duration
Confusing request count with duration