AWS Certified Developer – Associate (DVA-C02) — Question 63

A company has deployed an application on AWS Elastic Beanstalk. The company has configured the Auto Scaling group that is associated with the Elastic Beanstalk environment to have five Amazon EC2 instances. If the capacity is fewer than four EC2 instances during the deployment, application performance degrades. The company is using the all-at-once deployment policy.
What is the MOST cost-effective way to solve the deployment issue?

Answer options

Correct answer: C

Explanation

The correct answer is C because using the rolling deployment policy with a batch size of 1 allows for gradual updates, ensuring that at least four instances remain running during deployment, which maintains performance. Option A increases costs unnecessarily without addressing the deployment issue. Option B introduces complexity with traffic splitting and may not ensure sufficient resources during deployment. Option D may still lead to performance degradation as it only allows two instances to be updated at a time.