nerdexam
Amazon

DVA-C02 · Question #161

A developer is building an application that uses AWS API Gateway APIs, AWS Lambda functions, and AWS DynamoDB tables. The developer uses the AWS Serverless Application Model (AWS SAM) to build and run

The correct answer is D. sam sync --watch. The sam sync --watch command will only deploy the Lambda functions that have changed. This command uses AWS SAM Accelerate to compare the local versions of your Lambda functions to the versions deployed in AWS. If there are differences, the command deploys only the changed Lambda

Submitted by emma.c· Mar 5, 2026Deployment

Question

A developer is building an application that uses AWS API Gateway APIs, AWS Lambda functions, and AWS DynamoDB tables. The developer uses the AWS Serverless Application Model (AWS SAM) to build and run serverless applications on AWS. Each time the developer pushes changes for only to the Lambda functions, all the artifacts in the application are rebuilt. The developer wants to implement AWS SAM Accelerate by running a command to only redeploy the Lambda functions that have changed. Which command will meet these requirements?

Options

  • Asam deploy --force-upload
  • Bsam deploy --no-execute-changeset
  • Csam package
  • Dsam sync --watch

How the community answered

(21 responses)
  • A
    10% (2)
  • C
    5% (1)
  • D
    86% (18)

Explanation

The sam sync --watch command will only deploy the Lambda functions that have changed. This command uses AWS SAM Accelerate to compare the local versions of your Lambda functions to the versions deployed in AWS. If there are differences, the command deploys only the changed Lambda functions.

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice