AWS Certified Solutions Architect - Professional Exam QuestionsBrowse all questions from this exam

AWS Certified Solutions Architect - Professional Exam - Question 903


A solutions architect is designing a data processing system that will use Amazon EC2 instances. Data that needs to be processed will wait in an Amazon Simple

Queue Service (Amazon SQS) queue. At least two data processing instances must run at all times.

Which combination of actions will meet these requirements MOST cost-effectively? (Choose two.)

Show Answer
Correct Answer: AB

The most cost-effective and reliable combination of actions is to purchase two Reserved Instances and to create a Spot Fleet with an appropriate scaling policy. Reserved Instances ensure that at least two instances are always running, satisfying the requirement of maintaining a minimum of two processing instances. The Spot Fleet, configured with a target scaling policy based on the acceptable backlog per instance, allows for cost-effective scaling by using lower-cost Spot Instances for additional capacity when needed. This allows the system to handle varying workloads efficiently while keeping costs down.

Discussion

24 comments
Sign in to comment
pinhead900Options: BD
Sep 20, 2022

BD is right, 2 instances must run always so get RIs for that + spot fleet to compensate increased traffic

AwsBRFanOptions: AB
Sep 7, 2022

"At least two data processing instances must run at all times." So D does not make sense to me

Cloudxie
Sep 17, 2022

Reserved two instances will always run anyway

[Removed]Options: AB
Oct 10, 2022

A - OK. 2 instances must run at all times. Using spot can cause interruption. Can create custom metrics for Queue backlog per instance: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-using-sqs-queue.html#scale-sqs-queue-cli B - OK. RI is only applicable for on-demand instances - Reserved Instances are not physical instances, but rather a billing discount applied to the use of On-Demand Instances in your account. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-reserved-instances.html Why not B & D? - Option D doesn’t meet requirement of 2 instances must run at all times due to spot interruption. Also RI will be useless since there is no on-demand instances.

joancarles
Oct 17, 2022

It's a combination of actions. With option B, you are covering the basis of two instances running all the time, option D with the spot ASG it's for saving.

redipa
Oct 24, 2022

Both A and D will allow you to have 2 on-demand instances running full time (covered by the RIs bought in 'B') and scale with spot instances. The difference between the answers is the Spot fleet says it scales from the instance backlog while the ASG is scaling from the SQS queue. It's better to scale from the SQS queue, so I would choose B & D.

fredwu66
Oct 21, 2022

the question is asking "combination of actions", so BD.

ByrneyOptions: AB
Nov 9, 2022

AB because D is all spot which doesn't ensure there are always 2 instances are running. Also you need to actually have 2 on-demand instances running for the reserved instance discount in B to kick in - purchasing reserved instances alone doesn't result in anything running. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-reserved-instances.html Reserved Instances are not physical instances, but rather a billing discount applied to the use of On-Demand Instances in your account.

evargasbrzOptions: AB
Jan 4, 2023

I'll go with A and B. RI for 2 + Spots B and D make no sense. RI for nothing + Spots

akash_itOptions: BD
Sep 28, 2022

BD is correct

dcdcdc3
Oct 7, 2022

for B and D https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html

wassbOptions: AB
Oct 17, 2022

Great explanation caveman712. The combination of action is : A- You request 2 on demand instances + additional capacity with Spot B- You take RI for the 2 on demand instances.

yama234
Apr 13, 2023

BD https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html#capacity-optimized-aws-cli

JesuisleonOptions: AB
May 27, 2023

D is wrong. If you choose B,D, then you have two reserved instances and auto scaling group which manages spot instances. So why you need set minimum value to 2 for the spot instances taking account that you already have two reserved instances. it should set to 0. So A and B are right

ggrodskiy
Jul 17, 2023

Correct ab

fdoxxx
Oct 24, 2022

A, B - this is the question about allocation strategy - more can be found here: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html

ToanVN1988Options: AB
Oct 27, 2022

My choice is A&B

sindraOptions: AB
Oct 29, 2022

D is not correct because the instance must be available anytime.. so A B is the preferable

mrgreatness
Nov 11, 2022

BD 100%

LrdKanien
Nov 14, 2022

The key word is "combination of actions" and "cost effectively". RIs for the 2 you must have and spot for the rest.

hobokaboboOptions: BD
Apr 4, 2023

2 always available rest spot. D vrs A: D uses SQS for scaling which makes sense. We end up with 2 RI + Spot as needed and available.

hobokabobo
Apr 4, 2023

Its again wording and dicing for the answers... 2 RI plus rest spot and we probably want to utilize sqs queue length for scaling. Could be both: maybe AB, maybe BD. Dice it. One need to be psychic to know how to interpret the answers. Yes, order two RI to not used them makes no sense: exactly.

dev112233xxOptions: BD
Apr 29, 2023

BD better than AB

SkyZeroZxOptions: BD
Jul 10, 2023

BD is right, 2 instances must run always so get RIs for that + spot fleet to compensate increased traffic

AnonymousOptions: AC
Sep 3, 2023

AC gives the option of going for spot instances and the facility to launch EC2 incase of spot not being available. Purchasing reserved instances won't save cost in this case

Anonymous
Sep 3, 2023

my bad.. it must be BD

3a632a3Options: AB
Jan 7, 2024

spot fleets allow you to select on demand capacity and set target tracking using CW metrics. "A" also specifies that target tracking is set to an acceptable backlog. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/on-demand-in-spot.html https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-target-tracking.html D is incorrect as you are setting the minimum value for spot to 2 rather than 0. It also states that scaling will be set to the size of the queue which I interpret as 1 instance to 1 message which seems a bit excessive and may be costly unless processing time per message is large.

WhyIronManOptions: AB
Jul 15, 2024

A,B is optimal for costs, as D is fixing the autoscale to always have 2 other spots... so the reserved instances are for what?