Lead2pass provides the guaranteed preparation material to boost up your confidence in 70-486 exam. Successful candidates have provided their reviews about our guaranteed 70-486 preparation material, you can come to realize the real worth of our featured products through overviewing the reviews and testimonials.
QUESTION 121
You are designing an ASP.NET MVC 4 application that uses an Oracle database for persistence. What session configuration choices enable you to deploy your application on a web farm? (Choose all that apply.)
A. InProc
B. SQLServer
C. StateServer
D. Custom session provider
Answer: CD
QUESTION 122
You are creating an ASP.NET MVC web application.
The application must accept user input for a ProductName field.
To reduce delays due to invalid entries making round trips between the client and server, user input should be validated on the client before being submitted to the server.
Which code segment should you choose?
A. <div class="editor-label">
@Html.LabelFor(model => model.ProductName)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.ProductName)
</div>
B. <div class="editor-label">
@Html.LabelFor(model => model.ProductName)
</div>
<div class="editor-field">
@Html.ValidationMessageFor (model => model.ProductName)
</div>
C. <div class="editor-field">
@Html.EditorFor(model => model.ProductName)
@Html.ValidationMessageFor(model => model.ProductName)
</div>
D. <div class="editor-label">
@Html.LabelFor(model => model.ProductName)
</div>
Answer: C
QUESTION 123
You are creating an ASP.NET MVC web application.
Within the application, you have created a partial view for contact email and phone number.
Which code segment should you use to display the partial view on the main page?
A. <div class="float-right">
<section id="contact">
@Html.ActionLink("ContactPartial")
</section>
</div>
B. <div class="float-right">
<section id="contact">
@Html.Partial("ContactPartial")
</section>
</div>
C. <div class="float-right">
<section id="contact">
@RenderPage("ContactPartial")
</section>
</div>
D. <div class="float-right">
<section id="contact">
@RenderBody()
</section>
</div>
Answer: B
QUESTION 124
Hotspot Question
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:
QUESTION 125
Drag and Drop Question
You are developing an ASP.NET MVC application that allows users to log on by using a third-party authenticator.
You need to configure Microsoft Azure Access Control Services and the application.
Which five actions should you perform in sequence? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.)
Answer:
QUESTION 126
You are developing an ASP.NET MVC application.
The application has a contact view that includes a form for editing the displayed contact.
You need to save the Contact type when the form is posted back to the EditContact method.
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 D
D. Option E
Answer: CD
QUESTION 127
You are developing an ASP.NET MVC application that uses forms authentication.
Authentication credentials must be encrypted and secure.
You need to ensure that user credentials are persisted after users log on.
Where should you store the credentials? (Each correct answer presents a complete solution. Choose all that apply.)
A. In TempData
B. In Session
C. In ViewData
D. In a cookie
Answer: BD
QUESTION 128
You are developing an ASP.NET MVC application to be used on the Internet.
The environment uses Active Directory with delegation to access secure resources.
Users must be able to log on to the application to maintain their personal preferences.
You need to use the least amount of development effort to enable users to log on.
What should you do?
A. Enable Windows authentication.
B. Generate server SSL certificates and install them in IIS.
C. Enable Digest authentication.
D. Enable Forms authentication.
Answer: A
QUESTION 129
You are desinging 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 date store should you use?
A. profile properties
B. session state
C. database storage
D. application state
Answer: D
QUESTION 130
You are developing an application.
One requirement is that part of your data access layer needs to be available to a third party, that wants to get this information from a REST URL in XML.
Your company does not have experience with web services, but you have several websites running ASP.NET MVC 4.
How could you design and provide these new services? (Choose all that apply.)
A. Task an individual on staff to learn WCF, and have this individual develop and deploy these new services using WCF.
B. Use the Web API to create REST services using ApiController in which the serialization type is defined by the Accepts property of the browser.
C. Build a basic ASP.NET MVC 4 project in which the view simply passes through the information provided by the controller, and the controller manages the code for serializing the response.
D. Create an ASP.NET ASMX services file to get, serialize, and return the data.
Answer: BC
If you want to get more 70-486 exam preparation material,you can download the free demos in PDF files on Lead2pass.It would be great help for you exam.Wish you pass the exam successfully.