Q1. HOTSPOT - (Topic 5)
You work for a company named Contoso, Ltd. that sells computer parts. You tag inventory lists by using a term set named Computer Parts Classification. The term set is structured as follows.
You must create a console application that accesses the SharePoint site and you must add a ClientContext object named ctx. You need to create a term named i7-2600K that is a child of the CPU node and add a shared property to the i7-2600K term.
How should you complete the relevant code? (To answer, select the appropriate code segment from each drop-down list in the answer area.)
Answer:
Q2. - (Topic 2)
You create a custom Visual Web Part. You deploy the solution package to the farm by using Windows PowerShell. When you try to add the custom Visual Web Part to a SharePoint site, an error message displays that includes a correlation ID.
You need to determine the cause of the error.
What should you do? (Each correct answer presents complete solution. Choose all that apply.)
A. Run the Get-SPLogEvent Windows PowerShell cmdlet.
B. Run the Get-SPDiagnosticConfig Windows PowerShell cmdlet.
C. Run the Get-SPHealthAnalysisRule Windows PowerShell cmdlet.
D. View the Service Calls tab on the Developer Dashboard.
E. View the Unified Logging Service (ULS) tab on the Developer Dashboard.
Answer: A,E
Explanation: http://ittechnotebook.blogspot.co.uk/2013/07/how-to-find-real-error-in-sharepoint.html
Q3. DRAG DROP - (Topic 1)
You need to configure authentication for the external content type in the production environment.
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:
Q4. HOTSPOT - (Topic 5)
A SharePoint app displays the following search results:
You have the following requirements:
Group results by model.
Display only two rows per model.
Show a unique color for each model.
You need to define a query to meet the requirements.
How should you complete the relevant code? (To answer, select the appropriate code segment from each drop-down list in the answer area.)
Answer:
Q5. - (Topic 2)
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
Q6. DRAG DROP - (Topic 5)
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:
Q7. DRAG DROP - (Topic 1)
You need to add code to line MP22 to create the custom profile property.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct locations in the answer area. Each code segment may be used once or not at all. You may need to drag the split bar between panes or scroll to view content.)
Answer:
Q8. - (Topic 5)
You develop a Web Part that includes the following code segment (Line numbers are included for reference only.)
You log on to a SharePoint site with the user name Contoso\THartono. You need to display account details for the currently logged in user. Which code segment should you insert at line 13?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: B
Explanation:
// Get user properties for the target user.
// To get the PersonProperties object for the current user, use the
// getMyProperties method.
personProperties = peopleManager.getMyProperties(targetUser);
Q9. HOTSPOT - (Topic 5)
A company uses SharePoint to manage a large number of documents.
The Document ID Service feature is enabled. You need to create a custom class that generates a unique ID for each document.
How should you complete the class definition? (To answer, select the appropriate code segment from each drop-down list in the answer area.).
Answer:
Q10. - (Topic 5)
You develop a SharePoint-hosted app. The app includes the following code segment: (Line numbers are included for reference only.)
The app must display user profile data for the user that is logged in. The user profile data must include the PreferredName, Department, and WorkPhone properties.
You need to ensure that the app displays the required user profile data.
Which code segment should you insert at line 12?
A. var a = new SP.UserProfiles.UserProfile();
B. var a = new SP.UserProfiles.SocialFollowingManager(context);
C. var a = SP.UserProfiles.Profileloader.GetProfileLoader(context);
D. var a = new SP.UserProfiles.PeopleManager(context);
Answer: D