
Answer-first summary for fast verification
Answer: Create a pull request to merge the changes into the main branch.
## Detailed Explanation In Azure Data Factory with Git integration, the correct workflow follows Git-based source control best practices: **Why Option B is Correct:** - The xyz branch is a feature branch where development changes are made - The main branch serves as the collaboration branch that represents the production-ready state - Before publishing changes to the live service, you must first merge your feature branch changes into the main branch through a pull request - This ensures proper code review, testing, and version control before deployment to production - Publishing directly from a feature branch is not supported in Azure Data Factory's Git integration model **Why Other Options Are Incorrect:** - **Option A (Publish the data factory):** You cannot publish directly from a feature branch. Publishing is only available from the main branch after changes have been merged. - **Option C (Create a pull request to merge the changes into the abc branch):** This would merge changes into another feature branch instead of the main collaboration branch, which doesn't progress the changes toward production deployment. - **Option D (Push the code to a remote origin):** While pushing changes is part of the Git workflow, it's not the first required action. Changes are already saved in the xyz branch, and the next logical step is to initiate the merge process via pull request. **Best Practice Workflow:** 1. Develop and save changes in feature branch (xyz) 2. Create pull request to merge into main branch 3. Review and approve the pull request 4. Merge changes into main branch 5. Publish from main branch to live service This approach maintains code quality, enables collaboration, and ensures only validated changes reach production.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You have an Azure Data Factory connected to a Git repository with the following branches: main (collaboration branch), abc (feature branch), and xyz (feature branch). After saving changes to a pipeline in the xyz branch, you need to publish the changes to the live service.
What is the first action you must perform?
A
Publish the data factory.
B
Create a pull request to merge the changes into the main branch.
C
Create a pull request to merge the changes into the abc branch.
D
Push the code to a remote origin.
No comments yet.