exam questions

Exam AWS Certified Developer Associate All Questions

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

Exam AWS Certified Developer Associate topic 1 question 228 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 228
Topic #: 1
[All AWS Certified Developer Associate Questions]

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
hb0011
Highly Voted 2 years, 4 months ago
Selected Answer: C
Option A, increasing the desired instances in the Auto Scaling group to six, would increase the number of running instances and the cost. Option B, using the traffic splitting deployment policy, would increase the complexity of the deployment process and it is not necessary in this case. Option D, using rolling deployment policy, would increase the chance of the performance degradation of the application because it would update 2 instances at a time, and this would reduce the capacity to 3 instances, which would be less than the required 4 instances. The only thing left is C.
upvoted 6 times
...
hamimelon
Highly Voted 2 years, 6 months ago
Why not B? You don't even need to add additional batches.
upvoted 5 times
Phinx
2 years, 4 months ago
The question states most cost-effective
upvoted 2 times
...
Phinx
2 years, 4 months ago
Traffic-splitting deployments let you perform canary testing as part of your application deployment. In a traffic-splitting deployment, Elastic Beanstalk launches a full set of new instances just like during an immutable deployment. It then forwards a specified percentage of incoming client traffic to the new application version for a specified evaluation period. If the new instances stay healthy, Elastic Beanstalk forwards all traffic to them and terminates the old ones. If the new instances don't pass health checks, or if you choose to abort the deployment, Elastic Beanstalk moves traffic back to the old instances and terminates the new ones. There's never any service interruption. For details, see How traffic-splitting deployments work.
upvoted 2 times
...
...
rcaliandro
Most Recent 1 year, 11 months ago
Selected Answer: C
For me is C. Rolling with additional step with size = 1 is cost-effective since we only run one more instance during the deployment and we have to be carefull to don't go below 4
upvoted 1 times
...
pancman
2 years, 3 months ago
Selected Answer: C
The answer is C. While the rolling deployment is being performed, since the batch size is 1, there will always be at least 4 functional EC2 instances throughout. So there won't be any performance issues during the deployment
upvoted 1 times
...
sichilam
2 years, 4 months ago
C is the most correct one
upvoted 1 times
...
Phinx
2 years, 4 months ago
Selected Answer: C
I'll go for C. B is not cost-effective. Traffic-splitting will deploy new set of instances same with immutable. https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.rolling-version-deploy.html
upvoted 1 times
...
BobAWS23
2 years, 4 months ago
Selected Answer: B
B because of cost
upvoted 1 times
...
Nosal
2 years, 5 months ago
Selected Answer: C
I'll go for C
upvoted 1 times
...
k1kavi1
2 years, 6 months ago
Selected Answer: C
Going with C
upvoted 2 times
k1kavi1
2 years, 6 months ago
Or is it B because of cost effectiveness ?
upvoted 2 times
by116549
2 years, 5 months ago
Hi, if that were the case will traffic splitting not more expensive? https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.rolling-version-deploy.html Traffic-splitting deployments let you perform canary testing as part of your application deployment. In a traffic-splitting deployment, Elastic Beanstalk launches a full set of new instances just like during an immutable deployment. It then forwards a specified percentage of incoming client traffic to the new application version for a specified evaluation period. If the new instances stay healthy, Elastic Beanstalk forwards all traffic to them and terminates the old ones. If the new instances don't pass health checks, or if you choose to abort the deployment, Elastic Beanstalk moves traffic back to the old instances and terminates the new ones. There's never any service interruption.
upvoted 1 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 ...