AWS Certified Developer – Associate (DVA-C02) — Question 143

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?

Answer options

Correct answer: D

Explanation

The correct command is 'sam sync --watch', which allows the developer to only redeploy the changes made to the Lambda functions without rebuilding all artifacts. The other options either force a full upload, do not execute changes, or package the application without deploying it, which does not meet the requirement of redeploying only the modified functions.