exam questions

Exam CNX-001 All Questions

View all questions & answers for the CNX-001 exam

Exam CNX-001 topic 1 question 30 discussion

Actual exam question from CompTIA's CNX-001
Question #: 30
Topic #: 1
[All CNX-001 Questions]

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?

  • A. Use the main branch to make and commit the changes back to the remote repository.
  • B. Create a new branch for the change, then create a pull request including the changes.
  • C. Check out the development branch, then perform and commit the changes back to the remote repository.
  • D. Rebase the remote main branch after making the changes to implement.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
SuntzuLegacy
1 month, 1 week ago
Selected Answer: B
Answer: B. Create a new branch for the change, then create a pull request including the changes. Because the main branch is protected, you cannot push commits directly to it. The standard GitOps workflow is to create a new feature branch, implement and commit your changes there, and then open a pull request (PR) for review and merging into main.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...