A developer is building a serverless application on AWS and wants a faster development workflow that deploys only incremental changes for testing instead of redeploying the entire application on every commit. What should the developer use to meet this requirement?
Choose an answer
Tap an option to check your answer.
Correct answer: Build the application with the AWS Serverless Application Model (AWS SAM) and use the sam sync command to deploy incremental changes..
Why this is the answer
The sam sync command in AWS SAM is specifically designed for rapid iterative development of serverless applications. It detects changes in your local project and deploys only the modified resources (e.g., Lambda function code, API Gateway definitions) to the cloud, significantly reducing deployment times compared to full redeployments. sam init is used to initialize a new SAM application, not to deploy changes. While AWS CDK is also a powerful tool for defining cloud infrastructure, cdk synth generates CloudFormation templates from your CDK code, and cdk bootstrap provisions resources needed for CDK deployments in an AWS account. Neither command is designed for incremental, rapid deployment of application changes in the same way sam sync is for SAM applications.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed