IT Certifications · 70-486

Exam 70-486: Developing ASP.NET MVC Web Applications Practice Test

Exam 70-486 practice focuses on building web applications with ASP.NET MVC. The question bank samples work with controllers and actions, model binding, Razor views and layouts, routing, configuration, HTTP responses, caching, and file uploads. These concepts connect request handling to the user interface and help developers make predictable choices when implementing or testing MVC features.

Exam overview

Exam providerMicrosoft
Exam code70-486
CategoryIT Certifications

About the Exam 70-486: Developing ASP.NET MVC Web Applications Exam

MVC development involves deciding how incoming URLs map to actions, how submitted values become action parameters, and how an action responds when requested data is missing. View-related work includes selecting a view result, composing reusable markup, and managing optional layout sections. The practice material also touches on configuration through the traditional ASP.NET configuration system, response behavior after redirects, and cache directives for static content. File-upload scenarios call for understanding multipart form encoding. For testing, distinguish inspecting a controller’s returned result from rendering Razor markup or relying on the file system. These topics reflect practical implementation decisions: handling absent records without unhandled errors, supplying defaults for optional parameters, and keeping request, controller, and view responsibilities clear.

Sample Practice Questions

Review a selection from this exam's published US Practice Tests practice bank.

Question 1

A controller action receives an entity identifier from a URL and uses it to retrieve a record. What is the most reliable way to avoid exposing an unhandled error when the record does not exist?

  1. AAssume the repository always returns an entity for a valid identifier
  2. BCheck whether the lookup returned a record and return an appropriate not-found response when it did not
  3. CCatch every exception and return the default view
  4. DConvert the identifier to a string before looking up the record
Show answerCorrect answer: B

A lookup can return no record even when the identifier has the expected format. Explicitly handling that outcome lets the application return an appropriate response, such as HTTP 404, rather than failing later when the missing entity is used.

Question 2

An action accepts a complex object populated from submitted form fields. Which MVC feature maps request values to that action parameter?

  1. AAction filters
  2. BModel binding
  3. CView discovery
  4. DRoute constraints
Show answerCorrect answer: B

Model binding reads values from sources such as form fields, route data, and query strings, then converts and assigns them to action parameters or model properties.

Question 3

A developer wants a controller test to verify that a view is selected without rendering Razor markup or accessing the file system. What should the test primarily inspect?

  1. AThe action result's view name and model data
  2. BThe final browser pixel layout
  3. CThe generated CSS bundle contents
  4. DThe database server's query plan
Show answerCorrect answer: A

A controller unit test can inspect the returned ViewResult, including its view name and model, without running the view engine. Rendering and browser presentation are better covered by other test types.

Question 4

A controller action has an optional integer parameter named page. If the URL does not provide that value, which declaration gives it a default of 1?

  1. Apublic ActionResult Index(int page = 1)
  2. Bpublic ActionResult Index(int? page == 1)
  3. Cpublic ActionResult Index(int page required 1)
  4. Dpublic ActionResult Index(default page: 1)
Show answerCorrect answer: A

C# optional parameters use an assignment in the parameter declaration, such as int page = 1. The other choices are not valid C# parameter syntax for a default value.

Question 5

A page needs reusable server-rendered markup for a small component that can be invoked from multiple views. Which MVC feature is designed for this purpose?

  1. AA partial view
  2. BA route parameter
  3. CA model binder
  4. DAn action selector
Show answerCorrect answer: A

A partial view encapsulates reusable view markup that can be rendered within other views. The other choices serve request routing or action parameter selection rather than reusable presentation markup.

Question 6

An MVC application needs to make application-wide configuration values available through the standard configuration system. Which file is commonly used for these settings in a traditional ASP.NET application?

  1. AWeb.config
  2. B_ViewStart.cshtml
  3. CGlobal.asax.cs only
  4. DContent/Site.css
Show answerCorrect answer: A

In traditional ASP.NET applications, Web.config is the standard configuration file for settings such as application configuration values and framework options. Startup code may read those settings, but it is not itself the configuration file.

Question 7

An MVC application must allow a browser to cache an unchanged static image for a period of time. Which response information is most directly used to communicate caching policy to clients and intermediaries?

  1. ACache-Control headers
  2. BThe action method name
  3. CThe route data values
  4. DThe view's model type
Show answerCorrect answer: A

HTTP Cache-Control response headers communicate caching directives, including whether and for how long a response may be cached. Action names, route values, and model types do not define HTTP caching policy.

How to use this practice test

Access is free. A session draws up to 20 random questions from the 50-question bank, so it may not include every question in one sitting. Submit your answers to see session results, then use missed items to identify MVC behaviors or HTTP concepts that need closer review.

Preparation tips

  • Trace a request from URL routing through action parameters and model binding; note how missing optional values and missing records should be handled.
  • Compare MVC result types, especially view and redirect results, and identify what a controller unit test can inspect without rendering a view.
  • Practice the Razor layout patterns for reusable components and optional sections, including how a view supplies page-specific scripts.
  • Review HTTP caching headers and the multipart form encoding needed to submit files alongside ordinary form fields.
  • Locate traditional ASP.NET application settings in configuration files and distinguish application-wide settings from values supplied in a request.
Official sourceOfficial exam page ↗