aiotestking uk

70-517 Exam Questions - Online Test


70-517 Premium VCE File

Learn More 100% Pass Guarantee - Dumps Verified - Instant Download
150 Lectures, 20 Hours

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

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)

Q2. A server in the SharePoint farm experiences high memory usage. Task Scheduler on the server runs a Windows PowerShell script to perform backups of Wholesale sites.

You need to resolve any memory leak issues in the Windows PowerShell script.

What should you do? (Each correct answer presents a complete solution. Choose all that apply.)

A. Insert the code segment at line EW04: Start-SPAssignment -Global

B. Insert the code segment at line EW17:

$site.Close()

C. Insert the code segment at line EW17: Stop-SPAssignment -SemiGlobal

D. Insert the code segment at line EW17: Stop-SPAssignment –Global

Answer: A,C

Explanation: * Start-SPAssignment –Global initiates a new assignment store.

* Stop-SPAssignment . Disposes of objects in the provided assignment collection.

The Stop-SPAssignment cmdlet disposes of objects in the provided assignment collection.

Use the Global parameter to dispose of all objects in the global assignment collector and to stop the global store from collecting additional objects. Provide a SemiGlobal assignment collector to dispose of all contained objects.

From scenario:

* Performance Optimization and Memory Usage

SPSite objects must be removed from memory immediately after the objects go out of scope.

Q3. 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. Ngen.exe

C. Aspnet_merge.exe

D. EdmGen.exe

Answer: A

Explanation: http://msdn.microsoft.com/en-us/library/zhhddkxy(v=vs.100).aspx

Q4. You need to meet the requirements for data storage for the CourierMobile app and the CloudMananger app.

Which technologies should you use? (Each correct answer presents part of the solution. Choose all that apply.)

A. Windows Azure SQL Database

B. SharePoint content database

C. Secure Store

D. SQL Server Express LocalDB

E. SharePoint list

Answer: A,D

Explanation: A: SQL Azure in the cloud.

D: LocalDB is a lightweight version of Express that has the same programmability features, but it runs in user mode and has a fast, zero-configuration installation and a short list of prerequisites.

From scenario:

* CourierMobile App

The CourierMobile app must be able to capture more than 30 million data points of location data daily as they occur and upload the location data to the cloud when connected to the Internet.

* Cloudmanager App

/ The CloudManager app must elastically scale to capture courier location data as the number of bicycle couriers increases or decreases.

/ The CloudManager app must process bicycle courier location data from a data store capable of storing more than 30 million items.

Q5. 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: A,C

Q6. HOTSPOT 

You need to implement the map of the runners' paths.

How should you build the video viewer? (To answer, select the appropriate options in the answer area.)

Answer:

Q7. HOTSPOT 

You need to scope the feature containing the Litware Team Site template.

In the Feature Designer tool in Visual Studio 2012, which scope option should you select? (To answer, select the appropriate scope from the drop-down list in the answer area.)

Answer:

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

✑ My Dictionary.resx

✑ MyDictionary.es.resx

✑ MyDictionary.fr.resx

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

Q9. You need to implement the remote event receiver for the Admin Custom List app. What should you do?

A. Insert the following code segment at line RR05: 

ListRemoteEventReceiver (properties);

B. Insert the following code segment at line RR05:

ProcessOneWayEvent(properties);

C. Insert the following code segment at line RR11: 

ProcessEvent(properties);

D. Insert the following code segment at line RR11: 

ListRemoteEventReceiver(properties);

Answer: B

Q10. You need to validate that specific users can delete tasks. Which code segment should you insert at line CD04?

A. Option A

B. Option B

C. Option C

D. Option D

Answer: D