Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon DVA-C02 Exam - Topic 2 Question 69 Discussion

A developer at a company recently created a serverless application to process and show data from business reports. The application's user interface (UI) allows users to select and start processing the files. The Ul displays a message when the result is available to view. The application uses AWS Step Functions with AWS Lambda functions to process the files. The developer used Amazon API Gateway and Lambda functions to create an API to support the UI.The company's Ul team reports that the request to process a file is often returning timeout errors because of the see or complexity of the files. The Ul team wants the API to provide an immediate response so that the Ul can deploy a message while the files are being processed. The backend process that is invoked by the API needs to send an email message when the report processing is complete.What should the developer do to configure the API to meet these requirements?
A) Change the API Gateway route to add an X-Amz-Invocation-Type header win a sialic value of 'Event' in the integration request Deploy the API Gateway stage to apply the changes.
B) Change the configuration of the Lambda function that implements the request to process a file. Configure the maximum age of the event so that the Lambda function will ion asynchronously.
C) Change the API Gateway timeout value to match the Lambda function ominous value. Deploy the API Gateway stage to apply the changes.
D) Change the API Gateway route to add an X-Amz-Target header with a static value of 'A sync' in the integration request Deploy me API Gateway stage to apply the changes.

Amazon DVA-C02 Exam - Topic 2 Question 69 Discussion

Actual exam question for Amazon's DVA-C02 exam
Question #: 69
Topic #: 2
[All DVA-C02 Questions]

A developer at a company recently created a serverless application to process and show data from business reports. The application's user interface (UI) allows users to select and start processing the files. The Ul displays a message when the result is available to view. The application uses AWS Step Functions with AWS Lambda functions to process the files. The developer used Amazon API Gateway and Lambda functions to create an API to support the UI.

The company's Ul team reports that the request to process a file is often returning timeout errors because of the see or complexity of the files. The Ul team wants the API to provide an immediate response so that the Ul can deploy a message while the files are being processed. The backend process that is invoked by the API needs to send an email message when the report processing is complete.

What should the developer do to configure the API to meet these requirements?

Show Suggested Answer Hide Answer
Suggested Answer: A

This solution allows the API to invoke the Lambda function asynchronously, which means that the API will return an immediate response without waiting for the function to complete. The X-Amz-Invocation-Type header specifies the invocation type of the Lambda function, and setting it to 'Event' means that the function will be invoked asynchronously. The function can then use Amazon Simple Email Service (SES) to send an email message when the report processing is complete.


Contribute your Thoughts:

0/2000 characters
Cecily
3 days ago
Option D sounds interesting, but I haven't seen that used before.
upvoted 0 times
...
Precious
8 days ago
I like option B, but I'm not sure about the max age setting.
upvoted 0 times
...
Nickie
13 days ago
Wait, can the API really handle that many requests at once?
upvoted 0 times
...
Kattie
19 days ago
I disagree, I think option C is more straightforward.
upvoted 0 times
...
Louvenia
24 days ago
Option A seems like the best choice for async processing.
upvoted 0 times
...
Eric
29 days ago
I think adding the X-Amz-Target header might be a red herring. It sounds familiar, but I can't recall if it actually helps with the timeout errors we're seeing.
upvoted 0 times
...
Maia
1 month ago
I feel like we practiced a question similar to this where we had to adjust the API Gateway timeout. But I’m not convinced that’s the best solution for this specific issue.
upvoted 0 times
...
Lauran
1 month ago
I'm not entirely sure, but I think changing the Lambda function's configuration to handle events asynchronously could also work. It seems like a viable option.
upvoted 0 times
...
Angelo
1 month ago
I remember we discussed how using the X-Amz-Invocation-Type header can help with asynchronous processing in our last study session. That might be the right approach here.
upvoted 0 times
...

Save Cancel