CNX-001 · Question #79
CNX-001 Question #79: Real Exam Question with Answer & Explanation
The correct answer is B: Create a new branch for the change, then create a pull request including the changes.. Because main is protected, you must make your network-configuration edits on a separate feature branch and submit them via a pull request. This preserves the integrity of the protected branch and aligns with GitOps best practices for change review and automated deployment.
Question
A cloud architect needs to change the network configuration at a company that uses GitOps to document and implement network changes. The Git repository uses main as the default branch, and the main branch is protected. Which of the following should the architect do after cloning the repository?
Options
- AUse the main branch to make and commit the changes back to the remote repository.
- BCreate a new branch for the change, then create a pull request including the changes.
- CCheck out the development branch, then perform and commit the changes back to the remote
- DRebase the remote main branch after making the changes to implement.
Explanation
Because main is protected, you must make your network-configuration edits on a separate feature branch and submit them via a pull request. This preserves the integrity of the protected branch and aligns with GitOps best practices for change review and automated deployment.
Topics
Community Discussion
No community discussion yet for this question.