exam questions

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

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

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

A company is launching an ecommerce website on AWS. This website is built with a three-tier architecture that includes a MySQL database in a Multi-AZ deployment of Amazon Aurora MySQL. The website application must be highly available and will initially be launched in an AWS Region with three Availability
Zones. The application produces a metric that describes the load the application experiences.
Which solution meets these requirements?

  • A. Configure an Application Load Balancer (ALB) with Amazon EC2 Auto Scaling behind the ALB with scheduled scaling.
  • B. Configure an Application Load Balancer (ALB) and Amazon EC2 Auto Scaling behind the ALB with a simple scaling policy.
  • C. Configure a Network Load Balancer (NLB) and launch a Spot Fleet with Amazon EC2 Auto Scaling behind the NLB.
  • D. Configure an Application Load Balancer (ALB) and Amazon EC2 Auto Scaling behind the ALB with a target tracking scaling policy.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
dmscountera
Highly Voted 3 years, 8 months ago
D. Configure an Application Load Balancer (ALB) and Amazon EC2 Auto Scaling behind the ALB with a target tracking scaling policy.
upvoted 38 times
patriktre
3 years, 7 months ago
I still did't get why is could not be a simple scaling (ans B). you dont have to keep your load at specified value, but rather react to provided metrict and raise scale up if it breaches a defined level
upvoted 5 times
JayBro2
3 years, 7 months ago
D is a better choice because it makes use of thist info given in the problem " the application produces a metric that describes the load the application experiences". We can tie the autoscaling to this metric.
upvoted 6 times
gargaditya
3 years, 6 months ago
How can you tie to a custom metric using target tracking?
upvoted 2 times
Ultron00
3 years, 6 months ago
I think D is correct. In a target tracking scaling policy, you can use predefined or customized metrics. You can choose other available Amazon CloudWatch metrics or your own metrics in CloudWatch by specifying a customized metric. You must use the AWS CLI or an SDK to create a target tracking policy with a customized metric. https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-target-tracking.html
upvoted 1 times
...
...
...
Twinkie
3 years, 7 months ago
I honestly don't know. Maybe it's just easier to define a target tracking rather than a simple because with simple scaling you likely want to have a scale in and a scale out policy.
upvoted 3 times
...
andwill1001
3 years, 7 months ago
Because it's what aws recommends you use. Target tracking works better with ASG in order to scale up and also back down once you are back BELOW the target
upvoted 2 times
...
...
...
syu31svc
Highly Voted 3 years, 8 months ago
https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-target-tracking.html: "With target tracking scaling policies, you select a scaling metric and set a target value. Amazon EC2 Auto Scaling creates and manages the CloudWatch alarms that trigger the scaling policy and calculates the scaling adjustment based on the metric and the target value." Answer is D
upvoted 18 times
gargaditya
3 years, 6 months ago
Cant do custom metric(the one that program generates) using Target tracking.
upvoted 2 times
osel
3 years, 4 months ago
Agree that Target Tracking Policy supports only AWS default metric like Avg CPU Util/Avg NW In/Avg NW Out/ALB RequestCountPerTarget, and Simple Scaling Policy supports user created custom metric like CPU Util.
upvoted 1 times
future77
2 years, 11 months ago
You are totally wrong. CPU Util is not a custom metric, it is default for Step and Simple Scaling Policy. And again you are wrong that only policy which supports custom metric is Target Tracking Policy.
upvoted 1 times
...
...
balmo
2 years, 10 months ago
"You can choose other available CloudWatch metrics or your own metrics in CloudWatch by specifying a customized metric." https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-target-tracking.html#:~:text=You%20can%20choose%20other%20available%20CloudWatch%20metrics%20or%20your%20own%20metrics%20in%20CloudWatch%20by%20specifying%20a%20customized%20metric.
upvoted 1 times
...
...
...
qax2022
Most Recent 2 years, 8 months ago
Selected Answer: D
high available
upvoted 1 times
...
Kuro091
2 years, 11 months ago
First off, A and C are out obviously. (No schedule defined and we can't afford to lose data so no Spot Fleet). "The program generates a statistic that indicates the amount of load it is experiencing." => The question became what CUSTOM METRIC works with what scaling policy. Basically, they want us to read "Choosing metric" in this docs https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-target-tracking.html According to this, target scaling policy doesn't work with: ELB "RequestCount" (what the program generates in the question), ELB "Latency", SQS "ApproximateNumberOfMessagesVisible" Answer is B
upvoted 1 times
...
naveenagurjara
2 years, 11 months ago
Selected Answer: D
See the last line: The program generates a statistic that indicates the amount of load it is experiencing. This load will be dynamic and moving.. so TT is better than Simple Scaling.
upvoted 2 times
...
mgari
3 years, 2 months ago
Selected Answer: D
D for me
upvoted 2 times
...
adsdadasdad
3 years, 4 months ago
Selected Answer: D
its d for sure
upvoted 2 times
...
JijoyMai
3 years, 4 months ago
D is correct. "We strongly recommend that you use a target tracking scaling policy to scale on a metric like average CPU utilization or the RequestCountPerTarget metric from the Application Load Balancer."
upvoted 3 times
...
FF11
3 years, 4 months ago
Selected Answer: B
B is correct
upvoted 1 times
...
plaws02
3 years, 6 months ago
Selected Answer: B
B- custom metric in cloud watch that the program produces
upvoted 1 times
...
peterhawk
3 years, 6 months ago
Selected Answer: D
D. "In most cases, a target tracking scaling policy is sufficient to configure your Auto Scaling group to scale out and scale in automatically. A target tracking scaling policy allows you to select a desired outcome and have the Auto Scaling group add and remove instances as needed to achieve that outcome." "If you are scaling based on a utilization metric that increases or decreases proportionally to the number of instances in an Auto Scaling group, we recommend that you use target tracking scaling policies. Otherwise, we recommend that you use step scaling policies." https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scale-based-on-demand.html
upvoted 3 times
...
CHRIS12722222
3 years, 6 months ago
you cn use customised metrics with target tracking scaling policy https://aws.amazon.com/blogs/mt/create-amazon-ec2-auto-scaling-policy-memory-utilization-metric-linux/
upvoted 1 times
...
gargaditya
3 years, 6 months ago
B is correct. Q basically test Autoscaling group policies. Here is quick summary from my notes: https://1drv.ms/w/s!Al2WmWQmp2xZtnVE6Vi7FCyRbFb0?e=mPWAFY A-schedule unknown,so does not fit B-fits as we need to use a custom metric in cludwatch that the program produces C- does not mention the scaling type, but spot fleets are not 'highly available' as requested by question You lose the EC2 and ongoing transaction if your price is less than spot price D-Would fit if the last line regarding program was not mentioned
upvoted 3 times
cloudkarthik
2 years, 11 months ago
"Amazon EC2 Auto Scaling supports target tracking scaling, step scaling, and simple scaling. In a target tracking scaling policy, you can use predefined or customized metrics. You can choose other metrics available in Amazon CloudWatch or you can specify customized metrics in CloudWatch. You must use the AWS CLI or an SDK to create a target tracking policy with a customized metric." Source: https://aws.amazon.com/blogs/mt/create-amazon-ec2-auto-scaling-policy-memory-utilization-metric-linux/
upvoted 1 times
...
...
Jamshif01
3 years, 7 months ago
metrics = target
upvoted 3 times
gargaditya
3 years, 6 months ago
I dont think so, custom metrics are not covered under Target Tracking.
upvoted 1 times
...
...
jkwek
3 years, 7 months ago
Answer is D. https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-target-tracking.html: https://aws.amazon.com/rds/aurora/mysql-features/
upvoted 5 times
...
Res2
3 years, 8 months ago
keyword: The application produces a metric that describes the load
upvoted 4 times
Res2
3 years, 8 months ago
Answer: D
upvoted 3 times
...
...
KK_uniq
3 years, 8 months ago
D is ok
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 ...