CompTIA

CV0-004 practice question 14

CompTIA Cloud+ · free question 14 of 20

Question

A cloud architect attempts to modify a protected branch but is unable to do so. The architect receives an error indicating the action cannot be completed. Which of the following should the architect try instead?
  • A. Adding a new remote
  • B. Creating a pull request Correct
  • C. Merging the branch
  • D. Rebasing the branch

Explanation

Protected branches block direct pushes, so changes must be made on another branch and proposed through a pull request (merge request), where the required reviews and status checks run before the change is merged. Adding a remote does not change the branch's protection, and merging or rebasing directly into the protected branch is exactly the kind of direct change that protection rules reject.

Need the theory? Learn it free in the CV0-004 course on Godlike Academy

Practice the whole free set

Answer all 20 free CV0-004 questions with instant feedback, or unlock all 309 questions with Learn and Exam modes.