nerdexam
AmazonAmazon

DOP-C02 · Question #493

DOP-C02 Question #493: Real Exam Question with Answer & Explanation

The correct answer is A: Configure a connection in AWS CodeConnections to a Git repository. Store the templates in the. Storing the templates in a Git repository and using a pull request workflow provides a native, auditable way to review and approve template changes before they can be merged and promoted. Using CloudFormation Git sync keeps stacks aligned with the approved repository state and su

Submitted by yousef_jo· Mar 6, 2026SDLC Automation

Question

A company uses a pipeline in AWS CodePipeline to upload AWS CloudFormation templates to an Amazon S3 bucket. The pipeline uses the templates to deploy CloudFormation stacks that match the names of the templates. The company has experienced issues when it tries to revert templates to a previous version. To prevent these issues, the company must have the ability to review template modifications before the modifications are deployed to production. Which solution will meet these requirements with the LEAST operational overhead?

Options

  • AConfigure a connection in AWS CodeConnections to a Git repository. Store the templates in the
  • BAdd a manual review action in the pipeline to review modifications to the template code before the
  • CUpdate the pipeline to invoke an AWS Lambda function to check the template modifications
  • DConfigure a connection in AWS CodeConnections to a Git repository. Store the templates in the

Explanation

Storing the templates in a Git repository and using a pull request workflow provides a native, auditable way to review and approve template changes before they can be merged and promoted. Using CloudFormation Git sync keeps stacks aligned with the approved repository state and supports clean rollbacks by reverting commits, avoiding the operational complexity of custom validation functions or ongoing manual approvals inside the deployment pipeline.

Topics

#CloudFormation templates#CodePipeline#Git integration#version control

Community Discussion

No community discussion yet for this question.

Full DOP-C02 PracticeBrowse All DOP-C02 Questions