Q6 — AWS DOP-C02 Ch.2

Question 6 of 100 | ← Chapter 2

A company is building web and mobile applications powered by a serverless architecture using AWS Lambda and Amazon API Gateway. The company wants to fully automate backend Lambda deployments based on code pushed to appropriate environment branches in an AWS CodeCommit repository.

Correct Answer: C. Create two AWS CodePipeline configurations—one for test and one for production environments. Configure the production pipeline with a manual approval step. Create a single CodeCommit repository with separate branches for each environment. Configure each CodePipeline to retrieve source code from the appropriate branch in the repository. Set up deployment steps to deploy Lambda functions using AWS CloudFormation.

Explanation

To meet the requirements, separate pipeline configurations for test and production environments are needed. Option C is correct because: creating two AWS CodePipeline configurations distinguishes environments; configuring a manual approval step for the production pipeline satisfies the requirement; using a single CodeCommit repository with environment-specific branches enables retrieving source code from appropriate branches; and deploying Lambda functions via AWS CloudFormation fulfills the automated deployment need. Overall, option C comprehensively and accurately satisfies all stated requirements.