exam questions

Exam 70-487 All Questions

View all questions & answers for the 70-487 exam

Exam 70-487 topic 6 question 2 discussion

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

DRAG DROP -
You need to add code at line SU10 to ensure that event validation can occur.
How should you complete the code? To answer, drag the appropriate code segments to the correct locations. Each code segment may be used once, more than once, or not at all. You may need to 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:

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
bobtables
Highly Voted 5 years, 6 months ago
IFileProvider PhysicalFileProvider PhysicalFileProvider IHostingEnvironment
upvoted 37 times
abalone
5 years, 6 months ago
agreed with bob
upvoted 5 times
...
...
drugotomoeaz
Most Recent 4 years, 7 months ago
The IFileProvider is PhysicalFileProvider because only its constructor accepts only one parameter that is for the root directory. https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.fileproviders.physicalfileprovider.-ctor?view=dotnet-plat-ext-3.1#Microsoft_Extensions_FileProviders_PhysicalFileProvider__ctor_System_String_
upvoted 1 times
...
Dev666
4 years, 9 months ago
If it running as software as a service how can it need the physical file provider which Looks up files using the on-disk file system.
upvoted 1 times
Dev666
4 years, 9 months ago
tired in code can only be IFileProvider PhysicalFileProvider PhysicalFileProvider IHostingEnvironment
upvoted 2 times
...
...
vklu4itesvet
4 years, 11 months ago
IFileProvider (as it is dependency for a corresponding controller) PhysicalFileProvider (have no idea why since CosmosDB used for event data storage) IHostingEnvironment (for getting current root path) DirectoryInfo (return new points that and object is constructed there with a path as its parameter)
upvoted 1 times
...
MaverickCalibre
5 years, 5 months ago
To know why this is the answer I looked into EventsController and I see that IFileProvider is a dependency for the controller. So it makes sense to pass it as a dependency in the pipeline in Startup.cs. Return type of the method is PhysicalFileProvider instance so second parameter is PhysicalFileProvider.
upvoted 4 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 ...