DOP-C02 · Question #271
DOP-C02 Question #271: Real Exam Question with Answer & Explanation
Sign in or unlock DOP-C02 to reveal the answer and full explanation for question #271. The question stem and answer options stay visible for context.
Question
A developer is using the AWS Serverless Application Model (AWS SAM) to create a prototype for an AWS Lambda function. The AWS SAM template contains an AWS::Serverless::Function resource that has the CodeUri property that points to an Amazon S3 location. The developer wants to identify the correct commands for deployment before creating a CI/CD pipeline. The developer creates an archive of the Lambda function code named package.zip. The developer uploads the .zip file archive to the S3 location specified in the CodeUri property. The developer runs the sam deploy command and deploys the Lambda function. The developer updates the Lambda function code and uses the same steps to deploy the new version of the Lambda function. The sam deploy command fails and returns an error of no changes to deploy. Which solutions will deploy the new version? (Choose two.)
Options
- AUse the aws cloudformation update-stack command instead of the sam deploy command.
- BUse the aws cloudformation update-stack-instances command instead of the sam deploy
- CUpdate the CodeUri property to reference the local application code folder. Use the sam deploy
- DUpdate the CodeUri property to reference the local application code folder. Use the aws
- EUpdate the CodeUri property to reference the local application code folder. Use the aws
Unlock DOP-C02 to see the answer
You've previewed enough free DOP-C02 questions. Unlock DOP-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.