DP-203 · Question #365
You have an Azure data factory connected to a Git repository that contains the following branches: - main: Collaboration branch - abc: Feature branch - xyz: Feature branch You save changes to a…
The correct answer is B. Create a pull request to merge the changes into the main branch. In Azure Data Factory with Git integration, the collaboration branch (main) is the only branch that can be published to the live service - so changes in any feature branch must first be merged into main via a pull request before publishing is possible. Why the distractors are…
Question
You have an Azure data factory connected to a Git repository that contains the following branches:
- main: Collaboration branch
- abc: Feature branch
- xyz: Feature branch
You save changes to a pipeline in the xyz branch. You need to publish the changes to the live service. What should you do first?
Options
- APublish the data factory.
- BCreate a pull request to merge the changes into the main branch.
- CCreate a pull request to merge the changes into the abc branch.
- DPush the code to a remote origin.
How the community answered
(63 responses)- A11% (7)
- B81% (51)
- C3% (2)
- D5% (3)
Explanation
In Azure Data Factory with Git integration, the collaboration branch (main) is the only branch that can be published to the live service - so changes in any feature branch must first be merged into main via a pull request before publishing is possible.
Why the distractors are wrong:
- A (Publish the data factory) fails because you cannot publish directly from a feature branch like xyz; ADF only publishes from the collaboration branch.
- C (Merge into abc) is wrong because abc is just another feature branch, not the collaboration branch - merging there still leaves you unable to publish.
- D (Push to remote origin) is irrelevant here; the branch is already in the Git repo, and pushing alone doesn't satisfy the requirement to get changes into the collaboration branch.
Memory tip: Think of the collaboration branch as the "launch pad" - no matter which feature branch you work in, your code must land on that launch pad (main) before it can take off to the live service.
Topics
Community Discussion
No community discussion yet for this question.