70-517 Exam - Recertification for MCSD: SharePoint Applications

certleader.com

Q1. You develop a SharePoint app to create an approval workflow for expense reports. The app must collect user input before starting the workflow.

You need to use ASP.NET forms in the workflow. Which form type should you use?

A. Workflow input form

B. Workflow initiation form

C. Workflow task form

D. Workflow modification form

Answer: B

Q2. A user deploys a sandbox solution. The user cannot activate the solution.

You need to ensure that the user can activate the solution.

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

A. Grant permission to the user to execute the solution.

B. Grant permission to the user to activate the solution.

C. Start the Microsoft SharePoint Foundation Sandboxed Code Service.

D. Start the PerformancePoint Services.

Answer: A,C

Explanation: C: go into Central Administration and navigate to System Settings –> Manage Services on Server and start the “Microsoft SharePoint Foundation Sandboxed Code Service” service.

Q3. DRAG DROP 

You create an Enterprise Content Management (ECM) project. You write .NET client-side object model (CSOM) code to create a navigation term set in an existing term store to use in a taxonomy-based navigation.

You need to complete the code to get a reference to the term store.

How should you complete the relevant code? (To answer, drag the appropriate code segment to the correct location or locations in the answer area. Each code segment 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.)

Answer:

Q4. HOTSPOT 

You need to add the city of Dallas to the Cities term set.

On the Term Store Management Tool page, which option should you select? (To answer, select the appropriate option in the answer area.)

Answer:

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

Q6. If the canvas element is supported by the client browser, the application must display "London 2012" in the footer as text formatted by JavaScript at the end of the_Layout.cshtml file.

You need to modify the layout to ensure that "London 2012" is displayed as either formatted text or as plain text, depending on what the client browser supports.

Which code segment should you add?

A. <canvas id="myFooter">

@(Request,Browser.JavaApplets ? new HtmlString("London 2012") : null)

</canvas>

B. <canvas id="myFooter"London 2012</canvas>

C. <canvas id="myCanvas">London 2012</canvas>

D. <canvas id="myCanvas"><canvas>

<p>London 2012</p>

Answer: C

Q7. 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: C,D

Q8. DRAG DROP 

You troubleshoot the sandbox solutions that your team builds.

You need to redeploy a sandbox solution. You also need to identify which process must be debugged.

Where should you redeploy the solution, and which process should you debug? (To answer, drag the appropriate statements to the correct location or locations in the answer area. Each statement 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.)

Answer:

Q9. DRAG DROP 

You need to implement the Views\RunLog\_CalculatePace.cshtml partial view from Views\Runlog \GetLog.cshtml to display the runner's average mile pace.

How should you implement the view? (To answer, drag the appropriate code segments to the correct location or locations. Each code segment 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.)

Answer:

Q10. DRAG DROP 

You need to notify Windows phone users about the new Windows phone app.

Which three 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: