AWS - LambdaIf a serverless function executes for 5 seconds and is allocated 512 MB of memory, how is the billing calculated?ABilled for 5 seconds at 512 MB memory allocationBBilled for 1 second regardless of execution timeCBilled for 5 seconds at minimum 1 GB memory allocationDBilled only if execution exceeds 10 secondsCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand serverless billingAWS Lambda bills based on execution duration and memory size.Step 2: Apply to scenarioFunction runs 5 seconds with 512 MB memory, so billed accordingly.Final Answer:Billed for 5 seconds at 512 MB memory allocation -> Option AQuick Check:Billing = duration x memory size [OK]Quick Trick: Billing depends on execution time and memory size [OK]Common Mistakes:Assuming minimum 1 GB memory billingThinking billing is fixed per invocationBelieving billing starts only after 10 seconds
Master "Lambda" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes API Gateway - Resources and methods - Quiz 7medium API Gateway - API keys and usage plans - Quiz 15hard API Gateway - CORS configuration - Quiz 9hard AWS Lambda - Creating a Lambda function - Quiz 10hard Auto Scaling - Cooldown periods - Quiz 6medium Auto Scaling - Auto Scaling with ELB integration - Quiz 11easy Auto Scaling - Predictive scaling overview - Quiz 6medium DynamoDB - DynamoDB Streams overview - Quiz 15hard Elastic Load Balancing - Cross-zone load balancing - Quiz 9hard Elastic Load Balancing - Why load balancing matters - Quiz 1easy