Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional SAP-C02 exam

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 42 discussion

A solutions architect needs to advise a company on how to migrate its on-premises data processing application to the AWS Cloud. Currently, users upload input files through a web portal. The web server then stores the uploaded files on NAS and messages the processing server over a message queue. Each media file can take up to 1 hour to process. The company has determined that the number of media files awaiting processing is significantly higher during business hours, with the number of files rapidly declining after business hours.

What is the MOST cost-effective migration recommendation?

  • A. Create a queue using Amazon SQS. Configure the existing web server to publish to the new queue. When there are messages in the queue, invoke an AWS Lambda function to pull requests from the queue and process the files. Store the processed files in an Amazon S3 bucket.
  • B. Create a queue using Amazon MQ. Configure the existing web server to publish to the new queue. When there are messages in the queue, create a new Amazon EC2 instance to pull requests from the queue and process the files. Store the processed files in Amazon EFS. Shut down the EC2 instance after the task is complete.
  • C. Create a queue using Amazon MQ. Configure the existing web server to publish to the new queue. When there are messages in the queue, invoke an AWS Lambda function to pull requests from the queue and process the files. Store the processed files in Amazon EFS.
  • D. Create a queue using Amazon SQS. Configure the existing web server to publish to the new queue. Use Amazon EC2 instances in an EC2 Auto Scaling group to pull requests from the queue and process the files. Scale the EC2 instances based on the SQS queue length. Store the processed files in an Amazon S3 bucket.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
