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 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. Implement HTTP caching in the ASP.NET MVC controllers. 

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

C. Install a second IIS instance. 

D. Move the content to a Windows Azure CDN. 

Answer:

Q2. - (Topic 4) 

You need to enable client-side validation for an ASP.NET MVC application. 

Which three actions should you perform? Each correct answer presents part of the solution. 

A. Attach a custom validation attribute to the model properties that the view uses. 

B. Reference the jquery, jquery.validate and jquery.validate.unobtrusive script files in the view. 

C. Open the web.config file at the project root, and set the values of the ClientValidationEnabled and UnobtrusiveJavaScriptEnabled keys to True. 

D. For each form element, use the Validator.element() method to validate each item. 

E. Add data annotations to the model properties that the view uses. 

Answer: B,C,E 

Explanation: B: . The validation can be implemented using jQuery and jQuery validation plug-in (jquery.validate.min.js and jquery.validate.unobtrusive.min.js). 

C: When you are developing an MVC application in Visual Studio 2012 then the client-side 

becomes enabled by default, but you can easily enable or disable the writing of the 

following app setting code snippet in the web.config file. 

<configuration> 

<appSettings> 

<add key="ClientValidationEnabled" value="true" /> 

<add key="UnobtrusiveJavaScriptEnabled" value="true" /> 

</appSettings> 

</configuration> 

E: The jQuery validation plug-in takes advantage of the Data Annotation attributes defined in the model, which means that you need to do very little to start using it. 

Reference: ASP.NET MVC Client Side Validation 

http://www.codeproject.com/Articles/718004/ASP-NET-MVC-Client-Side-Validation 

Q3. HOTSPOT - (Topic 4) 

You are developing an ASP.NET MVC application. The application includes the following code. Line numbers are included for reference only. 

You add the following markup to the system.web section of the web.config file: 

For each of the following statements, select Yes if the statement is true. Otherwise, select No. 

Answer:  

Q4. - (Topic 2) 

An advertising campaign was recently launched. Some of the ads contain a link to products that no longer exist or have IDs that have changed. 

You need to ensure that all product links display a product. 

Which code segment should you use to configure the route? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q5. 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:  

Q6. - (Topic 4) 

You are testing an ASP.NET application. 

The test plan requires that tests run against the application's business layer. 

You need to use the test project template that meets this requirement. 

Which template should you use? 

A. Web Test Project 

B. Load Test Project 

C. Unit Test Project 

D. Coded Test Project 

Answer:

Q7. - (Topic 2) 

You are designing a Windows Communication Foundation (WCF) service that uses the Product class. 

You need to update the class to meet the storage requirement. 

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

A. Mark the Product class with the DataContract attribute. 

B. Mark the public members of the Product class with the DataContractFormat attribute. 

C. Mark the Product class with the CollectionDataContract attribute. 

D. Mark the public members of the Product class with the DataMember attribute. 

Answer: A,D 

Explanation: So as of .NET 3.5 SP1, you don't have to add data contract or data member 

attributes anymore - if you don't then the data contract serializer will serialize all public 

properties on your class, just like the XML serializer would. 

HOWEVER: by not adding those attributes, you lose a lot of useful capabilities: 

. without [DataContract], you cannot define an XML namespace for your data to live 

in . without [DataMember], you cannot serialize non-public properties or fields . without [DataMember], you cannot define an order of serialization (Order=) and the 

DCS will serialize all properties alphabetically . without [DataMember], you cannot define a different name for your property (Name=) . without [DataMember], you cannot define things like IsRequired= or other useful attributes . without [DataMember], you cannot leave out certain public properties - all public properties will be serialized by the DCS 

Q8. DRAG DROP - (Topic 1) 

You need to ensure that only valid parameters are passed to the EditLog action. 

How should you build the route? (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:  

Q9. - (Topic 2) 

You need to modify the application to meet the productId requirement. Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

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

Note: 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 designing a distributed application that runs on the Windows Azure platform. 

The application must store a small amount of insecure global information that does not change frequently. 

You need to configure the application to meet the requirements. 

Which server-side state management option should you use? (Each correct answer presents a complete solution. Choose all that apply.) 

A. Windows Azure application state 

B. SQL Azure 

C. Profile properties of the Windows Azure application 

D. Windows Azure session state 

Answer: B,D 

Explanation: SQL Database provides a relational database management system for Windows Azure and is based on SQL Server technology. With a SQL Database instance, you can easily provision and deploy relational database solutions to the cloud, and take advantage of a distributed data center that provides enterprise-class availability, scalability, and security with the benefits of built-in data protection and self-healing. 

Session States in Windows Azure. 

If you are a Web developer, you are probably very familiar with managing user state - that is you are familiar with tracking user activity and actions across several request-response exchanges that occur in Web applications. Since HTTP is a stateless protocol, developers over the years have developed all sorts of means to manage state. You'll even find an MSDN page providing alternatives and recommendations for state management here. Cookies, hidden fields, and query strings are some client-side options to tracking user state. When it comes to managing that state on the server-side, most Web developers rely on session objects.