AWS - LambdaA Lambda function runs for 1234.7 ms but AWS bills for 1235 ms. Why?ADuration is rounded up to the nearest 1 msBDuration is rounded down to the nearest secondCAWS bills only full secondsDBilling is based on average run timeCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand Lambda billing durationLambda rounds duration up to the nearest 1 millisecond (1 ms).Step 2: Calculate billing for 1234.7 ms1234.7 ms rounds up to 1235 ms.Final Answer:Duration is rounded up to the nearest 1 ms -> Option AQuick Check:Duration billing rounds up to 1 ms [OK]Quick Trick: Lambda bills duration rounded up to 1 ms [OK]Common Mistakes:Thinking billing rounds downAssuming billing is per full secondBelieving billing uses average run time
Master "Lambda" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes API Gateway - Why API Gateway matters - Quiz 13medium AWS Lambda - Lambda handler function structure - Quiz 11easy CloudWatch - CloudWatch dashboards - Quiz 15hard DynamoDB - DynamoDB capacity modes (on-demand, provisioned) - Quiz 15hard DynamoDB - Creating a DynamoDB table - Quiz 13medium Elastic Load Balancing - Target groups concept - Quiz 7medium Elastic Load Balancing - Listener rules and routing - Quiz 15hard RDS and Relational Databases - Read replicas for performance - Quiz 6medium RDS and Relational Databases - RDS supported engines - Quiz 11easy RDS and Relational Databases - Parameter groups and option groups - Quiz 3easy