nerdexam
Amazon

DVA-C02 · Question #625

A developer wants to use an AWS AppSync API to invoke AWS Lambda functions to return data. Some of the Lambda functions perform long-running processes. The AWS AppSync API needs to return responses im

The correct answer is A. Configure the Lambda functions to be AWS AppSync data sources. Use Event mode for. In AWS AppSync, when using Lambda functions as data sources, you can configure the function to run synchronously or asynchronously. In this case, the requirement is for AWS AppSync to return responses immediately, while some Lambda functions are performing long-running processes.

Submitted by fatima_kr· Mar 5, 2026Development with AWS Services

Question

A developer wants to use an AWS AppSync API to invoke AWS Lambda functions to return data. Some of the Lambda functions perform long-running processes. The AWS AppSync API needs to return responses immediately. Which solution will meet these requirements with the LEAST operational overhead?

Options

  • AConfigure the Lambda functions to be AWS AppSync data sources. Use Event mode for
  • BIncrease the timeout setting for the Lambda functions to accommodate longer processing times.
  • CSet up an Amazon SQS queue. Configure AWS AppSync to send messages to the SQS queue.
  • DEnable caching, and increase the duration of the AWS AppSync cache TTL.

How the community answered

(39 responses)
  • A
    72% (28)
  • B
    8% (3)
  • C
    5% (2)
  • D
    15% (6)

Explanation

In AWS AppSync, when using Lambda functions as data sources, you can configure the function to run synchronously or asynchronously. In this case, the requirement is for AWS AppSync to return responses immediately, while some Lambda functions are performing long-running processes. To achieve this, Event mode provides an efficient way to handle long-running tasks Event Mode (Asynchronous Lambda invocation): When Lambda functions are configured in Event mode, AWS AppSync does not wait for the function to complete. Instead, it sends the request to the Lambda function and returns the response immediately, without waiting for the result. This is perfect for long-running processes where the client does not need to wait for the Lambda function to complete before receiving a response. This solution minimizes operational overhead because AppSync automatically handles the invocation asynchronously, without requiring additional infrastructure or complex management.

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice