Q1. You need to configure search engine optimization for the site.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
A. Disable anonymous access to the web application while you make changes.
B. Activate the Search Engine Sitemap feature in the site collection.
C. Disable anonymous access to the site collection while you make changes.
D. On the Search Engine Optimization Settings page, in the Include these meta tags in pages text box, enter <meta name="do-not-follow" value="/_Configuration Files/" />
E. Ensure that the Search Engine Sitemap job is running.
F. On the Search Engine Sitemap Settings page, enter Disallow: /_ConfigurationFiles/ to the exclusion rules.
Answer: B,C,D
Explanation: * Steps in the SEO process:
/ Configure SEO settings for the site collection.
/ (B, not E) Configure sitemap settings for the site collection.
/ Add and edit SEO metatags.
* D (not F): Configure SEO settings for the site collection Verify site ownership
✑ Sign in to the webmaster tools portal for your desired search engine and provide
requested information about your website.
✑ From your SharePoint Public Website home page, click Settings Small Settings gear that took the place of Site Settings. > Site settings > Site Collection Administration > Search engine optimization settings.
✑ Click Include these meta tags in pages.
✑ Copy the meta tag provided by the webmaster tools portal, and paste it into the box.
✑ Click OK.
✑ From the webmaster tools portal, ask the search engine to verify your ownership of this website.
Q2. 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
Q3. HOTSPOT
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:
Q4. HOTSPOT
You use the SharePoint 2013 Management Shell to access a SharePoint farm. A user reports an error in one of the apps that you have installed. The error message contains the correlation token ID of b49f64b3-4722-4336-9a5c-56c326b344d4.
You need to save a report of the complete error trace for all errors that were reported in the previous 30 minutes.
How should you complete the Windows PowerShell cmdlet? (To answer, select the appropriate option from each drop-down list in the answer area.)
Answer:
Q5. DRAG DROP
You need to implement security according to the business requirements.
How should you modify RunLogController? (To answer, drag the appropriate code segment to the correct location or locations. 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:
Q6. You are testing an ASP.NET application.
The test plan requires that tests run against the application's business layer. You need to use the test project template that meets this requirement.
Which template should you use?
A. Web Test Project
B. Load Test Project
C. Unit Test Project
D. Coded Test Project
Answer: C
Q7. You need to implement client-side animations according to the business requirements.
Which line of code should you use? (Each correct answer presents a complete solution. Choose all that apply.)
A. $ ("h1: first") .animate ({ opacity: 0 });
B. $("h1:first").fadeIn(1000);
C. $("h1:first").animate({ opacity: 1 });
D. $("h1:first").fadeOut(1000);
Answer: A,D
Q8. 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
Q9. You need to ensure that developers can connect to a Windows Azure role by using RDP.
What should you do?
A. Export a certificate without a private key. Upload the .cer file to the Management Certificates section on the Azure Management Portal.
B. Export a certificate with a private key. Upload the .pfx file to the Management Certificates section on the Azure Management Portal.
C. Export a certificate without a private key. Upload the .cer file to the Certificates section under the TranscodeWorkerRole hosted service on the Azure Management Portal.
D. Export a certificate with a private key. Upload the .pfx file to the Certificates section under the TranscodeWorkerRole hosted service on the Azure Management Portal.
Answer: D
Q10. You are developing an ASP.NET MVC web application that includes the following method.
You need to test the AccountBalance method. Which unit test should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
Explanation: http://msdn.microsoft.com/en-us/magazine/cc163665.aspx http://msdn.microsoft.com/en us/library/microsoft.visualstudio.testtools.unittesting.assert.areequal(v=vs.110).aspx
Q11. You need to configure the credential store for the app.
Which properties should you configure? (Each correct answer presents part of the solution. Choose all that apply.)
A. Pin
B. Windows Password
C. Windows User Name
D. Password
E. User Name
Answer: D,E
Explanation: From scenario:
* A client asks you to create a basic task tracking app for SharePoint. The app will be hosted remotely
* Remote users will authenticate to the app by using a username and password.
Q12. DRAG DROP
You need to add code at line AJ05 to complete the implementation of the app.
How should you complete the relevant code? (To answer, drag the appropriate code segment to the correct location 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:
Q13. 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
Q14. DRAG DROP
You have an app named TaskManager 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 by using Windows PowerShell cmdlets.
What should you do? (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:
Q15. 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.
Q16. You need to display the "miles" unit description after the distance in the GetLog view. Which line of code should you use to replace line GL21? (Each correct answer presents a
complete solution. Choose all that apply.)
A. @log.Distance miles
B. @Htrml.DisplayFor(model => log.Distance) miles
C. @log.Distance.ToStringO @Html.TextArea ("miles")
D. @Htmi.DisplayFor(model => log.Distance.ToString() + " miles")
Answer: A,B