aiotestking uk

70-486 Exam Questions - Online Test


70-486 Premium VCE File

Learn More 100% Pass Guarantee - Dumps Verified - Instant Download
150 Lectures, 20 Hours

Q1. - (Topic 4) 

You are designing a distributed application. 

The application must store secure information that is specific to an individual user. The data must be automatically purged when the user logs off. 

You need to save transient information in a secure data store. 

Which data store should you use? 

A. Session state 

B. Database storage 

C. Profile properties 

D. Application state 

Answer:

Q2. - (Topic 4) 

You are developing an ASP.NET MVC application. 

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

You need to disable request validation. 

What should you do? 

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

B. Apply and set the Validatelnput attribute on the controller action to FALSE. 

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

D. Apply and set the CausesValidation attribute on the controller action to FALSE. 

Answer:

Explanation: The HttpRequest.Unvalidated Property provides access to HTTP request values without triggering request validation. 

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

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. 

Q4. DRAG DROP - (Topic 1) 

You need to implement the Views\RunLog\_CalculatePace.cshtml partial view from Views\Runlog \GetLog.cshtml to display the runner's average mile pace. 

How should you implement the view? (To answer, drag the appropriate code segments 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:  

Q5. - (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/ 

Q6. DRAG DROP - (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. 

You have the following code: 

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

Q7. - (Topic 4) 

You are developing an ASP.NET MVC application that uses forms authentication against an Oracle database. 

You need to authenticate the users. Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Explanation: When implementing a custom membership provider, you are required to inherit the MembershipProvider abstract class. There are two primary reasons for creating a custom membership provider. You need to store membership information in a data source that is not supported by the membership providers included with the .NET Framework, such as a FoxPro database, an Oracle database, or other data source. You need to manage membership information using a database schema that is different from the database schema used by the providers that ship with the .NET Framework. A common example of this would be membership data that already exists in a SQL Server database for a company or Web site. 

Reference: MembershipProvider Class 

https://msdn.microsoft.com/en-us/library/system.web.security.membershipprovider(v=vs.110).aspx 

Q8. - (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 

Q9. - (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) 

Q10. - (Topic 4) 

You are developing an ASP.NET MVC web application in Visual Studio 2012. The application requires several thousand content files. All content is hosted on the same IIS instance as the application. 

You detect performance issues when the application starts. 

You need to resolve the performance issues. 

What should you do? 

A. Enable compression in IIS. 

B. Move the content to a second server. 

C. Combine the content files by using ASP.NET MVC bundling. 

D. Implement HTTP caching in IIS. 

Answer: