AWS - LambdaYou wrote a serverless function but it fails to handle sudden traffic spikes, causing errors. What is the likely cause?AThe function has a fixed number of instances and does not auto-scale.BServerless functions automatically scale, so the error is unrelated to scaling.CThe function's timeout setting is too high.DThe function is not connected to a database.Check Answer
Step-by-Step SolutionSolution:Step 1: Understand serverless scalingServerless functions usually auto-scale, but concurrency limits or misconfigurations can restrict it to a fixed number of instances.Step 2: Identify cause of errorsIf the function does not scale beyond a fixed number, it cannot handle traffic spikes, causing errors.Final Answer:The function has a fixed number of instances and does not auto-scale. -> Option AQuick Check:Scaling limits cause errors under load [OK]Quick Trick: Check if auto-scaling limits block traffic handling [OK]Common Mistakes:Assuming serverless always scales without limitsBlaming timeout when scaling is the issueIgnoring connection issues unrelated to scaling
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