exam questions

Exam AWS DevOps Engineer Professional All Questions

View all questions & answers for the AWS DevOps Engineer Professional exam

Exam AWS DevOps Engineer Professional topic 1 question 124 discussion

Exam question from Amazon's AWS DevOps Engineer Professional
Question #: 124
Topic #: 1
[All AWS DevOps Engineer Professional Questions]

A company runs a three-tier web application in its production environment, which is built on a single AWS CloudFormation template made up of Amazon EC2 instances behind an ELB Application Load Balancer. The instances run in an EC2 Auto Scaling group across multiple Availability Zones. Data is stored in an Amazon RDS Multi-AZ DB instance with read replicas. Amazon Route 53 manages the application's public DNS record.

A DevOps engineer must create a workflow to mitigate a failed software deployment by rolling back changes in the production environment when a software cutover occurs for new application software.

What steps should the engineer perform to meet these requirements with the LEAST amount of downtime?

  • A. Use CloudFormation to deploy an additional staging environment and configure the Route 53 DNS with weighted records. During cutover change the Route 53 A record weights to achieve an even traffic distribution between the two environments. Validate the traffic in the new environment and immediately terminate the old environment if tests are successful.
  • B. Use a single AWS Elastic Beanstalk environment to deploy the staging and production environments. Update the environment by uploading the ZIP file with the new application code. Swap the Elastic Beanstalk environment CNAME. Validate the traffic in the new environment and immediately terminate the old environment if tests are successful.
  • C. Use a single AWS Elastic Beanstalk environment and an AWS OpsWorks environment to deploy the staging and production environments. Update the environment by uploading the ZIP file with the new application code into the Elastic Beanstalk environment deployed with the OpsWorks stack. Validate the traffic in the new environment and immediately terminate the old environment if tests are successful.
  • D. Use AWS CloudFormation to deploy an additional staging environment, and configure the Route 53 DNS with weighted records. During cutover, increase the weight distribution to have more traffic directed to the new staging environment as workloads are successfully validated. Keep the old production environment in place until the new staging environment handles all traffic.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
Piccaso
2 years, 2 months ago
Selected Answer: D
"Immediately terminate" is not a good practice found in A B C
upvoted 2 times
...
DerekKey
2 years, 3 months ago
Selected Answer: D
Requirement: with the least amount of downtime B - wrong - this is not how you do it with the beanstalk - you also don't have to change cname in this case (single environment) - when you perform this type of update the app can be unavailable for some time D - correct
upvoted 3 times
...
Bulti
2 years, 3 months ago
Selected Answer: D
D is correct because as mentioned in the question there is already a CloudFormation template to provision the resources so why switch to EB. But I have to admit that this question is tricky. The answer could be B as well.
upvoted 3 times
Bulti
2 years, 3 months ago
B is correct as it clearly indicates how 2 environments will be provisioned and application deployed using EB. D on the other hand doesn't mention anything about app deployment, only about creating the environment using CloudFormation. Cloudformation cannot deploy an application.
upvoted 1 times
...
...
kopper2019
2 years, 3 months ago
Option A - use A record, which is used with IP addresses Option C - OpsWorks - not needed Option B - with EB you use CNAME to swap between TWO environments Option D - fits well
upvoted 2 times
...
Oleg_gol
2 years, 3 months ago
Selected Answer: D
https://www.examtopics.com/discussions/amazon/view/8099-exam-aws-devops-engineer-professional-topic-1-question-94/
upvoted 2 times
...
Kapello10
2 years, 4 months ago
Selected Answer: B
B is the correct answer
upvoted 2 times
Piccaso
2 years, 2 months ago
Why not Z ?
upvoted 1 times
...
...
saggy4
2 years, 4 months ago
Selected Answer: D
D is correct Elastic Beanstalk will be a much of a hassle as we will need to move the existing system in EC2 hence B and C are wrong Between A and D, A tries deletes the older env immediately and does not change the R53 entries
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