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

A company runs a production application on a fleet of Amazon EC2 instances. The application reads the data from an Amazon SQS queue and processes the messages in parallel. The message volume is unpredictable and often has intermittent traffic. This application should continually process messages without any downtime.
Which solution meets these requirements MOST cost-effectively?

  • A. Use Spot Instances exclusively to handle the maximum capacity required.
  • B. Use Reserved Instances exclusively to handle the maximum capacity required.
  • C. Use Reserved Instances for the baseline capacity and use Spot Instances to handle additional capacity.
  • D. Use Reserved Instances for the baseline capacity and use On-Demand Instances to handle additional capacity.
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
KenKenKen123
Highly Voted 3 years, 7 months ago
This should be D since the problem should "continually process messages without any downtime". Using spot instances above the baseline could possibly cause instance termination and thus downtime.
upvoted 94 times
FeatheredandDeadly
3 years, 7 months ago
Agree, answer is D.
upvoted 3 times
...
crazyprags
3 years, 2 months ago
Please guys check the explaination by Kurp below, right answer is C, with spot instances.
upvoted 3 times
...
noahsark
3 years, 5 months ago
maybe C: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html
upvoted 4 times
...
Kurp
3 years, 6 months ago
Question is vague as usual. It's about the most cost effective solution. the fact they mention SQS leads to a scenario when there is not enough capacity and messages are queued up. I'd go with C. The baseline instances will continue to process messages even if there are no SPOT instances available. It will take longer to process messages. THIS IS NOT DOWNTIME since the messages in the queue are still being processed. Just a delay in processing messages.
upvoted 34 times
Kabraham75
3 years, 3 months ago
You maybe right in a perspective. But C does not sound efficient, if spot instance fails the message has to be redone and unnecessary delay. Instead dedicated instance does the job.
upvoted 1 times
...
Kopa
3 years, 6 months ago
What about when the request from queue is huge, that moment spot is launched and unexpectedly the spot stop, what happens? To me it looks that will have downtime. So im more for D.
upvoted 1 times
patriktre
3 years, 6 months ago
it is about processing of SQS queue and it ensures delivery of message even if spot instance stops: Resiliency: When part of your system fails, it doesn’t need to take the entire system down. Message queues decouple components of your system, so if a process that is reading messages from the queue fails, messages can still be added to the queue to be processed when the system recovers. I would choose C.
upvoted 6 times
...
...
omunoz
3 years, 3 months ago
But the questions says "continuously and without interruption"...
upvoted 2 times
...
...
...
sctmp
Highly Voted 3 years, 7 months ago
This one sounds tricky but let's review it. A. Nop, we need to process messages without any downtime. B. It would be a waste to have instances running when there is intermittent traffic. C. Could be, but we can't use Spot Instances D. Sounds about right, even though on-demand is expensive, there can't be any downtime.
upvoted 27 times
gargaditya
3 years, 5 months ago
I was going with D but now realise that SQS requires consumers to manually delete the message from queue post processing. Fact that instance(spot) got abruptly terminated means no deletion from queue,hence no loss of message. Going back to C.
upvoted 7 times
...
Paimon
3 years, 6 months ago
How is there down time with all the baseline? Either spots or on demands will work. Spots are cheaper.......
upvoted 6 times
msafwat
3 years, 5 months ago
A spot instance picks up the message and then turns off. the message is lost which is an unpredictable system behavior. I chose D.
upvoted 2 times
swadeey
3 years, 5 months ago
Standard queues provide at-least-once delivery, which means that each message is delivered at least once. FIFO queues provide exactly-once processing, which means that each message is delivered once and remains available until a consumer processes it and deletes it. Duplicates are not introduced into the queue.
upvoted 3 times
...
gargaditya
3 years, 5 months ago
I was going with D but now realise that SQS requires consumers to manually delete the message from queue post processing. Fact that instance(spot) got abruptly terminated means no deletion from queue,hence no loss of message. Going back to C.
upvoted 5 times
...
...
...
...
BECAUSE
Most Recent 1 year, 11 months ago
Selected Answer: C
C is the answer
upvoted 2 times
...
study_aws1
2 years, 5 months ago
Question is the priority here - Fault-Tolerance or Availability. If Avaliability is the priority then Option C), if Fault-tolerance is the priority, then Option D)
upvoted 1 times
...
Six_Fingered_Jose
2 years, 6 months ago
Selected Answer: C
Vague question as usual but have to go with C here as they are looking for the most cost effective solution, there will be no downtime because a baseline of reserved instances are running at all times and no traffic will be lost because SQS will send the traffic to another instance if it doesn't receive the successful message from the spot instance when it goes down
upvoted 3 times
...
chamarams
2 years, 8 months ago
A company wants to optimize the cost of its data storage for data that is accessed quarterly. The company requires high throughput, low latency, and rapid access, when needed Which Amazon S3 storage class should a solutions architect recommend? A. Amazon S3 Standard-Infrequent Access (S3 Standard-IA) B. Amazon S3 Standard (S3 Standard) C. Amazon S3 Intelligent-Tiering (S3 Intelligent-Tiering) D. Amazon S3 Glacier (S3 Glacier)
upvoted 1 times
jw1806
2 years, 6 months ago
B for your question.
upvoted 1 times
...
...
rude7
2 years, 8 months ago
Selected Answer: D
Anwer: D Clear winner and it's not close... Application is uninterruptible both at baseline and peak times..
upvoted 1 times
...
Jennie95
2 years, 8 months ago
Selected Answer: C
"This application should continually process messages without any downtime." so with baseline it will and spot is cheaper than on-demand
upvoted 1 times
...
AA_AA123
2 years, 8 months ago
Selected Answer: D
This program should handle messages continuously and without interruption. For a production application, not sure if the delay time caused by the spot instance is acceptable.
upvoted 1 times
...
nishadnb
2 years, 8 months ago
C is the most cost efficient solution even if there is additional queue message retry required due to spot instances getting terminated.
upvoted 1 times
...
alfredt
2 years, 8 months ago
Selected Answer: C
C with spot instance, simply due to cost consideration
upvoted 2 times
...
nVizzz
2 years, 8 months ago
Selected Answer: D
Vote for D because we need to run the app without any interruptions.
upvoted 1 times
...
eff3
2 years, 8 months ago
Selected Answer: D
D is correct - C is wrong bcs the connection interruptions + potential spot instance issues would introduce bigger problems
upvoted 2 times
...
queen101
2 years, 8 months ago
DDDDDDDDDDDDDD
upvoted 1 times
...
cloud_collector
2 years, 9 months ago
Selected Answer: D
We recommend that you use On-Demand Instances for applications with short-term, irregular workloads that cannot be interrupted. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-on-demand-instances.html
upvoted 1 times
...
ProtonUser
2 years, 9 months ago
So many people keep arguing that a spot instance can be interrupted and that would mean downtime. Guys, please understand the difference between downtime and delay. If a spot instance is interrupted the SQS has a retry mechanism built in (message not deleted and a new consumer can consume the same message. The default time setting for message visibility is 30 seconds. Assume it doesn`t get processed and deleted by a spot instance, that means it will be put back in the queue and a new consumer (reserved instance) will be available to process that message. Please learn the differences between no delay and no downtime.
upvoted 3 times
...
marklovesaws143
2 years, 9 months ago
Selected Answer: D
DDDDDDDDDDDDDDDDDDDD
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago