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 200 discussion

A company has an application that posts messages to Amazon SQS. Another application polls the queue and processes the messages in an I/O-intensive operation. The company has a service level agreement (SLA) that specifies the maximum amount of time that can elapse between receiving the messages and responding to the users. Due to an increase in the number of messages, the company has difficulty meeting its SLA consistently.
What should a solutions architect do to help improve the application's processing time and ensure it can handle the load at any level?

  • A. Create an Amazon Machine Image (AMI) from the instance used for processing. Terminate the instance and replace it with a larger size.
  • B. Create an Amazon Machine Image (AMI) from the instance used for processing. Terminate the instance and replace it with an Amazon EC2 Dedicated Instance.
  • C. Create an Amazon Machine image (AMI) from the instance used for processing. Create an Auto Scaling group using this image in its launch configuration. Configure the group with a target tracking policy to keep its aggregate CPU utilization below 70%.
  • D. Create an Amazon Machine Image (AMI) from the instance used for processing. Create an Auto Scaling group using this image in its launch configuration. Configure the group with a target tracking policy based on the age of the oldest message in the SQS queue.
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
manoj101
Highly Voted 3 years, 9 months ago
D is correct as the SLA is based on the age of the message.
upvoted 48 times
...
rimi
Highly Voted 3 years, 9 months ago
Agreee with D
upvoted 11 times
...
Uzbekistan
Most Recent 1 year, 3 months ago
Selected Answer: C
C. Create an Amazon Machine image (AMI) from the instance used for processing. Create an Auto Scaling group using this image in its launch configuration. Configure the group with a target tracking policy to keep its aggregate CPU utilization below 70%. By creating an AMI from the existing instance and configuring an Auto Scaling group with a target tracking policy based on CPU utilization, the system can automatically scale out by launching additional instances when the CPU utilization exceeds the threshold. This ensures that the system can handle increased load by dynamically adding resources as needed to meet performance requirements. Additionally, using a target tracking policy based on CPU utilization is a common approach for scaling applications as it provides a simple and effective way to manage resource allocation based on system demand.
upvoted 1 times
...
Uzbekistan
1 year, 3 months ago
Selected Answer: C
Option D suggests creating an Auto Scaling group with a target tracking policy based on the age of the oldest message in the SQS queue. While this approach might seem intuitive, it may not be the most effective way to scale the processing infrastructure. Using the age of the oldest message in the SQS queue as a scaling metric could lead to unpredictable scaling behavior. For example, if there is a sudden spike in message processing time due to a temporary increase in workload or an unexpected issue, the scaling action triggered by the age of the oldest message may not be able to respond quickly enough to address the performance degradation. D - is not correct
upvoted 1 times
...
Sachin032
2 years, 4 months ago
C is the right answer can configure ASG based on CPU Utilization
upvoted 1 times
...
slcheng
2 years, 11 months ago
Selected Answer: D
Agreed with D
upvoted 1 times
...
kpallivishal
3 years, 1 month ago
D - thanks that many agree on this too
upvoted 1 times
...
GBAU
3 years, 1 month ago
A&B clearly wrong as they don't "manage any level of load". Between C&D: Being I/O intensive (assume disk I/O here), CPU usage could still be quite low but the queue is getting very long as it is disk I/O constrained, not CPU constrained, so it wouldn't scale up with C. Makes D correct
upvoted 4 times
...
nehaxlpb
3 years, 2 months ago
Selected Answer: D
D is correct as the SLA is based on the age of the message.
upvoted 1 times
...
gargaditya
3 years, 7 months ago
Answer is D. SLA hampered due to no of messages/ageing messages ,use this instead of CPU to track (C vs D) Only concern is whether the custom metric is supported in the first place? A does not do any dynamic scaling, not a feasible option over C/D. B has no relevance /dedicated instance implies its launched on a host reserved for the organization(cannot control placement). Does not help address the rise in message volume. Organisation may not even have this option purchased.
upvoted 2 times
...
Jonfernz
3 years, 8 months ago
D makes the most sense obviously. This solution isn't part of any of the given answers --- but wouldnt a FIFO address the issue and meet SLA requirement?
upvoted 3 times
...
woke
3 years, 8 months ago
D. Create an Amazon Machine Image (AMI) from the instance used for processing. Create an Auto Scaling group using this image in its launch configuration. Configure the group with a target tracking policy based on the age of the oldest message in the SQS queue. D. Create an Amazon Machine Image (AMI) from the instance used for processing. Create an Auto Scaling group using this image in its launch configuration. Configure the group with a target tracking policy based on the age of the oldest message in the SQS queue.
upvoted 3 times
...
dixit_ac
3 years, 8 months ago
Answer D but have limitations with AWS Management Console to get custom metrics Limitations and prerequisites To use this configuration, you need to be aware of the following limitations: You must use the AWS CLI or an SDK to publish your custom metric to CloudWatch. You can then monitor your metric with the AWS Management Console. After publishing your custom metric, you must use the AWS CLI or an SDK to create a target tracking scaling policy with a customized metric specification. https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-using-sqs-queue.html
upvoted 1 times
...
Delooo
3 years, 8 months ago
Correct Answer is D
upvoted 3 times
...
syu31svc
3 years, 8 months ago
A and B are definitely wrong; both do not address the qn of meeting SLA of "maximum amount of time that can elapse" C is also wrong; why 70% and not another metric level percentage? Answer is D
upvoted 4 times
...
KK_uniq
3 years, 8 months ago
Answer is D for sure. https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-using-sqs-queue.html
upvoted 3 times
...
Yogi
3 years, 8 months ago
Answer=D
upvoted 3 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 ...