Ensurepass.com : Ensure you pass the IT Exams
2018 Aug Microsoft Official New Released 70-488
100% Free Download! 100% Pass Guaranteed!
Developing Microsoft SharePoint Server 2013 Core Solutions
Question No: 31 – (Topic 3)
You need to set the appropriate permission levels. A variable named customRole references Wholesale.
Which code segment should you add at line UA11?
-
customRole.BasePermissions = SPBasePermissions.ViewPages;
-
customRole.BasePermissions = _permissions | SPBasePermissions.ViewFormPages;
-
customRole.BasePermissions = SPBasePermissions.EmptyMask | SPBasePermissions.ViewPages;
-
customRole.BasePermissions = _permissions | SPBasePermissions.ViewPages;
Answer: D Explanation:
ViewPages, View pages in a Web site.
Scenario: A custom role named Wholesale must be created. Wholesale customers must be assigned to this role in order to view the promotions page.
Incorrect:
Not A, not C: The previous line, UA10, is: _permissions = this.GetExistingPermissions(); We should add this permission and the ViewPages permission.
Not B: ViewFormPagesView forms, views, and application pages, and enumerate lists.
Reference: SPBasePermissions enumeration
https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbasepermissions.aspx
Question No: 32 DRAG DROP – (Topic 3)
You need to add code at line CT11 to create the content types.
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:
Explanation:
docContentType1 is the Finance. The Order Details and Payment Confirmation types must refer to docContentType1.
Scenario:
-
A Document content type named Finance must be created at the site level. It must contain two site columns
-
The Order Details and Payment Confirmation content types must be derived from the Finance content type.
Question No: 33 HOTSPOT – (Topic 3)
You need to add code at line UA11 to create the custom role. You have the following code:
Which code segments should you include in Target 1, Target 2 and Target 3 to complete the code? (To answer, select the appropriate code segment from each drop-down list in the answer area.)
Answer:
Explanation:
-
SPRoleDefinition
The role definition, or permission level, is the list of rights associated with the role. For example, a user with the Read role can browse pages in the Web site and view items in lists. A role definition is a collection of rights bound to a specific object. Role definitions (for example, Full Control, Read, Contribute, Design, or Limited Access) are scoped to the Web site.
-
SPWeb.Update
Scenario: User Authorization
A custom role named Wholesale must be created. Wholesale customers must be assigned to this role in order to view the promotions page.
Incorrect:
Not RoleDefinitionCollection: SPWeb does not have a member RoleDefinitionCollection. Not web.Commit(): SPWeb does not have a method Commit().
Not web.AddProperty(CustomRole,_permissions) Just need to create the role, not add permissions.
Question No: 34 – (Topic 3)
You need to automate the backup of a site collection.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
-
Back up to a network folder.
-
Set the LockStatus of the site collection to Adding content prevented
-
Back up to a local folder and then move the backup to a network folder.
-
Use Central Administration to perform the backup.
-
Use Windows PowerShell to perform the backup.
Answer: C,E
Explanation: C: For better performance, Microsoft recommends that you back up to the local computer and then move the backup files to a network folder.
E (not D):
Scenario: Automation: Windows PowerShell must be used to automate all operations wherever possible.
Scenario: Backup and Recovery
-
In the event of hardware failure, the SharePoint environment must be restored to the most recent date.
-
The backup process must not degrade system performance.
-
Automation: Windows PowerShell must be used to automate all operations wherever possible.
Reference: Back up site collections in SharePoint 2013
Question No: 35 – (Topic 3)
You need to set the appropriate permission levels.
A variable named customRole references Wholesale. Which code segment should you add at line UA09?
-
customRole.BasePermissions = _permissions | SPBasePermissions.ViewFormPages;
-
customRole.BasePermissions = _permissions | SPBasePermissions.ViewPages;
-
customRole.BasePermissions = SPBasePermissions.EmptyMask | SPBasePermissions.ViewPages;
-
customRole.BasePermissions = SPBasePermissions.ViewPages;
Answer: B
Explanation: Add the ViewPages permission to the permissions of the variable
_permissions.
Scenario: User Authorization
A custom role named Wholesale must be created. Wholesale customers must be assigned to this role in order to view the promotions page.
Question No: 36 – (Topic 3)
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.)
-
Insert the code segment at line EW04: Start-SPAssignment -Global
-
Insert the code segment at line EW17:
$site.Close()
-
Insert the code segment at line EW17: Stop-SPAssignment -SemiGlobal
-
Insert the code segment at line EW17: Stop-SPAssignment -Global
Answer: A,C
Explanation: * Start-SPAssignment -Global initiates a new assignment store.
-
-
Stop-SPAssignment .Disposes of objects in the provided assignment collection.
The Stop-SPAssignmentcmdlet disposes of objects in the provided assignment collection.
Use the Global parameter to dispose of all objects in the global assignment collector and to stop the global store from collecting additional objects. Provide a SemiGlobal assignment collector to dispose of all contained objects.
From scenario:
* Performance Optimization and Memory Usage
SPSite objects must be removed from memory immediately after the objects go out of scope.
Question No: 37 – (Topic 3)
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?
-
Ensure that the user has the correct permissions to start a workflow.
-
Ensure that the Payment Confirmation content type is deployed.
-
Ensure that the user is assigned to the Wholesale role.
-
Ensure that a workflow is associated with the document content type.
Answer: D Explanation: Scenario:
Workflows associated with document content types must be initiated when documents are generated
When Payment Confirmation documents are generated, a workflow must send a notification to the customer by email.
Topic 4, LitwareInc Background
You are a SharePoint developer working for Litware Inc., a large bicycle manufacturing
company. Litware runs an intranet that is based on SharePoint Server 2010, side-by-side with a collaboration space for various departments. The IT department for Litware is migrating a SharePoint 2010 environment to a new SharePoint 2013 farm. Some collaboration site collections are already migrated, including a Marketing site collection.
Some of the intranet content must be migrated to the target platform; however, the whole intranet won’t be migrated as-is.
Business Requirements Intranet
Litware is redefining its brand identity. It is essential that the new intranet supports a wide
variety of mobile devices, platforms, and browsers. Some of the content must be migrated from the old intranet during the implementation. The redesigned intranet must be extensible. The solution must be designed with the changes in the underlying technology in mind.
A marketing company named Graphic Design Institute provides documents and guidelines for the new design for Litware#39;s intranet.
Collaboration
Litware has the following collaboration requirements:
->The collaboration space must include a start page containing information about site owners, contact data, and statistics on site usage. This information must be available for each collaboration space, directly after its creation.
->The project must be delivered in multiple phases.
->The solution must support changes and updates on the structure and functionality of the collaboration spaces.
Marketing collaboration space
Auditors must be able to create reports about the documents the Marketing team produces. Initial reports should show document distribution over projects and information about the most active documents, the top inactive documents, and the most active users. Additional reports will be added over time.
Technical Requirements Publishing Design for the Intranet
Litware will use the following web application for the intranet: https://intranet.litwareinc.com.
The publishing site design is delivered as a set of HTML files (litwarepublishing.html), CSS (Litwarepublishing.css), and image files from the marketing company. A design package must be created for easier deployment over various platforms. During the creation and application of the design package to the publishing site, SharePoint 2013 out-of-the-box capabilities must be used as much as possible to ensure simple design changes and to ease the upgrade procedures. The publishing site must support rendering on a number of devices, starting with Windows Phone 7. Apart from being deployed on all existing publishing sites, the design package must be automatically deployed each time a
publishing site is created. A search box must be available on all pages.
Collaboration
Litware will use two additional web applications for the collaboration:
->Collaboration 1: https://collab1.litwareinc.com
->Collaboration 2: https://collab2.litwareinc.com
Most of the features contained within the Team Site template are sufficient; however, a few additions to the template must be made to support the business requirements. In order to achieve this and ensure maximum portability, a web template based on the Team Site site definition must be created. A three-state workflow must be used to manage business processes. A customized default home page must be deployed by using a site feature.
Feature IDs:
->Three-state workflow: FDE5D850-671E-4143-950A-87B473922DC7
->Litware Web Artifacts: DBF805AB-03D9-43DC-9154-52D6AC54689F
The project must be implemented in phases, so a solution must be developed to support upgrade procedures. As soon as the package containing the web template Litware.Intranet.Templates.wsp is deployed, the Litware Team Site template must be available for use in all site collections. In order to make the solution as extensible as possible, all core functionality should be moved to the separate package Litware.Intranet.Core.wsp. Deployment of the package containing the Litware web templates Litware.Intranet.Templates.wsp must be prevented if the core package is not deployed in order to prevent deployment errors and eventually damage on the site structure itself.
Litware.Intranet.Templates contains two features:
->The LitwareWebTemplateFeature feature contains the Litware Team Site web template. Templates with this title must be available in the group Litware in the template selection.
->The LitwareWebArtifacts hidden feature contains code required to run after the provisioning is completed.
The LitwareWebArtifacts feature can be activated only if the LitwareWebTemplateFeature feature is activated as well.
Marketing site collection
An existing marketing collaboration site located in a web application named Collaboration 1 is located at https://collabl.litwareinc.com/sites/marketing. Collaboration 1 contains a document library with approximately 9000 documents for approximately 200 projects. The largest project contains 120 files. Documents are assigned to appropriate projects by using the Projects field. The farm uses the default throttle settings.
Auditors have access to the page that provides statistics on Marketing documents. This page contains a report on document distribution over projects and information about the most active documents, the top inactive documents, and the most active users. Processing the queries can result in working with huge result sets. You must ensure that the information on this page is always available and that the queries are not throttled. The
relevant code segment is available in the code sections area (MarketingAudit.ascx.cs).
Application Structure
Relevant portions of the app files are shown below. (Line numbers in the code segments are included for reference only and include a two-letter prefix that denotes the specific file to which they belong.)
Litware.Intranet.Templates.wsp, Module WebTemplatePropertyBag Element.xml file:
MarketingAudit.ascx.cs
Question No: 38 HOTSPOT – (Topic 4)
You create a document reporting Web Part for Marketing auditors.
You need to configure throttling for the Web Part. You insert the following code in line MA08
spQuery.QuerythrottleMode = Target 1
Which code segment should you include in Target1 to complete the code? (To answer, select the appropriate option from the drop-down list in the answer area.)
Answer:
Explanation: SPQueryThrottleOption Override;
The SPQueryThrottleOption enumeration has three values: Default, Override, and Strict. If you use the default value, the standard list view threshold applies to all users except local server administrators, who are not bound by either threshold. If you set the query throttle mode to Override, users who have the required permissions in the Web application user policy can query at the higher quot;auditors and administratorsquot; threshold. Local server administrators remain unbound by either threshold. Finally, if you set the query throttle mode to Strict, this closes down the local server administrator loophole and the standard list view threshold applies to all users.
Scenario: Auditors have access to the page that provides statistics on Marketing documents. This page con-tains a report on document distribution over projects and information about the most active doc-uments, the top inactive documents, and the most active users. Processing the queries can result in working with huge result sets. You must ensure that the information on this page is always available and that the queries are not throttled. The relevant code segment is available in the code sections area (MarketingAudit.ascx.es).
Question No: 39 DRAG DROP – (Topic 4)
You need to create a collaboration template.
Which code segment should you include in Target 1, Target 2, Target 3, Target 4 and Target 5 to complete the code? (To answer, drag the appropriate code segments to the correct targets 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:
Explanation:
Box 1: WebTemplate
Most of the features contained within the Team Site template are sufficient; however, a few additions to the template must be made to support the business requirements. In order to achieve this and ensure maximum portability, a web template based on the Team Site definition must be created.
Box 2: BaseTemplateName
Required. The internal name of the site definition on which the web template ultimately derives. This is the value of the Name attribute of the Template element in a WebTemp*.xml file.
Box 3: Name Attribute: Name
Required. The internal name of the web template.
Box 4: Title
Optional. Optional. The public name of the web template.
Box 5: DisplayCategory
Optional. Specifies the category in which the web template appears in the Microsoft SharePoint Foundation UI when users are selecting a type of website to create; for example, Collaboration, Meetings, or some other custom name. If it is not specified, the default is quot;Customquot;.
Scenario: The LitwareWebTemplateFeature feature contains the Litware Team Site web template. Templates with this title must be available in the group Litware in the template selection.
Question No: 40 – (Topic 4)
You create a document reporting Web Part for the Marketing team auditors. You need to configure throttling for the Web Part.
Which code segment should you insert at line MA08?
-
spQuery.QueryThrottleMode=SPQueryThrottleOption.Strict;
-
spQuery.QueryThrottleMode=SPQueryThrottleOption.Override;
-
spQuery.QueryThrottleMode=SPQueryThrottleOption.Disable;
-
spQuery.QueryThrottleMode=SPQueryThrottleOption.Default;
Answer: B
Explanation: The SPQueryThrottleOption enumeration has three values: Default, Override, and Strict. If you use the default value, the standard list view threshold applies to
all users except local server administrators, who are not bound by either threshold. If you set the query throttle mode to Override, users who have the required permissions in the Web application user policy can query at the higher quot;auditors and administratorsquot; threshold. Local server administrators remain unbound by either threshold. Finally, if you set the query throttle mode to Strict, this closes down the local server administrator loophole and the standard list view threshold applies to all users.
Scenario: Auditors have access to the page that provides statistics on Marketing documents. This page con-tains a report on document distribution over projects and information about the most active doc-uments, the top inactive documents, and the most active users. Processing the queries can result in working with huge result sets. You must ensure that the information on this page is always available and that the queries are not throttled. The relevant code segment is available in the code sections area (MarketingAudit.ascx.es).
Reference: Retrieve data more than the threshold limit
100% Ensurepass Free Download!
–70-488 PDF
100% Ensurepass Free Guaranteed!
–70-488 Dumps
EnsurePass | ExamCollection | Testking | |
---|---|---|---|
Lowest Price Guarantee | Yes | No | No |
Up-to-Dated | Yes | No | No |
Real Questions | Yes | No | No |
Explanation | Yes | No | No |
PDF VCE | Yes | No | No |
Free VCE Simulator | Yes | No | No |
Instant Download | Yes | No | No |