70-486 Premium Bundle

70-486 Premium Bundle

Developing ASP.NET MVC 4 Web Applications Certification Exam

4.5 
(21375 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 21, 2024Last update

Microsoft 70-486 Free Practice Questions

Q1. - (Topic 1) 

You need to extend the edit functionality of RunLogController. Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q2. - (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:

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

Q3. - (Topic 3) 

Customers download videos by using HTTP clients that support various content encodings. You need to configure caching on the DownloadVideo action to maximize performance. 

Which attribute should you add? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

E. Option E 

Answer:

Q4. - (Topic 4) 

You are developing an ASP.NET MVC application that displays stock market information. 

The stock market information updates frequently and must be displayed in real-time. 

You need to eliminate unnecessary header data, minimize latency, and transmit data over 

a full-duplex connection. 

What should you do? 

A. Implement long-running HTTP requests. 

B. Instantiate a MessageChannel object on the client. 

C. Implement WebSockets protocol on the client and the server. 

D. Configure polling from the browser. 

Answer:

Q5. - (Topic 2) 

You need to implement the business requirements for managing customer data. 

What should you do? (Each correct answer presents part of the solution. Choose all that apply.) 

A. Add a class named Customer-Controller to the Controllers folder. Then add a method named Edit to the class. 

B. Create a new controller named Administration in the Controllers folder. Add an action named EditCustomer to the controller. 

C. Add a folder named Customer to the Views folder. Then create a view inside this folder named Edit.aspx. 

D. Create a new folder named EditCustomer to the Views folder. In the new folder, create a new file named Administration.aspx. 

Answer: A,B 

Q6. - (Topic 4) 

You are developing an ASP.NET MVC application that will run on Azure. 

The application uses Event Tracing for Windows (ETW) for logging operations. 

You need to retrieve the ETW data for the application from a deployed Azure instance by using the Azure Diagnostics API. 

Which data source should you use? 

A. Azure Diagnostic infrastructure logs 

B. Windows event logs 

C. performance counters 

D. .NET EventSource 

Answer:

Explanation: Azure Diagnostics 1.2 and 1.3 are Azure extensions that enable you to 

collect diagnostic telemetry data from a worker role, web role, or virtual machine running in 

Azure. 

Diagnostics 1.2 and 1.3 enable the collection of ETW and .NET EventSource events. 

Example: 

EtwProviders> 

<EtwEventSourceProviderConfiguration provider="SampleEventSourceWriter" 

scheduledTransferPeriod="PT5M"> 

<Event id="1" eventDestination="EnumsTable"/> 

<Event id="2" eventDestination="MessageTable"/> 

<Event id="3" eventDestination="SetOtherTable"/> 

<Event id="4" eventDestination="HighFreqTable"/> 

<DefaultEvents eventDestination="DefaultTable" /> 

</EtwEventSourceProviderConfiguration> 

</EtwProviders> 

Reference: Enabling Diagnostics in Azure Cloud Services and Virtual Machines 

https://azure.microsoft.com/sv-se/documentation/articles/cloud-services-dotnet-diagnostics/ 

Q7. HOTSPOT - (Topic 4) 

You are developing an ASP.NET MVC web application that enables users to open Microsoft Excel files. 

The current implementation of the ExcelResult class is as follows. 

You need to enable users to open Excel files. 

How should you implement the ExecuteResult method? (To answer, select the appropriate options in the answer area.) 

Answer:  

Q8. - (Topic 1) 

You need to display the "miles" unit description after the distance in the GetLog view. 

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

A. @log.Distance miles 

B. @Htrml.DisplayFor(model => log.Distance) miles 

C. @log.Distance.ToString() @Html.TextArea("miles") 

D. @Html.DisplayFor(model => log.Distance.ToString() + " miles") 

Answer: A,B 

Q9. - (Topic 1) 

The RunLog/Views/InsertLog.cshtml view must display the /Images/stopwatch.png image and the “Insert Run Data” header text below the image. The view should resemble the exhibit. (Click the Exhibit button.) 

The application must display the image above the field set. 

You need to add the HTML code to /Runlog/Views/InsertLog.cshtml to display the image 

and header text. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Explanation: Example: 

<div style="background-image: url(../images/test-background.gif); height: 200px; width: 

400px; border: 1px solid black;">Example of a DIV element with a background 

image:</div> 

<div style="background-image: url(../images/test-background.gif); height: 200px; width: 

400px; border: 1px solid black;"> </div> 

Reference: DIV BACKGROUND-IMAGE in the STYLE element 

http://www.w3.org/WAI/UA/TS/html401/cp0301/0301-CSS-DIV-BACKGROUND-IMAGE.html 

Q10. DRAG DROP - (Topic 4) 

You are developing an ASP.NET MVC web application that requires HTML elements to take on new behaviors. These should be implemented with a behavior script in a page that is only for Microsoft Internet Explorer users. 

The colorchange.js script uses the Microsoft CSS vendor-specific Behavior extension. You need to apply the script with CSS. 

You need to use the script to change the color of text. 

You have the following markup: 

Which styles should you include in Target 1 and Target 2 to complete the markup? (To answer, drag the appropriate styles to the correct targets. Each style 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:  

Q11. - (Topic 3) 

The transcode.exe utility activates its license online when it is installed. 

You need to ensure that the registration of the transcode utility is handled as specified in its 

license. 

Which method should you add to the TranscodeWorkerRole class? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q12. - (Topic 4) 

You are developing an ASP.NET MVC application. 

The application must allow users to enter JavaScript in a feedback text box only. 

You need to disable request validation. 

What should you do? 

A. Apply and set the CausesClientSideValidation attribute on the text box to FALSE. 

B. Apply and set the ValidateInput attribute on the text box to FALSE. 

C. Use the HttpRequest.Unvalidated property to read the unvalidated form value. 

D. Use the HttpRequest.Form property to read the unvalidated form value. 

Answer:

Explanation: Provides access to HTTP request values without triggering request validation. 

http://msdn.microsoft.com/en-us/library/system.web.httprequest.unvalidated.aspx 

Q13. DRAG DROP - (Topic 4) 

You are developing an ASP.NET MVC application that has pages for users who browse the site with Windows Phone 7. 

The pages for Windows Phone 7 include the following files: 

. _Layout.WP7.cshtml 

. Index.WP7.cshtml 

You need to update the application so that it renders the customized files correctly to Windows Phone 7 users. 

How should you update the Application_Start method? (To answer, drag the appropriate line of code to the correct location or locations. Each line of code 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:  

Q14. - (Topic 2) 

You need to modify the application to meet the productId requirement. 

What should you do? 

A. Modify the RegisterGlobalFilters method of the Global.asax.cs file as follows. Contract.Assume<ArgumentException>(productId != 0); 

B. Modify the GetDealPrice method of ProductController as follows. Contract.Requires<ArgumentException>(productId > 0); 

C. Modify the RegisterGlobalFilters method of the Global.asax.cs file as follows. Contract.Requires<ArgumentException>(productId > 0); 

D. Modify the GetDealPrice method of ProductController as follows. Contract.Assume<ArgumentException>(productId > 0); 

Answer:

Explanation: 

The Contract.Requires(Of TException) method specifies a precondition contract for the enclosing method or property, and throws an exception if the condition for the contract fails. Syntax: 'Declaration Public Shared Sub Requires(Of TException As Exception) ( _ condition As Boolean _) Type Parameters TException The exception to throw if the condition is false. Parameters condition Type: System.Boolean The conditional expression to test. 

Reference: Contract.Requires(Of TException) Method (Boolean) 

Q15. - (Topic 4) 

You are developing an ASP.NET MVC application that will be deployed to servers on multiple networks. 

The application must be compatible with multiple browsers. You must track the page number that the user is viewing in search results. 

You need to program the location for storing state information. 

Where should you persist state information? 

A. Session 

B. QueryString 

C. Application 

D. TempData 

Answer:

Q16. DRAG DROP - (Topic 4) 

You are developing an ASP.NET MVC application in Visual Studio. The application contains sensitive bank account data. 

The application contains a helper class named SensitiveData.Helpers.CustomEncryptor. 

The application contains a controller named BankAccountController with two actions. 

The application contains a model named BankAccount, which is defined in the following code segment. 

The application must not display AccountNumber in clear text in any URL. 

You need to build the view for the GetAccounts action. 

You have the following code: 

Which code segments should you include in Target 1, Target 2 and Target 3 to build the view? To answer, drag the appropriate code segment to the correct targets. 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:  

START 70-486 EXAM