exam questions

Exam 70-487 All Questions

View all questions & answers for the 70-487 exam

Exam 70-487 topic 1 question 101 discussion

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

DRAG DROP -
You develop an application that uses ASP.NET Core and a MySQL Database. The application will use dependency injection to register MVC controllers. The application will also import a NuGet package to support the MySQL Database.
You need to configure the application.
Where should you configure package dependencies and dependency injection? To answer, drag the appropriate locations to the correct configuration options.
Each location 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.
Each correct selection is worth one point.
NOTE:
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
References:
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/dependency-injection?view=aspnetcore-2.2

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
nfgmaia
Highly Voted 5 years, 7 months ago
Package dependencies: csproj since .NET Core 2.0 (otherwise, project.json). Dependency injection: startup.cs
upvoted 56 times
Abou_riyad
4 years, 5 months ago
https://docs.microsoft.com/en-us/dotnet/core/tools/project-json-to-csproj
upvoted 1 times
...
...
Dev666
Highly Voted 4 years, 9 months ago
csproj and startup.cs
upvoted 7 times
...
kvijen
Most Recent 4 years, 7 months ago
Package dependency in Asp.net Core must be in csproj https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-add-package
upvoted 2 times
...
mmk1991
5 years, 3 months ago
https://docs.microsoft.com/en-us/nuget/archive/project-json
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 ...