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 data-oriented application that features a variety of storage schemas. The application object model must be mapped to the various storage schemas. 

You need to enable developers to manipulate the data. 

Which ADO.NET data access strategy should you use? (Each correct answer presents a complete solution. Choose all that apply.) 

A. LINQ to SQL 

B. Entity Framework 

C. DataAdapter 

D. DataReader 

Answer: A,B,C 

Q2. - (Topic 4) 

You are developing an ASP.NET MVC application that enables you to edit and save a 

student object. 

The application must not retrieve student objects on an HTTP POST request. 

You need to implement the controller. 

Which code segment should you use? (Each correct answer presents a complete solution. 

Choose all that apply.) 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: C,D 

Q3. HOTSPOT - (Topic 4) 

You are developing an ASP.NET MVC application. The layout page of the application references the jQuery library. You develop a view that uses the layout page. The view includes the following markup: 

The application includes the following class: 

When a user clicks the button, an AJAX call must retrieve the partial view and append it to the newBooks div element. 

You need to implement the AJAX request. 

How should you complete the relevant code? To answer, select the appropriate code segment from each list in the answer area. 

Answer:  

Q4. - (Topic 4) 

You are developing an ASP.NET MVC application that uses forms authentication. The application uses SQL queries that display customer order data. 

You need to prevent all SQL injection attacks against the application. 

How should you secure the queries? 

A. Implement parameterization. 

B. Pattern check the input. 

C. Filter out prohibited words in the input. 

D. Escape single quotes on string-based input parameters. 

Answer:

Explanation: With most development platforms, parameterized statements that work with parameters can be used (sometimes called placeholders or bind variables) instead of embedding user input in the statement. A placeholder can only store a value of the given type and not an arbitrary SQL fragment. Hence the SQL injection would simply be treated as a strange (and probably invalid) parameter value. 

Reference: https://en.wikipedia.org/wiki/SQL_injection#Parameterized_statements 

Q5. - (Topic 4) 

You are developing an ASP.NET MVC application. The application is deployed in a web farm and is accessed by many users. 

The application must handle web server failures gracefully. The servers in the farm must share the short-term state information. 

You need to persist the application state during the session. 

What should you implement? 

A. ASP.NET session state 

B. A local database 

C. A state server 

D. Profile properties 

Answer:

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

Q7. - (Topic 2) 

The GetDealPrice method must be called by using Ajax. 

You need to get the price of a product by using the GetDealPrice method of the ProductController. 

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

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: C,D

 

26. - (Topic 2) 

You need to add a method to the ProductController class to meet the exception handling requirements for logging. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Q8. HOTSPOT - (Topic 4) 

You are optimizing an Internet-facing website for search engine optimization. 

You are reading a Site Analysis Report from the SEO Toolkit. The report returns warnings that indicate the website HTML lacks key information necessary for search engine indexing. 

You need to improve the optimization of the site. 

What should you do? (To answer, select the appropriate option from the drop-down list in the answer area.) 

Answer:  

Q9. - (Topic 4) 

You are developing an ASP.NET MVC application. The application is deployed in a web farm and is accessed by many users. 

The application must handle web server failures gracefully. The servers in the farm must share the state information. 

You need to persist the application state during the session. 

What should you implement? 

A. A state server 

B. Cookieless sessions 

C. A web garden on the web servers 

D. An InProc session 

Answer:

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