DVA-C02 exam dumps

DVA-C02 practice question 59 of 399

AWS Certified Developer - Associate. Associate level, Amazon Web Services. Free question with the correct answer and a full explanation.

DVA-C02 Question 59

Select 3

You 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?

  1. A

    Configure concurrency limits for your Lambda function to handle increased requests.

  2. B

    Use AWS Auto Scaling to scale Lambda functions automatically based on traffic.

  3. C

    Enable Provisioned Concurrency for your Lambda function to ensure predictable scaling.

  4. D

    Store application state in Amazon DynamoDB or Amazon S3 to avoid Lambda instance reuse issues.

  5. 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.

Timed practice exam

Take a DVA-C02 practice test under exam conditions

65 questions in 130 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam