Q1. 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
Q2. HOTSPOT
You are developing an ASP.NET MVC application.
You need to store membership information in a Microsoft SQL Server database.
How should you configure the membership provider? (To answer, select the appropriate options in the answer area.)
Answer:
Q3. You have a SharePoint publishing site. The marketing team tags their documents by using a managed metadata field named Location. The site has been fully crawled. Documents are tagged with city names only.
A SharePoint app on the site displays search results by using the following term set.
You create the following code segment to query the contents of the site: (Line numbers are included for reference only.)
You need to create a Keyword Query Language (KQL) expression to return results for all assets in the Central region.
Which code segment should you insert at line 02?
A. var queryTerms = "Location";
B. var queryTerms = "577c8e48-d5d9-4e5f-8e35-408c723feb11";
C. var queryTerms = "b49f64b3-4722-4336-9a5c-56c326b344d4";
D. var queryTerms = "owstaxidlocation: 1acfae8a-70b4-4ce0-bfbf-96c0e711f 8df"
Answer: C
Q4. You receive an error when you deploy the app. You need to resolve the error.
What should you do?
A. Deploy the app to http://contoso-public.sharepoint.com.
B. Enable side-loading of apps in the Visual Studio project properties.
C. Deploy the app to https://contoso-my.sharepoint.com.
D. Deploy the app to https://contoso.sharepoint.com/tasks.
Answer: A
Q5. When users attempt to retrieve a product from the product page, a run-time exception occurs if the product does not exist.
You need to route the exception to the CustomException.aspx page. Which method should you add to MvcApplication?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: B
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. DRAG DROP
You add a site column for an Enterprise Content Management (ECM) project by using the Site Column Designer in Visual Studio 2012.
What will the designer-generated XML look like? (To answer, drag the appropriate XML elements to the correct location or locations in the answer area. Each XML element 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:
Q8. HOTSPOT
You are developing an ASP.NET MVC application that authenticates a user by using claims-based authentication.
The application must:
✑ Use Windows Identity Foundation 4.5.
✑ Support the Windows Azure Access Control Service.
You need to implement authentication.
How should you build the class constructor? (To answer, select the appropriate option from the drop-down list in the answer area.)
Answer:
Q9. Adventure Works uses a SharePoint publishing site to host their public-facing website at http://www.adventureworks.com. The website gives external users the ability to register and sign in to the site to buy Adventure Works products.
You notice that publicly registered users see the SharePoint ribbon.
You need to ensure that the SharePoint ribbon is available only to content authors and administrators.
What should you do?
A. Open the current site master page in SharePoint Designer, place the SharePoint:SPSecurityTrimmedCcntrol control around the div tag with the s4-ribbonrow ID. Set the PermissionsString to ManageSubWeb.
B. Open the current site master page in SharePoint Designer, find a div tag with the s4 ribbonrow ID, and then remove all of the contents of the div.
C. Open the current site master page in SharePoint Designer and then place the SharePoint:SPSecurityTrimmedControl control around the div tag with the 34-ribbonrow ID. Set the PermissionsString to AddAndCustomizePages.
D. In the SharePoint project, add an Empty Element and then use the <HideCustomAction> tag to hide the ribbon.
Answer: B
Q10. A franchisee deletes several sites from the franchise's site collection. The franchisee site collection administrator must recover the sites.
You need to instruct the franchisee site collection administrator on how to access the page to recover the sites.
What should the site collection administrator do to get to the appropriate page?
A. Select General Settings for the Web Application in Central Administration and change the second stage Recycle Bin settings to 100 percent.
B. Select General Settings for the Web Application in Central Administration and change the first stage Recycle Bin settings to 0 days.
C. Select the Recycle Bin on the Site Settings page. Choose the appropriate sites and select Restore Selection.
D. Select the Recycle Bin in the Quick Launch page. Choose the appropriate sites and select Restore Selection.
Answer: C
Explanation:
Note: The sites have been deleted. They need to be restored. A and B are wrong because modifying the Recycle Bin settings after the sites are deleted will have no effect on the deleted sites.