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

A company has an application that uses overnight digital images of products on store shelves to analyze inventory data. The application runs on Amazon EC2 instances behind an Application Load Balancer (ALB) and obtains the images from an Amazon S3 bucket for its metadata to be processed by worker nodes for analysis. A solutions architect needs to ensure that every image is processed by the worker nodes.
What should the solutions architect do to meet this requirement in the MOST cost-efficient way?

  • A. Send the image metadata from the application directly to a second ALB for the worker nodes that use an Auto Scaling group of EC2 Spot Instances as the target group.
  • B. Process the image metadata by sending it directly to EC2 Reserved Instances in an Auto Scaling group. With a dynamic scaling policy, use an Amazon CloudWatch metric for average CPU utilization of the Auto Scaling group as soon as the front-end application obtains the images.
  • C. Write messages to Amazon Simple Queue Service (Amazon SQS) when the front-end application obtains an image. Process the images with EC2 On- Demand instances in an Auto Scaling group with instance scale-in protection and a fixed number of instances with periodic health checks.
  • D. Write messages to Amazon Simple Queue Service (Amazon SQS) when the application obtains an image. Process the images with EC2 Spot Instances in an Auto Scaling group with instance scale-in protection and a dynamic scaling policy using a custom Amazon CloudWatch metric for the current number of messages in the 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
