ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 87 - DVA-C02 discussion

Report
Export

A developer is building an application that uses AWS API Gateway APIs. AWS Lambda function, and AWS Dynamic DB tables. The developer uses the AWS Serverless Application Model (AWS SAM) to build and run serverless applications on AWS. Each time the developer pushes of 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?

A.
sam deploy -force-upload
Answers
A.
sam deploy -force-upload
B.
sam deploy -no-execute-changeset
Answers
B.
sam deploy -no-execute-changeset
C.
sam package
Answers
C.
sam package
D.
sam sync -watch
Answers
D.
sam sync -watch
Suggested answer: D

Explanation:

The command that will meet the requirements is sam sync -watch. This command enables AWS SAM Accelerate mode, which allows the developer to only redeploy the Lambda functions that have changed. The -watch flag enables file watching, which automatically detects changes in the source code and triggers a redeployment. The other commands either do not enable AWS SAM Accelerate mode, or do not redeploy the Lambda functions automatically.

Reference: AWS SAM Accelerate

asked 16/09/2024
brandon landaal
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first