DVA-C02 · Question #802
A developer creates a serverless application. The application includes AWS Lambda functions that process data changes and Amazon DynamoDB tables. The developer needs to deploy updates to the applicati
The correct answer is B. Define infrastructure as code (IaC) by using AWS SAM templates. Configure the pipeline stages D. Reference a build container image that has the necessary runtime from the available images.. Defining the application with AWS SAM templates provides infrastructure as code that is purpose- built for serverless and supports local testing (for example, running and testing functions locally before committing changes). Using a build container image that includes the require
Question
A developer creates a serverless application. The application includes AWS Lambda functions that process data changes and Amazon DynamoDB tables. The developer needs to deploy updates to the application automatically each time the developer completes a set of code changes. The developer must use existing continuous integration and continuous delivery (CI/CD) pipeline tools to deploy updates. The developer also needs to test updates locally before committing code. Which combination of steps will meet these requirements in the MOST in the operationally efficient way? (Choose two.)
Options
- AReference an AWS Lambda function that has the necessary runtime from the available functions.
- BDefine infrastructure as code (IaC) by using AWS SAM templates. Configure the pipeline stages
- CDefine a cron job to initiate the deployments at specific times of the day.
- DReference a build container image that has the necessary runtime from the available images.
- EDefine infrastructure as code (IaC) by using AWS CloudFormation templates. Configure the
How the community answered
(25 responses)- A8% (2)
- B56% (14)
- C24% (6)
- E12% (3)
Explanation
Defining the application with AWS SAM templates provides infrastructure as code that is purpose- built for serverless and supports local testing (for example, running and testing functions locally before committing changes). Using a build container image that includes the required runtime makes the CI/CD pipeline consistent and repeatable across environments, and the pipeline can run the standard AWS SAM CLI build/package/deploy commands automatically on each change.
Community Discussion
No community discussion yet for this question.