iking
Highly Voted 3 years, 8 months ago
Non-critical overnight workload is SPOT. Since the question says overnight, we will assume its non critical specially its just inventory, they can redo it again, so it must be A or D only. It needs SQS messaging for the worker node, so its D then.
upvoted 45 times
cnmc
3 years, 8 months ago
Also, another point is, how exactly do you achieve scale in protection with spot instance?
upvoted 4 times
lehoang15tuoi
3 years, 7 months ago
This. I don't know how these people study... Spot instances are cheap because they are meant to be taken away at any given moment...
upvoted 2 times
...
DS01
3 years, 7 months ago
Looks like we cannot. Instance scale-in protection does not protect Auto Scaling instances from the following: Manual termination through the Amazon EC2 console, the terminate-instances command, or the TerminateInstances action. To protect Auto Scaling instances from manual termination, enable Amazon EC2 termination protection. For more information, see Enabling termination protection in the Amazon EC2 User Guide for Linux Instances. Health check replacement if the instance fails health checks. For more information, see Health checks for Auto Scaling instances. To prevent Amazon EC2 Auto Scaling from terminating unhealthy instances, suspend the ReplaceUnhealthy process. For more information, see Suspending and resuming a process for an Auto Scaling group. Spot Instance interruptions. A Spot Instance is terminated when capacity is no longer available or the Spot price exceeds your maximum price.
upvoted 3 times
...
...
TollaMS
3 years, 8 months ago
It doesn't say non critical please read the question
upvoted 2 times
...
manan728
3 years, 7 months ago
Needs to guarantee that worker nodes process all the images. So spot instances are out. C it is.
upvoted 9 times
done7
3 years, 6 months ago
that is why we have SQS
upvoted 7 times
...
...
cnmc
3 years, 8 months ago
In my real experiences, overnight doesn't mean non-critical... Most of the times the jobs we do overnight are CRITICAL, we just do it away from business hours as to reduce the impact on business systems as much as possible. As for the question itself, I'm not sure what "analyze inventory" means, but I can assure you that anything related to "inventory" is never not-critical... It's what your company has and has-to-have to keep operating and turn a profit, isn't it? Imagine meeting the COO on Wednesday and telling him that "ok our inventory analysis is from Monday because the overnight inventory analysis last night failed"... Is that good?
upvoted 13 times
vvsandipvv
3 years, 7 months ago
Do you think the question setter will learn from your experience? or just go with question keyword "most cost effecient"? what is the purpose of this keyword then tell?
upvoted 1 times
...
rlnd2000
3 years, 7 months ago
is not Inventory critical? lol imagine for a moment Wall Mart running out of products because not spot instances are available they don't know the current Inventory no new orders.
upvoted 3 times
...
...
...
yuryukjtu
Highly Voted 3 years, 8 months ago
D https://aws.amazon.com/vi/blogs/compute/running-cost-effective-queue-workers-with-amazon-sqs-and-amazon-ec2-spot-instances/
upvoted 33 times
ShortCircuit_1984
3 years, 7 months ago
Perfect example. Thanks!
upvoted 2 times
...
MarianoD
3 years, 7 months ago
Excellent explain. I'm convinced now that answer is D. Before I've got C, but after read this article I've got D.
upvoted 1 times
...
...
sassy2023
Most Recent 2 years, 4 months ago
Selected Answer: C
C is correct and the only option which ensure metadata get process by worker node. D is cheap but subjective to spot availability/interruption for metadata processing. https://aws.amazon.com/vi/blogs/compute/running-cost-effective-queue-workers-with-amazon-sqs-and-amazon-ec2-spot-instances/
upvoted 1 times
...
slcheng
2 years, 10 months ago
Selected Answer: D
Spot Instance for cost saving
upvoted 1 times
...
giandelv
2 years, 10 months ago
All explanations are misleading. The strong doubts are between C (on demand) instance and D (spot instance in auto scaling). Perhaps D wins, despite the phrase "must guarantee that worker nodes process each picture" because all images to process are stored in S3. So we could assume that it's a batch processing that could use spot instances (MOST cost effective) and, in case of maximum SQS retention (14 days) it' enough to re-process the missing images still in S3 when the spot instance are available again. So something that read images from S3, write them in SQS and process by Spot Instances in Auto scaling. If something go wrong it's possible to read again missing images from S3. In any case, I expect that on the exam such a question will be written much better
upvoted 1 times
...
cyno88
3 years ago
Selected Answer: D
READ THIS ARTICLE : https://aws.amazon.com/vi/blogs/compute/running-cost-effective-queue-workers-with-amazon-sqs-and-amazon-ec2-spot-instances/
upvoted 3 times
...
reve666
3 years, 1 month ago
Selected Answer: D
Answer is D
upvoted 2 times
...
momedkri117
3 years, 4 months ago
Selected Answer: D
guuuys it's D
upvoted 1 times
...
sayed
3 years, 4 months ago
Selected Answer: D
A solutions architect must guarantee that worker nodes process each picture ---> we use queue to keep messages so A & B is out met in the MOST cost-effective manner possible --------> Spot instances cheaper than on-demand
upvoted 2 times
...
luckybme
3 years, 4 months ago
Selected Answer: D
If the load is critical, there is a chance of all the spot instances in a group being terminated because of the demand. The ideal would be to have a mix of on-demand/Reserved instances and spot instances in an auto scaling group. But since that's not an option, D is the next best option which checks most of the boxes required by the question, according to the link that someone posted in the comments. https://aws.amazon.com/vi/blogs/compute/running-cost-effective-queue-workers-with-amazon-sqs-and-amazon-ec2-spot-instances/
upvoted 2 times
...
rav009
3 years, 5 months ago
Selected Answer: D
The keyword is "MOST cost-effective manner" So you use SQS to make sure the message will never lose, you can use spot instance to cut cost. So D
upvoted 2 times
rav009
3 years, 5 months ago
Even spot instances were shut down automatically, the SQS will ensure the picture will be processed eventually.
upvoted 1 times
...
...
Shiner
3 years, 6 months ago
I picked B and I stick by it. It's the most cost-effective solution. Directly to autoscaled EC2s ensures the image is always processed and it's using reserved instances which also saves a lot of money. Don't over complicate it!!
upvoted 1 times
...
done7
3 years, 6 months ago
Answer is D "a custom Amazon CloudWatch metric for the current number of messages in the queue. " it is a right way to scale
upvoted 1 times
...
cannottellname
3 years, 6 months ago
DDDDDDDDDD
upvoted 1 times
...
gargaditya
3 years, 6 months ago
D. A-spot instances can be lost moment spot price crossed our fixed price--no 'guarantee'(even if ASG spins new instance,that particulat job is lost) B-fits,but RIs mean we are still paying irrespective of what ASG does C-fits (less scalable/more costly as only doing protection, not auto scaling using policy) D- best option, SQS has the concept where consumer(workers)must manually delete the message post processing. If Spot instance gets lost,job is still intact.
upvoted 5 times
...
jnxtx
3 years, 6 months ago
Selected Answer: C
C - C makes sure that each and every image is processed. Not using Spot ensures that none are missed.
upvoted 3 times
...
wonderbeak
3 years, 6 months ago
D - cause of https://aws.amazon.com/blogs/compute/running-cost-effective-queue-workers-with-amazon-sqs-and-amazon-ec2-spot-instances/ Applications can minimize the impact of a Spot Instance interruption. To do so, an application catches the two-minute interruption notification (available in the instance’s metadata), and instructs itself to stop fetching jobs from the queue. If there’s an image still being processed when the two minutes expire and the instance is terminated, the application does not delete the message from the queue after finishing the process. Instead, the message simply becomes visible again for another instance to pick up and process after the Amazon SQS visibility timeout expires. Alternatively, you can release any ongoing job back to the queue upon receiving a Spot Instance interruption notification by setting the visibility timeout of the specific message to 0. This timeout potentially decreases the total time it takes to process the message.
upvoted 1 times
osel
3 years, 4 months ago
What if the entire group of spot instances (with the same bid price) are reclaimed back by AWS due to the set bid price is lower than the hourly purchase price? If this happens, won't the ASG will have no instances at all? If only there is the use of Spot Fleet Spot Block, then may solve this scenerio.
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 ...