masetromain
Highly Voted 1 year, 9 months ago
Selected Answer: D
The correct answer would be option D. This option suggests creating a queue using Amazon SQS, configuring the existing web server to publish to the new queue, and using EC2 instances in an EC2 Auto Scaling group to pull requests from the queue and process the files. The EC2 instances can be scaled based on the SQS queue length, which ensures that the resources are available during peak usage times and reduces costs during non-peak times. Option A is not correct because it suggests using AWS Lambda which has a maximum execution time of 15 minutes. Option B is not correct because it suggests creating a new EC2 instance for each message in the queue, which is not cost-effective. Option C is not correct because it suggests using Amazon EFS, which is not a suitable option for long-term storage of large files.
upvoted 23 times
...
ninomfr64
Highly Voted 10 months, 2 weeks ago
Selected Answer: D
Not A - Lambda max execution time is 15 minutes, image processing can take up to 1 hour Not B - Amazon MQ is not needed (more expensive then SQS) and EFS is more expensive then S3 Not C - Amazon MQ is not needed (more expensive then SQS) and Lambda max execution time is 15 minutes, image processing can take up to 1 hour D does the job with the lower cost thanks to SQS, S3 and EC2 Auto Scaling Group
upvoted 7 times
...
mohan_cv
Most Recent 6 days, 10 hours ago
Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 42 discussion
upvoted 1 times
...
Malcnorth59
5 months, 2 weeks ago
Selected Answer: D
Lambda will not work, so A is not possible. D is going to be the most cost-effective as the resources will scale based on queue length.
upvoted 1 times
...
mav3r1ck
7 months, 2 weeks ago
Selected Answer: D
Given the need to process files that can take up to 1 hour each and the variability in workload, option D (Amazon SQS, EC2 Auto Scaling, and S3) appears to be the most cost-effective and practical solution. It leverages SQS for queue management, enabling efficient handling of the processing queue's variability. EC2 Auto Scaling allows for flexible and cost-effective scaling of processing capacity, ramping up during high-demand periods and scaling down when demand wanes, thus optimizing costs. Finally, Amazon S3 offers a highly durable and cost-effective solution for storing the processed media files. This option provides the necessary flexibility for long processing tasks while efficiently managing the variable demand and optimizing storage costs.
upvoted 1 times
...
Simon523
1 year, 1 month ago
Selected Answer: D
Simple Queuing Service SQS is based on pull model. Here are some of the important features: Reliable, scalable, fully-managed message queuing service High availability Unlimited scaling Auto scale to process billions of messages per day Low cost (Pay for use)
upvoted 1 times
...
aviathor
1 year, 2 months ago
Selected Answer: D
This is quite simple. Any answer (A and C) consisting of using Lambda for processing the files is out because of the 15 minutes limit on Lambda processes. B is out because using EFS is expensive and it does not specify how to launch and terminate the EC2 instances. Amazon MQ is not required either. This leaves D which uses SQS, Auto Scaling Groups and publishes the resulting files to S3.
upvoted 2 times
...
chico2023
1 year, 3 months ago
Selected Answer: D
Answer: D You can eliminate A and C right in the beginning: Lambda functions can run up to 15 minutes. B won't help much as you need to create new EC2 instances (manually, apparently) and EFS is more expensive than S3.
upvoted 1 times
...
NikkyDicky
1 year, 4 months ago
Selected Answer: D
d for sure
upvoted 1 times
...
ailves
1 year, 4 months ago
Selected Answer: D
Because of "Each media file can take up to 1 hour to process" and we know Lambda has a limit in 15 minutes, The correct answer is D
upvoted 1 times
...
EricZhang
1 year, 5 months ago
D - https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-using-sqs-queue.html
upvoted 1 times
...
huanaws088
1 year, 6 months ago
Selected Answer: B
I sure is B , becauce 1. SQS , SNS are " cloud - native " services : proprietary protocols from AWS 2. Traditional applications running from on - premises may use open protocols such as : MQTT , AMQP ,.., so When migrating to the cloud , instead of re-engineering the application to use SQS and SNS will very expensive, we can use Amazon MQ. 3. Amazon MQ doesn't " scale " as much as SQS / SNS Amazon MQ runs on servers but Amazon MQ has both queue feature ( ~ SQS ) and topic features ( ~ SNS ) https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-difference-from-amazon-mq-sns.html
upvoted 1 times
hexie
1 year, 4 months ago
In terms of cost (which is a point on the question), Amazon SQS is generally more cost-effective compared to Amazon MQ for this specific use case. SQS pricing is based on the number of requests and message data transfer, whereas Amazon MQ pricing includes additional costs associated with broker instances and data transfer.
upvoted 1 times
...
...
takecoffe
1 year, 7 months ago
Selected Answer: D
SQS and autoscaling no doubt answer is D
upvoted 2 times
...
mfsec
1 year, 7 months ago
Selected Answer: D
SQS and Auto Scaling
upvoted 2 times
...
dev112233xx
1 year, 7 months ago
Selected Answer: D
D - makes sense.. Lambda can’t run more than 15m. And Amazon MQ is only recommended when migrating existing message brokers that rely on compatibility with APIs such as JMS or protocols such as AMQP, MQTT, OpenWire, and STOMP.. in the question there is no mention for these services ..
upvoted 4 times
...
God_Is_Love
1 year, 8 months ago
A and C are out because lambda does not support more than 15 min. B says, to create an EC2 for each new message which is certainly not cost effective and bad design as well. So answer is D
upvoted 2 times
...
c73bf38
1 year, 8 months ago
Selected Answer: D
The most cost-effective migration recommendation to handle peak loads during business hours is to use Amazon SQS to create a queue, configure the existing web server to publish to the new queue, and use Amazon EC2 instances in an EC2 Auto Scaling group to pull requests from the queue and process the files. The EC2 instances should be scaled based on the SQS queue length. Storing the processed files in an Amazon S3 bucket will help in reducing the storage cost. This approach is scalable and can handle peak loads during business hours, while still being cost-effective during non-business hours. Option A is also a possible solution, but using EC2 instances in an EC2 Auto Scaling group is a more scalable and cost-effective solution. Options B and C involve using Amazon EFS, which can be more expensive than Amazon S3.
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 ...