DVA-C02 Question 59
Select 3You are developing a serverless application using AWS Lambda, and you expect a significant increase in traffic during a promotional campaign. To ensure your application scales efficiently while maintaining performance, what should you consider?
- A
Configure concurrency limits for your Lambda function to handle increased requests.
- B
Use AWS Auto Scaling to scale Lambda functions automatically based on traffic.
- C
Enable Provisioned Concurrency for your Lambda function to ensure predictable scaling.
- D
Store application state in Amazon DynamoDB or Amazon S3 to avoid Lambda instance reuse issues.
- E
Use Application Load Balancer to distribute traffic directly to your Lambda function.
Show answer and explanation
Correct answers: A, C, D
Explanation
To ensure your Lambda application scales efficiently during traffic spikes, you should configure concurrency limits, enable Provisioned Concurrency if predictable scaling is required, and store application state in DynamoDB or S3 to maintain statelessness. Lambda automatically scales with incoming requests, so AWS Auto Scaling is not applicable. While an Application Load Balancer can be used, it is not necessary for Lambda's scalability as Lambda handles request scaling natively.
- A. Correct.
Configuring concurrency limits helps you control the maximum number of concurrent Lambda executions, which is critical for scaling and avoiding throttling when traffic spikes.
- B. Incorrect.
AWS Auto Scaling is not used for Lambda functions as Lambda automatically scales based on the number of incoming requests.
- C. Correct.
Provisioned Concurrency ensures that a set number of Lambda function instances are initialized and ready to handle requests, reducing cold start latency during traffic spikes.
- D. Correct.
Storing application state in DynamoDB or S3 ensures that state is not tied to individual Lambda function executions, enabling better scalability and stateless processing.
- E. Incorrect.
While Application Load Balancer can route traffic to Lambda, it is not required for scaling Lambda functions as Lambda automatically manages scaling based on requests.