DOP-C02 · Question #54
A defect was discovered in production and a new sprint item has been created for deploying a hotfix. However, any code change must go through the following steps before going into production: - Scan…
The correct answer is B. Create a hotfix branch from the master branch. Triger the development pipeline from the hotfix. We need to create a feature branch to test the fix and codebuild can do both the scan and unit https://docs.aws.amazon.com/codebuild/latest/userguide/how-to-create-pipeline.html#how-to- create-pipeline-add
Question
A defect was discovered in production and a new sprint item has been created for deploying a hotfix. However, any code change must go through the following steps before going into production:
- Scan the code for security breaches, such as password and access key
leaks.
- Run the code through extensive, long running unit tests.
Which source control strategy should a DevOps Engineer use in combination with AWS CodePipeline to complete this process?
Options
- ACreate a hotfix tag on the last commit of the master branch. Trigger the development pipeline
- BCreate a hotfix branch from the master branch. Triger the development pipeline from the hotfix
- CCreate a hotfix branch from the master branch. Triger the development pipeline from the hotfix
- DCreate a hotfix branch from the master branch. Create a separate source stage for the hotfix
How the community answered
(57 responses)- A7% (4)
- B74% (42)
- C4% (2)
- D16% (9)
Explanation
We need to create a feature branch to test the fix and codebuild can do both the scan and unit https://docs.aws.amazon.com/codebuild/latest/userguide/how-to-create-pipeline.html#how-to- create-pipeline-add
Topics
Community Discussion
No community discussion yet for this question.