QUESTION 11
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: AD
QUESTION 12
You need to modify the application to meet the productId requirement. What should you do?
A. Modify the RegisterGlobalFilters method of the Global.asax.es 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.es file as follows.
Contract.Requires<ArgumentException>(productId > 0);
D. Modify the GetDealPrice method of ProductController as follows.
Contract.Assume<ArgumentException>(productId > 0);
Answer: B
QUESTION 13
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
QUESTION 14
You are designing an HTML5 website. You need to design the interface to make the content of the web page viewable in all types of browsers, including voice recognition software, screen readers, and reading pens. What should you do? (Each correct answer presents a complete solution. Choose all that apply.)
A. Annotate HTML5 content elements with Accessible Rich Internet Application (ARIA) attributes.
B. Convert HTML5 forms to XForms.
C. Ensure that HTML5 content elements have valid and descriptive names.
D. Use HTML5 semantic markup elements to enhance the pages.
E. Use Resource Description Framework (RDF) to describe content elements throughout the entire page.
Answer: AD
QUESTION 15
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: AC
QUESTION 16
Hotspot Question
You need to ensure that only valid parameters are passed to the EditLog action. How should you build the route? (To answer, select the appropriate options in the answer area.)
QUESTION 17
Drag and Drop Question
You need to ensure that the application uses RunLogRoleProvider custom role provider. How should you modify the web.config file? (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.)
QUESTION 18
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: CD
QUESTION 19
When users attempt to retrieve a product from the product page, a run-time exception occurs if the product does not exist. You need to route the exception to the CustomException.aspx page. Which method should you add to MvcApplication?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: B
QUESTION 20
You updated the web.config file with the HTTP run-time value required to display an alternative version of the site. You need to ensure that the correct page displays to the users. Which code segment should you use to update the controller?
A. If (Request.IsTabletDevice)
B. If (Request.Browser.IsBrowser(“Mobile”))
C. If (Request.UserAgent[“Tablet”])
D. If (Request.Browser.IsMobileDevice)
Answer: D
If you want to pass Microsoft 70-486 successfully, donot missing to read latest lead2pass Microsoft 70-486 practice tests.
If you can master all lead2pass questions you will able to pass 100% guaranteed.