70-517 Exam - Recertification for MCSD: SharePoint Applications

certleader.com

Q1. You need to raise the visibility of the sites. What should you do?

A. Enable the Reports and Data Search feature for the site collection.

B. Create a custom timer job that generates the SiteMap.xml file in the root directory of the web application.

C. Add a Script Editor Web Part to the landing page of the publishing site. In the web part, enter the location of the SiteMap.xml file.

D. In Internet Information Services (IIS), enable the SiteMap ISAPI filter for the web application.

E. Enable the Search Engine Sitemap Site Collection feature for the site collection.

Answer: E

Q2. You need to implement caching in your code.

Which caching option should you use?

A. Object Cache

B. Distributed Cache

C. Windows Server AppFabric Cache

D. ASP.NET cache

Answer: C

Q3. HOTSPOT 

You are developing an ASP.NET MVC web application that enables users to open Microsoft Excel files.

The current implementation of the ExcelResult class is as follows.

You need to enable users to open Excel files.

How should you implement the ExecuteResult method? (To answer, select the appropriate options in the answer area.)

Answer:

Q4. You are developing an ASP.NET MVC application.

The application must allow users to enter JavaScript in a feedback text box only. You need to disable request validation.

What should you do?

A. Apply and set the CausesClientSideValidation attribute on the text box to FALSE.

B. Apply and set the ValidateInput attribute on the text box to FALSE.

C. Use the HttpRequest.Unvalidated property to read the unvalidated form value.

D. Use the HttpRequest.Form property to read the unvalidated form value.

Answer: C

Explanation: Provides access to HTTP request values without triggering request validation.

http://msdn.microsoft.com/en-us/library/system.web.httprequest.unvalidated.aspx

Q5. DRAG DROP 

You need to configure the content types and page layouts that are used to display information about the members of the board of directors.

How should you configure the content types and page layouts? (To answer, drag the appropriate content types to the correct location in the answer area. Each content type 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:

Q6. DRAG DROP 

You develop a .NET application named SPUserProfiles for a company called Contoso, Ltd.

SPUserProfiles communicates with a SharePoint app by using SharePoint Web Services. The SharePoint web service reference name is ProfileService. SPUserProfiles includes the following code segment: (Line numbers are included for reference only.)

You need to implement the UpdatePhoneNumber method.

How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct target 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:

Q7. You need to implement term set navigation.

Which code segment should you insert at line TN16?

A. Option A

B. Option B

C. Option C

D. Option D

Answer: A

Q8. After deploying a solution, a code-based hotfix becomes available. 

You need to deploy the hotfix.

What should you do? (Each correct answer presents part of the solution. Choose all that apply.)

A. Use assembly binding redirection in the web application configuration file.

B. Increment the assembly file version of the assembly.

C. Increment the product version of the assembly.

D. Increment the assembly version of the assembly.

E. Use assembly binding redirection in the assembly policy file.

Answer: A,C

Explanation: A: Assembly versions are everywhere in SharePoint – web.config files, web part definitions, workflow definitions, event receiver bindings – the list goes on. In each case, the version number is absolutely required so that SharePoint can load the code to run at that time. If you update an assembly’s version, you have two choices to ensure your code can still be loaded:

/ Find and update every reference to the previous assembly version.

/ Use a binding redirect in the relevant .config file (e.g. web.config) to point to the new version of the assembly.

C: Assembly Version : This is the version number used by framework during build and at runtime to locate, link and load the assemblies. When you add reference to any assembly in your project, it is this version number which gets embedded. At runtime, CLR looks for assembly with this version number to load. But remember this version is used along with name, public key token and culture information only if the assemblies are strong-named signed. If assemblies are not strong-named signed, only file names are used for loading.

Incorrect:

not B: Assembly File Version : This is the version number given to file as in file system. It is displayed by Windows Explorer. Its never used by .NET framework or runtime for referencing.

From scenario:

* solution artifacts must adhere to industry best practices.

* Code based hot fixes must be deployed directly to the Global Assembly Cache on all SharePoint servers.

* Only one version of an assembly must be available at runtime.

Q9. You need to implement term set navigation.

Which code segment should you insert at line TN24?

A. Option A

B. Option B

C. Option C

D. Option D

Answer: D

Q10. DRAG DROP 

You deploy a solution to a SharePoint server.

You need to implement a method to programmatically access the health score of the SharePoint Server.

Which three code segments should you use in sequence? (To answer, move the appropriate segments from the list of segments to the answer area and arrange them in the correct order.)

Answer: