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

A web application runs on Amazon EC2 instances behind an Application Load Balancer. The application allows users to create custom reports of historical weather data. Generating a report can take up to 5 minutes. These long-running requests use many of the available incoming connections, making the system unresponsive to other users.
How can a solutions architect make the system more responsive?

  • A. Use Amazon SQS with AWS Lambda to generate reports.
  • B. Increase the idle timeout on the Application Load Balancer to 5 minutes.
  • C. Update the client-side application code to increase its request timeout to 5 minutes.
  • D. Publish the reports to Amazon S3 and use Amazon CloudFront for downloading to the user.
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
Paitan
Highly Voted 3 years, 10 months ago
Need de-coupling. So go with SQS and Lambda.
upvoted 44 times
lehoang15tuoi
3 years, 9 months ago
A is the only practical option here, but I'm sure in real life people would be looking at using SQS and EC2 behind ALB + ASG instead of putting it on Lambda. Seems like for intensive cases like this Lambda is going to be very expensive
upvoted 5 times
...
...
josebormo
Highly Voted 3 years, 10 months ago
A, I agree using lambda is best choice
upvoted 16 times
...
teja54
Most Recent 2 years, 1 month ago
Selected Answer: A
......................................................................
upvoted 1 times
...
naveenagurjara
3 years, 1 month ago
Lengthy queries.. are you guys sure about Lamdba?
upvoted 3 times
EssaTaichou
2 years, 11 months ago
AWS Lambda supports execution time up to 15 minutes.
upvoted 2 times
...
...
osel
3 years, 6 months ago
Users -> ALB -> EC2 Fleet runs Webapp -> SQS -> Lambda (Max 15mins execution) to perform up-to 5mins Report Query. I opt for answer A too.
upvoted 2 times
...
Gomer
3 years, 7 months ago
I think the answer is B. If the report takes up to five minutes, then ton's of connections are getting dropped due to the timeout being too short, so people are trying to rerun the report and are exacerbating the problem. The first steps should be to either ither speed up the EC2/DB response, or shorten the web timeout so connections don't get dropped. SQS and Lambda are exotic rework with no guarantee that the reports are faster (since you don't know what the back end is).
upvoted 2 times
Gomer
3 years, 7 months ago
I meant lengthen the web timeout to 5m (not shorten). If the reports can take up to 5m, and the timeout isn't getting set to that, then tons of responses are getting dropped and users are re-running the report, and your in a endless cycle that is exacerbating the issue.
upvoted 2 times
...
...
Cabrera
3 years, 8 months ago
The answer is A since Lambda timeou is 900seconds. The question mention that they need only 5 minutes. https://docs.aws.amazon.com/whitepapers/latest/serverless-architectures-lambda/timeout.html
upvoted 4 times
...
woke
3 years, 9 months ago
A. Use Amazon SQS with AWS Lambda to generate reports.
upvoted 3 times
...
Meng_Hao
3 years, 9 months ago
Would some one mind explaining the use of de-coupling here please?
upvoted 4 times
examexpert
3 years, 7 months ago
de-couple so it doesn't use a significant portion of the system's available incoming connections, rendering the system unusable to other users.
upvoted 1 times
...
...
syu31svc
3 years, 9 months ago
More responsive is the catch here Answer is A; use SQS with Lambda
upvoted 3 times
...
KK_uniq
3 years, 9 months ago
A for sure
upvoted 2 times
...
Ankitrathi85
3 years, 9 months ago
A right
upvoted 2 times
...
piyush28
3 years, 9 months ago
increasing the timeouts will not make the application more responsive, decreasing it will will only leads to failures. Asynchronous processing is what is needed, A+D should be the answer
upvoted 1 times
...
myutran
3 years, 9 months ago
Answer: A
upvoted 1 times
...
jealbave
3 years, 9 months ago
Is B. https://www.sharepresentation.com/lillysarah/2020-saac02-prep-test-bundle-exam
upvoted 1 times
...
prem4bio
3 years, 9 months ago
Why SQS has to send the generated report to the user? Lambda is not intended to handle connection time-out.
upvoted 1 times
...
prem4bio
3 years, 9 months ago
B should be the answer https://docs.aws.amazon.com/elasticloadbalancing/latest/application/application-load-balancers.html#connection-idle-timeout
upvoted 1 times
Sayto
3 years, 8 months ago
This will cause the app to fail. In General, increasing the timeout is usually wrong.
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 ...