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

Exam AWS Certified Solutions Architect - Associate SAA-C03 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C03 exam

Exam AWS Certified Solutions Architect - Associate SAA-C03 topic 1 question 297 discussion

A company deploys an application on five Amazon EC2 instances. An Application Load Balancer (ALB) distributes traffic to the instances by using a target group. The average CPU usage on each of the instances is below 10% most of the time, with occasional surges to 65%.

A solutions architect needs to implement a solution to automate the scalability of the application. The solution must optimize the cost of the architecture and must ensure that the application has enough CPU resources when surges occur.

Which solution will meet these requirements?

  • A. Create an Amazon CloudWatch alarm that enters the ALARM state when the CPUUtilization metric is less than 20%. Create an AWS Lambda function that the CloudWatch alarm invokes to terminate one of the EC2 instances in the ALB target group.
  • B. Create an EC2 Auto Scaling group. Select the existing ALB as the load balancer and the existing target group as the target group. Set a target tracking scaling policy that is based on the ASGAverageCPUUtilization metric. Set the minimum instances to 2, the desired capacity to 3, the maximum instances to 6, and the target value to 50%. Add the EC2 instances to the Auto Scaling group.
  • C. Create an EC2 Auto Scaling group. Select the existing ALB as the load balancer and the existing target group as the target group. Set the minimum instances to 2, the desired capacity to 3, and the maximum instances to 6. Add the EC2 instances to the Auto Scaling group.
  • D. Create two Amazon CloudWatch alarms. Configure the first CloudWatch alarm to enter the ALARM state when the average CPUUtilization metric is below 20%. Configure the second CloudWatch alarm to enter the ALARM state when the average CPUUtilization matric is above 50%. Configure the alarms to publish to an Amazon Simple Notification Service (Amazon SNS) topic to send an email message. After receiving the message, log in to decrease or increase the number of EC2 instances that are running.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
bdp123
Highly Voted 1 year, 8 months ago
Selected Answer: B
Just create an auto scaling policy
upvoted 15 times
...
vilagiri
Most Recent 1 year ago
I picked B.. I am not 100% sure..The application is deployed in 5 instances initially. What is the logic behind 2/3/6 ASG. Because utilization is 10%, we can set min 2? I know for sure I am not going to get this ASG question correct in the exam.
upvoted 3 times
...
Guru4Cloud
1 year, 1 month ago
Selected Answer: B
The correct answer is B. This solution will meet the requirements because it will: Automate the scalability of the application by using EC2 Auto Scaling. Optimize the cost of the architecture by only scaling the number of EC2 instances up when needed. Ensure that the application has enough CPU resources when surges occur by setting the target value of the target tracking scaling policy to 50%.
upvoted 2 times
...
ajchi1980
1 year, 3 months ago
Wrong answers: Options A, C, and D are not the most appropriate solutions: Option A suggests creating a CloudWatch alarm to terminate an EC2 instance when CPU utilization is less than 20%. However, this approach does not ensure that the application will have enough CPU resources during surges, as it only terminates instances when CPU utilization is low, which may not meet the requirements. Option C suggests creating an Auto Scaling group without any specific scaling policies or configurations. This approach does not address the need for automated scaling based on CPU utilization, making it insufficient for the given requirements. Option D suggests using CloudWatch alarms to send notifications via Amazon SNS and manually adjusting the number of instances based on the received messages. This approach lacks automation and requires manual intervention, which does not optimize cost or meet the requirement of automated scalability. Therefore, Option B is the most appropriate solution in this case.
upvoted 2 times
...
ajchi1980
1 year, 3 months ago
Selected Answer: B
Explanation: Option B leverages EC2 Auto Scaling, which is designed to automatically adjust the number of instances based on specified metrics. By setting a target tracking scaling policy based on average CPU utilization, the Auto Scaling group can dynamically scale the number of instances to maintain the desired level of CPU resources. The minimum instances of 2 ensure a minimum baseline capacity, while the desired capacity of 3 ensures at least three instances are running even during normal traffic. The maximum instances of 6 cap the upper limit to control costs.
upvoted 2 times
...
RoroJ
1 year, 4 months ago
Selected Answer: D
Auto Scaling group must have an AMI for it.
upvoted 1 times
pentium75
9 months, 3 weeks ago
"After receiving the message, log in to decrease or increase the number of EC2 instances that are running" does surely not "automate the scalability".
upvoted 2 times
...
...
th3k33n
1 year, 5 months ago
how can we set max to 6 since the company is using 5 ec2 instance
upvoted 1 times
examtopictempacc
1 year, 5 months ago
In the scenario you provided, you're setting up an Auto Scaling group to manage the instances for you, and the settings (min 2, desired 3, max 6) are for the Auto Scaling group, not for your existing instances. When you integrate the instances into the Auto Scaling group, you are effectively moving from a fixed instance count to a dynamic one that can range from 2 to 6 based on the demand. The existing 5 instances can be included in the Auto Scaling group, but the group can reduce the number of instances if the load is low (to the minimum specified, which is 2 in this case) and can also add more instances (up to a maximum of 6) if the load increases.
upvoted 2 times
...
...
kruasan
1 year, 5 months ago
Selected Answer: B
Reasons: • An Auto Scaling group will automatically scale the EC2 instances to match changes in demand. This optimizes cost by only running as many instances as needed. • A target tracking scaling policy monitors the ASGAverageCPUUtilization metric and scales to keep the average CPU around the 50% target value. This ensures there are enough resources during CPU surges. • The ALB and target group are reused, so the application architecture does not change. The Auto Scaling group is associated to the existing load balancer setup. • A minimum of 2 and maximum of 6 instances provides the ability to scale between 3 and 6 instances as needed based on demand. • Costs are optimized by starting with only 3 instances (the desired capacity) and scaling up as needed. When CPU usage drops, instances are terminated to match the desired capacity.
upvoted 2 times
kruasan
1 year, 5 months ago
Option A - terminates instances reactively based on low CPU and may not provide enough capacity during surges. Does not optimize cost. Option C - lacks a scaling policy so will not automatically adjust capacity based on changes in demand. Does not ensure enough resources during surges. Option D - requires manual intervention to scale capacity. Does not optimize cost or provide an automated solution.
upvoted 1 times
...
...
darn
1 year, 5 months ago
as you dig down the question, they get more and more bogus with less and less votes
upvoted 1 times
...
Steve_4542636
1 year, 7 months ago
Selected Answer: B
B is my vote
upvoted 1 times
...
KZM
1 year, 7 months ago
Based on the information given, the best solution is option"B". Autoscaling group with target tracking scaling policy with min 2 instances, desired capacity to 3, and the maximum instances to 6.
upvoted 1 times
Shrestwt
1 year, 6 months ago
But the company is using only 5 EC2 Instances so how can we set maximum instance to 6.
upvoted 2 times
pentium75
9 months, 3 weeks ago
"Create an EC2 Auto Scaling group" includes replacing your existing EC2 instances with a launch configuration that starts and stops instances automatically.
upvoted 1 times
...
...
...
LuckyAro
1 year, 7 months ago
Selected Answer: B
B is the correct solution because it allows for automatic scaling based on the average CPU utilization of the EC2 instances in the target group. With the use of a target tracking scaling policy based on the ASGAverageCPUUtilization metric, the EC2 Auto Scaling group can ensure that the target value of 50% is maintained while scaling the number of instances in the group up or down as needed. This will help ensure that the application has enough CPU resources during surges without overprovisioning, thus optimizing the cost of the architecture.
upvoted 1 times
...
Babba
1 year, 7 months ago
Selected Answer: B
Should be 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 ...