exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 62 discussion

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?

  • A. Change the Auto Scaling group to six desired instances.
  • B. Change the deployment policy to traffic splitting. Specify an evaluation time of 1 hour.
  • C. Change the deployment policy to rolling with additional batch. Specify a batch size of 1.
  • D. Change the deployment policy to rolling. Specify a batch size of 2.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
gpt_test
Highly Voted 1 year, 4 months ago
Selected Answer: C
Explanation: The rolling with additional batch deployment policy allows Elastic Beanstalk to launch additional instances in a new batch before terminating the old instances. In this case, specifying a batch size of 1 means that Elastic Beanstalk will deploy the application updates to 1 new instance at a time, ensuring that there are always at least 4 instances available during the deployment process. This method maintains application performance while minimizing the additional cost.
upvoted 19 times
...
gagol14
Highly Voted 1 year, 1 month ago
Selected Answer: C
1. Rolling with additional batch deployment: This type of deployment maintains full capacity while new application versions are deployed. It launches a new batch of instances with the new application version, and if the new batch is healthy, it terminates a batch of instances running the old application version. 2. Batch size of 1: This will ensure that one new instance is launched with the new version of the application. Once it is deemed healthy, one of the old instances will be terminated. This will continue until all instances are running the new version, ensuring the capacity is never less than four instances. This approach will add only a minimal additional cost for the temporary overlapping instances during deployment.
upvoted 13 times
...
sumanshu
Most Recent 1 month, 2 weeks ago
Selected Answer: C
A) Eliminated - Permanently increasing the desired capacity to six EC2 instances incurs unnecessary ongoing costs. B) Eliminated - Traffic splitting is primarily used for canary testing or gradual traffic shifting. It does not guarantee maintaining the desired instance capacity during deployment. D) Eliminated - A rolling deployment with a batch size of 2 means two instances are replaced at a time. With a fixed capacity of 5 instances, this would temporarily reduce the number of running instances to 3, causing performance degradation.
upvoted 2 times
sumanshu
1 month, 2 weeks ago
C) Batch Size of 1: Specifies that only one instance will be updated at a time, minimizing downtime and maintaining the required instance capacity for performance. Rolling with additional Batch - This deployment strategy adds an extra batch of EC2 instances during deployment. After updating one batch, the additional instances are terminated, ensuring cost efficiency.
upvoted 1 times
...
...
65703c1
2 months, 2 weeks ago
Selected Answer: C
C is the correct answer.
upvoted 1 times
...
Alearn
7 months, 2 weeks ago
Selected Answer: D
Option D is the best solution because it allows the company to update the application without losing service or reducing availability significantly, and without increasing the cost or complexity of the solution.
upvoted 2 times
poklakni
3 months, 3 weeks ago
the requirement is not to go below 4 instances. Option D specifies a batch size of 2 which would lead to 3 running instances. The correct option is C
upvoted 1 times
sumanshu
4 days, 8 hours ago
@Alern - option D mentioned: Option D only mentions "Rolling" and not "Rolling with Additional Batch... If it;s mentioned Rolling with Additional Batch - Then "D" is the answer and fastest...
upvoted 1 times
...
...
...
KarBiswa
7 months, 3 weeks ago
Selected Answer: C
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.rolling-version-deploy.html
upvoted 2 times
...
quangphungdev218
1 year ago
Selected Answer: C
The correct answer is: C
upvoted 1 times
...
Prem28
1 year, 2 months ago
The correct answer is: D. Change the deployment policy to rolling. Specify a batch size of 2. A rolling deployment policy will deploy the new application version to one batch of instances at a time, while the other batches continue to serve traffic. This ensures that the application always has at least four instances available during the deployment. Specifying a batch size of 2 means that two instances will be deployed at a time. This is the most cost-effective option because it minimizes the number of instances that are needed to maintain application performance during the deployment. The other options are not as cost-effective because they require more instances to be running during the deployment. Option A requires six instances, option B requires at least five instances, and option C requires at least four instances.
upvoted 2 times
gagol14
1 year, 1 month ago
The rolling deployment policy updates a few instances at a time, but unlike the "rolling with additional batch" option, it does not launch new instances before terminating the old ones. Therefore, capacity could drop below four during deployment, affecting application performance.
upvoted 2 times
jipark
1 year ago
C: cost 1 additional EC2 D : degrade performance it looks exam gave key "2 batch" meaning - do not choose this answer.
upvoted 1 times
...
...
nmc12
10 months, 1 week ago
If batch size of 1: During the time the new instances are being deployed and are not yet in service, there are only 5 - 2 = 3 old instances available to serve the traffic, which violates the requirement to maintain at least 4 instances to avoid performance degradation. so, i go with A answer.
upvoted 1 times
...
...
Untamables
1 year, 4 months ago
Selected Answer: C
C https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.rolling-version-deploy.html
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago