exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional SAP-C02 exam

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 268 discussion

A company has a website that runs on four Amazon EC2 instances that are behind an Application Load Balancer (ALB). When the ALB detects that an EC2 instance is no longer available, an Amazon CloudWatch alarm enters the ALARM state. A member of the company's operations team then manually adds a new EC2 instance behind the ALB.

A solutions architect needs to design a highly available solution that automatically handles the replacement of EC2 instances. The company needs to minimize downtime during the switch to the new solution.

Which set of steps should the solutions architect take to meet these requirements?

  • A. Delete the existing ALB. Create an Auto Scaling group that is configured to handle the web application traffic. Attach a new launch template to the Auto Scaling group. Create a new ALB. Attach the Auto Scaling group to the new ALB. Attach the existing EC2 instances to the Auto Scaling group.
  • B. Create an Auto Scaling group that is configured to handle the web application traffic. Attach a new launch template to the Auto Scaling group. Attach the Auto Scaling group to the existing ALAttach the existing EC2 instances to the Auto Scaling group.
  • C. Delete the existing ALB and the EC2 instances. Create an Auto Scaling group that is configured to handle the web application traffic. Attach a new launch template to the Auto Scaling group. Create a new ALB. Attach the Auto Scaling group to the new ALB. Wait for the Auto Scaling group to launch the minimum number of EC2 instances.
  • D. Create an Auto Scaling group that is configured to handle the web application traffic. Attach a new launch template to the Auto Scaling group. Attach the Auto Scaling group to the existing ALB. Wait for the existing ALB to register the existing EC2 instances with the Auto Scaling group.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
SK_Tyagi
Highly Voted 1 year, 8 months ago
Selected Answer: B
Deleting the ALB will increase downtime, so A & C eliminated. B & D are similar but D suggests wait for ALB to register EC2 instances, again causing delay so eliminated
upvoted 10 times
kejam
1 year, 3 months ago
Agreed https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-from-instance.html#create-asg-from-instance-console
upvoted 1 times
...
...
goodard
Most Recent 9 months, 1 week ago
Selected Answer: D
B and D are similar but B is wrong since you cannot add ec2 instances to autoscaling group. You can only add ec2 to ALB target group.
upvoted 1 times
kgpoj
9 months ago
You are wrong. Don't misguide others here with wrong argument. You can attach EC2 to ASG for sure https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-detach-attach-instances.html just simply google `attach ec2 to asg` and you will find the doc above. I don't understand why ppl just make random wrong assumptions and misguide others while it only take a few seconds to verify on google/chatgpt
upvoted 5 times
...
helloworldabc
8 months, 3 weeks ago
Just B
upvoted 1 times
...
...
career360guru
1 year, 5 months ago
Selected Answer: B
B is correct answer.
upvoted 1 times
...
Ustad
1 year, 6 months ago
Selected Answer: D
why should we attach the current one, why not leaving it to the ASG?
upvoted 1 times
yorkicurke
1 year, 6 months ago
if you read @SK_Tyagi , i think he made a fair point. :)
upvoted 2 times
...
carpa_jo
1 year, 4 months ago
Is ALB even capable of automatically registering existing EC2 instances with an ASG? I don't think so.
upvoted 1 times
...
...
DavScout
1 year, 7 months ago
Does it require Attaching the existing EC2 instances to the Auto Scaling group? Why is D incorrect or Why B is a better response than D?
upvoted 1 times
...
ggrodskiy
1 year, 9 months ago
Correct B
upvoted 1 times
...
NikkyDicky
1 year, 10 months ago
Selected Answer: B
its a B
upvoted 1 times
...
SmileyCloud
1 year, 10 months ago
Selected Answer: B
B - correct. Attach the EC2s
upvoted 1 times
...
SkyZeroZx
1 year, 10 months ago
Selected Answer: B
New AS Group - assign to existing ALB and attach EC2s to new Scaling group.
upvoted 1 times
...
gd1
1 year, 10 months ago
Selected Answer: B
New AS Group - assign to existing ALB and attach EC2s to new Scaling group.
upvoted 2 times
...
i_am_robot
1 year, 10 months ago
Selected Answer: B
Auto Scaling groups are designed to ensure that you are running your desired number of Amazon EC2 instances. It also can automatically replace any instances that fail or are unhealthy based on health checks. You can specify the minimum, maximum, and desired number of instances in your Auto Scaling group. By attaching a new launch template to the Auto Scaling group, the Auto Scaling group knows what configuration to use for the new instances it launches. There's no need to delete the existing ALB as suggested in options A and C. The ALB is still functional and will work with the newly created Auto Scaling group. You can directly attach the Auto Scaling group to the existing ALB.
upvoted 4 times
...
psyx21
1 year, 10 months ago
Selected Answer: B
Correct Answer is B
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