70-517 161Q&S Recertification for MCSD: SharePoint Applications by Lord Obsidian

You create a cloud-hosted SharePoint app.
You must make the app available in the SharePoint Store for customers to install on their host webs. You need to keep the style and navigation of the app the same as the host web of the app after it is installed by any customer.
What should you do?


A. Add a reference to SP.UI.Controls.js on the host web. Pass the AppUrl parameter to the host web. Apply branding to the host web.
B. Copy the CSS file from the app to the host web. Run the Chrome control to convert the CSS file to the host web format. Apply the styles contained in the CSS file to the host web.
C. Use a Chrome control to find the differences in the styles between the host web and the app. Resolve all of the differences by using JavaScript.
D. Add a reference to the SP.UI.Controls.js file located in the new /_layouts/15 directory. Pass the HostUrl parameter to the start page of the app. Use the Chrome control in JavaScript.


Answer Clike
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 Clike
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 Clike
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 Clike
Contoso uses a SharePoint site that contains subsites. Each subsite represents different projects. Each project site is based on a team site template and stores information and documents. Contoso has five teams: Manufacturing, Sales, Administration, Marketing, and IT. You must create a different look and feel for each team site such that any visitor to the site can identify the team by looking at the colors, fonts, and background image of the site. You need to create a different look and feel for each team. What should you do? (Each correct answer presents part of the complete solution. Choose all that apply.)


A. Open Contoso Corporate Microsoft PowerPoint Slides Template, save the template as ContosoCorporate.master, and then upload it to the Theme Gallery.
B. From SharePoint Designer, go to Content Types. Right-click and select Content Type Settings.
C. Get a site background image for each team and upload it to the site collection images library.
Then create a new master page for each team site by using the Master Page Gallery. Set the version to 15.
D. From the Web Designer Galleries, choose Composed Looks and create a new item for each team site. Specify the title, URL of the master page, theme, background image, and font schema file.
E. On the Site Settings page in the Look and Feel section, choose Change the look.
F. Create a new font XML schema with a font specification for each team.


Answer Clike
You are designing an HTML5 website.
You need to design the interface such that the content is viewable in all types of browsers, including screen readers, What should you do? (Each correct answer presents a complete solution. Choose all that apply.)


A. Ensure that content elements have valid and descriptive names.
B. Use Resource Description Framework (RDF) to describe content elements.
C. Convert HTML forms to XForms.
D. Use HTML5 semantic markup elements.
E. Annotate content elements with Accessible Rich Internet Application (ARIA) attributes.


Answer Clike
You are developing an ASP.NET MVC application by using Visual Studio 2012. The application throws and handles exceptions when it runs. You need to examine the state of the application when exceptions are thrown.
What should you do?


A. From the Debug menu in Visual Studio 2012, select Exceptions. Enable the Thrown check box for Common Language Runtime Exceptions.
B. From the DEBUG menu in Visual Studio 2012, select Attach to Process. Select the IIS process.
C. From the Debug menu in Visual Studio 2012, select Exceptions. Disable the User-unhandled check box for Common Language Runtime Exceptions.
D. From the TOOLS menu in Visual Studio 2012, click Customize. C!ic< tie Commands tab and select Debug.


Answer Clike
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 Clike
You are developing an ASP.NET MVC application by using Visual Studio 2012. The application throws and handles exceptions when it runs. You need to examine the state of the application when exceptions are thrown.
What should you do?


A. From the DEBUG menu in Visual Studio 2012, select Exceptions. Enable the Thrown check box for Common Language Runtime Exceptions.
B. From the DEBUG menu in Visual Studio 2012, select Exceptions. Disable the User-unhandled check box for Common Language Runtime Exceptions.
C. Add the following code to the Web.config file of the application.
<customErrors mode="On">
<error statusCode="500" redirect="CustomErrors.html" /> </customErrors>
D. Add the following code to the Web.config file of the application.
<customErrors mode="On" >
<error statusCode="404" redirect="CustomErrors.html"/>
</customErrors>


Answer Clike
You configure eDiscovery for a SharePoint Online site collection. You need to configure permissions for eDiscovery users so that users are able to access all discoverable content.
What should you do?


