★ Pass on Your First TRY ★ 100% Money Back Guarantee ★ Realistic Practice Exam Questions

Free Instant Download NEW 70-486 Exam Dumps (PDF & VCE):
Available on: https://www.certleader.com/70-486-dumps.html


Exam Code: 70-486 (Practice Exam Latest Test Questions VCE PDF)
Exam Name: Developing ASP.NET MVC 4 Web Applications
Certification Provider: Microsoft
Free Today! Guaranteed Training- Pass 70-486 Exam.

2021 Aug dumps for 70-486 free download:

Q51. - (Topic 4) 

You are developing an ASP.NET MVC application that will be deployed on a web farm. 

Passwords must be stored in the web.config file and must not be readable or in a format 

that is easily decodable. 

You need to encrypt the passwords that are stored in the web.config file. 

Which command-line tool should you use? 

A. Aspnet_regiis.exe 

B. Aspnet_regbrowsers.exe 

C. Aspnet_setreg.exe 

D. Aspnet_compiler.exe 

Answer: A 


Q52. - (Topic 4) 

You develop an ASP.NET MVC application. The application has a controller named PeopleController.cs. The controller has an action method that returns a parent view. The parent view includes the following code. Line numbers are included for the reference only. 


The application also contains a partial view named People. The parent view must display the partial view. 

You need to add code at line 09 to display the partial view within the parent view. 

Which two code segments will achieve the goal? Each correct answer presents a complete solution. 

A. @{ Html.RenderPartial(“People”, Model);} 

B. @Html.Partial(“People”, Model) 

C. @Html.Display(“People”, Model) 

D. @Html.Raw(“People”) 

Answer: B 

Explanation: By default, any partial view rendered by calling @Html.Partial("PartialViewName") will get the view model passed to the parent view. 

Reference: How to populate mvc razor partial view 

http://stackoverflow.com/questions/13769707/how-to-populate-mvc-razor-partial-view 


Q53. - (Topic 2) 

You need to implement client-side animations according to the business requirements. 

Which line of code should you use? (Each correct answer presents a complete solution. Choose all that apply.) 

A. $("body h1:nth-child(1)").fadeIn(1000); 

B. $("body h1:nth-child(1)")-fadeOut(1000); 

C. $("body h2:nth-child(1)").animate({ opacity: 0 }); 

D. $("body h1:nth-child(1)").animate({ opacity: 1 }); 

Answer: B,C 


Q54. - (Topic 4) 

You are developing an ASP.NET MVC application. 

You need to authenticate clients by using NT LAN Manager (NTLM). 

Which authentication method should you implement? 

A. Basic 

B. Windows 

C. Forms 

D. Kerberos 

Answer: B 

Explanation: http://msdn.microsoft.com/en-us/library/aa292114(v=vs.71).aspx 


Q55. DRAG DROP - (Topic 1) 

You need to implement security according to the business requirements. 

How should you modify RunLogController? (To answer, drag the appropriate code segment to the correct location or locations. Each code 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.) 


Answer: 



Topic 2, Web Application 

Background 

You are developing an online shopping web application. 

Business Requirements 

A user is not required to provide an email address. If a user enters an email 

address, it must be verified to be a valid email address. 

Information about the first product on the product page must fade out over time to 

encourage the user to continue browsing the catalog. 

Administrators must be able to edit information about existing customers. 

Administrators also must be able to specify a default product on the product page. 

Technical Requirements 

General: 

The web store application is in a load-balanced web farm. The load balancer is not 

configured to use server affinity. 

The web store application is an ASP.NET MVC application written in Visual Studio 

2012. 

Products: 

The value of the productId property must always be greater than 0. 

The Products page for mobile devices must display to mobile users. The Products 

page for desktop devices must display to desktop users. 

Storage: 

The data must be stored in a serialized XML data format. 

Serialized objects must be schema-independent. 

Exception handling: 

