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

P.S. Verified 70-486 testing software are available on Google Drive, GET MORE: https://drive.google.com/open?id=1zn-RYF8dr9YDVo7CrjJojQbLz1cS5Ag8


New Microsoft 70-486 Exam Dumps Collection (Question 4 - Question 13)

Q4. You create an ASP.NET MVC application. You host the application by using the Open Web

Interface for .NET (OWIN). You run the following command by using the NuGet Package Manager console:

install-package Microsoft.AspNet.SignalR

You plan to implement real-time push notifications from the server using ASP.NET SignalR. You need to complete the ASP.NET SignalR implementation.

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

A. Create a hub class to push content to clients.

B. Create a class that derives from the PersistentConnection class. Use the derived class to push content to clients.

C. Use the SignalR jQuery library in a web page to send messages to the hub and display updates from the hub.

D. Map a SignalR hub to the app builder pipeline by using an OWIN startup class.

E. Start the SignalR hub asynchronously and respond to the appropriate callback methods.

Answer: A,C,D

Explanation:

A: In Solution Explorer, right-click the project, select Add | New Folder, and add a new folder named Hubs.

Right-click the Hubs folder, click Add | New Item, select the Visual C# | Web | SignalR node in the Installed pane, select SignalR Hub Class (v2) from the center pane, and create a new hub named ChatHub.cs. You will use this class as a SignalR server hub that sends messages to all clients.

C: Use the SignalR jQuery library in a web page to send messages and display updates from the hub.

D: Create an OWIN startup class to configure the application.

References: https://www.asp.net/signalr/overview/getting-started/tutorial-getting-started-with-signalr-and-mvc


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

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)


Q6. You need to maximize performance of video delivery.

Which code segment should you use as the body of the GetVideoStream function in the Video-Controller class?

A. Option A

B. Option B

C. Option C

D. Option D

Answer: D


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

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

u2711 without [DataMember], you cannot serialize non-public properties or fields

u2711 without [DataMember], you cannot define an order of serialization (Order=) and the DCS will serialize all properties alphabetically

u2711 without [DataMember], you cannot define a different name for your property (Name=)

u2711 without [DataMember], you cannot define things like IsRequired= or other useful attributes

u2711 without [DataMember], you cannot leave out certain public properties - all public properties will be serialized by the DCS


Q8. You need to configure session storage in the web.config file to meet the technical requirements for scalability.

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

A. StateServer

B. InProc

C. AutoDetect

D. SqlServer

Answer: A,D


Q9. You are developing an application that uses many small images for various aspects of the interface.

The application responds slowly when additional resources are being accessed. You need to improve the performance of the application.

What should you do?

A. Preload all the images when the client connects to ensure that the images are cached.

B. Combine all the images into a single image and use CSS to create sprites.

C. Host all images on an alternate server and provide a CDN.

D. Convert the images to .png file format and stream all images on a single connection.

Answer: C


Q10. You are developing an ASP.NET MVC application in Visual Studio 2012. The application supports multiple cultures.

The application contains three resource files in the Resources directory:

Each file contains a public resource named Title with localized translation.

The application is configured to set the culture based on the client browser settings.

The application contains a controller with the action defined in the following code segment. (Line numbers are included for reference only.)

You need to set ViewBag.Title to the localized title contained in the resource files.

Which code segment should you add to the action at line 03?

A. ViewBag.Title = HttpContext.GetGlobalResourceObuect("MyDictionary", "Title");

B. ViewBag.Title = HttpContext.GetGlobalResourceObject("MyDictionary", "Title",new System.Globalization.CultureInfo("en"));

C. ViewBag.Title = Resources.MyDictionary.Title;

D. ViewBag.Title = HttpContext.GetLocalResourceObject("MyDictionary", "Title");

Answer: C

Explanation:

Only the Resources class is used.


Q11. 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: B

Explanation:

References: http://msdn.microsoft.com/en-us/library/aa292114(v=vs.71).aspx


Q12. 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


Q13. You deploy an ASP.NET MVC Web application to Internet Information Services (IIS). The application has a secure area that provides access to custom reports.

You must develop custom business logic to support the reports. The custom business logic has the following requirements:

You must be able to quickly modify and deploy updates to the business logic. You need to develop the custom business logic.

What should you do?

A. Update the report logic to include the custom business logic. Use WebDAV to publish the reports to the server.

B. Develop a new HTTP module that includes the custom business logic. Deploy the HTTP module to IIS.

C. Develop a new HTTP handler that includes the custom business logic. Deploy the HTTP handler to IIS.

D. Develop a new ISAPI filter that includes the custom business logic. Deploy the ISAPI filter to IIS.

Answer: C

Explanation:

An ASP.NET HTTP handler is the process that runs in response to a request that is made to an ASP.NET Web application.

ASP.NET maps HTTP requests to HTTP handlers based on a file name extension.

Incorrect:

Not B: HTTP modules differ from HTTP handlers. An HTTP handler returns a response to a request that is identified by a file name extension or family of file name extensions. In contrast, an HTTP module is invoked for all requests and responses. It subscribes to event notifications in the request pipeline and lets you run code in registered event handlers.

References: https://msdn.microsoft.com/en-us/library/bb398986.aspx


P.S. Easily pass 70-486 Exam with Examcollectionplus Verified Dumps & pdf vce, Try Free: https://www.examcollectionplus.net/vce-70-486/ (182 New Questions)