exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 7 question 58 discussion

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

DRAG DROP -
You have a project in Azure DevOps that uses packages from multiple public feeds. Some of the feeds are unreliable.
You need to consolidate the packages into a single feed.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Step 1: Create a NuGet package.
NuGet and Maven are public package managers that support multiple feeds.
Step 2: Create an Azure Artifacts feed that uses upstream sources
If you want to use packages from multiple feeds, use upstream sources to bring packages from multiple feeds together into a single feed.
Step 3: Create a Micrtosoft Visual Studio project that includes all the packages
Consume NuGet packages from upstream sources: Now you can open Visual Studio and install packages from the upstream sources you just configured.
Reference:
https://docs.microsoft.com/en-us/azure/devops/artifacts/how-to/set-up-upstream-sources

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
Tesshu
Highly Voted 3 years, 7 months ago
I believe answer is wrong, it should be: 1. Create an azure artifacts feed that uses upstream sources Upstream sources enable you to use a single feed to store both the packages you produce and the packages you consume from both public packages managers (npmjs.com, NuGet.org, Maven Central, and PyPI) and Artifacts feeds. 2. Modify the configuration files to reference the Arure Artifacts feed Since they were referencing the public feeds 3. Run an initial package restore To pull the packages from the public feed and save them in the azure upstream feed: Packages belonging to an upstream are available downstream soon after they are published, but will only show up in the feed's UI once they have been 'ingested,' which requires installing the package version for the first time in the downstream feed. https://docs.microsoft.com/en-us/azure/devops/artifacts/concepts/upstream-sources?view=azure-devops https://docs.microsoft.com/en-us/azure/devops/artifacts/how-to/set-up-upstream-sources?view=azure-devops
upvoted 177 times
rdemontis
2 years, 7 months ago
Totally agree with you and the microsoft documentation demonstrates this. https://docs.microsoft.com/en-us/azure/devops/artifacts/tutorials/protect-oss-packages-with-upstream-sources?view=azure-devops&tabs=npm
upvoted 3 times
...
celciuz
3 years, 2 months ago
The provided answer is definitely wrong. Why? Because the question said that "multiple public feeds are unreliable" NuGet and npm feeds are public by nature. Hence, Teeshu's provided answer is correct.
upvoted 3 times
...
smariussorin
1 year, 8 months ago
Since you posted the question, why did you give the wrong answers? :D
upvoted 2 times
...
meinekarte
3 years, 6 months ago
tesshu is correct, no more action can be done here
upvoted 3 times
...
...
LeeVee
Highly Voted 3 years, 6 months ago
1. Create an azure artifacts feed that uses upstream sources 2. Modify the configuration files to reference the Azure Artifacts feed 3. Run an initial package restore
upvoted 29 times
...
vsvaid
Most Recent 10 months, 1 week ago
For me 1. Create feed that uses upstream src 2. Modify configs to use feed 3. Restore packages
upvoted 4 times
...
yana_b
1 year, 2 months ago
https://www.azuredevopslabs.com/labs/azuredevops/packagemanagement/ 1. Create AZ Artifacts feed 2. Create NuGet package 3. Create a Visual Studio project and import the packages The steps are listed in this lab
upvoted 1 times
...
renzoku
1 year, 3 months ago
1.Create an Azure Artifacts feed that uses upstream sources. You'll consolidate all your packages from various sources acting as the central repository for your packages. 2. Modify the configuration files to reference the Azure Artifacts. To point to this new feed as the package source andd your projects will pull the packages from the consolidated feed. 3. Run an initial package restore. This will trigger the retrieval of packages from the consolidated feed and ensure that your projects are now using packages from the new centralized location.
upvoted 2 times
...
Fal991l
1 year, 6 months ago
GPT: To consolidate the packages into a single feed, the following three actions should be performed in sequence: Create an Azure Artifacts feed that uses upstream sources Modify the configuration files to reference the Azure Artifacts feed Run an initial package restore The correct order is: d. Create an Azure Artifacts feed that uses upstream sources a. Modify the configuration files to reference the Azure Artifacts feed b. Run an initial package restore
upvoted 1 times
Fal991l
1 year, 6 months ago
Explanation: First, you need to create an Azure Artifacts feed that will host all the packages. This can be achieved by creating a feed and configuring it to use the upstream sources. Once the feed is created, you should modify the configuration files to reference the new Azure Artifacts feed, so that the package manager knows where to look for the packages. Finally, you should run an initial package restore to ensure that all the packages are available in the new feed. Creating a Microsoft Visual Studio project that includes all the packages or creating a NuGet or npm package is not necessary to consolidate the packages into a single feed. These actions are related to creating or managing packages, rather than consolidating them.
upvoted 2 times
...
...
randomaccount123
1 year, 7 months ago
Well it can't be the bottom two as it doesn't mention .NET or nodejs. So answer is: Create an azure artifacts feed that uses upstream sources Modify the configuration files to reference the Arure Artifacts feed Run an initial package restore
upvoted 1 times
...
Hieronimusov
1 year, 8 months ago
1. Create feed that uses upstream src 2. Modify configs to use feed 3. Restore packages (they are going to be added to your feed dynamically)
upvoted 1 times
...
syu31svc
2 years, 2 months ago
1) Create an Azure Artifacts feed that uses upstream sources 2) Create a Microsoft Visual Studio project that includes all the packages 3) Run an initial package restore https://docs.microsoft.com/en-us/azure/devops/artifacts/how-to/set-up-upstream-sources?view=azure-devops "With upstream sources, you can use a single feed to store the packages you generate and the packages you consume from public registries such as npmjs.com, NuGet.org, Maven Central, and PyPI.org. Once you've enabled an upstream source, every time you install a package from the public registry, Azure Artifacts will save a copy of that package in your feed."
upvoted 2 times
...
Eltooth
2 years, 5 months ago
1. Create an azure artifacts feed that uses upstream sources 2. Modify the configuration files to reference the Azure Artifacts feed 3. Run an initial package restore
upvoted 2 times
...
durel
2 years, 9 months ago
Tesshu is correct.
upvoted 1 times
...
erico
3 years, 4 months ago
First you can go ahead and create a feed in Azure Artifacts and include the upstream sources. Then create the Visual Studio project to include the packages and then perform a package restore.
upvoted 3 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