Exceptions originating from IIS must display a page with support contact 

information. 

Some page links expire, and users who access these links encounter 404 errors. 

Exceptions must be logged by using the WriteLog method of the Utility class. 

Browser and device support: 

The application must support image format conversions from .bmp to .jpeg for 

mobile devices. 

The application must support image format conversions from .bmp to .png for 

desktop devices. 

Application Structure 







70-486 test question

Leading blogged by chris 70-486:

Q56. DRAG DROP - (Topic 4) 

You are developing an ASP.NET MVC application in a web farm. The application has a page that accepts a customer’s order, processes it, and then redirects the browser to a page where the order is displayed along with the shipping information. 

The order information should be available only to the page where the order is displayed. 

You need to store state and configure the application. 

What should you do? To answer, drag the appropriate item to the correct location. Each item 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. 


Answer: 



Q57. - (Topic 4) 

You are designing a localized ASP.NET MVC online shopping application that will be deployed to customers in the United States, China, France, and Brazil. The application must support multiple cultures so that content in the appropriate language is available in each area. 

You need to ensure that the content can be viewed in several languages. 

How should you implement this feature? 

A. Use a resource (.resx) file to provide translations. 

B. Use Systems.Collections.Generics.Dictionary to store alternative translations. 

C. Ensure that all strings are marked internal to avoid conflict with internal literals. 

D. Include language-specific content in the assembly manifest and use .NET culture libraries. 

Answer: A 

Explanation: A resource file is an XML file that contains the strings that you want to translate into different languages or paths to images. The resource file contains key/value pairs. Each pair is an individual resource. Key names are not case sensitive. For example, a resource file might contain a resource with the key Button1 and the value Submit. You create a separate resource file for each language (for example, English and French) or for a language and culture (for example English [U.K.], English [U.S.]). Each localized resource file has the same key/value pairs; the only difference is that a localized resource file can contain fewer resources than the default resource file. The built-in language fallback process then handles loading the neutral or default resource. 

Reference: SP.NET Web Page Resources Overview 


Q58. HOTSPOT - (Topic 4) 

You are developing an ASP.NET MVC application that authenticates a user by using claims-based authentication. 

The application must: 

. Use Windows Identity Foundation 4.5. 

. Support the Windows Azure Access Control Service. 

You need to implement authentication. 

How should you build the class constructor? (To answer, select the appropriate option from the drop-down list in the answer area.) 



Answer: 



Q59. - (Topic 3) 

You are creating a new authentication system that uses an HTTP header value. 

The existing authentication system must continue to operate normally. 

You need to implement the custom authentication. 

What should you do? (Each correct answer presents a complete solution. Choose all that 

apply.) 

A. Create a class derived from ActionResult and check for a valid HTTP header value in the ExecuteResult method. Change all actions to return this new class. 

B. Create an HttpHandler to check for a valid HTTP header value in the ProcessRequest method. 

C. Create an HttpModule and check for a valid HTTP header value in the AuthenticateRequest event. 

D. Create a class derived from AuthorizeAttribute and check for a valid HTTP header value in the AuthorizeCore method. Change usages of the existing AuthorizeAttribute to use the new class. 

Answer: C,D 


Q60. - (Topic 4) 

You are authoring unit tests. 

The unit tests must test code that consumes sealed classes. 

You need to create, maintain, and inject dependencies in the unit tests. 

Which isolation method should you use? 

A. T4 text templates and code generation 

B. Stub types 

C. Shim types 

D. Hard-coded implementation 

Answer: C 

Explanation: http://msdn.microsoft.com/en-us/library/hh549176.aspx 

Shim types are one of two technologies that the Microsoft Fakes Framework uses to let you easily isolate components under test from the environment. Shims divert calls to specific methods to code that you write as part of your test. Many methods return different results dependent on external conditions, but a shim is under the control of your test and can return consistent results at every call. This makes your tests much easier to write.