You use Azure Artifacts to host NuGet packages that you create. You need to make one of the packages available to anonymous users outside your organization. The solution must minimize the number of publication points. What should you do?
A.
Change the feed URL of the package
B.
Create a new feed for the package
C.
Promote the package to a release view.
D.
Publish the package to a public NuGet repository.
The only possible correct answer is: Publish the package to a public NuGet repository.
This is because to use the public feed feature in Azure DevOps, the project itself must be public:
"Public feeds are project-scoped feeds that live inside a public project. You cannot convert an existing organization-scoped feed into a project-scoped feed or a public feed." https://docs.microsoft.com/en-us/azure/devops/artifacts/tutorials/share-packages-publicly?view=azure-devops
On second thought perhaps the answer provided is correct. In fact, we don't have anything to be sure that the project is private. It could easily be public and use a Feed with scope = organization. In such a case it would be enough to create a new public feed to solve the problem and satisfy the requirement "The solution must minimize the number of publication points".
This is correct. If a project is private the its feed is private. If a project is public, the feed also becomes public. Questions says only one package needs to be made public
Azure Artifacts does not support anonymous access to feeds directly, even if you promote a package to a "release" view. Feeds are private by default and only accessible to users with Azure DevOps authentication.
From Chatgpt...
A common way to handle this in Azure Artifacts while minimizing “publication points” is to create a new feed in Azure Artifacts and configure that feed so it allows anonymous (public) access. That way, you only publish the package once (to your Azure Artifacts feed), and outside users can pull it without needing credentials.
Option D (publishing to a public NuGet repo like nuget.org) would require you to maintain two separate publication endpoints: your internal feed and nuget.org, which increases the number of publication points, so B is generally the correct choice in order to keep it simple and centralized.
I think it all boils down to the requirement to "minimize the number of publication points" explains why D. Publish the package to a public NuGet repository is a better choice.
Reasoning: Publishing to a public NuGet repository makes the package accessible globally to anonymous users without requiring additional management of feeds in Azure Artifacts.
Creating a public feed within Azure Artifacts requires maintaining and managing that feed, which technically creates an additional publication point. While it's possible, it adds complexity compared to using an already-established public repository like NuGet.org.
By publishing to NuGet.org, you leverage an existing infrastructure designed for public sharing, fulfilling the requirement more effectively.
Going with D.
B. Create a new feed: Creating a new feed within Azure Artifacts would still be private by default unless explicitly configured, which doesn’t align with minimizing publication points.
B is correct
Share packages publicly:
https://learn.microsoft.com/en-us/azure/devops/artifacts/tutorials/share-packages-publicly?view=azure-devops&tabs=nuget
The package is already in Azure Artifacts, one of the requirements is "The solution must minimize the number of publication points" - thus option B is correct.
The correct answer is D: Publish the package to a public NuGet repository. 🚀
Here’s why:
NuGet Package Repository (Public):
Hosting the package in a public NuGet repository makes it accessible to anyone, including anonymous users outside your organization.
No authentication is required, which meets the goal of external accessibility.
Minimizing Publication Points:
By using a public NuGet repository, you maintain just one publication point. No need for additional feeds or complex setups.
Other Options Explained:
New Feed for the Package: While creating a new feed is an option, it introduces unnecessary complexity and additional publication points.
Release View in Azure Artifacts: Release views are useful for managing package visibility within different environments, but they don’t address the requirement for external accessibility.
Minimized Publication Points: Leveraging an existing public repository eliminates the need for additional infrastructure or configuration within Azure Artifacts, keeping the number of publication points to a minimum.
Public Accessibility: Public repositories like nuget.org are readily accessible by anonymous users searching for NuGet packages.
Note that publishing to a public repository, e.g. nuget.org doesn't necessarily increase the number of publication points, because nuget.org is the main goto for public dependencies. Therefore it is likely that's already being used. In contrast, creating a new feed will at least add one extra publication point.
This section is not available anymore. Please use the main Exam Page.AZ-400 Exam Questions
Log in to ExamTopics
Sign in:
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.
TosO
Highly Voted 5 years, 4 months agoMarang73
4 years, 9 months agoprashantjoge
3 years, 4 months agordemontis
3 years, 4 months agordemontis
3 years, 4 months agoprashantjoge
3 years, 4 months agosanhoo
4 years agowebforce08
Highly Voted 5 years, 8 months agoKluk_Kluk
Most Recent 3 months agoKluk_Kluk
3 months agoBakare118
5 months agoChristian_garcia_martin
7 months agoDankho
8 months agoDankho
8 months agoMrAZ105
9 months, 3 weeks agoMrAZ105
10 months, 1 week agoMattt
10 months, 1 week agoSkankhunt
1 year agosondrex
1 year, 1 month agoFeriAZ
1 year, 4 months agoozbonny
1 year, 5 months agohardinxcore
1 year, 7 months agovsvaid
1 year, 8 months ago