exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

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

Exam AWS Certified Solutions Architect - Professional topic 1 question 522 discussion

A bank is re-architecting its mainframe-based credit card approval processing application to a cloud-native application on the AWS cloud.
The new application will receive up to 1,000 requests per second at peak load. There are multiple steps to each transaction, and each step must receive the result of the previous step. The entire request must return an authorization response within less than 2 seconds with zero data loss. Every request must receive a response. The solution must be Payment Card Industry Data Security Standard (PCI DSS)-compliant.
Which option will meet all of the bank's objectives with the LEAST complexity and LOWEST cost while also meeting compliance requirements?

  • A. Create an Amazon API Gateway to process inbound requests using a single AWS Lambda task that performs multiple steps and returns a JSON object with the approval status. Open a support case to increase the limit for the number of concurrent Lambdas to allow room for bursts of activity due to the new application.
  • B. Create an Application Load Balancer with an Amazon ECS cluster on Amazon EC2 Dedicated Instances in a target group to process incoming requests. Use Auto Scaling to scale the cluster out/in based on average CPU utilization. Deploy a web service that processes all of the approval steps and returns a JSON object with the approval status.
  • C. Deploy the application on Amazon EC2 on Dedicated Instances. Use an Elastic Load Balancer in front of a farm of application servers in an Auto Scaling group to handle incoming requests. Scale out/in based on a custom Amazon CloudWatch metric for the number of inbound requests per second after measuring the capacity of a single instance.
  • D. Create an Amazon API Gateway to process inbound requests using a series of AWS Lambda processes, each with an Amazon SQS input queue. As each step completes, it writes its result to the next step's queue. The final step returns a JSON object with the approval status. Open a support case to increase the limit for the number of concurrent Lambdas to allow room for bursts of activity due to the new application.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
dpvnme
Highly Voted 3 years, 11 months ago
Seems like D would be a better choice
upvoted 28 times
Yamchi
3 years, 4 months ago
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/welcome.html "Allocate tasks to multiple worker nodes: process a high number of credit card validation requests."
upvoted 6 times
sindra
2 years, 9 months ago
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/standard-queues.html Incline to D
upvoted 1 times
...
...
heany
2 years, 10 months ago
only problem is that : A Lambda function may run for up to 15 minutes (this is called the Lambda timeout), meaning Lambda is not suited to long-running processes ' . According to the question, the app 'will receive up to 1,000 requests per second at peak load' which means the lambda function will need to keep running. So, both A and D don't look right. that leaves only C.
upvoted 2 times
...
...
donathon
Highly Voted 3 years, 11 months ago
A A: The process must complete within 2 seconds. This sounds like what Lambda can do. B\C: Not the most cost efficient compared to Lambda. Scaling may also not be fast enough. D: SQS may have data loss due to DLQ? SQS also does not process in order so this may be another problem unless you use FIFO.
upvoted 15 times
petebear55
3 years, 10 months ago
a will cause too much bottle neck
upvoted 3 times
...
PacoDerek
3 years, 10 months ago
SQS guarantee at-least-One delivery
upvoted 3 times
ashp
3 years, 10 months ago
The entire request must return an authorization response within less than 2 seconds with zero data loss.
upvoted 2 times
...
...
Amitv2706
3 years, 9 months ago
if SQS is used we still have an option to keep storing the message as failed lambda will not delete it ideally. But with A - Where that message/req will go if lambda fails ? Seems D is better choice
upvoted 4 times
...
...
sumaju
Most Recent 1 year, 9 months ago
Selected Answer: C
To be PCI DSS compliant dedicated instance is mandatory, so only option C is correct irrespective of any other approach.
upvoted 1 times
...
SkyZeroZx
2 years, 1 month ago
Selected Answer: A
A is less overhead than B for use of SQS and in sync invokation of lambdas in 2 seconds
upvoted 1 times
...
romiao106
2 years, 4 months ago
This is a use case for step function. I will go with D because a series of lambda processes this appears to be describing a step function
upvoted 1 times
...
dev112233xx
2 years, 4 months ago
Selected Answer: A
A seems better than D LEAST complexity and LOWEST cost == API Gateway + Lambda D is wrong! SQS is Asynchronous so the response from API Gateway will be just a 200 http code (or whatever you decide to return). the question stated that response should be immediate which makes D answer invalid
upvoted 2 times
...
Heer
2 years, 6 months ago
ChatGPT response : Option 2 of creating an Amazon API Gateway to process inbound requests using a single AWS Lambda task is a better option for meeting the bank's objectives with the least complexity and lowest cost while also meeting compliance requirements. This is because it avoids the complexity and overhead of multiple Lambda functions, SQS queues, and coordination of the results between the steps. The single Lambda function can be designed to handle all the steps in the processing of a credit card approval transaction, which would make the implementation simpler and more efficient. Additionally, by having a single Lambda function, it is easier to ensure that the response time of less than 2 seconds and zero data loss requirements are met. Option A looks more relevant
upvoted 1 times
...
evargasbrz
2 years, 7 months ago
Selected Answer: C
A-> 1000 request per seconds and less than 2 secs to complete, so you can achieve 2000 lambdas running. You need to request a limit increase. Between C and D, but the question emphasis is on LEAST complexity and LOWEST cost, so C looks better.
upvoted 2 times
...
myco
2 years, 8 months ago
Selected Answer: A
1000 request per seconds and less than 2 secs response time lambda fits the bill
upvoted 1 times
...
timmysixstrings
2 years, 8 months ago
Selected Answer: A
EC2 is too slow to scale, so that rules out B/C. The question emphasis is on LEAST complexity and LOWEST cost, so I think A the best option. having individual lambdas for each step will increase the complexity and having SQS in between each will increase both complexity and cost
upvoted 1 times
...
AjayPrajapati
2 years, 9 months ago
Selected Answer: A
EC2 scale in/out is slow. SQS can be slow too and it is asych.
upvoted 2 times
...
Rocketeer
2 years, 11 months ago
A for me. Using SQS makes it asynch. How do you respond back to the API call ? Also multiple lambdas and SQS will be slower than option A. Step function is a better option.
upvoted 4 times
tomosabc1
2 years, 10 months ago
"Using SQS makes it asynch. How do you respond back to the API call ?" A good point! This definitely rules option D out.
upvoted 1 times
...
...
dcdcdc3
2 years, 11 months ago
D is preferred as it is more robust, with cloud native services etc, but 1000 requests per second with API GW may make this much more expensive, maybe this is why C is proposed
upvoted 1 times
...
hilft
3 years ago
D is the only choice here
upvoted 1 times
...
bobsmith2000
3 years, 2 months ago
Selected Answer: D
No data loss, full compliance to pci
upvoted 1 times
...
pal40sg
3 years, 5 months ago
Selected Answer: C
D. gp3 can't set IOPS
upvoted 1 times
czarno
3 years, 4 months ago
not only you specifically selected C, then you also went on to comment D... and reference to the previous question. Other than that I think it is D... APIGW + Lambda + SQS
upvoted 1 times
...
...
cldy
3 years, 7 months ago
D is correct.
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 ...