A serverless web and mobile backend uses Lambda and API Gateway. The backend Lambda deployment must be fully automated based on code pushed to the appropriate branch in CodeCommit. Requirements: separate pipelines for test and production, and automatic deploys only for test environments. What steps meet these requirements?
Choose an answer
Tap an option to check your answer.
Correct answer: Create two CodePipeline pipelines for test and production. Add a manual approval step to the production pipeline. Use a single CodeCommit repository with a branch for each environment. Configure each pipeline to pull from the appropriate branch and deploy the Lambda functions via CloudFormation..
Why this is the answer
The correct option meets all requirements. Two CodePipeline pipelines (test and production) ensure separate deployment flows. A manual approval step in the production pipeline prevents automatic deploys to production, fulfilling the "automatic deploys only for test environments" requirement. Using a single CodeCommit repository with branches for each environment is a standard and efficient way to manage code for different stages. Configuring each pipeline to pull from its appropriate branch ensures the correct code version is deployed to each environment. CloudFormation is the recommended AWS service for deploying and managing serverless applications, including Lambda functions. Incorrect options: Creating separate CodeCommit repositories per environment is unnecessary and adds management overhead. The option involving CodeBuild projects doesn't fully describe a complete CI/CD pipeline and pushing Lambda code to S3 directly for deployment is less robust than using CloudFormation.
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