exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 16 question 1 discussion

Actual exam question from Microsoft's AZ-400
Question #: 1
Topic #: 16
[All AZ-400 Questions]

You need to perform the GitHub code migration. The solution must support the planned changes for the DevOps environment.
What should you use?

  • A. git clone
  • B. GitHub Importer
  • C. Import repository in Azure Repos
  • D. git-tfs
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
pdk88
Highly Voted 2 years, 6 months ago
Selected Answer: B
B would be my answer. The git-tfs tool is used for migrating TFSC to Git (within Azure Devops). But in this case we need to "Migrate all the source code from TFS1 to GitHub." And Github is another product (using git as version control system). To migratie tfsc to Github, your best option would be the GitHub Importer. "About GitHub Importer - If you have source code in Subversion, Mercurial, Team Foundation Version Control (TFVC), or another Git repository, you can move it to GitHub using GitHub Importer." https://docs.microsoft.com/en-us/devops/develop/git/migrate-from-tfvc-to-git https://docs.github.com/en/get-started/importing-your-projects-to-github/importing-source-code-to-github/about-github-importer
upvoted 16 times
warchoon
2 years, 1 month ago
"Woodgrove Bank plans to implement", "Migrate all the source code from TFS1 to GitHub." "Tip: GitHub Importer is not suitable for all imports. For example, if your existing code is hosted on a private network, our tool won't be able to access it. In these cases, we recommend importing using the command line for Git repositories or an external source code migration tool for projects imported from other version control systems." Why do you think that tfs1 is not private?
upvoted 2 times
mfawew223
1 year, 3 months ago
Both B & D are valid. Just to point out, the passage quoted by warchoon is talking about the source repo. The destination is a "private GitHub Repo". That could be a repo set to "private" visibility on GitHub.com or one on a private network via GitHub Enterprise Server. The GitHub importer tool imports to GitHub.com only. The case study talks about the central office being in the UK, but it doesnt talk about how this data was stored prior. Was it on prem? The case study doesnt specify, but its kind of important. If you want to infer that the central UK office housed the repo servers prior, then GitHub Importer wouldnt work unless the code was given a public address, so you'd choose git-tfs. But since it didnt specify, you might want to keep it simple, and assume its publicly available because it doesnt say otherwise, in which case, GitHub Importer would work
upvoted 1 times
Nian
1 year, 2 months ago
Very good reasoning.. Both option B and D seems valid. I would opt for Git-tfs simply because this is explicitly mentioned in the doc article 'Import and migrate repositories from TFVC to Git' https://learn.microsoft.com/en-us/azure/devops/repos/git/import-from-tfvc?view=azure-devops#advanced-migrations
upvoted 2 times
...
...
...
...
basw77
Highly Voted 2 years, 8 months ago
Selected Answer: B
https://docs.github.com/en/get-started/importing-your-projects-to-github/importing-source-code-to-github/about-github-importer
upvoted 5 times
...
billycat
Most Recent 3 days, 2 hours ago
Selected Answer: D
Answer is D. Git hub importer does not support importing directly from TFS. Git hub importer works only with other GIT repos. https://docs.github.com/en/migrations/importing-source-code/using-github-importer/about-github-importer. To use GitHub importer you need first convert your TFS repo to a git repo by using the git-tfs tool. https://docs.github.com/en/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-team-foundation-version-control-repository
upvoted 1 times
...
dddddddddddww12
2 months, 2 weeks ago
Selected Answer: C
A. git clone: While you can clone a repository, this approach doesn't migrate it into Azure DevOps. It only creates a local copy on your machine. B. GitHub Importer: This tool is for migrating repositories from GitHub into GitHub, not for migrating to Azure DevOps. D. git-tfs: This tool is used to migrate Team Foundation Server (TFS) repositories into Git, not for GitHub to Azure DevOps migrations.
upvoted 1 times
...
Gooldmember
4 months ago
Selected Answer: D
Answer is D gt-tfs When to Use GitHub Importer vs. Git-TFS? 1. Use GitHub Importer for simpler migrations from Git-based systems (e.g., Bitbucket, GitLab). 2. Use Git-TFS if you are migrating from TFS or need more control over the migration, such as incremental migration or handling large repositories.
upvoted 1 times
...
4bd3116
10 months, 1 week ago
Selected Answer: D
Migrate all the source code from TFS1 to GitHub.
upvoted 1 times
...
vsvaid
1 year, 2 months ago
Selected Answer: B
Can be done with both B and D. I will go with B
upvoted 1 times
...
lematjas
1 year, 3 months ago
i would go with D: https://learn.microsoft.com/en-us/azure/devops/repos/git/import-from-tfvc?view=azure-devops
upvoted 1 times
...
nakedsun
1 year, 4 months ago
Selected Answer: C
C - Migrating with Azure Repos (recommended) https://docs.github.com/en/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-team-foundation-version-control-repository
upvoted 1 times
...
yana_b
1 year, 5 months ago
Selected Answer: B
Should be B https://docs.github.com/en/migrations/importing-source-code/using-github-importer/about-github-importer
upvoted 1 times
...
halfway
1 year, 6 months ago
Selected Answer: D
https://docs.github.com/en/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-team-foundation-version-control-repository#migrating-with-git-tfs
upvoted 2 times
...
ieboaix
1 year, 7 months ago
I choose D until I find a good justification of C. I will not choose B because GitHub Importer requires public internet access to the code which we can't assume is the case and most likely not.
upvoted 1 times
...
zellck
1 year, 9 months ago
Selected Answer: B
B is the answer. https://docs.github.com/en/migrations/importing-source-code/using-github-importer/about-github-importer If your source code is stored on a code hosting service using Git, Subversion, Mercurial, or Team Foundation Version Control (TFVC) and is accessible from the public internet, you can move the code to GitHub using GitHub Importer.
upvoted 4 times
...
Srirupam
1 year, 10 months ago
The Git-TFS tool is a two-way bridge between Team Foundation Version Control and Git, and you can use it to perform a migration. Git-TFS is appropriate for a migration with full history, more than the 180 days that the Import tool supports.
upvoted 1 times
...
aut0pil0t
1 year, 11 months ago
Selected Answer: D
D - git-tfs Read the official docs, guys. GitHub recommends using git-tfs, not GitHub Importer. Source code migration > Importing from TFVC: "We recommend git-tfs for moving changes between TFVC and Git." https://docs.github.com/en/migrations/importing-source-code/using-the-command-line-to-import-source-code/source-code-migration-tools#importing-from-tfvc
upvoted 5 times
...
armvch
2 years ago
Guys we all know MS exam's approach - if there's an option to use MS tool (in this case it's GitHub Importer) then it's a correct answer.
upvoted 4 times
...
syu31svc
2 years, 7 months ago
Selected Answer: B
I'll take B https://docs.github.com/en/get-started/importing-your-projects-to-github/importing-source-code-to-github/about-github-importer "GitHub Importer is a tool that quickly imports source code repositories, including commits and revision history, to GitHub for you."
upvoted 4 times
MiniLa92
2 years, 6 months ago
When you go to "Code Migration tools" page within the same documentation you will see that while migrating from TVFC they also recommend git-tfs, So I will choose D option: https://docs.github.com/en/get-started/importing-your-projects-to-github/importing-source-code-to-github/source-code-migration-tools
upvoted 1 times
biglebowski
2 years, 2 months ago
The content under mentioned link is changed. GitHub Importer is recommended "We recommend using GitHub Importer to import projects from Subversion, Mercurial, Team Foundation Version Control (TFVC), or another Git repository. You can also use these external tools to convert your project to Git."
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago