DVA-C02 exam dumps

DVA-C02 practice question 57 of 399

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

DVA-C02 Question 57

Single answer

You are developing a web application that experiences unpredictable traffic peaks. The application runs on Amazon EC2 instances behind an Elastic Load Balancer (ELB). How can you ensure the application scales efficiently to handle traffic spikes while minimizing costs?

  1. A

    Use Amazon EC2 Auto Scaling with a dynamic scaling policy to automatically adjust the number of instances based on demand.

  2. B

    Manually launch additional EC2 instances during traffic peaks and terminate them when traffic decreases.

  3. C

    Use an Amazon S3 bucket to host the application and automatically scale based on traffic.

  4. D

    Provision a fixed number of EC2 instances to handle the maximum expected traffic at all times.

Show answer and explanation

Correct answer: A

Explanation

Using Amazon EC2 Auto Scaling with a dynamic scaling policy enables the application to scale up or down automatically based on real-time demand. This approach ensures the application can handle traffic spikes efficiently while optimizing costs by only provisioning resources when needed.

  • A. Correct.

    This is the correct answer. Amazon EC2 Auto Scaling with a dynamic scaling policy adjusts the number of instances in response to traffic changes, ensuring scalability and cost-efficiency.

  • B. Incorrect.

    This is not an efficient solution as manually managing instances during traffic peaks is error-prone and does not support real-time scaling.

  • C. Incorrect.

    Amazon S3 is a storage service and cannot be used to host a web application that requires compute resources.

  • D. Incorrect.

    Provisioning a fixed number of EC2 instances for peak traffic results in underutilization during low traffic periods and higher costs.

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