exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 5 question 10 discussion

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

DRAG DROP -
You are creating a NuGet package.
You plan to distribute the package to your development team privately.
You need to share the package and test that the package can be consumed.
Which four 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: Configure a self-hosted agent.
The build will run on a Microsoft hosted agent.
Step 2: Create a new Azure Artifacts feed
Microsoft offers an official extension for publishing and managing your private NuGet feeds.
Step 3: Publish the package.
Publish, pack and push the built project to your NuGet feed.
Step 4: Connect to an Azure Artifacts feed.
With the package now available, you can point Visual Studio to the feed, and download the newly published package
Reference:
https://medium.com/@dan.cokely/creating-nuget-packages-in-azure-devops-with-azure-pipelines-and-yaml-d6fa30f0f15e

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
TosO
Highly Voted 5 years, 2 months ago
1. Create 2. Publish 3. Connect 4. Install
upvoted 206 times
tom999
4 years, 3 months ago
I think from all the discourse and referenced links we can summarize: 1. There is no evidence that self hosted agents are part of the solution. 2. The exact order of Connect and Publish depends on if you consider "connect to publish" or "connect to consume" a package (credits to Yumico), IMHO the following is the most precise resource to be considered in this case: https://microsoft.github.io/AzureTipsAndTricks/blog/tip206.html and it says: Create, Connect, Publish, Use (=Install) Last not least: - Create, Connect, Publish, Install => will be the right order no matter if you understand "connect to publish" or "connect to consume" - Create, Publish, Connect, Install => will be only right for "connect to consume"
upvoted 26 times
...
Christian_garcia_martin
9 months, 2 weeks ago
Absolute right
upvoted 1 times
...
hart232
5 years ago
Correct answer. Link below. https://medium.com/@dan.cokely/creating-nuget-packages-in-azure-devops-with-azure-pipelines-and-yaml-d6fa30f0f15e
upvoted 3 times
NomiZm80
4 years, 8 months ago
In the link, it's not using a self-hosted agent.
upvoted 4 times
...
...
plalwa
4 years, 5 months ago
why you need to install? just connect will confirm if it can be used privately.
upvoted 2 times
xRiot007
1 year, 10 months ago
You also have to test it, not just verify that you can download it.
upvoted 2 times
...
...
...
chaudh
Highly Voted 4 years, 11 months ago
Share package: - Create feed - Publish the package Test the package: - Connect the feed - Install the package
upvoted 28 times
resonant
1 year, 10 months ago
You can't publish the package without connecting first to it, your answer is wrong.
upvoted 2 times
resonant
1 year, 10 months ago
"without connecting first to it" By this I mean without connecting first to the feed, of course. I can't edit my comments here in examtopics.
upvoted 1 times
...
...
...
Gooldmember
Most Recent 6 months, 4 weeks ago
Create Connect Publish Install
upvoted 2 times
...
hanzocodes
1 year, 5 months ago
create pubs connect all
upvoted 1 times
...
Firdous586
1 year, 7 months ago
Azure Artifacts enables developers to publish and download NuGet packages from different sources such as feeds and public registries. With Azure Artifacts, you can create feeds that can be either private, allowing you to share packages with your team and specific users, or public, enabling you to share them openly with anyone on the internet. In this article, you'll learn how to: Create a new feed Set up your project and connect to your feed Publish NuGet packages Download packages from your feed https://learn.microsoft.com/en-us/azure/devops/artifacts/get-started-nuget?view=azure-devops&tabs=windows
upvoted 1 times
...
xRiot007
1 year, 10 months ago
Correct answer: 1. Create - you need a feed before doing anything 2. Connect - you need to provide in your project settings the connection details before any publish or install operation can be done 3. Publish - your feed now needs packages, so push some. 4. Install - the project can now pull and install packages from the custom feed instead of using NuGet or whatever feeds it used in the past. References: https://learn.microsoft.com/en-us/azure/devops/artifacts/get-started-nuget?view=azure-devops&tabs=windows#create-a-feed
upvoted 7 times
...
zellck
2 years ago
1. Create a new Azure Artifacts feed 2. Connect to an Azure Artifacts feed 3. Publish a package 4. Install a package https://learn.microsoft.com/en-us/azure/devops/artifacts/get-started-nuget?view=azure-devops&tabs=windows - How to create a new feed - How to set up your project and connect to your feed - How to publish NuGet packages to your feed - How to download NuGet packages from your feed
upvoted 10 times
Maximillian
1 year, 11 months ago
From our link it says download and publish, should 3 and 4 reverse?
upvoted 1 times
resonant
1 year, 10 months ago
The link explains how to download and publish independently of one another. This doesn't mean that you have to download it first. it doesn't even make sense. How are you going to download a package from the feed if it is not published in that feed yet?
upvoted 1 times
...
...
...
DGladiator
2 years ago
Create a new Azure Artifacts feed: This is where you'll be hosting your NuGet package privately. Azure Artifacts allows you to host and share packages within your organization, making it a perfect choice for your use case. Publish a package: After creating the Azure Artifacts feed, the next step is to publish your NuGet package to this feed. You'll need to make sure you've properly configured your package for publishing, which includes providing the necessary metadata in the .nuspec file. Connect to an Azure Artifacts feed: Once the package is published, you or your development team will need to connect to the Azure Artifacts feed to consume the package. This typically involves adding the feed to your NuGet configuration in Visual Studio or another development environment. Install a package: The final step in verifying that the package can be consumed is to actually install it. Using the NuGet CLI or the package management functionality in your development environment, you can install the package from the Azure Artifacts feed and confirm that it works as expected.
upvoted 2 times
resonant
1 year, 10 months ago
You have to connect to the feed to consume the package, but also to publish it in the feed, so you have to connect before publishing. How are you going to publish a package to a feed without connecting first to it?
upvoted 2 times
...
...
grimstoner
2 years, 6 months ago
1. Create 2. Connect 3. Install 4. Publish The question doesn't say anything about consuming the published package. I guess the "Install" refers to the installation of nuget and AACP as mentioned in #4 under "Connect to Feed" in this article: https://learn.microsoft.com/en-us/azure/devops/artifacts/get-started-nuget?view=azure-devops&tabs=windows#create-a-feed
upvoted 2 times
resonant
1 year, 10 months ago
Your answer is wrong. You can't isntall a package you didn't publish first. Also, what do you even mean by AACP?
upvoted 2 times
...
armvch
2 years, 2 months ago
The question literally says "test that package can be consumed". What do you mean doesnt say anything?
upvoted 3 times
...
...
syu31svc
2 years, 10 months ago
https://docs.microsoft.com/en-us/azure/devops/artifacts/get-started-nuget?view=azure-devops&tabs=windows#create-a-feed 1) Create a new Azure Artifacts feed 2) Publish a package 3) Connect to an Azure Artifacts feed 4) Install a package
upvoted 4 times
resonant
1 year, 10 months ago
How do you publish a package to a feed you didn't connect first? Your answer is wrong.
upvoted 1 times
...
...
Govcomm
2 years, 10 months ago
Create Connect Publish Install
upvoted 5 times
...
UnknowMan
3 years, 1 month ago
"You need to share the package and test that the package can be consumed." 1. Create 2. Connect 2. Publish 4. Install (For test the package consuming => Already connected -> configured in Visual studio)
upvoted 3 times
...
jonasis
3 years, 3 months ago
1- Create a new Azure Artifacts feed 2- Connect to an Azure Artifacts feed 3- Publish a package 4- Install a package. https://docs.microsoft.com/en-us/azure/devops/artifacts/get-started-nuget?view=azure-devops&tabs=windows#create-a-feed
upvoted 8 times
Endrit
3 years, 2 months ago
It is obvious from the link jonasis provided that this order is correct answer
upvoted 2 times
...
...
Sara_Mo
3 years, 4 months ago
the answer is correct 1. Configure 2. Create 3. Publish 4. Connect 5. Install https://medium.com/@dan.cokely/creating-nuget-packages-in-azure-devops-with-azure-pipelines-and-yaml-d6fa30f0f15e
upvoted 1 times
...
photon99
3 years, 6 months ago
1. Create 2. Connect 3. Publish 4. Install
upvoted 3 times
...
subrata83
3 years, 8 months ago
Got this in the Az-400 exam(Sep 27 2021)
upvoted 2 times
...
Leo128
3 years, 9 months ago
connect to the feed is difficult to place in the order as you need to connect to the feed twice - to publish and to install.
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 ...