exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 5 question 33 discussion

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

DRAG DROP
-

You have an Azure Repos repository named repo1.

You need to clone repo1. The solution must clone only a directory named src/web.

How should you complete the script? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

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
WH16
Highly Voted 1 year, 8 months ago
On exam 2023-09-06, selected 1.- scalar clone repourl 2.- cd repo1/src 3.- git sparse-checkout set src/web Score 933
upvoted 20 times
...
iwillpassaz400
Highly Voted 1 year, 10 months ago
kay000001 is right, I did the test in my machine 1.- scalar clone repourl ---> will create the folders repo1/src 2.- cd repo1/src at this point repo1/src is empty but this is the root of repo1 3.- git sparse-checkout set src/web ----> will get the folder src/web from repo1 the structure will end up as repo1/src/src/web you can do the test given the link https://devblogs.microsoft.com/devops/introducing-scalar/#quick-start-for-using-the-gvfs-protocol
upvoted 11 times
...
hanzocodes
Most Recent 1 year, 5 months ago
url repo1/src web - Ur Really/Sweet Willis ;)
upvoted 1 times
...
vsvaid
1 year, 5 months ago
scalar clone repo cd repo/src git sparse-checkout set src/web
upvoted 1 times
...
peekingpicker
1 year, 7 months ago
tested on my machine : 1. scalar clone repourl using https 2. cd repo1/src 3. git sparse-checkout set web mysetup : repo= github my env: windows 11+github client cli
upvoted 3 times
peekingpicker
1 year, 7 months ago
my bad... since the original repo structure is : repo1\src\web so third answer should src\web second answer will need src after repo eventhough in your repo there is no subfolder named src
upvoted 3 times
...
...
resonant
1 year, 8 months ago
https://github.com/microsoft/git/blob/6d120bf93a79acc221b82c9a871fde81502fe0cc/contrib/scalar/docs/getting-started.md#creating-a-new-scalar-clone "At the end, the repo is located at <dir>/src." --> This means you actually have to run "git sparse-checkout set src/web" instead of "git sparse-checkout set web"
upvoted 2 times
...
Mcelona
1 year, 9 months ago
kay000001 is right. I have just tested the answer on my PC
upvoted 1 times
...
Pritam1991
1 year, 10 months ago
given answer looks correct
upvoted 5 times
...
KumaTed
1 year, 11 months ago
kay000001 is right, 3rd box should be src/web. after excuting the 2nd box command, a src folder will be created by default , but this is not the src folder of project. please try these commands in your PC
upvoted 5 times
...
din4venti
1 year, 11 months ago
Given answer looks correct https://devblogs.microsoft.com/devops/introducing-scalar/#quick-start-for-using-the-gvfs-protocol
upvoted 4 times
omerco61
1 year, 11 months ago
I checked. Its correct. $ scalar clone https://dev.azure.com/ms-scalar/_git/scalar $ cd scalar/src
upvoted 2 times
...
...
kay000001
1 year, 11 months ago
3rd box should be src/web, but correct me if I'm wrong.
upvoted 4 times
skashi
1 year, 11 months ago
You will be in src already from box 2's command
upvoted 8 times
Misterit
10 months, 4 weeks ago
agree, it´s the web folder we are looking for, path after clone= 'repo1/src/web' second command is cd repo1/src then there is only one option on the last command = 'web' == repo1/src/web
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