exam questions

Exam 70-486 All Questions

View all questions & answers for the 70-486 exam

Exam 70-486 topic 1 question 152 discussion

Actual exam question from Microsoft's 70-486
Question #: 152
Topic #: 1
[All 70-486 Questions]

DRAG DROP -
You are developing an ASP.NET Core MVC web application. The application uses a custom tool named sectarget that performs security audits of the web application's assemblies. The custom tool was built in netstandard1.1 and is packaged into a NuGet package named sectarget.
You need to ensure that the custom tool is run each time the web application is built or published and that the latest version of sectarget is used each time the tool is run.
How should you complete the markup? To answer, drag the appropriate XML segments to the correct locations. Each XML segment 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.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
References:
https://docs.microsoft.com/en-us/dotnet/core/packages

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
Gorilla
5 years, 7 months ago
The answer is correct: "custom tool was built in netstandard1.1", not that package version is 1.1, so the "*" is the best fit for the "latest version of sectarget".
upvoted 3 times
...
francis
5 years, 8 months ago
when using 1.1, NuGet would allow 1.1 and higher versions (if other dependencies required this package at higher version than 1.1). however, if there are no other dependencies requiring this package (presumably this case), then Nuget attempts to load lowest version possible. see https://docs.microsoft.com/en-us/nuget/concepts/dependency-resolution#lowest-applicable-version
upvoted 1 times
...
cristopherpereiramoreira
5 years, 11 months ago
'*' is correct in accordance with: ".. and that the LATEST version of sectarget is used each time the tool is run"
upvoted 4 times
...
Aghie
5 years, 11 months ago
Based from this post: https://docs.microsoft.com/en-us/nuget/concepts/package-versioning#version-ranges-and-wildcards the version should be '1.1' as it means the version is greater than or equal to 1.1.
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 ...