exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 470 discussion

A company is launching a feature that uses an HTTP API built with Amazon API Gateway and AWS Lambda. An API Gateway endpoint performs several independent tasks that run in a Lambda function. The independent tasks can take up to 10 minutes in total to finish running.

Users report that the endpoint sometimes returns an HTTP 604 status code. The Lambda function invocations are successful.

Which solution will stop the endpoint from returning the HTTP 504 status cade?

  • A. Increase the Lambda function’s timeout value.
  • B. Increase the reserved concurrency of the Lambda function.
  • C. Increase the memory that is available to the Lambda function.
  • D. Refactor the Lambda function to start an AWS Step Functions state machine.
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
italiancloud2025
2 months, 1 week ago
Selected Answer: D
El error HTTP 504 ocurre porque API Gateway tiene un tiempo de espera de integración que es menor que el tiempo total de ejecución (hasta 10 minutos). Refactorizando la función para iniciar un Step Functions state machine, se separa el procesamiento largo de la respuesta síncrona, evitando que API Gateway agote el tiempo de espera.
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago