AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 156

A company is building a web and mobile application that uses a serverless architecture powered by AWS Lambda and Amazon API Gateway. The company wants to fully automate the backend Lambda deployment based on code that is pushed to the appropriate environment branch in an AWS CodeCommit repository.

The deployment must have the following:

• Separate environment pipelines for testing and production
• Automatic deployment that occurs for test environments only

Which steps should be taken to meet these requirements?

Answer options

Correct answer: C

Explanation

Option C is correct because it provides separate CodePipeline configurations for both test and production environments while using a single CodeCommit repository with branches for each environment, allowing for automated deployments in test only. Other options either complicate the setup by creating multiple repositories or do not meet the requirement for automatic deployment in test environments only.