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 logging.
Which items should you implement? (Each correct answer presents a complete solution. Choose all that apply.)
A. SPDiagnosticsServiceBase.WriteEvent
B. Microsoft.SharePoint.Diagnostics.ULSLogEntry
C. SPUser.Sid
D. PortalLog.LogString
E. SPAlertTemplate
F. SPSecurity.RunWithElevatedPrivileges
Answer: B,F
Explanation:
F: The SPSecurity.RunWithElevatedPrivileges executes the specified method with Full Control rights even if the user does not otherwise have Full Control.
* From Scenario:
/ You design an application framework. The framework is used by other developers on the team. The framework must include entry points that are used to log errors and exceptions. You need the entry points.
Incorrect:
Not D: PortalLog.LogString method
This member is reserved for internal use and is not intended to be used directly from your code.
Q3. The GetDealPrice method must be called by using Ajax.
You need to get the price of a product by using the GetDealPrice method of the ProductController.
Which code segment should you use? (Each correct answer presents a complete solution. Choose all that apply.)
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C,D
Q4. You need to maximize performance of video delivery.
Which code segment should you use as the body of the GetVideoStream function in the Video-Controller class?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
Q5. You receive an error when you deploy the app. You need to resolve the error.
What should you do?
A. Create a deployment package and upload the app to the app catalog in SharePoint.
B. Enable side-loading of apps in the app manifest.
C. Deploy the app to https://contoso-my.sharepoint.com.
D. Enable side-loading of apps in the Visual Studio project properties.
Answer: A
Q6. 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:
Q7. 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:
Q8. You need to ensure that new customers enter a valid email address.
Which code should you use? (Each correct answer presents part of the solution. Choose all that apply.)
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A,D
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. DRAG DROP
You need to add code to line MP57 to display the required properties for the user profile.
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, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
Answer:
Q11. DRAG DROP
You need to apply the Design Package to all of the required sites.
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:
Q12. Adventure Works uses a web design firm to design the user interface for an upcoming toy sales website, www.toys.adventureworks.com. The website is built by using a SharePoint publishing template.
Adventure Works must implement the newly designed user interface for the site. The design firm provides a set of HTML, CSS, and JavaScript files.
You need to create and publish a SharePoint master page by using the supplied files. What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
A. From the Master Pages section in SharePoint Designer, select Create New Master Page and then replace the master page contents with the contents of the HTML file.
B. From SharePoint Designer, open the master page gallery. Right-click the new master page and then select Set as Default Master.
C. From the Design Manager, map a network drive to the /_layouts/masterpage/ folder. Then, in Windows Explorer, copy all the UI elements provided by the design team to the network share.
D. From the Edit Master Page section in Design Manager, select Convert an HTML File to a SharePoint Master Page to generate a master page from the HTML file provided by designer firm.
E. Publish the master page. Then, from Site Settings, choose the Look and Feel section, and then select Master Page. Choose the master page and select OK.
F. Preview the master page and select Snippets to get HTML segments of the SharePoint top navigation, quick launch, and body. Then, edit the master page by using Microsoft Notepad and replace the HTML with the new segments.
Answer: B,D,E
Explanation:
Note:
*
D, Not A: To convert the HTML file into a .master file
✑ Browse to your publishing site.
✑ In the upper-right corner of the page, choose Settings, and then choose Design Manager.
✑ In Design Manager, in the left navigation pane, choose Edit Master Pages.
✑ Choose Convert an HTML file to a SharePoint master page.
✑ In the Select an Asset dialog box, browse to and select the HTML file that you want to convert.
etc
Q13. 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
Q14. 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
Q15. 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.
Q16. DRAG DROP
You need to create workflows for your business processes by using the least amount of development effort.
Which four 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: