70-517 Exam - Recertification for MCSD: SharePoint Applications

certleader.com

Q1. You are developing an ASP.NET MVC news aggregation application that will be deployed to servers on multiple networks.

The application must be compatible with multiple browsers. A user can search the website for news articles. You must track the page number that the user is viewing in search results.

You need to program the location for storing state information about the user's search. What should you do?

A. Store search results and page index in Session.

B. Use Application state to store search terms and page index.

C. Use QueryString to store search terms and page index.

D. Store search results and page index in TempData

Answer: C

Q2. DRAG DROP 

You need to add code at line CT11 to create the content types.

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

Q3. DRAG DROP 

A company uses SharePoint and Microsoft Dynamics CRM for collaboration and customer relationship management. The company uses Active Directory Domain Services (AD DS) for identity management. SharePoint and Microsoft Dynamics CRM are configured to use claims-based authentication. The company wants to authorize user access to SharePoint sites by using roles defined in Microsoft Dynamics CRM.

You create a custom claims provider. The provider adds a claim to the claim token for each role a user has in Microsoft Dynamics CRM. The provider also allows a site administrator to find and select roles from Microsoft Dynamics CRM to authorize user access. The custom claims provider must be created as a class library project to meet the unit testing requirements of the company. The custom claims provider project is complete and ready to be packaged for deployment.

You need to package and deploy the custom claims provider.

What should you do? (To answer, drag the appropriate actions to the correct location or locations in the answer area. Each action 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. You need to update the routes to ensure that a product is always displayed on the product page.

Which code segment should you use?

A. Option A

B. Option B

C. Option C

D. Option D

Answer: B

Q5. You have an app named TaskManagerApp that is published at http://sharepoint.contoso.com/apps.

You need to remove the app and ensure that users will no longer be able to use the app. Which Windows PowerShell cmdlets should you run?

A. Option A

B. Option B

C. Option C

D. Option D

Answer: A

Q6. DRAG DROP 

Adventure Works uses SharePoint for managing project-related documents, information sharing, and tasks management. You develop a SharePoint-hosted app named TasksViewer and deploy it to the Corporate Catalog Site. This app is used only by the Project Management Office (PMO) group. Only users in the PMO group have permission to view and add this app to various project sites. The Adventure Works IT department creates a security group in Active Directory for the PMO.

Currently all of the apps are visible to the Everyone group.

You need to ensure that only users in the PMO group can see the app.

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:

Q7. You are designing a distributed application.

The application must store a small amount of insecure global information that does not change frequently.

You need to configure the application to meet the requirements.

Which server-side state management option should you use? (Each correct answer presents a complete solution. Choose all that apply.)

A. Application state

B. Session state

C. Database support

D. Profile properties

Answer: A,C

Q8. DRAG DROP 

You plan to use an app event receiver in conjunction with a remote event receiver. You need to create the remote event receiver by using Visual Studio 2012.

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:

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

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

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

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

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

✑ without [DataMember], you cannot define a different name for your property

 (Name=)

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

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