A. Add eDiscovery users to the Viewers group for the eDiscovery center.
B. Grant eDiscovery users access to all content in each web application.
C. Grant eDiscovery users Contribute permissions to the eDiscovery center.
D. Grant eDiscovery users site collection administrator permissions on every site collection that contains discoverable content.


Answer Clike
You develop a SharePoint app that reads social data from your company’s SharePoint site. You need to access the SocialFeedManager object.
Which object or URL should you use?


A. http://<siteUri>/_api/social.feed
B. SocialFeedManager(ClientRuntimeContext, ObjectPath);
C. http://<siteUri>/social.feed
D. SPSocialFeedManager(UserProfile);


Answer Clike
You need to print out the terms and term sets for the Document Library app named Project Documents. What should you do? (Each correct answer presents part of the solution. Choose all that apply.)


A. Insert the following code segment at line DL59:
Console.WriteLine("TermSet : = + termSet.Name + " Term : " + term.Name);
B. Insert the following code segment at line DL70:
Console.WriteLine("TermSet : " + termSet.Name);
C. Insert the following code segment at line DL35:
TaxonomySession taxonomy = TaxonomySession.GetTaxonomySession(clientContext);
D. Insert the following code segment at line DL56:
Console.WriteLine("TermSet : " + termSet.Name);
E. Insert the following code segment at line DL35:
TaxonomyItem taxonomy = TaxonomySession.GetTaxonomySession(clientContext);


Answer Clike
You need to configure permissions for the publishing portal in the Term Store Manager.
What should you do?


A. Add the URL http://adventureworks.com/sites/portal to the site collection access list.
B. Add the URL http://adventureworks.com/sites/portal to the Contributors list.
C. Add the URL http://adventureworks.com/navigation to the site collection access list.
D. Add the URL http://adventureworks.com/pages/navigation.aspx to the site collection access list.


Answer Clike
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 Clike
You need to configure a new site collection in Central Administration. You will use the site collection to manage navigation terms.
What should you do?


A. Create a site collection by using the Publishing Portal template.
B. Create a site collection by using the Enterprise Search Center template.
C. Create a site collection by using the Records Center template.
D. Set the website address to http://adventureworks.com/sites/navigation


Answer Clike
You need to implement the notifications for the custom list app named Admin. Which code segment should you add at line ER08?


A. public class EventReceiver1
B. public class EventReceiver1 : SPListEventReceiver
C. public class EventReceiver1 : SPItemEventReceiver
D. public class EventReceiver1 : SPEventReceiverBase


Answer Clike
You need to ensure that end users can access the project’s external content type and model by using the provided naming specifications.
Which properties in the external content-type editor must you set when you create the external content type in SharePoint Designer? (Each correct answer presents part of the solution. Choose all that apply.)


A. Set the value of the Display Name property to Project.
B. Set the value of the Namespace property to http://adventureworks/sites/portal.
C. Set the value of the Namespace property to proj_info.
D. Set the value of the Name property to proj_info.
E. Set the value of the Display Name property to proj_info.
F. Set the value of the Name property to Project.


Answer Clike
You need to create the term set for the Document Library app named Project Documents. What should you do? (Each correct answer presents part of the solution. Choose all that apply.)


A. Insert the following code segment into line DL18:
TermStore termStore = taxonomySession.GetDefaultKeywordsTermStore();
B. Insert the following code segment into line DL18:
TermStore termStore = taxonomySession.GetDefaultSiteCollectionTermStore();
C. Insert the following code segment into line DL24:
myTermSet.CreateTerm("-png", 1033, Guid.NewGuid());
D. Insert the following code segment into line DL24:
myTermSet.CreateTerm(".bmp", 1033, Guid.NewGuid());


Answer Clike
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 Clike
You need to create a link to the Dallas office page. Which URL should you use?


A. http://www.contoso.com/Offices/Dallas.aspx
B. http://www.contoso.com/Offices/Pages/Office.aspx
C. http://www.contoso.com/Offices/Pages/Office.aspx?Office=Dallas
D. http://www.contoso.com/Offices/Dallas
E. http://www.contoso.com/Offices/Pages/Office.aspx?TermID=b6e11481-3445-413c-9da0- b15ae5d5cbd4


Answer Clike
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 Clike
You need to configure search engine optimization for the site collection. On the Search Engine Optimization Settings page, what should you do? (Each correct answer presents part of the solution. Choose all that apply.)


A. Select the Do not filter link parameters option.
B. In the Filter link parameters text box, enter agentName&officeId&certs
C. In the Filter link parameters text box, enter agentName;officeId
D. In the Filter link parameters text box, enter agentName&officeId
E. Select the Filter link parameters option.
F. In the Filter link parameters text box, enter agentName;officeId;certs


Answer Clike
You need to implement connection management for catalog connections. Which method should you use? (Each correct answer presents part of the solution. Choose all that apply.)


A. Public void UpdateCatalogConnection(CatalogConnectionSettings catalogInfo)
B. Public void OnPublishCatalog(string catalogPath)
C. Public void DeleteCatalogConnection(string catalogPath)
D. Public void SetCatalogConnection(string catalogPath, boot disconnect)


Answer Clike
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 Clike
You need to resolve the image loading issue.
What should you do? (Each correct answer presents a part of the solution. Choose all that apply.)


A. Set the size of the site collection object cache to at least 100 MB.
B. Enable the binary large object (BLOB) cache on each front-end web server.
C. Activate the Content Organizer site feature.
D. Enable authenticated cache profiles for the site output cache.
E. Enable publishing features for the site collection.
F. Set the default device channel to the active channel.


Answer Clike
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 Clike
You need to configure filtering for the Product page.
Which filtering option should you use?


A. products/pages/products.aspx?productID=*&.productCategory=*
B. products.aspx;productID;productCategory; lucernepublishing.com
C. products; productID; productCategory; lucernepublishing.com
D. products/pages/products.aspx?*
E. productID;productCategory


Answer Clike
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 Clike
You need to ensure that employees can change their display name.
Which object model should you use?


A. Use the server-side object model.
B. Use a Representational State Transfer (REST) based service.
C. Use the JavaScript object model.
D. Use the .Net client-side object model.


Answer Clike
You need to configure authentication to access the SQL data source during development.
Which authentication mechanism should you use?


A. Impersonated Windows Identity
B. Pass Through
C. Impersonated Custom Identity
D. Forms Based Authentication


Answer Clike
You implement the dependency changes based on the requirements for the Litware web artifacts feature.
When you deploy the Litware.Intranet.Templates.wsp package, you receive an error message. You need to ensure that the package deploys successfully.
What should you do?


A. Set the scope of the Litware web artifacts feature to SPSite.
B. Set the scope of the Litware web artifacts feature to SPFarm.
C. Set the Is Hidden option of the Litware web artifacts feature to False.
D. Set the Auto Activate in Central Admin parameter of the Litware web artifacts feature to True.


Answer Clike
Customers report that upon creation of the Payment Confirmation document, they do not receive a confirmation message. You need to ensure that customers receive confirmation messages.
What should you do?


A. Ensure that the user has the correct permissions to start a workflow.
B. Ensure that the Payment Confirmation content type is deployed.
C. Ensure that the user is assigned to the Wholesale role.
D. Ensure that a workflow is associated with the document content type.


Answer Clike
You need to set the appropriate permission levels.
A variable named customRole references Wholesale.
Which code segment should you add at line UA09?


A. customRole.BasePermissions = _permissions | SPBasePermissions.ViewFormPages;
B. customRole .BasePermissions = _permissions | SPBasePermissions.ViewPages;
C. customRole.BasePermissions = SPBasePermissions.EmptyMask SPBasePermissions.ViewPages;
D. customRole.BasePermissions = SPBasePermissions.ViewPages;


Answer Clike
A server in the SharePoint farm experiences high memory usage. Task Scheduler on the server runs a Windows PowerShell script to perform backups of Wholesale sites. You need to resolve any memory leak issues in the Windows PowerShell script. What should you do? (Each correct answer presents a complete solution. Choose all that apply.)


A. Insert the code segment at line EW04:
Start-SPAssignment -Global
B. Insert the code segment at line EW17:
$site.Close()
C. Insert the code segment at line EW17:
Stop-SPAssignment -SemiGlobal
D. Insert the code segment at line EW17:
Stop-SPAssignment Global


Answer Clike
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 Clike
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 Clike
You need to create rules in the CourierMobile app based on the ItemType that arrives. For which ItemTypes should you test? (Each correct answer presents part of the solution. Choose all that apply.)


A. IPM.Schedule.Meeting.Tent
B. IPM.Note
C. IPM.Schedule.Meeting.Request
D. IPM.Appointment
E. IPM.Schedule.Meeting.Cancelled
F. IPM.Schedule.Meeting.Pos
G. IPM.Schedule.Meeting.Neg


Answer Clike
You need to ensure that the CloudManager app can write route progress check-ins to the courier’s microfeed. What should you do? (Each correct answer presents part of the solution. Choose all that apply.)


A. Ensure that SP.RequestExecutor.js can be accessed in a browser window with no errors.
B. Ensure that the CloudManager app has the Manage permission request scoped to the URL for the franchisee’s My Site.
C. Ensure that the MySite host is provisioned for each franchisee.
D. Ensure that all cookies are made available between the My Site and the CloudManager app domain.
E. Ensure that the CloudManager app has the Write permission request scoped to the URL for the franchisee’s My Site.
F. Ensure that SP.UserProfiles.js can be accessed in a browser window with no errors.


Answer Clike
You are creating a new authentication system that uses an HTTP header value. The existing authentication system must continue to operate normally. You need to implement the custom authentication.
What should you do? (Each correct answer presents a complete solution. Choose all that apply.)


A. Create a class derived from ActionResult and check for a valid HTTP header value in the ExecuteResult method. Change all actions to return this new class.
B. Create an HttpHandler to check for a valid HTTP header value in the ProcessRequest method.
C. Create an HttpModule and check for a valid HTTP header value in the AuthenticateRequest event.
D. Create a class derived from AuthorizeAttribute and check for a valid HTTP header value in the AuthorizeCore method. Change usages of the existing AuthorizeAttribute to use the new class.


Answer Clike
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. $("body h1:nth-child(1)").fadeIn(1000);
B. $("body h1:nth-child(1)")-fadeOut(1000);
C. $("body h2:nth-child(1)").animate({ opacity: 0 });
D. $("body h1:nth-child(1)").animate({ opacity: 1 });


Answer Clike
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 Clike
You need to modify the application to meet the productId requirement.
What should you do?


A. Modify the RegisterGlobalFilters method of the Global.asax.es file as follows.
Contract.Assume<ArgumentException>(productId != 0);
B. Modify the GetDealPrice method of ProductController as follows.
Contract.Requires<ArgumentException>(productId > 0);
C. Modify the RegisterGlobalFilters method of the Global.asax.es file as follows.
Contract.Requires<ArgumentException>(productId > 0);
D. Modify the GetDealPrice method of ProductController as follows.
Contract.Assume<ArgumentException>(productId > 0);


Answer Clike
You need to implement the business requirements for managing customer data. What should you do? (Each correct answer presents part of the solution. Choose all that apply.)


A. Add a class named Customer-Controller to the Controllers folder. Then add a method named Edit to the class.
B. Create a new controller named Administration in the Controllers folder. Add an action named EditCustomer to the controller.
C. Add a folder named Customer to the Views folder. Then create a view inside this folder named Edit.aspx.
D. Create a new folder named EditCustomer to the Views folder. In the new folder, create a new file named Administration.aspx.


Answer Clike
You need to make all of the rows in the table bold in the Views/RunLog/GetLog.cshtml view.
Which code segment should you use?


A. Table > th:last-child { font-weight: bold; }
B. Table+first-child{ font-weight: bold; }
C. Table>tr>th:nth-child{2){font-weight: bold; }
D. Table > tr { font-weight: bold; }


Answer Clike
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 Clike