exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 120 discussion

A DevOps engineer needs to configure a blue/green deployment for an existing three-tier application. The application runs on Amazon EC2 instances and uses an Amazon RDS database. The EC2 instances run behind an Application Load Balancer (ALB) and are in an Auto Scaling group.

The DevOps engineer has created a launch template and an Auto Scaling group for the blue environment. The DevOps engineer also has created a launch template and an Auto Scaling group for the green environment. Each Auto Scaling group deploys to a matching blue or green target group. The target group also specifies which software, blue or green, gets loaded on the EC2 instances. The ALB can be configured to send traffic to the blue environment’s target group or the green environment’s target group. An Amazon Route 53 record for www.example.com points to the ALB.

The deployment must move traffic all at once between the software on the blue environment’s EC2 instances to the newly deployed software on the green environment’s EC2 instances.

What should the DevOps engineer do to meet these requirements?

  • A. Start a rolling restart of the Auto Scaling group for the green environment to deploy the new software on the green environment’s EC2 instances. When the rolling restart is complete, use an AWS CLI command to update the ALB to send traffic to the green environment’s target group.
  • B. Use an AWS CLI command to update the ALB to send traffic to the green environment’s target group. Then start a rolling restart of the Auto Scaling group for the green environment to deploy the new software on the green environment’s EC2 instances.
  • C. Update the launch template to deploy the green environment’s software on the blue environment’s EC2 instances. Keep the target groups and Auto Scaling groups unchanged in both environments. Perform a rolling restart of the blue environment’s EC2 instances.
  • D. Start a rolling restart of the Auto Scaling group for the green environment to deploy the new software on the green environment’s EC2 instances. When the rolling restart is complete, update the Route 53 DNS to point to the green environment’s endpoint on the ALB.
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
PhuocT
Highly Voted 1 year, 11 months ago
A is correct, cannot be D, as there is only one ALB. The ALB can be configured to send traffic to the blue environment’s target group or the green environment’s target group. Traffic route to blue or green, must be configure at Load balancer, in this case, update the target group.
upvoted 17 times
...
jamesf
Most Recent 9 months, 1 week ago
Selected Answer: A
One Application Load Balancer (ALB) One Auto Scaling Group (ASG) for Blue and one Auto Scaling Group (ASG) for Green
upvoted 3 times
...
dkp
1 year ago
Selected Answer: A
its A.
upvoted 2 times
...
sirronido
1 year ago
B correct ....... option A reverses the order of operations, which goes against the recommended practice of updating the load balancer first to send traffic to the new environment before deploying the new software.
upvoted 1 times
...
thanhnv142
1 year, 2 months ago
Selected Answer: A
A is correct: <The deployment must move traffic all at once between the software on the blue environment’s EC2 instances to the newly deployed software on the green environment’s EC2 instances.> and <The ALB can be configured to send traffic to the blue environment’s target group or the green environment’s target group.>means we should do the traffic migration manually by config the ALB B and C: no mention of migration step D: should not use route 53 DNS, we need to configure the ALB
upvoted 4 times
...
rlf
1 year, 6 months ago
Answer is A https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-rollingupdate
upvoted 2 times
...
kyuhobe
1 year, 8 months ago
The client-side caches the results of DNS queries, so DNS switching lacks immediacy, and it's challenging to transition traffic all at once. Therefore, option D doesn't meet the requirement of moving traffic all at once and is not suitable.
upvoted 1 times
...
ixdb
1 year, 8 months ago
What???? No one read the question carefully. There are two ALB. The DevOps engineer has created a launch template and an Auto Scaling group for the blue environment. The DevOps engineer also has created a launch template and an Auto Scaling group for the green environment.
upvoted 1 times
ixdb
1 year, 8 months ago
D is right.
upvoted 2 times
...
lluukkyy
1 year, 5 months ago
No, you mixed it up. There is only one ALB and two ASGs. Option A is the answer as there is no need to touch Route53 in this scenario(it's pointing to the single ALB already).
upvoted 2 times
...
...
Certified101
1 year, 9 months ago
Selected Answer: A
Cannot be D as the Route 53 record will be unchanged - points to the same ALB - the target group on the ALB need to be updated
upvoted 2 times
...
Blueee
1 year, 10 months ago
Selected Answer: A
A is correct
upvoted 2 times
...
MarDog
1 year, 10 months ago
I don't think it's D, because it's a single ALB and Route 53 is already pointing at it as wwww.example.com. What needs to occur is an ASG switch within the ALB. So, A is the best bet.
upvoted 2 times
...
walkwolf3
1 year, 11 months ago
A is correct. For D, DNS alias record needs to be updated, and green environment's endpoint wasn't mentioned in the question.
upvoted 1 times
...
devnv
1 year, 11 months ago
Yes D sounds the best approach
upvoted 1 times
...
2pk
1 year, 11 months ago
It must be D. DNS record should be diverted to the green ALB
upvoted 1 times
sb333
1 year, 9 months ago
The question states there is only one ALB with two target groups (Blue and Green). The DNS record points to that one ALB. So answer D is not correct.
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago