exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

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

Exam AWS Certified Solutions Architect - Professional topic 1 question 453 discussion

A company has an Amazon EC2 deployment that has the following architecture:
✑ An application tier that contains 8 m4.xlarge instances
✑ A Classic Load Balancer
✑ Amazon S3 as a persistent data store
After one of the EC2 instances fails, users report very slow processing of their requests. A Solutions Architect must recommend design changes to maximize system reliability. The solution must minimize costs.
What should the Solutions Architect recommend?

  • A. Migrate the existing EC2 instances to a serverless deployment using AWS Lambda functions
  • B. Change the Classic Load Balancer to an Application Load Balancer
  • C. Replace the application tier with m4.large instances in an Auto Scaling group
  • D. Replace the application tier with 4 m4.2xlarge instances
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
sb333
Highly Voted 3 years, 8 months ago
C looks to be the best answer IMO. This is a capacity issue. Losing one EC2 instance resulted in reduced performance. What's needed is the benefits of an Auto Scaling group. You can scale out when needed and scale in as well (during off-peak hours, for example). Also, changing the size of the server can help with costs. You can scale out and in with smaller increments of capacity at a time. So I don't see an issue with the instance size change. Nothing in this question points to an issue with CLB. Yes, AWS is encouraging people to move to ALB, but CLB is not the cause of the issue here. Having an ALB would not have avoided the issue being experienced.
upvoted 31 times
Smart
3 years, 8 months ago
Agreed. The main problem is capacity that is fixed with ASG. It also helps reduce instance cost. A (Invalid): CLB cannot trigger Lambda functions - ALB can. Otherwise, good choice. B & D(Invalid): Doesn't resolve capacity issue or auto-healing (achieved by ASG)
upvoted 3 times
...
...
donathon
Highly Voted 3 years, 8 months ago
By default, connection draining is enabled for Application Load Balancers but must be enabled for Classic Load Balancers. When Connection Draining is enabled and configured, the process of deregistering an instance from an Elastic Load Balancer gains an additional step. For the duration of the configured timeout, the load balancer will allow existing, in-flight requests made to an instance to complete, but it will not send any new requests to the instance. During this time, the API will report the status of the instance as InService, along with a message stating that “Instance deregistration currently in progress.” Once the timeout is reached, any remaining connections will be forcibly closed. https://docs.aws.amazon.com/autoscaling/ec2/userguide/attach-load-balancer-asg.html https://aws.amazon.com/blogs/aws/elb-connection-draining-remove-instances-from-service-with-care/
upvoted 21 times
awsgcpazure
3 years, 8 months ago
Wow, amazing! Your comments are very helpful.
upvoted 2 times
...
awspro
3 years, 8 months ago
So, Ans is B?
upvoted 1 times
...
awspro
3 years, 8 months ago
Ah~ got it. ELB + auto scaling yeah. thank you
upvoted 2 times
...
donathon
3 years, 8 months ago
Yes answer is B. A: There is no sufficient information to say if the app can be replaced using Lambda. C\D: There is no indication to say this is a load issue.
upvoted 8 times
shammous
3 years, 7 months ago
This is a reliability issue: "After one of the EC2 instances fails --> slowness". This means that the current setting is not elastic to replace the failed instances and scale according to the load. ASG is the solution for that. C is the best option here. B is really irrelevant.
upvoted 4 times
...
...
...
evargasbrz
Most Recent 2 years, 5 months ago
Selected Answer: C
C looks ok. I got it, It's a performance issue, so only ALB will solve this!
upvoted 2 times
...
DarthYoda
2 years, 6 months ago
Selected Answer: C
C looks good. Q says "maximize system reliability.", the issue is with one of the instances failing, and we know autoscaling will immediately remediate this when one instance is lost
upvoted 1 times
...
dmscountera
2 years, 8 months ago
Selected Answer: C
Based on all comments
upvoted 1 times
...
tomosabc1
2 years, 8 months ago
Selected Answer: C
@sb333's explanation clearly shows that the answer should be C.
upvoted 1 times
...
Sizuma
2 years, 9 months ago
B SURE
upvoted 1 times
...
Guoxian
2 years, 9 months ago
what i do not get for C is how come a m4.large is more capable than m4.xlarge? I meant, I have chosen B. Then again, B isn't the best, either. This entire question has a lot of assumptions in it. If there is a capacity issue by loosing a m4.xlarge, by replacing the entire fleet of m4.xlarge with something less capable, wouldn't cause similar problem, too?
upvoted 1 times
Aum
2 years, 7 months ago
I guess the keyword is AutoScaling.. even when the instance type is lower in spec but it can scale up automatically
upvoted 1 times
...
...
astalavista1
2 years, 9 months ago
Selected Answer: C
The scaling issue has nothing to do with intermittent session issues or users being logged off after an instance fails. The answer has to be C, not B.
upvoted 1 times
...
AzureDP900
3 years, 6 months ago
requests processing slow don't have any relation with ALB vs Classic LB, it is capacity issue so C is right answer
upvoted 5 times
...
andylogan
3 years, 7 months ago
It's C
upvoted 1 times
...
AWSum1
3 years, 7 months ago
C Think of it this way. If 2 instances fail, processing is gonna get slower. The CLB will still direct traffic to the instances. If it was latency or SNI needed than, an ALB would satisfy the answer
upvoted 1 times
...
tgv
3 years, 7 months ago
CCC ---
upvoted 2 times
...
WhyIronMan
3 years, 7 months ago
I'll go with C
upvoted 4 times
...
kuroro
3 years, 7 months ago
I think the answer is C. Because the use of Classic Load Balancer is a pre-requisite, which means the application is using EC2-Classic Network instead of VPC, hence this rule out the use of ALB.
upvoted 1 times
...
Akhil254
3 years, 7 months ago
B,C correct
upvoted 1 times
...
Kopa
3 years, 7 months ago
key word reduce cost and improve reability, both direct me to go for C.
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 ...