Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AWS Certified Solutions Architect - Associate SAA-C02 topic 1 question 40 discussion

A company runs an internal browser-based application. The application runs on Amazon EC2 instances behind an Application Load Balancer. The instances run in an Amazon EC2 Auto Scaling group across multiple Availability Zones. The Auto Scaling group scales up to 20 instances during work hours, but scales down to
2 instances overnight. Staff are complaining that the application is very slow when the day begins, although it runs well by mid-morning.
How should the scaling be changed to address the staff complaints and keep costs to a minimum?

  • A. Implement a scheduled action that sets the desired capacity to 20 shortly before the office opens.
  • B. Implement a step scaling action triggered at a lower CPU threshold, and decrease the cooldown period.
  • C. Implement a target tracking action triggered at a lower CPU threshold, and decrease the cooldown period.
  • D. Implement a scheduled action that sets the minimum and maximum capacity to 20 shortly before the office opens.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Reference:
https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-simple-step.html

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
BorisT
Highly Voted 2 years, 8 months ago
Answers A & D are incorrect because the question states to keep costs to a minimum. This means, NOT running 20 instances from the start. Answers B & C are both a better options. The problem in the morning is not that there should have been 20 instances running and that they are not running. The problem is that the auto scaling is not responding fast enough to the increase in demand. That is why decreasing the cool down period will make the auto scaling more aggressive (and responsive) but will still run less than 20 instances from the get go, and therefore will cost less money. Also, AWS recommends using target scaling as much as possible. https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-simple-step.html “We strongly recommend that you use a target tracking scaling policy to scale on...” So between B & C, the recommend AWS option is answer C.
upvoted 107 times
Liou
2 years, 7 months ago
It has to be between B and C since it involves the cool down period.
upvoted 2 times
Elliea
2 years, 6 months ago
At night ... It's A b/c you know the capacity need and IF for some reason you need more, a "max limit" shouldn't be set at 20.
upvoted 1 times
...
...
Goozian
2 years, 6 months ago
what if App. is suffering from lack of RAM or disk ?!
upvoted 1 times
...
done7
2 years, 5 months ago
Answer is B; pay attention to "lower", For Target Tracking, you cannot use Target tracking this type of policy assumes that it should scale out your Auto Scaling group when the specified metric is above the target value. You cannot use a target tracking scaling policy to scale out your Auto Scaling group when the specified metric is below the target value.
upvoted 2 times
...
DriVen
2 years, 1 month ago
It wont be a larger cost difference running instances some minutes before the start since they may reach 20 instances any way...its so vague
upvoted 4 times
...
...
malefin280
Highly Voted 2 years, 8 months ago
why not A, since our main issue is the time, hence we schedule to solve the issue
upvoted 65 times
Nitin_4003
2 years, 7 months ago
But that would not bring the cost down. It might increase the performance
upvoted 3 times
...
aguy9
2 years, 7 months ago
Yes I agree with A. Obviously it’s taking some time for the ASG to scale out when usage increases in the morning, so a scheduled scaling policy will make sure it’s ready to cope with the workload when the work day starts.
upvoted 9 times
...
phaniawst
2 years, 7 months ago
It needs scheduled scaling shortly before office opens, Scheduling leaves us with A and D. A is more accurate as it tells you what exactly is needed then telling the limit.
upvoted 12 times
...
s4siddiqui
2 years, 8 months ago
B makes more sense according to requirement..... keep cost to minimum....... step scaling
upvoted 5 times
...
...
GB32
Most Recent 4 weeks, 1 day ago
Also just to note this is a multi AZ situation! have a think of that as well.
upvoted 1 times
...
GB32
4 weeks, 1 day ago
I agree that this action should be scheduled, as they mention they need performance when people start using this internal application, this again comes down to the company if this is application provides value for them then they will spend no matter the cost if they want their staff to be able to perform their jobs,,, especially if this a highly used application. end of story lol
upvoted 1 times
...
Uzbekistan
2 months, 2 weeks ago
Selected Answer: B
Option B suggests implementing a step scaling action triggered at a lower CPU threshold and decreasing the cooldown period. This approach allows the Auto Scaling group to dynamically adjust the number of instances based on CPU utilization. By scaling up the number of instances proactively when CPU utilization starts to increase, the application can better handle the workload during peak hours, potentially addressing the staff complaints about slowness. Moreover, decreasing the cooldown period allows the Auto Scaling group to scale more responsively, ensuring faster adjustments to workload changes. This option not only addresses the staff complaints but also aims to optimize costs by scaling the instances based on actual demand.
upvoted 1 times
...
Sumith4112
6 months, 1 week ago
Selected Answer: C
I think C
upvoted 1 times
...
SebastianBar
7 months, 3 weeks ago
Selected Answer: C
A/D are constly. C is recommended by AWS even in referenced document.
upvoted 1 times
...
rust7
10 months, 2 weeks ago
C is correct
upvoted 1 times
...
Frankie193
1 year, 2 months ago
Selected Answer: C
While that doesn't sound like a good use case for scheduled action, both responses using scheduled action have 20 instances running regardless of the actual need. A cost-effective option is to use an action track target that launches every time the CPU goes low. In this scenario scaling will occur before CPU utilization drops to a point where performance begins to suffer. The result will solve performance problems while reducing costs. Using a reduced cooldown period also helps to quickly terminate unnecessary instances, further reducing costs.
upvoted 1 times
PurplePanda
1 year ago
C. [triggered at a lower CPU threshold], and decrease the cooldown period. 1> Reducing CPU threshold itself will increase costs massively. More instances will power on as a result of this, higher costs. 2> decreasing cooldown period will fire the instances faster, but that still doesn't eliminate the time needed to initialize an instance. Meaning users will still be unhappy (though less severe). Essentially with 'C' you will neither reduce costs nor solve user experience issues.
upvoted 1 times
...
...
gaddour_med
1 year, 3 months ago
Selected Answer: A
it can not be B or C. becaue if for example we use target scaling based of low CPU usage. this ploicy will work all teh time. and we will have many instances running all over the day with low CPU usage. on the other hand using schedule policy for short period is most cost effective then it resumes normal scaling cpu value.
upvoted 1 times
...
sidzan
1 year, 4 months ago
Selected Answer: C
C, keep the cost low and decrease cool down to spin up machines faster. The keyword is cost. Spinning 20 ec2 instance at the beginning of the day unnecessarily increases cost. Users will not complain as we are monitoring cpu and spinning up machines quickly.
upvoted 2 times
...
MassieMan
1 year, 5 months ago
The answer is C. Target tracking scaling helps to improve application availability and reduce costs. For example, you can use Auto Scaling to automatically launch EC2 instances for your Auto Scaling group when demand increases to help maintain performance, and terminate instances when demand drops to save money. https://aws.amazon.com/about-aws/whats-new/2017/07/introducing-target-tracking-scaling-policies-for-auto-scaling/
upvoted 1 times
...
arseyam
1 year, 7 months ago
Selected Answer: A
A is the answer due to many things: - The question never mentioned that the auto scaling is happening because of CPU utilization, it could be anything else like RAM or Network throughput. so assuming that CPU is the reason to scale out is wrong. - We know the desired number of instances that keeps the application running in a good performance so making a scheduled rule to initialize this number of instances when the office starts makes sense. - Those who say we should scale gradually didn't fix the main issue which is the application is slow at when work starts hence the number of instances are not enough.
upvoted 5 times
...
Patrick123123111
1 year, 7 months ago
Selected Answer: C
C should be the answer
upvoted 1 times
...
17Master
1 year, 8 months ago
Target tracking scaling policies = can then scale out your group (add more instances). Step and simple scaling policies = Metrics that decrease when capacity increases and increase when capacity decreases can be used to proportionally. ********************* There is an objective tracking scaling, the idea is to improve with the cooldown period.
upvoted 1 times
...
rac_sp
1 year, 8 months ago
Selected Answer: A
Answer is A. If we go with C and scale out using a little CPU threshold maybe in the Full use the ASG can scale out to more than 20 instances. For example. I know that the workload runs fine with 50% CPU using 20 instances. If I configure to autoscale to scale out with more than 30% use of CPU to satisfy users in the morning then during the mid day probably I will have 22 or 23 instances running. So the cost will go UP. Did you get it ?
upvoted 2 times
...
AmazingAWS
1 year, 9 months ago
Ans is A. EC2 cooldown by default is just 300s/5mins, will this make big difference to stop the staff complains? I don't think so. However, in the question statement itself already told the ASG will scale up to 20 in the work hours. Right now option A is just move the open hour bit earlier. I think the correct ans is A.
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 ...