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 27 discussion

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

A company experienced partial downtime during the last deployment of a new application. AWS Elastic Beanstalk split the environment's Amazon EC2 instances into batches and deployed a new version one batch at a time after taking them out of service. Therefore, full capacity was not maintained during deployment.
The developer plans to release a new version of the application, and is looking for a policy that will maintain full capacity and minimize the impact of the failed deployment.
Which deployment policy should the developer use?

  • A. Immutable
  • B. All at Once
  • C. Rolling
  • D. Rolling with an Additional Batch
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
RicardoD
Highly Voted 3 years, 6 months ago
A is the answer Immutable infrastructure has become a new norm in IT operations. Immutable Deployment is one of those approaches, and it simply means: Immutable: the “staging” environment, once ready to become production, doesn't change. If we need to change something, we then deploy new code on completely new infrastructure. The benefits of an immutable infrastructure include more consistency and reliability in your infrastructure and a simpler, more predictable deployment process
upvoted 27 times
lostre
3 years, 6 months ago
i will have to disagree with you this time Minimal impact comes with deploying a small percentage on a new batch for testing and not all at once If you have 100 users in immutable they will all have problem (impact) until rollback If you have 10% on a new batch only 1- will have problem till rollback Answer is D for me as this is on a new batch
upvoted 7 times
zolthar_z
3 years, 6 months ago
Even with additional batch full capacity is not accomplished and if you want a rollback you need to perform a new deployment, with A if you have an issue the rollback is more easy, Answer is A
upvoted 6 times
gaddour_med
2 years, 3 months ago
with additional batch full capacity is preserved, for immutable deployment rollback make more time
upvoted 1 times
...
...
...
...
AWSGeeeeeeK
Highly Voted 3 years, 6 months ago
i thought it was D but after reading the doc it's A for sure read this : https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environmentmgmt-updates-immutable.html
upvoted 6 times
Hemu0711
1 year, 3 months ago
yes, for D it will need an additional rolling update to roll out the previous changes whereas in A, just delete the ASG
upvoted 1 times
...
...
sumanshu
Most Recent 4 months, 1 week ago
Selected Answer: A
B) Eliminated - This policy replaces all instances with the new version at the same time. It does not maintain full capacity during the deployment, as all the instances are updated simultaneously. This can result in downtime if the deployment fails.
upvoted 1 times
...
AsmaZoheb
1 year, 3 months ago
Selected Answer: A
developer's goal of maintaining full capacity and minimizing the impact of a failed deployment, the Immutable deployment policy is the best choice
upvoted 1 times
...
ninomfr64
1 year, 8 months ago
Selected Answer: A
Both Immutable and Rolling with additional capacity ensure full capacity, however immutable minimizes the impact on user in case of failed deployment, while Rolling with an additional batch impacts is minimal if first batch fails; otherwise, similar to Rolling https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.deploy-existing-version.html#:~:text=The%20following%20table%20compares%20deployment%20method%20properties.
upvoted 1 times
...
alihaider907
1 year, 8 months ago
See "Deployment methods" table on https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.deploy-existing-version.html It says only Immutable and Blue/green have minimal Impact of failed deployment. For Rolling with an additional batch impact is Minimal if first batch fails; otherwise, similar to Rolling
upvoted 1 times
...
ImpactTek
1 year, 9 months ago
Selected Answer: D
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.deploy-existing-version.html
upvoted 1 times
...
rcaliandro
1 year, 10 months ago
Selected Answer: A
The answer is the A given that we must have full capacity and we have to minimize the impact of failed deployment. With immutable we can prepare the new environment and switch when it is ready. If there is some issue it is always possible to switch back to the previuos version. I exclude rolling with additional batch because they tried it and the system was down furthemore it is not written to be cost-optimized
upvoted 1 times
...
peterpain
1 year, 11 months ago
Selected Answer: A
Answer D will be correct if the question asks about cost-optimized. Otherwise, question A is more correct
upvoted 1 times
...
MrTee
2 years ago
Selected Answer: A
The Immutable deployment policy launches a new set of instances in a separate Auto Scaling group with the new version of the application. After the new instances pass health checks, Elastic Beanstalk switches traffic to them and terminates the old instances. This ensures that full capacity is maintained during deployment and minimizes the impact of a failed deployment.
upvoted 1 times
...
pancman
2 years, 1 month ago
A similar question was in the exam today. Study this topic carefully.
upvoted 1 times
...
Krt5894
2 years, 2 months ago
Selected Answer: A
Answer is A
upvoted 1 times
...
aarti_k
2 years, 2 months ago
May be they are already using rolling policy and Ec2 batching and beanstalk mentioned. that is why D is correct answer. A is good option but given situation may be D?
upvoted 1 times
...
akaramox
2 years, 4 months ago
Selected Answer: A
rolling with additional is slow during rollback
upvoted 2 times
...
gpit
2 years, 5 months ago
Selected Answer: A
A. Rolling with additional batch is slower than Immutable if deploy fails, since the former has to roll back the deployed part, whereas the latter just switches to the old version.
upvoted 2 times
...
Gene_Poole
2 years, 7 months ago
B will cause downtime. C will cause a reduced capacity i.e. partial downtime. They need full capacity so these two won't work. You can also use immutable updates to deploy new versions of your application, as an alternative to rolling deployments. When you configure Elastic Beanstalk to use immutable updates for application deployments, it replaces all instances in your environment every time you deploy a new version of your application. If an immutable application deployment fails, Elastic Beanstalk reverts the changes immediately by terminating the new Auto Scaling group. This can prevent partial fleet deployments, which can occur when a rolling deployment fails after some batches have already completed. https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environmentmgmt-updates-immutable.html A is my answer.
upvoted 3 times
...
tam2801
2 years, 7 months ago
why not D?
upvoted 1 times
dmondicii
2 years, 6 months ago
The question specifies that it needs to minimize the impact of failed deployment. So Immutable is the better choice between A and D here because obviously you can easily rollback with A while D you have to manually redeploy.
upvoted 2 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