070-486 Free Dumps Study Materials
Question 18: You are developing an ASP.NET Core MVC web application that provides assets to external
websites including images, JavaScript scripts and text files.
The external websites must be able to make full use of assets provided to them by the web
application, including JavaScript asynchronous HTTP requests.
Pages that refer to the images and text files do not load. External websites are unable to use assets.
You need to resolve the issues.
What should you do?
A. In the startup Configure method, call IApplicationBuilder. Use StaticFiles for the folder that
contains the files.
B. Mark vendor provided files as content and set the value for Copy to Output Directory to
CopyAlways
C. In the startup ConfigureServices method, call IServiceCollection. Add DirectoryBrowser for the
folder that contains the files.
D. Add a MVC controller and action to load the files from the folder.
Correct Answer: A
Explanation:
References: https://docs.microsoft.com/en-
us/aspnet/core/fundamentals/middleware/?view=aspnetcore-2.1&tabs=aspnetcore2x