Quantcast
Channel: Free Download Updated PassLeader Exam Dumps
Viewing all 1919 articles
Browse latest View live

[Pass Ensure VCE Dumps] First Try Free PassLeader 70-576 Exam Dumps and First Pass 70-576 Exam (81-100)

$
0
0

Free Download 100% Pass Ensure 160q New 70-576 Exam Dumps! The new 70-576 vce dumps from PassLeader cover all new 70-576 exam questions, which will ensure your 70-576 exam 100% pass! Now the free new version VCE Player along with the 70-576 VCE braindumps, and the 70-576 PDF dumps are all available now!

keywords: 70-576 exam,160q 70-576 exam dumps,160q 70-576 exam questions,70-576 pdf dumps,70-576 vce dumps,70-576 study guide,70-576 practice test,PRO: Designing and Developing Microsoft SharePoint 2010 Applications Exam

QUESTION 81
You are designing a custom administrative timer job for a SharePoint 2010 farm. You need to design a storage plan for the program configuration data that meets the following requirements:
– The configuration data in the storage location must control the program logic for the timer job.
– The storage location must allow the configuration information to be saved and modified as the timer job parameters change.
– The storage location must require administrative access to modify the program logic.
– The storage method must support farm-scoped timer jobs.
Which object class should you use to create the storage location?

A.    the ConfigurationSection class in the web.config file
B.    the SPWebConfigModification class in in the web.config file
C.    the SPPersistedObject class in the hierarchical object store
D.    the SPWeb class in the site collection property bag

Answer: C

QUESTION 82
You are planning to store some custom configuration settings in a SharePoint 2010 farm. A set of key-value pairs must be saved and retrieved for several subsites within a web pplication. You need to ensure that the key-value settings are stored for each subsite. Which approach should you recommend?

A.    Declaratively store the values in the web.config file for the web application.
B.    Declaratively store the values in a custom list in the site collection that contains the subsites.
C.    Programmatically store the values in the property bag of the SPFile object.
D.    Programmatically store the values in the property bag of the SPWeb object.

Answer: D

QUESTION 83
You are designing a SharePoint 2010 Internet site for e-commerce. The site shows pricing information retrieved from a Microsoft SQL Server database for the deals featured each day on the home page. You need to cache the pricing data for each featured deal on the server and refresh the data with a minimum amount of network traffic. Which approach should you recommend?

A.    Use LINQ to SharePoint from a query of the database server for the pricing data.
B.    Use AJAX code on the client from the database server.
C.    Use the server session state to cache the data.
D.    Cache the data and use a lock to control the refresh of the cache data.

Answer: D

QUESTION 84
You are designing a Web Part for SharePoint 2010 that must be able to be used on any site in the farm. The Web Part will display data values updated from a Microsoft SQL Server database. Your design must:
– Verify the actual performance data of the Web Part on any page where it is used in the farm.
– Trace performance and latency through the SharePoint, .NET, and SQL Server layers of the Web Part execution process.
– Provide information that can be used to debug and troubleshoot all issues with page rendering time.
You need to meet all the requirements and allow your developers to enable this capability on any page they need to test. Which approach should you recommend?

A.    Build and deploy the Web Part as a sandboxed solution and set a daily quota for the Web Part. Monitor the Web Part memory utilization and adjust the appropriate ResourceMeasures property for the sandboxed solution.
B.    Build and deploy the Web Part as a sandboxed solution and set an absolute limit quota for the Web Part. Monitor the Web Part performance and adjust the appropriate ResourceMeasures property programmatically using the SharePoint object model.
C.    Build and deploy the Web Part hosted in each site that requires it. Set the developer dashboard to Off for the site. When testing performance, change the dashboard setting to On using a PowerShell script.
D.    Build and deploy the Web Part hosted in the Central Administration site. Set the developer dashboard to OnDemand in the farm. When testing performance, manually enable the dashboard on each Web page.

Answer: D

QUESTION 85
You are designing a SharePoint 2010 application. You have an Internet-facing site with numerous image and movie files. You need to ensure that these files are cached so that they are displayed to users quickly. Which approach should you recommend?

A.    In the SharePoint web.config file, set the cacheForEditRights property of the OutputCacheProfiles element to true.
B.    In the SharePoint web.config file, set the enabled property of the BlobCache element to true.
C.    In Site Collection Administration, use Site Collection Cache Settings to configure the cache.
D.    In Central Administration, use Search Administration to manage the cache.

Answer: B

QUESTION 86
You are consulting with a customer who has an Internet-facing SharePoint 2010 site. The SharePoint farm runs across multiple servers. The customer needs to improve the user experience on the site by improving Web page load times. The site customization requires extensive resources, including large image files, custom CSS, and JavaScript files. You need to suggest a way to help improve the SharePoint site performance that does not require a hardware upgrade. What should you recommend that the customer do?

A.    Configure the query servers in the farm as additional Web servers and verify that the object cache is enabled on all Internet-facing Web sites.
B.    Reconfigure the Web servers to increase the size of their page files.
C.    Enable disk-based caching on the Web servers for the Internet-facing Web site.
D.    Create an additional Microsoft SQL Server database to store the configuration database that stores the data for the site.

Answer: C

QUESTION 87
You are planning a development environment to create custom solutions for a production SharePoint 2010 farm. The plan needs a software tool to help diagnose application bugs introduced through custom code and provide information about the page rendering time from the Web request to the database query. Developers need to isolate problems and diagnose excessive execution times in the following items:
– Page request
– SPRequest
– Microsoft SQL Server 2008
You need to recommend a way for developers to identify if a value exceeds acceptable ranges in the items listed in the requirements. What should you tell the developers to do?

A.    Use the Object Explorer component of SQL Server Management Studio to configure the SQL Server Agent properties to Include execution trace messages.
B.    Enable the developer dashboard for the development environment to display the required information on all pages.
C.    Enable the Developer Tools in Microsoft Internet Explorer 8. Open the Script tab and click Start Debugging.
D.    Enable the Developer Tools in Internet Explorer 8. Set up live editing of cascading style sheets (CSS) and click a property name, value, or selector. Then type a new value and press Enter.

Answer: B

QUESTION 88
You are designing a SharePoint 2010 application that stores data in a list named BaseList. This list contains 25,000 records. A view named ViewList filters data on a column named CreateDate. The CreateDate column is of type Date and Time. The ViewList view requires too much processing time when displaying BaseList data. Your design needs to improve the performance of the ViewList view when it displays the BaseList data. Which approach should you recommend?

A.    Enable the Display items in batches of the specified size property in the Item Limit option of ViewList.
B.    Set the Group By option of ViewList to group by the CreateDate column.
C.    Add a column index to BaseList based on the CreateDate column.
D.    Change the CreateDate column type to Date Only.

Answer: C

QUESTION 89
You are designing a SharePoint 2010 application that has 24 lists. The application has the following characteristics:
– Some lists contain only Single line of text comulmns, while other lists have complex colunm types such as Person or Group and External Data.
– Each list contains 10,000 or more records.
Your design needs to limit the number of items in a single database operation to 2,500. Which approach should you recommend?

A.    Set the List View Lookup Threshold option to 2,500 items.
B.    Set the List View Threshold option to 2,500 items.
C.    Set the Number of groups to display per page property of the Group By option to 2,500 items.
D.    Set the Number of items to display property of the Item Limit option to 2,500 items.

Answer: B

QUESTION 90
You are designing a SharePoint 2010 application. You are also designing a Microsoft .NET Framework client application that will interact with the SharePoint application. You need to design the client application to create, update, and delete lists. Which approach should you recommend?

A.    Use the SP.UI.UIUtility class in the client application.
B.    Use SharePoint 2010 Web services in the client application.
C.    Use the SharePoint Foundation 2010 managed client object model in the client application.
D.    Create a Business Connectivity Services (BCS) package that manages tasks between the client and server applications.

Answer: C


http://www.passleader.com/70-576.html

QUESTION 91
You have a SharePoint Server 2010 server farm. You need to back up the Excel Services service Application. The solution must minimize the size of the backup. What should you do?

A.    From Central Administration, click Perform a backup.
B.    From Central Administration, click Perform a site collection backup.
C.    From the command prompt, run stsadm.exe and specify the export operation.
D.    From the SharePoint 2010 Management Shell, run the backup-spslte cmdlet.

Answer: A

QUESTION 92
You have a SharePoint Server 2010 server farm. You need to assign a cache profile for authenticated users. What should you do?

A.    From Central Administration, create a new user policy.
B.    From Site Settings, modify the Site Collection object cache.
C.    From Site Settings, modify the Site Collection output cache.
D.    From Site Settings, modify the Site Collection cache profiles.

Answer: D

QUESTION 93
You have an administrator-approved InfoPath form template that was created by using Microsoft InfoPath Designer 2010. You upload the form template to InfoPath Forms Services. You need to make the form template available to a site collection. What should you do first?

A.    Create a new content type in the site collection.
B.    Create a data connection library in the root site.
C.    From the form template’s context menu, select Quiesce Form Template.
D.    From the form template’s context menu, select Activate to a Site Collection.

Answer: D

QUESTION 94
You have a SharePoint Server 2010 server farm. You discover that SharePoint does not render Microsoft Office Excel workbooks that are stored on a file server named Server1. You need to ensure that SharePoint can render Excel workbooks that area stored on both Server1 and in SharePoint sites. What should you do?

A.    Add a new trusted file location for Excel Services.
B.    Add a new service account for the SharePoint Server Search service.
C.    Modify the location settings In the default trusted file location for Excel Services.
D.    Modify the workbook properties in the default trusted file location for Excel Services.

Answer: A

QUESTION 95
Your company has a SharePoint Server 2010 server farm. The company receives faxes as TIFF files. The files are stored in a document library. You need to index the content of the faxes and perform optical character recognition. What should you do first?

A.    Install an iFilter.
B.    Create a new search scope.
C.    Create a new content source.
D.    Start the Document Conversions Launcher Service.

Answer: A

QUESTION 96
You are creating a plan to add new functionality into a SharePoint 2010 farm. Several artifacts must be created to provide the new capabilities. The artifacts required include the following:
– A custom site definition with company branding
– A Web Part to provide a graph of business statistics
– Custom code to calculate the business statistics
Your plan needs to include a process to create and deploy the new functionality. Which approach should you recommend?

A.    Define the new site definition, including the company branding and all the required artifacts. Create a site using this new site definition.
B.    Define a site template built on a new site definition, which includes the company branding. Implement it on the site that includes the new artifacts. Reset IIS.
C.    Develop and test the required artifacts. Build the artifacts into a solution package. Deploy the solution package to the farm.
D.    Build the company branding and the new artifacts into a feature. Staple the new feature to an existing site definition in the farm. Reset IIS.

Answer: C

QUESTION 97
You are creating a plan to add new functionality to an existing application in a SharePoint 2010 farm. The original application uses a site definition for site creation. Your plan needs to specify how to deploy the new functionality to meet all these requirements:
– The new functionality must include a Web Part that displays sales statistics and graphs.
– New sites that use the site definition must contain the new Web Part.
– The new functionality must be added to several existing sites.
– Deploying the new functionality must not disrupt the current functionality of the sites.
Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)

A.    Build the new Web Part into a feature and deploy it to the farm.
Activate the feature on all the existing sites that require the new functionality.
B.    Create a new site template that includes the new Web Part.
Use this template to add the new functionality to all sites that require it.
C.    Create a new site definition that includes the feature.
Regenerate the existing sites that require the new functionality using this site definition.
D.    Create a new feature containing the Web Part.
Staple the feature to the site definition that was used to create the existing sites.

Answer: AD

QUESTION 98
The development team you manage has added new functionality to an application in the development environment that improves the application currently running in the production SharePoint 2010 farm. The added functionality includes several custom Web Parts. You need to create a plan to add the new functionality to the existing production SharePoint 2010 farm. Which approach should you recommend?

A.    Create a new application that includes the Web Parts and deploy it to the farm as a .wsp package.
B.    Export the site hosting the Web Parts as a .stp template file. Change the template file and import the .stp file back into the production farm.
C.    Build the new functionality into a feature and use the Stsadm Upgrade command to update the application in the farm.
D.    Build the new functionality into a feature in a new solution package and deploy it to the production farm.

Answer: D

QUESTION 99
You have designed a new SharePoint 2010 Web Part that was deployed to the testing environment. A tester has reported that clicking a custom button in the Web Part has no effect in the browser. You need to ensure that the button works as designed. Which approach should you recommend?

A.    Set the Load User Profile property to False in the SharePoint Central Administration v4 application pool. Then restart IIS.
B.    Verify that JavaScript is enabled in the tester’s browser and that User Account Control is not causing the issue.
C.    Enable the Full Control permission policy level in the Manage Permission Policy Levels dialog box.
D.    Clear the browser cache on the tester’s machine and reopen the browser.

Answer: B

QUESTION 100
You have a SharePoint 2010 farm that has one existing Web application. You have designed a new Web application. After the Web application is implemented, you immediately navigate to the URL. An error is returned saying the page cannot be found. You need to ensure that when users navigate to the URL of the new Web application, the standard SharePoint 2010 landing page is displayed. Which approach should you recommend?

A.    Ensure that the Start Automatically property is set to True in the application pool under which the URL of the new Web application runs.
B.    Ensure that the Application _Layouts pages reference site master pages property is set to Yes in the Web Application General Settings dialog box of the new Web application.
C.    Enter the URL of the new Web application in the Add a New Path property in the Define Managed Paths dialog box of the new Web application.
D.    Create a new site collection associated with the URL of the new Web application.

Answer: D


http://www.passleader.com/70-576.html


[Pass Ensure VCE Dumps] 90%+ People Are Finding The Premium 70-576 Exam Dumps For Free Download (101-120)

$
0
0

Free Download 100% Pass Ensure 160q New 70-576 Exam Dumps! The new 70-576 vce dumps from PassLeader cover all new 70-576 exam questions, which will ensure your 70-576 exam 100% pass! Now the free new version VCE Player along with the 70-576 VCE braindumps, and the 70-576 PDF dumps are all available now!

keywords: 70-576 exam,160q 70-576 exam dumps,160q 70-576 exam questions,70-576 pdf dumps,70-576 vce dumps,70-576 study guide,70-576 practice test,PRO: Designing and Developing Microsoft SharePoint 2010 Applications Exam

QUESTION 101
Your development team has discovered that a SharePoint 2010 application has performance issues. The application is experiencing periodic application pool recycling due to memory thresholds being exceeded. You need to determine the cause of this behavior. Which logs should you tell your team to analyze?

A.    Analyze the IIS logs for entries related to SPPersistedObject objects.
B.    Analyze the IIS logs for entries related to SPRequest objects.
C.    Analyze the Unified Logging Service (ULS) logs for entries related to SPPersistedObject objects.
D.    Analyze the ULS logs for entries related to SPRequest objects.

Answer: D

QUESTION 102
You are designing a Windows application that accesses information stored on a SharePoint 2010 intranet site. The application displays employee information in a data grid sourced from a list on the Human Resources site. To filter and manipulate the employee details list, the design includes a class to cache the data that is accessed. The class keeps the SPWeb object open, but only retrieves data that is not already cached. You need to ensure proper memory utilization and resource management for the application. Which approach should you recommend?

A.    Implement the class with the IDisposable interface and allow the .NET Framework garbage collector to automatically manage the SPWeb object disposal.
B.    Implement the class with the IDisposable interface and explicitly dispose of the SharePoint SPWeb object when you are finished using it.
C.    Implement the class as a fully managed .Net Framework object and allow the .NET Framework garbage collector to automatically manage the SPWeb object disposal.
D.    Implement the class as a fully managed .Net Framework object and explicitly manage the SPWeb object using the ISPerformanceMonitor interface.

Answer: B

QUESTION 103
You are asked to analyze a SharePoint 2010 system that is experiencing performance problems, especially under heavy loads. The system contains multiple custom Web applications and third-party Web Parts. The performance problems are exhibiting the following symptoms:
– The application pool recycles frequently.
– The system experiences slow client response times.
– The system experiences excessive page faults.
You need to identify a possible source of these performance issues and suggest a way to verify your analysis. What should you do?

A.    Propose that the custom code in the third-party application is not disposing of its objects properly, and verify the theory by checking the Unified Logging Service (ULS) logs for entries related to the SPRequest object.
B.    Propose that the paging file size is too large, and verify the theory by using the System Monitor to see if the % Usage counter for the paging file is 50% or less.
C.    Propose that the application pool recycle setting should be changed to recycle less frequently and verify the theory by retesting the system to verify improved performance.
D.    Propose that the application be moved to a server with a faster disk system that supports fault tolerance and retest the system to verify improved performance.

Answer: A

QUESTION 104
You are designing a SharePoint 2010 application. The code makes numerous calls to SPSite and SPWeb objects. The system and application performance is poor in the test environment. There is also a high level of memory use for IIS worker processes. You need to ensure that the application performance and high memory use issues are addressed. Which approach should you recommend?

A.    Use the Resource Throttling settings in Central Administration to increase site resource thresholds.
B.    Use the SPSite and SPWeb SharePoint 2010 PowerShell cmdlets.
C.    Ensure that the Dispose method of SPSite and SPWeb is called throughout the code.
D.    Ensure that the Close method of SPSite and SPWeb is called throughout the code.

Answer: C

QUESTION 105
You are designing a SharePoint 2010 application that contains a single list named User Data. You need to design the application to meet these requirements:
– The application must have a drop-down menu that contains key-value pair data.
– The data in the drop-down menu must be retrieved from a Microsoft SQL Server 2008 table.
Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)

A.    Create a new list that links to the external SQL Server table.
B.    Create a new list that has an external data column. Set the source of this column to the external SQL Server table.
C.    Create a managed metadata column on the UserData list. Add the data from the SQL Server table to this column.
D.    Create a lookup column on the UserData list that gets its information from an external list.

Answer: AD

QUESTION 106
You are designing a SharePoint 2010 application. You need to design a list that displays only data from contacts stored in Microsoft Office Outlook 2010. Which approach should you recommend?

A.    Create a list with an external data column. Set the External Content Type of this column.
B.    Create an external list. Create an external content type based on the external list and set the Office Item Type.
C.    Create an external content type and set the Office Item Type. Create an external list from the external content type.
D.    Export the contact list in Outlook 2010. Create a new external list based on the exported data file.

Answer: C

QUESTION 107
You are designing a SharePoint 2010 application. A Windows Communication Foundation (WCF) service provides a connection to company information. You need to design a list that gets its data from the WCF service. Which approach should you recommend?

A.    Create an external content type and set the External Data Source Type to WCF Service. Create a list that uses this external content type as its source.
B.    Create an external content type and set the External Data Source Type to .NET Type. Create a list that uses this external content type as its source.
C.    Create an external list and set the External Content Type property to the URL of the WCF service.
D.    Create an external list and set the External Content Type property to the Web Service Definition Language (WSDL) file of the WCF service.

Answer: A

QUESTION 108
You are designing a SharePoint 2010 application that displays information from an external database. You need to develop the application to meet the following requirements:
– Remote connections to the external database are not allowed.
– Data from multiple tables must be joined into a single list.
– The list must be synchronized with the external database.
Which approach should you recommend?

A.    Build a Web service to manage each table, and use the SPQuery object to join the data fields into a single list.
B.    Build a Web service to manage each table, use Business Connectivity Services (BCS) to import the individual tables into lists, and then create a new list that joins these external lists together.
C.    Build a Web service to join the data fields into a single list, and use BCS to synchronize the list with the external database.
D.    Build a Web service to join the data fields into a single list, and implement event receivers to synchronize the list with the external database.

Answer: C

QUESTION 109
Your company uses a third-party service to host its SharePoint 2010 site. The hosting service requires all sites to be sandboxed and uses forms-based authentication (FBA). You are asked to integrate the customer relationship management (CRM) data that is stored within your company’s domain into the SharePoint site. The CRM data is trimmed based on the user token and is made accessible via Web services. You need to display the CRM data in the correct way for each user token. Which approach should you recommend?

A.    Connect to the CRM system using Business Connectivity Services (BCS) with WindowsCredentials set as the authentication mode.
Use the Secure Store Service to map FBA credentials to domain credentials.
B.    Connect to the CRM system using BCS with PassThrough set as the authentication mode.
Use the Secure Store Service to map FBA credentials to domain credentials.
C.    Connect to the CRM system using BCS with RevertToSelf set as the authentication mode.
Use the Secure Store Service to map FBA credentials to domain credentials.
D.    Prompt users for their domain credentials and make a call to the web services using these domain credentials.

Answer: A

QUESTION 110
You are designing an architectural firm’s SharePoint 2010 environment. In order for the firm to bid on a new project, it must submit a detailed proposal that specifies exactly what kind of services they will offer and how much those services will cost. Different people must be able to work on separate parts of the proposal document simultaneously. The document must be generated quickly in order to increase the firm’s chances of getting the project. Employees who are working on the document are using Microsoft Word 2010. Your design needs to satisfy these requirements using no custom development. Which approach should you recommend?

A.    Add the new Word document to a SharePoint document library.
Configure a sequential workflow with the built-in document approval workflow, which allows each author to add and edit text until the document is complete.
B.    Add the new Word document to a SharePoint document library and allow the appropriate people to coauthor the document until it is complete.
C.    Create a SharePoint list for the document, where each list item corresponds to a section of the document.
Allow people to add one or more sections of the document to the list.
Create a Word add-in that retrieves content from the list and uses OpenXML to generate a Word document.
D.    Create an external database to store sections of the document.
Create an external SharePoint list that connects to the database using Business Connectivity Services.
Allow people to add one or more sections of a document to the external list.
Create a Word add- in that retrieves content from the database and uses OpenXML to generate a Word document.

Answer: B


http://www.passleader.com/70-576.html

QUESTION 111
You are designing a SharePoint 2010 intranet site. Employees are responsible for recording their daily activities, which are stored in a third-party database. To accurately track Web traffic on the site, the IT administrator has requested that only one form be available from only one URL. You need to design an input form that employees can use from SharePoint. Which approach should you recommend?

A.    Create an InfoPath Web-enabled form that submits data directly to the third-party database. Publish the form to a SharePoint form library where users can access the form.
B.    Create a Silverlight Web Part that submits data directly to the third-party database. Add the Web Part to a single Web Part page that employees can access on the site.
C.    Create an application page that submits data directly to the third-party database. Deploy the application page to the _layouts directory using a solution package.
D.    Connect to the third-party database using Business Connectivity Services. Create an external content type, and then create an external list based on that content type. Allow users to enter their activities by adding new items to the list.

Answer: D

QUESTION 112
You are designing a public-facing SharePoint 2010 Web site for an elementary school that has many events each year. School administrators plan events for students and their parents. You need to create a design for meeting the following requirements:
– Parents must be able to log on to the site and sign up for events electronically, regardless of the software they have installed on their computers or the browsers they are using.
– Each event registration needs to be saved in a list or library on the site.
– School personnel responsible for making changes need to be able to customize each new event registration form with images and text.
Which actions should your design specify? (Each correct answer presents a complete solution. Choose two.)

A.    Create a new document library for each event.
Then customize the Word document template for that new library.
Ask parents to fill out a new Microsoft Word document for each event and upload it to the document library.
B.    Create a new InfoPath 2010 form for each event.
Then publish the form to a new form library with InfoPath Forms Services enabled.
Create a custom Submit option so that when parents submit the form, the completed form is saved to the library.
Ask parents fill out the form in their browser.
C.    Create a new list for each event.
Use InfoPath 2010 to create a new registration form and customize it for each new event.
Ask parents to fill out the form to register for an event.
When parents submit the form, their information is saved as a new list item in the list.
D.    Create a new list for each event.
Use Microsoft Silverlight to create a new registration form and host the Silverlight control in a Web Part on the site.
Ask parents to fill out the form to register for an event.
Configure a data connection on the Web Part that will submit the form information to the new event list.

Answer: BC

QUESTION 113
You are designing a data capture approach for a SharePoint 2010 intranet site. You need to specify the data capture design elements in the user interface to meet the following requirements:
– The site must provide data-entry forms for users to update list data.
– The users should be allowed to take the submission form offline.
Which approach should you recommend?

A.    Design InfoPath 2010 client forms and deploy them to a SharePoint library for data entry and submission.
B.    Design InfoPath 2010 browser-based forms and deploy them with InfoPath Forms Services to SharePoint 2010 for data entry and submission.
C.    Design custom ASP.NET form pages and deploy them under the _layout folder. Use ASP.NET form pages for data entry and submission.
D.    Design SharePoint lists and allow users to enter and submit data.

Answer: A

QUESTION 114
You are designing a SharePoint 2010 site for your organization to capture customer contact information. The contact information for customers is stored in a Microsoft Dynamics CRM 4.0 database. You need to design a solution with no custom code that meets the following requirements:
– Sales department employees must be able to perform create, retrieve, update, and delete (CRUD) operations for their customer information records on the SharePoint site.
– The data in the SharePoint site must be synchronized with the data in the CRM Dynamics database because most customers do not have direct access to the CRM system.
– SharePoint users from the Sales department must be able to work with data while they are working offline.
Which approach should you recommend?

A.    Create client and browser-based forms with Microsoft Office InfoPath 2010.
Deploy the forms using SharePoint Form Services to provide all CRUD operations.
B.    Create an external content type for the contact list from the CRM system in SharePoint using Business Connectivity Services.
Create InfoPath client forms for CRUD operations.
Create a SharePoint 2010 workspace to synchronize the offline data.
C.    Create custom Microsoft ASP.NET form pages for CRUD operations.
Create a Microsoft SQL Server connection to the CRM system.
Create a farm-scoped solution and deploy it in the _layouts folder to provide access to the data on the SharePoint site.
D.    Create a custom content type in the contact list of the SharePoint site that connects to the CRM system.
Create Web forms to synchronize the contact list in the CRM system to the contact list in SharePoint.

Answer: B

QUESTION 115
The IT, human resources, and legal departments in a large company each have site collections that run in separate Web applications in a SharePoint 2010 server farm. You need to design a SharePoint information architecture that will meet the following requirements:
– All departments should use a consistent set of keywords.
– Certain enterprise keywords must be shared across all departments.
– The keywords should be managed dynamically.
– The keywords should be globally available to SharePoint service applications.
– The keywords should be able to be managed programmatically.
– The keywords management must use standard services and be maintained with built-in SharePoint 2010 administration tools.
Which approach should you recommend?

A.    Programmatically connect each Web application for all departments to the Global Managed Metadata shared service containing the common enterprise keywords.
B.    Programmatically add the site collection containing the common enterprise keywords list to the Web applications for all departments.
C.    Create a managed metadata term set of all of the common enterprise keywords and deploy it as a feature to the farm. Programmatically activate the feature in the Web application for all departments.
D.    Create a managed metadata term store of all of the common enterprise keywords and deploy it as a feature to the farm. Programmatically activate the feature in the Web application for all departments.

Answer: A

QUESTION 116
You are helping a corporate IT department create a SharePoint 2010 information architecture plan. You are creating guidelines for determining the site structure for new sites within all other departments in the corporation. The IT department must be able to:
– Adjust the physical storage capacity required for each department and create chagebacks based on the amount of database storage used.
– Assign storage quotas at the departmental level.
– Create site usage reports at the departmental level.
You need to design an information architecture structure that meets all these requirements. On which SharePoint structure should you base each department design?

A.    custom site definitions
B.    custom site templates
C.    individual site collections
D.    individual subsites

Answer: C

QUESTION 117
You are designing a SharePoint 2010 server farm that consists of multiple site collections that share enterprise-wide content types. The content types are updated on a monthly basis to ensure proper governance. The farm uses a managed metadata service application. You need to ensure that all the site collections automatically receive the updated content types in the most efficient manner and with the least amount of custom development. Which approach should you recommend?

A.    Configure Content Type Syndication to update the central site collection as changes are made to each individual site collection.
B.    Configure Content Type Syndication to update the individual site collection lists as changes are made to a central site collection.
C.    Create an event receiver in a central site collection that sends updates to the individual site collections as changes are made.
D.    Create an event receiver in each individual site collection that sends updates to the central site collection as changes are made.

Answer: B

QUESTION 118
You are designing a SharePoint 2010 application. The application must populate a site column based on data from an existing Microsoft SQL Server 2008 table. This table contains metadata information that is structured in a key-value pair. You need to design a column type that meets the requirements. Which type of column should you design?

A.    Business Data
B.    External Data
C.    Lookup
D.    Managed Metadata

Answer: B

QUESTION 119
You are designing a SharePoint 2010 application. You need to design the application according to the following requirements:
– The application must contain a workflow that can be started manually through the SharePoint user interface or through a call to SPWorkflowManager.StartWorkflow.
– The workflow must not be associated with a specific list or a document library.
Which approach should you recommend?

A.    Set the Site Scope property in Workflow Settings to enable the workflow across the entire site.
B.    Create a reusable declarative workflow.
C.    Create a sequential site workflow.
D.    Create a sequential list workflow.

Answer: C

QUESTION 120
You are directing your team to use Microsoft Visio 2010 to design SharePoint 2010 workflows. You need to ensure that the workflow designs are validated. What should you tell the team to do?

A.    Use Drawing Explorer in the Visio 2010 Developer menu.
B.    Use Check Diagram in the Visio 2010 Process menu.
C.    Export the workflow in Visio 2010.
Import the Workflow Visio Interchange (.vwi) file into Visual Studio 2010.
Set breakpoints in the workflow and step through the code using the debugger.
D.    Export the workflow in Visio 2010.
Import the Workflow Visio Interchange (.vwi) file into SharePoint Designer and debug the workflow.

Answer: B


http://www.passleader.com/70-576.html

[Pass Ensure VCE Dumps] Training PassLeader New 70-573 285q VCE and PDF Dumps To Pass Exam (1-20)

$
0
0

PassLeader supply the newest 285q 70-573 vce dumps and 70-573 pdf dumps, the latest 285q 70-573 braindumps are the best dumps with all new 70-573 exam questions, it will let you passing 70-573 exam easily and quickly. Now going to passleader.com and download the valid 70-573 exam dumps and FREE VCE PLAYER!

keywords: 70-573 exam,285q 70-573 exam dumps,285q 70-573 exam questions,70-573 pdf dumps,70-573 vce dumps,70-573 study guide,70-573 practice test,TS: Microsoft SharePoint 2010, Application Development Exam

QUESTION 1
You create a Web Part by using Microsoft Visual Studio 2010. You need to execute SPDisposeCheck.exe before the Web Part is deployed. What should you do?

A.    Configure a pre-deployment command line.
B.    Configure SPDisposeCheck.exe as an external tool.
C.    Change the configuration from Active (Debug) to Release.
D.    Change the active deployment configuration to No Activation.

Answer: A
Explanation:
MNEMONIC RULE: “before deployed = pre-deployment”
How to: Set SharePoint Deployment Commands
http://msdn.microsoft.com/en-us/library/ee231534.aspx

QUESTION 2
You have a SharePoint site collection. The root Web of the site collection has the URL http://intranet. You plan to create a sandboxed solution that will contain a Web Part. The Web Part will display the title of the root Web. You write the following code segment for the Web Part. (Line numbers are included for reference only.)
01 SPSite currentSite = new SPSite(“http://intranet”);
02
03 Label currentTitle = new Label();
04 currentTitle.Text = currentSite.RootWeb.Title;
You add the Web Part to a page in the root Web and receive the following error message:
“Web Part Error: Unhandled exception was thrown by the sandboxed code wrapper’s Execute method in the partial trust app domain: An unexpected error has occurred.”
You need to prevent the error from occurring. What should you do?

A.    Add the following line of code at line 02: currentSite.OpenWeb();
B.    Add the following line of code at line 02: currentSite.OpenWeb(“http://intranet”);
C.    Change line 01 to the following code segment: SPSite currentSite = SPContext.Current.Site;
D.    Change line 04 to the following code segment: currentTitle.Text = currentSite.OpenWeb().Title;

Answer: C
Explanation:
MNEMONIC RULE: “sandboxed = SPContext”
OpenWeb() method returns SPWeb object, so answers A and B are incorrect, since they assume OpenWeb()method doesn’t return an object. Answer D is incorrect for the same reason. This constructor is allowed in sandboxed solutions. in that case, the value of the requestUrl parameter mustresolve to the parent site collection in which the sandboxed solution is deployed. If the value of the requestUrl parameter resolves to the URL of any other site collection, the constructor throwsan exception because a sandboxed solution is not allowed to access any SharePoint objects outside its hostingsite collection.
SPSite Constructor (String)
http://msdn.microsoft.com/en-us/library/ms466911.aspx

QUESTION 3
You are creating a Web Part that will be deployed as a sandboxed solution. You need to ensure that the Web Part can write debugging information to the SharePoint trace logs. Which class should the logging component inherit?

A.    SPDelegate
B.    SPLog
C.    SPPersistedObject
D.    SPProxyOperation

Answer: D
Explanation:
MNEMONIC RULE: “sandboxed solution needs SPProxyOperation”
You can implement your full-trust functionality in classes that derive from the SPProxyOperation abstract classand deploy the assembly to the global assembly cache. These classes expose a full-trust proxy that you cancall from within the sandbox environment. Full-trust proxies can provide a useful way to expose logging and configuration functionality to sandboxedapplications.
Hybrid Approaches
http://msdn.microsoft.com/en-us/library/ff798433.aspx

QUESTION 4
Your organization has a department named product testing. You are creating a new membership named Product Testing. You are adding a distribution list to the new membership. You need to ensure that the membership is displayed only to managers. What should you do?

A.    Call the Member Group Data method of the User Profiles object.
B.    Call the Get Privacy Policy method of the User Profile Manager object.
C.    Pass Privacy. Manager as the privacy setting to the Membership. Create method.
D.    Pass Privacy Policy Id Constants. Memberships From Distribution Lists to the Create Member Group method of the user profile.

Answer: C

QUESTION 5
You create an application for a Microsoft Office SharePoint Server 2010 server. You create a call center dashboard. You create a Key Performance Indicator (KPI) list that contains KPIs. You add a KPI Web Part to the dashboard to view KPIs. You need to permit users to view details that make up each KPI. What should you do?

A.    Add a link to each KPI in the list to take the user to a details page.
B.    Add data to a custom SharePoint list and use built-in filter and view capabilities.
C.    Add a Filter Web Part to the dashboard page and connect the page to the KPI list Web Part.
D.    Filter the items in the KPI list Web Part by the indicator that the user wants to view.

Answer: A

QUESTION 6
You are developing a custom Feature by using Microsoft Visual Studio 2010. You need to ensure that when you deploy the Feature, a file named Form1.xsn is deployed to the Feature folder. You must achieve this goal by using the minimum amount of development effort. What should you do?

A.    Add a new module to the Visual Studio project.
B.    Add a Feature receiver to the Visual Studio project.
C.    Configure the Properties element in the Feature definition file.
D.    Configure the ActivationDependencies element in the Feature definition file.

Answer: A
Explanation:
MNEMONIC RULE: “deploy file = module”
A module is a collection of file instances, which are instances of files that are provisioned in a site. To provisiona file into Microsoft SharePoint Foundation Web sites, you must use the Module element within a Feature orsite definition. The Module element allows you to add one or more files to a SharePoint Foundation Web site ordocument library.
Module
http://msdn.microsoft.com/en-us/library/ms462994.aspx
How to: Provision a File
http://msdn.microsoft.com/en-us/library/ms441170.aspx

QUESTION 7
You have a Feature named Feature1. You plan to create a new version of Feature1 that will upgrade the existing version of Feature1. You need to ensure that when Feature1 is upgraded, additional configuration data is added to the property bag of the site. What should you do?

A.    Add a <CustomUpgradeAction> element and increase the Version number of the Feature.
B.    Add a <CustomUpgradeAction> element and increase the UIVersion number of the Feature.
C.    Add an <ActivationDependencies> element and increase the Version number of the Feature.
D.    Add an <ActivationDependencies> element and increase the UIVersion number of the Feature.

Answer: A
Explanation:
MNEMONIC RULE: “CustomUpgradeAction Version”
<CustomUpgradeAction>-Allows you to execute custom code when a Feature instance is being upgraded.
Feature.xml Changes
http://msdn.microsoft.com/en-us/library/ee537575.aspx

QUESTION 8
You create a SharePoint solution by using Microsoft Visual Studio 2010. The SharePoint solution contains a third-party assembly. You need to deploy the third-party assembly to the Global Assembly Cache (GAC). What should you use?

A.    a SharePoint mapped folder
B.    the active deployment configuration
C.    the Feature Designer
D.    the Package Designer

Answer: D
Explanation:
MNEMONIC RULE: “Package Designer for GAC”
How to add assemblies into GAC/web application’s bin folder using WSPs created using Visual studio 2010’sSharePoint projects.
http://girishm.blog.com/2010/10/19/how-to-add-assemblies-into-gac-web-applications-bin-folder-using-wspscreated-using-visual-studio-2010s-sharepoint-projects-2/
The package contains features and other assets and is used when you deploy solutions to SharePoint. The package is also where the assembly deployment location is determined. Visual Studio 2010 introduces a package designer, which makes viewing and managing packages mucheasier.
Visual Studio 2010 Tools for SharePoint Development
http://msdn.microsoft.com/en-us/magazine/ee309510.aspx

QUESTION 9
You have a custom site definition. You create a custom site Feature. You need to ensure that the Feature is activated for all new sites that are created by using the custom site definition. What should you do?

A.    Modify the Onet.xml file.
B.    Modify the web.config file.
C.    Add a Feature receiver to the custom site Feature.
D.    Add a Feature dependency to the custom site Feature.

Answer: A
Explanation:
MNEMONIC RULE: “custom site definition = Onet.xml”
You can perform the following kinds of tasks in a custom Onet.xml file that is used for either a custom sitedefinition or a custom web template:
Specify an alternative cascading style sheet (CSS) file, JavaScript file, or ASPX header file for a sitedefinition. Modify navigation areas for the home page and list pages. Add a new list definition as an option in the UI. Define one configuration for the site definition or web template, specifying the lists, modules, files, and WebParts that are included when the configuration is instantiated. Specify Features to be included automatically with websites that are created from the site definition or webtemplate.
Understanding Onet.xml Files
http://msdn.microsoft.com/en-us/library/ms474369.aspx

QUESTION 10
You create a console application to manage Personal Sites. The application contains the following code segment. (Line numbers are included for reference only.)
01 SPSite siceCollection = new SPSite (“http://rcoss”);
02 UserProfileManager profileManager = new UserProfileManager ( Server-Context.GetContext (siteCollection));
03 UserProf ile profile = prof ileManager. GetUser Profile (“domainWusername”);
04 SPSite personalSite = profile.PersonalSite;
05
06 siteCollection.Dispose ();
You deploy the application to a SharePoint site. After deploying the application, users report that the site loads slowly. You need to modify the application to prevent the site from loading slowly. What should you do?

A.    Remove line 06
B.    Change line 06 to the following code segment: siteCollection. Close ();
C.    Add the following line of code at line 05: pecsonalSite. Close ();
D.    Add the following line of code at line 05: personolSite.Dispose ();

Answer: B


http://www.passleader.com/70-573.html

QUESTION 11
You create a Web Part that takes three values from three text boxes and creates a new SharePoint site when you click a button named CreateNewSite. The Web Part contains the following code segment:
protected void CreateNewSite_Click(object sender, EventArgs e)
{
SPSite site = SPContext.Current.Site;
SPWeb web = site.AllWebs.Add(SiteNameTextBox.Text, SiteTitleTextBox.Text,
SiteDescriptionTextBox.Text, 0, SPWebTemplate.WebTemplateSTS, false, false);
}
You test the Web Part and it works properly. When another user attempts to use the Web Part to create a new site, he receives the following error message: “Error: Access Denied.” You need to ensure that users can use the Web Part to create new sites. What should you do?

A.    Add web.Update() after the code segment.
B.    Add web.ValidatesFormDigest() after the code segment.
C.    Run the code segment inside a SPSecurity.RunWithElevatedPrivileges delegate.
D.    Add the following code after the code segment:
SPUser currentUser = System.web.CurrentUser;
web.Users.Add(currentUser.LoginName, currentUser.Email, currentUser.Name, “”);

Answer: C
Explanation:
MNEMONIC RULE: “Access Denied = RunWithElevatedPrivileges” SPSecurity.RunWithElevatedPrivileges Method
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsecurity.runwithelevatedprivileges.aspx

QUESTION 12
You have a custom theme named MyTheme. The theme is defined in a file named MyTheme.thmx. You have a console application that contains the following code segment. (Line numbers are included for reference only.)
01 using ( SPSite sice = new SPSite ( “http://intranet” }}
02 {
03 SPWeb web-site.OpenWeb ();
04
05 }
You need to programmatically apply the theme to a SharePoint site. Which code segment should you add to the console application?

A.    ThmxTheme.SetThemeUrlForWeb(web, “/_catalogs/theme/MyTheme.thmx”, False);
B.    web.AlternateCssUrl = “/_themes/MyTheme”;
C.    web.ApplyWebTemplate(“MyTheme.thmx”);
D.    web.ThemedCssFolderUrl = “/_themes/MyTheme”;

Answer: A
Explanation:
MNEMONIC RULE: ThmxTheme
ThmxTheme.SetThemeUrlForWeb Method (SPWeb, String, Boolean)
http://msdn.microsoft.com/en-us/library/ee658324.aspx

QUESTION 13
You need to create a Web Part that hides the out-of-the-box Ribbon on the current page. Which code segment should you include in the Web Part?

A.    SPRibbon.GetCurrent(me.Page).CommandUIVisible = false
B.    SPRibbon.GetCurrent(me.Page).Dispose()
C.    this.Page.FindControl(“SPRibbon”).Dispose()
D.    this.Page.FindControl(“SPRibbon”).Visible = false

Answer: A
Explanation:
MNEMONIC RULE: “CommandUIVisible”
There are two parts to the ribbon: the upper part, where other controls such as site actions can be put, and theCommandUI part that has the buttons and controls. This property controls the lower part of the ribbon. So, ifthis property is set to false, the site actions still appear in the upper part of the ribbon, but no tabs and buttonsappear in the lower part.
Ribbon.CommandUIVisible Property
http://msdn.microsoft.com/en-us/library/microsoft.web.commandui.ribbon.commanduivisible.aspx

QUESTION 14
You create a modal dialog that displays a list of items. You need to capture the items selected by a user. Which code segment should you use?

A.    SPItem item = SPContext.Current.Item;
B.    var items = SP.ListOperation.Current.Item();
C.    var items = SP.ListOperation.Selection.getSelectedItems();
D.    var item = SPContext.Current.Item[“Selected”];

Answer: C
Explanation:
MNEMONIC RULE: “getSelectedItems”
SP.ListOperation.Selection.getSelectedItems() Method
http://msdn.microsoft.com/en-us/library/ff409526.aspx

QUESTION 15
You create a custom site definition. You need to modify the contents of the Quick Launch area. Which file should you modify?

A.    Schema.xml
B.    WebTemp.xml
C.    vwstyles.xml
D.    Onet.xml

Answer: D
Explanation:
MNEMONIC RULE: “custom site definition = Onet.xml”
You can perform the following kinds of tasks in a custom Onet.xml file that is used for either a custom sitedefinition or a custom web template:
Specify an alternative cascading style sheet (CSS) file, JavaScript file, or ASPX header file for a sitedefinition.
Modify navigation areas for the home page and list pages.
Add a new list definition as an option in the UI.
Define one configuration for the site definition or web template, specifying the lists, modules, files, and WebParts that are included when the configuration is instantiated.
Specify Features to be included automatically with websites that are created from the site definition or webtemplate.
Understanding Onet.xml Files
http://msdn.microsoft.com/en-us/library/ms474369.aspx

QUESTION 16
You create a Feature receiver. You need to hide the Quick Launch navigation bar of a SharePoint site. What should you use?

A.    the Hidden property of each list
B.    the OnQuickLaunch property of each list
C.    the QuickLaunchEnabled property
D.    the Navigation.QuickLaunch.Parent.IsVisible property

Answer: C
Explanation:
MNEMONIC RULE: “hide Quick Launch = QuickLaunchEnabled”
SPWeb.QuickLaunchEnabled Property
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.quicklaunchenabled.aspx

QUESTION 17
You are creating an application page that will open a dialog box. The application page uses a custom master page. You write the following code segment. (Line numbers are included for reference only.)
01 < script type=”text/javascript” >
02 function DialogCallback ( dialogResult, retumValue )
03 function OpenEditDialog (id){
04 var options = { url: http://intranet/Jayouts/MsgToShow.aspx, width: 300,
05 height: 300,
06 dialogReturnValueCallback : DialogCallback
07 };
08 SP.UI.ModalDialog.showModalDialog (options);
09 }
10 < /script >
You need to ensure that the code opens the dialog box. What should you do?

A.    Add a script link that references SP.js .
B.    At line 08, change showModalDialog to commonModalDialogOpen.
C.    At line 08, change showModalDialog to openDialog.
D.    Add a script link that references SharePoint.Dialog.js .

Answer: A

QUESTION 18
You created a custom ASPX page that updates a list. The page is deployed to the Jayouts folder. The page contains the following code segment.
01 < form id=” Forml” runat =” Server” >
02 < asp: Button id=” btnUpdate ” runat =” server” Text=” Update” ></asp : Button >
03 </form >
A user attempts to update the list by using the p age and receives the following error message:
“The security validation for this page is invalid”.
You need to prevent the error from occurring. Which control should you include in Form1?

A.    FormDigest
B.    UlVersionedContent
C.    InputFormCustomValidator
D.    EncodedLiteral

Answer: A

QUESTION 19
You have a Microsoft Office SharePoint Server 2007 site. You upgrade the site to SharePoint Server 2010. You need to create a Feature that prevents site collection administrators from upgrading the user interface of the site to SharePoint Server 2010. Which property should you use?

A.    UIVersionConfigurationEnabled
B.    AdministrationSiteType
C.    AllowMasterPageEditing
D.    AllowDesigner

Answer: A
Explanation:
MNEMONIC RULE: “upgrading = UIVersionConfigurationEnabled”
Gets or sets a value that indicates whether to enable the user interface (UI) for changing the version of the UI.
SPWeb.UIVersionConfigurationEnabled Property
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.uiversionconfigurationenabled.aspx

QUESTION 20
You plan to activate the Developer Dashboard. You create a command line application that contains the following code segment. (Line numbers are included for reference only.)
01 SPUebService cs = SPHebService.ContentServi.ee;
02 cs.DeveloperDashfooardSettings.DisplayLevel = SPDeveloperDashboardLevel.On;
03
You execute the application and discover that the Developer Dashboard fails to appear. You need to ensure that the application activates the Developer Dashboard. What should you do?

A.    Add the following line of code at line 03: cs.Update();
B.    Add the following line of code at line 03: cs.DeveloperDashboardSettings.Update();
C.    Change line 02 to the following code segment: cs.DeveloperDashboardSettings.DisplayLevel = SPDeveloperDashboardLevel.Off;
D.    Change line 02 to the following code segment: cs.DeveloperDashboardSettings.DisplayLevel = SPDeveloperDashboardLevel.OnDemand;

Answer: B
Explanation:
MNEMONIC RULE: “loooonger Update()”
Update() method of SPDeveloperDashboardSettings class causes the object to save its state and propagatechanges to all the computers in the server farm.
SPDeveloperDashboardSettings Members
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spdeveloperdashboardsettings_members.aspx


http://www.passleader.com/70-573.html

[Pass Ensure VCE Dumps] 70-573 New Questions and Answers — Everybody Needs To Download For 100% Passing Exam (21-40)

$
0
0

PassLeader supply the newest 285q 70-573 vce dumps and 70-573 pdf dumps, the latest 285q 70-573 braindumps are the best dumps with all new 70-573 exam questions, it will let you passing 70-573 exam easily and quickly. Now going to passleader.com and download the valid 70-573 exam dumps and FREE VCE PLAYER!

keywords: 70-573 exam,285q 70-573 exam dumps,285q 70-573 exam questions,70-573 pdf dumps,70-573 vce dumps,70-573 study guide,70-573 practice test,TS: Microsoft SharePoint 2010, Application Development Exam

QUESTION 21
You create a custom Web Part. You need to ensure that a custom property is visible in Edit mode. Which attribute should you set in the Web Part?

A.    WebDisplayName
B.    WebBrowsable
C.    Personalizable
D.    WebCategoryName

Answer: B
Explanation:
MNEMONIC RULE: “Web Part is visible = WebBrowsable”
The WebBrowsable attribute specifies that the decorated property should appear in the editor component ofthe web part. It only allows the end user to modify the property and does nothing about persistence. WebBrowsable will make the property appear in the ToolPane or EditorPart of the WebPart.
WebBrowsable vs Personalizable in Web Parts
http://stackoverflow.com/questions/4362234/webbrowsable-vs-personalizable-in-web-parts

QUESTION 22
You plan to create two Web Parts named Products and ProductDetails. You create an interface that contains the following code segment.
Public interface Interface1
{
String ProductId { get; }
}
You need to ensure that the Products Web Part sends Productid to the ProductDetails Web Part. You must achieve this goal by using the ASP.NET Web Part connection framework. What should you do?

A.    Implement Interface1 in the Products Web Part.
B.    Implement Interface1 in the ProductDetails Web Part.
C.    Add a private set-accessor-declaration to the Productid property.
D.    Add a protected set-accessor-declaration to the Productid property.

Answer: A
Explanation:
MNEMONIC RULE: “Implement Interface1 in Products Web”
Products Web Part sends ProductId; therefore, Products Web Part is the provider Web Part.
Walkthrough: Creating Connectable Web Parts in SharePoint Foundation
http://msdn.microsoft.com/en-us/library/ms469765.aspx
SharePoint 2010 Provider Consumer Web Parts
http://johanolivier.blogspot.com/2010/08/sharepoint-2010-provider-consumer-web.html

QUESTION 23
You create a user control named MySearch.ascx. You plan to change the native search control in SharePoint to MySearch.ascx. You need to provide the site administrator with the ability to change the out-of-the-box search control to MySearch.ascx. What should you do?

A.    Override the search delegate control by using a Feature.
B.    Modify the <SafeControls> element in the web.config file.
C.    Configure the SearchBox.dwp in the Web Part gallery.
D.    Modify \14\TEMPLATE\FEATURES\SearchWebParts\SearchBox.dwp.

Answer: C

QUESTION 24
You create a custom Web Part. You need to create a class to log Web Part errors to the Unified Logging Service (ULS) logs. What should you use?

A.    the ILoggingProvider interface
B.    the SPPersistedObject class
C.    the SPDiagnosticsServiceBase class
D.    the ILogger interface

Answer: C
Explanation:
MNEMONIC RULE: “Unified Logging Service = SPDiagnosticsServiceBase”
Logging to ULS in SharePoint 2010
http://blog.mastykarz.nl/logging-uls-sharepoint-2010/

QUESTION 25
You have a custom Web Part that is deployed as a sandboxed solution. You need to ensure that the Web Part can access the local file system on a SharePoint server. You must minimize the amount of privileges assigned to the Web Part. What should you do?

A.    Deploy the Web Part to the Global Assembly Cache (GAC).
B.    Elevate the trust level to Full.
C.    Redeploy the Web Part as a farm solution.
D.    Elevate the trust level to WSS_Medium.

Answer: C
Explanation:
MNEMONIC RULE: “Redeploy”
Due to the heavy restrictions of sandboxed solutions, elevating the trust level is not an option, and neither isthe deployment of the Web Part to GAC. You can get broader permissions by using full-trust proxies, but it’s not an option in this question. :)

QUESTION 26
You have a custom Web Part. You need to create a custom user interface for modifying the Web Part properties. What should you do?

A.    Create a new Master Page. Implement the IControlBuilderAccessor interface.
B.    Create a new tool part for the custom Web Part.
C.    Modify the [ToolBox] attribute of the custom Web Part.
D.    Create a new Web Part. Implement the IControlBuilderAccessor interface.

Answer: B
Explanation:
MNEMONIC RULE: “Tool part for the Web Part”
What is a custom tool part? The Custom tool part is part of the web part infrastructure, that helps us to create a custom user interface forthe web part properties that goes beyond the capabilities of the default property pane.
When do we need a custom tool part? Let’s say, If we need to create a web part property of type dropdown, we need to create a custom tool part.This is not supported out-of-box in the web part framework. I’ve the similar requirement of creating a customweb part property of type drop-down.
Create Custom Tool Parts for SharePoint Web Parts
https://msmvps.com/blogs/sundar_narasiman/archive/2009/09/02/create-custom-tool-parts-for-sharepoint-webparts.aspx

QUESTION 27
You have a SharePoint site that uses a master page named Master1.master. You create a custom user control named MySearch.ascx. You need to change the default search box to MySearch.ascx. What should you do?

A.    Modify the SmallSearchInputBox control tag in the master page, and then configure the ControlId property.
B.    Modify the SmallSearchInputBox control tag in the master page, and then configure the ControlSrc property.
C.    Create a Web Part that uses MySearch.ascx. In the master page, add a control tag that references the .webpart file.
D.    Create a Visual Web Part that uses MySearch.ascx. In the master page, add a control tag that references the .webpart file.

Answer: B
Explanation:
MNEMONIC RULE: “ControlSrc”
Delegate Control (Control Templatization)
http://msdn.microsoft.com/en-us/library/ms463169.aspx

QUESTION 28
You create a Web Part that contains the following logging code. (Line numbers are included for reference only.)
01 SPWeb web = SPContext.Current.Web;
02 try
03 {
04
05 }
06 catch (Exception ex)
07 {
08
09 System.Diagnostics.EventLog.WriteEntry(“WebPart Name”, (“Exception Information: ” + ex.Message), EventLogEntryType.Error);
10 }
You discover that line 09 causes an error. You need to resolve the error. What should you do?

A.    Run the code segment at line 09 inside a RunWithElevatedPrivileges delegate.
B.    Add the following code at line 08: if (web.CurrentUser.IsSiteAuditor == false)
C.    Add the following code at line 08: if (web.CurrentUser.IsSiteAdmin == false)
D.    Change line 09 to the following code segment: System.Diagnostics.EventLog.WriteEntry(“WebPart Name”, “Exception Information”, EventLogEntryType.Error);

Answer: A
Explanation:
MNEMONIC RULE: “RunWithElevatedPrivileges”
SPSecurity.RunWithElevatedPrivileges Method
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsecurity.runwithelevatedprivileges.aspx

QUESTION 29
You need to connect two Web Parts by using the IWebPartRow interface. Which method should you use?

A.    GetFieldValue
B.    Dataltem
C.    GetRowData
D.    GetTableData

Answer: C
Explanation:
MNEMONIC RULE: “iWebPartRow = GetRowData”
Returns the data for the row that is being used by the interface as the basis of a connection between twoWebPart controls.
IWebPartRow.GetRowData Method
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.iwebpartrow.getrowdata.aspx

QUESTION 30
You create a Web Part that programmatically updates the description of the current SharePoint site. The Web Part contains the following code segment. (Line numbers are included for reference only.)
01 SPSecurity.RunUithElevatedPrivileges (delegate()
02 {
03 SPSite currSite = SPConcext.Current.Site ;
04 SPUeb currUeb = SPContext.Current.Ueb ;
05 using (SPSite eSite = new SPSite ( currSite.ID ) )
06 {
07 using (SPWeb eWeb = eSite.OpenUeb ( currUeb.ID ) )
08 {
09 Web.AllowUnsafeUpdates = true;
10 currUeb.Description = “Test”;
11 currUeb.Update ();
12 eUeb.AllowUnsafeUpdates = false;
13 }
14 }
15 }
16 };
Users report that they receive an Access Denied error message when they use the Web Part. You need to ensure that all users can use the Web Part to update the description of the current site. What should you do?

A.    Remove lines 10 and 11.
B.    Remove lines 09 and 12.
C.    Change lines 09 and 12 to use the currWeb variable.
D.    Change lines 10 and 11 to use the eWeb variable.

Answer: D


http://www.passleader.com/70-573.html

QUESTION 31
You have a SharePoint solution that contains a custom site column and a custom content type. You need to add the custom site column as a lookup field for the custom content type. What should you create?

A.    a Feature activation dependency
B.    a new module
C.    a new Feature event receiver
D.    a new SharePoint mapped folder

Answer: C
Explanation:
MNEMONIC RULE: “Feature event receiver”
Walkthrough: Add Feature Event Receivers
http://msdn.microsoft.com/en-us/library/ee231604.aspx

QUESTION 33
You need to delete the previous versions of all documents in a document library. The deleted versions of the documents must be retained in the SharePoint Recycle Bin. What should you do?

A.    For the document library, call the Delete method.
B.    For the document library, call the Recycle method.
C.    For each document, call the DeleteAll method of the Versions property.
D.    For each document, call the RecycleAll method of the Versions property.

Answer: D
Explanation:
MNEMONIC RULE: “all previous versions to Recycle Bin = RecycleAll of the Versions”
Recycles the version collection except for the current version.
SPListItemVersionCollection.RecycleAll Method
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitemversioncollection.recycleall.aspx

QUESTION 34
You need to create a Web Part that displays all content created by a specific user. You write the following code segment. (Line numbers are included for reference only.)
01 privace void keywordQueryExecute (string searchAuthor )
02 {
03 KeywordQuery kRequest = new KeywordQuery ( ServerContexc.Current );
04
05 kPequest.QueryText = strQuery;
06 ResultTableCollection resultTbls = kRequest.Execute ();
07 }
Which code segment should you add at line 04?

A.    string strQuery – “SELECT Title, Rank, Write, Url FROM SCOPE()
WHERE docID – ” + searchAuthor;
B.    string strQuery = “author:” + searchAuthor;
C.    string strQuery = “SELECT Title, Rank, Write, Url FROM SCOPE ()
WHERE author – ” + searchAuthor;
D.    string strQuery * ” doc ID:” + searchAuthor;

Answer: B
Explanation:
MNEMONIC RULE: “KeywordQuery =no SQL!”
Property Restriction Keyword Queries
http://msdn.microsoft.com/en-us/library/ff394509.aspx

QUESTION 35
You need to create a Web Part that adds a term set to the current SharePoint site collection’s term store. You write the following code segment. (Line numbers are included for reference only.)
01 TaxonomySession session = new TaxonomySession ( SPContext.Current..Site );
02 TermSet addedTerm = session.TermStores [O] .Groups
[” MyNewTermStore “] . CreateTermSet ( txtBoxTermSetToAdd.Text );
03
Which code segment should you add at line 03?

A.    addedTerm.TermStore.CommitAll ();
B.    addedTerm.Export ();
C.    SPContext.Current.Web.AllouUnsafeUpdates = true;
D.    SPContext.Current.Site.WebAppllcation.Update ();

Answer: A

QUESTION 36
You need to create a custom content type and specify the content type ID. What should you do?

A.    Call the Lists Web service.
B.    Create a custom Feature.
C.    Call the Webs Web service.
D.    Create a new module.

Answer: B
Explanation:
MNEMONIC RULE: “custom Feature for custom content type”
Create Custom Content Types in SharePoint 2010
http://msdn.microsoft.com/en-us/library/ff630942.aspx

QUESTION 37
You plan to create a custom Web Part that displays items from a custom SharePoint list named Project. You need to ensure that you can access the list by using strongly-typed objects in Microsoft Visual Studio 2010. What should you do first?

A.    Run ecmangen.exe.
B.    Run spmetal.exe.
C.    Edit the web.config file.
D.    Edit the Manifest.xml file.

Answer: B

QUESTION 38
You have a SharePoint site collection that contains 100 sites. Each site contains 100 lists. You need to retrieve all item titles from all lists. The data must be retrieved in the minimum amount of time. Which access method should you use?

A.    SPList.Items
B.    SPListltemCollection.GetDataTable
C.    SPSiteDataQuery
D.    ListData.svc

Answer: C
Explanation:
MNEMONIC RULE: “100 sites = SPSite”
The data must be retrieved in the minimum amount of time; therefore, SPSiteDataQuery SPSiteDataQuery Class
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsitedataquery.aspx

QUESTION 39
You have a SharePoint site collection that has the URL http://contoso/sites/finance. You are creating a Microsoft .NET Framework console application that will use the SharePoint client object model to create a site in the site collection. The application contains the following code segment. (Line numbers are included for reference only.)
01 ClientContext cCtx = new ClientContext(“http://contoso/sites/finance”);
02 Web root = cCtx.Site.RootWeb;
03 cCtx.Load(root);
04 WebCreationInformation webInfo = new WebCreationInformation();
05 webInfo.Title = “site1”;
06 webInfo.Url = “site1”;
07 webInfo.WebTemplate = “MPS#2”;
08 root.Webs.Add(webInfo);
09
10 cCtx.Dispose();
You need to ensure that the application creates the site. Which code segment should you add at line 09?

A.    cCtx.Site.RootWeb.Update ();
B.    cCtx.ExecuteQuery ();
C.    root.Context.Dispose ();
D.    coot.Update ();

Answer: B
Explanation:
MNEMONIC RULE: “Execute your Query”
Executes the current set of data retrieval queries and method invocations.
How to: Work with Web Sites
http://msdn.microsoft.com/en-us/library/ee535521.aspx

QUESTION 40
You create a Web Part that queries a list. The Web Part contains the following code segment. (Line numbers are included for reference only.)
01 protected override void Render( HtmlTextWriter writer)
02 {
03 SPUserToken spInToken = GetTheContext ( SPContext.Current.Site );
04 using (SPSite aSite = nera SPSite ( curSiteCtx.ID , spInToken ) )
05 {
06
07 }
08 }
09 private SPUserToken GetTheContext ( SPSite nUeb )
10 <
11 nWeb.CatchAccessDeniedException = false;
12 SPUserToken spToken = null;
13 try
14 {
15 spToken = nWeb.SystemAccount.UserToken;
16 }
17 catch ( UnauthorizedAccessException )
18 {
19
20 }
21 return spToken;
22 }
You need to ensure that users without permissions to the list can view the contents of the list from the Web Part. Which code segment should you add at line 19?

A.    SPSecurity.RunWithElevatedPrivileges(delegate()
{
using (SPSite eSite = new SPSite(nWeb.ID))
{
spToken = nWeb.SystemAccount.UserToken;
}
}
B.    SPSecurity.RunWithElevatedPrivileges(delegate()
{
Practice Test
using (SPSite eSite = new SPSite(nWeb.ID))
{
spToken = SPContext.Current.Web.CurrentUser.UserToken; }
}
C.    spToken = nWeb.RootWeb.AllUsers[SPContext.Current.Web.Name].UserToken;
D.    spToken = nWeb.RootWeb.AllUsers[WindowsIdentity.GetCurrent().Name].UserToken;

Answer: A
Explanation:
MNEMONIC RULE: “UnauthorizedAccessException = RunWithElevatedPrivileges = SystemAccount”
Answer A is the only one that will give us a SystemAccount token from within RunWithElevatedPrivilegesstatement. That’s what we are trying to get in case UnauthorizedAccessException occurs.


http://www.passleader.com/70-573.html

[Pass Ensure VCE Dumps] PassLeader Premium 285q 70-573 Exam Questions For Free Download (41-60)

$
0
0

Need The newest 70-573 Exam Dumps? Why not try PassLeader’s 285q 70-573 vce dumps or 70-573 pdf dumps? Recntly, the 70-573 exam has been changed with a lot of new questions, old version 70-573 vce dumps or practice tests are not valid now, if you want to pass 70-573 exam easily, please download the latest update 285q 70-573 braindumps from PassLeader. Now visit passleader.com and you will get all the 70-573 study materials including free 70-573 study guide with valid 70-573 vce dumps and free vce player, which will help you passing 70-573 exam easily!

keywords: 70-573 exam,285q 70-573 exam dumps,285q 70-573 exam questions,70-573 pdf dumps,70-573 vce dumps,70-573 study guide,70-573 practice test,TS: Microsoft SharePoint 2010, Application Development Exam

QUESTION 41
You create a custom field type and a CustomFieldControl.ascx user control. You need to write the code-behind of the CustomFieldControl.acsx user control. Which object should you override?

A.    SPFieldText
B.    BaseFieldControl
C.    SPFieldCalculated
D.    WebPart

Answer: B
Explanation:
MNEMONIC RULE: “CustomFieldControl = BaseFieldControl”
Renders a field on a form page (not a list view page) by using one or more child controls such as a label, link,or text box control.
BaseFieldControl Class
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.basefieldcontrol.aspx

QUESTION 42
You have a SharePoint list named Projects and a site column named PrivateColumn. You need to prevent users from adding PrivateColumn to the Projects list. Users must be able to add any other site column to the Projects list. What should you do?

A.    Create an event receiver that inherits SPListEventReceiver and override FieldAdded.
B.    Create an event receiver that inherits SPListEventReceiver and override FieldAdding.
C.    Create an event receiver that inherits SPItemEventReceiver and override ItemAdded.
D.    Create an event receiver that inherits SPItemEventReceiver and override ItemAdding.

Answer: B
Explanation:
MNEMONIC RULE: “FieldAdding to a List”

QUESTION 43
You create a Business Connectivity Services (BCS) object model in Microsoft Visual Studio 2010. The model connects to an XML file. You create an external list that displays the BCS entity. You need to ensure that users can delete items from the external list. What should you do?

A.    Create a custom method and specify the method as a Deleter method instance.
B.    Call the SPListItem.Delete() method.
C.    Call the SPList.Delete() method.
D.    Create a custom method and specify the method as a Disassociator method instance.

Answer: A
Explanation:
MNEMONIC RULE: “Deleter method”
XML Snippet: Modeling a Deleter Method
http://msdn.microsoft.com/en-us/library/ff464327.aspx
Code Snippet: Execute the Deleter Method Instance of an External Content Type
http://msdn.microsoft.com/en-us/library/ff464351.aspx

QUESTION 44
You need to create a Web Part that verifies whether a user who accesses the Web Part page is a member of a group named Group1. Which code condition should you use?

A.    SPContext.Current.Web.Groups(“Group1”).ContainsCurrentUser
B.    SPContext.Current.Web.SiteUsers(SPContext.Current.Web.CurrentUser.ID).Groups(“Group1”) == null
C.    SPContext.Current.Web.SiteUsers(SPContext.Current.Web.CurrentUser.ID).Groups(“Group1”) = null
D.    SPContext.Current.Web.Users(“Group1”).IsDomainGroup

Answer: A
Explanation:
MNEMONIC RULE: ContainsCurrentUser
Gets a Boolean value that indicates whether the group contains the current user, included either through director indirect membership.
SPGroup.ContainsCurrentUser Property
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spgroup.containscurrentuser.aspx

QUESTION 45
You create a workflow named WF1. WF1 is attached to a list named List1. You need to receive an e-mail notification if WF1 is postponed. What should you do?

A.    Use a HandleExternalEvent activity in WF1.
B.    Attach an SPWorkflowEventReceiver event receiver to List1.
C.    Attach an SPItemEventReceiver event receiver to List1.
D.    Use a ReceiveActivity activity in WF1.

Answer: B
Explanation:
MNEMONIC RULE: “Workflow = SPWorkflowEventReceiver”
The SPWorkflowEventReceiver class handles workflow events throughout the lifetime of a workflow.
Starting: Occurs when a workflow is starting
Started: Occurs when a workflow is started
Postponed: Occurs when a workflow is postponed
Completed: Occurs when a workflow is completed
You can register the SPWorkflowEventReceiver with any site, list, or content type.

QUESTION 46
You are creating a custom workflow action that will be used in Microsoft SharePoint Designer reusable workflows. The action will programmatically create a SharePoint site named Site1 at a specific URL. You need to ensure that users can specify the URL of Site1 in the action. What should you use?

A.    the DependencyProperty class
B.    the SPPersistedObject class
C.    the SPWorkflowActivationProperties.InitiationData property
D.    the OnWorkflowActivated.WorkflowProperties property

Answer: A
Explanation:
MNEMONIC RULE: “specify DependencyProperty”
Using Dependency Properties
http://msdn.microsoft.com/en-us/library/ms734499(v=vs.90).aspx

QUESTION 47
You need to create a timer job that queries a list. What should you do?

A.    Create a class that inherits SPJobDefinition and override the Execute method.
B.    Create a class that inherits SPServiceApplicationand override the Provision method.
C.    Create a class that inherits SPServiceApplicationand override the Provisionlnstances method.
D.    Create a class that inherits SPJobDefinition and override the Provision method.

Answer: A
Explanation:
MNEMONIC RULE: “Execute timer job”
Next, and the most important thing, is to override Execute() method. This method is called each time when thejob is fired, so it should contain all the logic to accomplish what You expect from the job.
SPJobDefinition as the way to create scheduled tasks
http://tomaszrabinski.pl/wordpress/2010/05/27/spjobdefinition-as-the-way-to-create-scheduled-tasks/

QUESTION 48
You create a custom workflow by using Microsoft Visual Studio 2010. You need to specify a custom InfoPath workflow initiation form in the workflow element manifest file. Which attribute should you configure?

A.    Association_FormURN
B.    Instantiation_FieldML
C.    Instantiation_FormURN
D.    InstantiationUrl

Answer: C
Explanation:
MNEMONIC RULE: “initiation form = Instantiation_FormURN”
Specifies the URN of the Microsoft InfoPath 2010 form to use to initiate the workflow.
Instantiation_FormURN Element (Workflow)-ECM
http://msdn.microsoft.com/en-us/library/aa672715.aspx

QUESTION 49
You need to create a Web Part that displays all of the permission levels of the current subsite. Which collection should you use?

A.    SPContext.Current.Web.Properties
B.    SPContext.Current.Web.Permissions
C.    SPContext.Current.Web.RoleAssignments
D.    SPContext.Current.Web.RoleDefinitions

Answer: D
Explanation:
MNEMONIC RULE: “permission levels = RoleDefinitions”
The role definition, or permission level, is the list of rights associated with the role.
Role Assignments, Role Definitions, and Inheritance
http://msdn.microsoft.com/en-us/library/ms414036.aspx

QUESTION 50
You plan to create a custom approval workflow. The workflow approvers will enter their employee number in the edit task form. You need to ensure that the onTaskChangedl_Invoked method of the workflow retrieves the value of the employee number. Which object should you use?

A.    SPWorkflowTaskProperties.ExtendedProperties
B.    SPWorkflowTaskProperties.Properties
C.    SPWorkflowActivationProperttes.Item
D.    SPWorkflowActivationProperties.TaskUstld

Answer: A
Explanation:
MNEMONIC RULE: “onTaskChanged1 = SPWorkflowTaskProperties.ExtendedProperties”
There is no Properties member in SPWorkflowTaskProperties class.
Gets a hash table that represents the collection of extended task properties as name/value pairs. SPWorkflowTaskProperties Properties
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.workflow.spworkflowtaskproperties_properties.aspx


http://www.passleader.com/70-573.html

QUESTION 51
You are running a default installation of Microsoft Visual Studio 2010. You have a user control named Control.ascx. You need to convert the user control to a Web Part that will be hosted in a Microsoft SharePoint Server 2010 farm. The Web Part must be packaged as a sandboxed solution. What should you do?

A.    Create a new Web Part and reuse the code from the existing MyControl.ascx file.
B.    Import the user control into a new Visual Web Part and use the existing MyControl.ascx file.
C.    Modify the SafeControls section of the web.config file.
D.    Copy the Control.ascx file to the ControlTemplates folder.

Answer: A
Explanation:
MNEMONIC RULE: “Create a new Web Part”
Since you already have a user control, you don’t need to create a Visual Web Part (by dragging-and-dropping user controls from the Toolbox).

QUESTION 52
You create a Web Part that updates a list. You need to ensure that users can use the Web Part to update the list, regardless of the users’ permissions to the list. What should you use in the Web Part?

A.    the SPSecurity.AuthenticationMode property
B.    the SPSecurity.CatchAccessDeniedException property
C.    the SPSecurity.RunWithElevatedPrivileges method
D.    the SPSecurity.SetApplicationCredentialKey method

Answer: C
Explanation:
MNEMONIC RULE: “regardless of permissions = RunWithElevatedPrivileges”
SPSecurity.RunWithElevatedPrivileges Method
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsecurity.runwithelevatedprivileges.aspx

QUESTION 53
You are creating two Web Parts named WPMaster and WPDetails. You need to ensure that when an item is selected from WPMaster, the details of the item are displayed in WPDetails. This must occur without requiring WPDetails to retrieve the existing item from the data source. What should you implement in WPMaster?

A.    IWebActionable
B.    IWebPartTable
C.    IListProvider
D.    IWebPartRow

Answer: D

QUESTION 54
You have a SharePoint site collection. The default master page for the site collection displays a navigation bar on the left side of the page. You create a custom content page. You need to hide the navigation bar on only the custom content page. What should you do?

A.    On the default master page, remove the ContentPlaceHolder control that has the ID PlaceHolderLeftNavBar.
B.    On the default master page, set the Visible attribute to False in the ContentPlaceHolder control that has the ID PlaceHolderLeftNavBar.
C.    Add an empty Content control to the custom content page and set the ContentPlaceHolderID attribute to PlaceHolderLeftNavBar.
D.    Add a Content control to the custom content page, set the ContentPlaceHolderID attribute to PlaceHolderLeftNavBar, and set the Visible attribute to False.

Answer: C

QUESTION 55
You have a SharePoint site. The current master page of the site is v4.master. You create a custom master page named MyMasterPage.master. You deploy the master page to /_catalogs/masterpage/. You need to apply the custom master page to only the content pages of the site. What should you do?

A.    Rename the custom master page as v4.master and overwrite /_catalogs/masterpage/v4.master.
B.    Rename the custom master page as v4.master and overwrite \14\TEMPLATE\GLOBAL\v4.master.
C.    Set the MasterUrl property and CustomMasterUrl property of the site to /_catalogs/masterpage/MyMasterPage.master.
D.    In the @Page directive of each page layout, set the MasterPageFile attribute to /_catalogs/masterpage/MyMasterPage.master.

Answer: C
Explanation:
MNEMONIC RULE: “MasterUrl and CustomMasterUrl”
At runtime, the value in this property replaces the ~masterurl/default.master token in content pages.
SPWeb.MasterUrl Property
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.masterurl.aspx
At runtime, the value in this property replaces the ~masterurl/custom.master token in content pages.
SPWeb.CustomMasterUrl Property
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.custommasterurl.aspx

QUESTION 56
You create a Feature named Feature1. Feature1 is activated in a SharePoint site. You create a Web Part that contains the following code.
– Dim site As New SPSite(“http://intranet/site1”)
– Dim web As SPWeb = site.OpenWeb()
– Dim feature As SPFeatureDefinition = SPFarm.Local.FeatureDefinitions(“Feature1”)
You need to modify the Web Part to activate Feature1 in Site1 only. Which code segment should you add to the Web Part?

A.    site.Features.Add(feature.Id)
B.    site.WebApplication.WebService.Features.Add(feature.Id)
C.    web.Features.Add(feature.Id)
D.    web.Site.WebApplication.WebService.Features.Add(feature.Id)

Answer: C

QUESTION 57
Using Microsoft Visual Studio 2010, you create a custom workflow action named WF1 that copies the content of a document library to another document library. WF1 is used in a Microsoft SharePoint Designer reusable workflow. You need to ensure that the workflow action can be deployed to multiple sites. Where should you define the workflow action?

A.    the ReplicatorActivity activity
B.    the Elements.xml file
C.    the WF1.actions file
D.    the SPPersistedObject object

Answer: B
Explanation:
MNEMONIC RULE: “Elements.xml”
Sandboxed workflow activities in SharePoint 2010
http://www.wictorwilen.se/Post/Sandboxed-workflow-activities-in-SharePoint-2010.aspx

QUESTION 58
You have a SharePoint list named Assets that contains 1,000,000 items. The list contains a column named Urgent. Approximately 100 items have a value of True in their Urgent column. You use the following line of code to retrieve the Assets list.
SPList assetsList = currentUeb.Lists [“assets”];
You need to retrieve all of the items in the list that have a value of True in their Urgent column. You must retrieve the items in the minimum amount of time. What should you do?

A.    Iterate through the assetsList .Fields collection.
B.    Call assetsLists. Getltems and specify theSPQuery parameter.
C.    Call assetsList. Items.GetDataTable ( ) and retrieve DataRowCollection .
D.    Iterate through the assetsList .Items collection.

Answer: B
Explanation:
MNEMONIC RULE: “SPQuery for minimum time”
SPQuery Class
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spquery.aspx
Spquery in Sharepoint 2010-Tutorial
http://www.learningsharepoint.com/2010/07/18/spquery-in-sharepoint-2010-tutorial/

QUESTION 59
You need to create a Web Part that creates a copy of the out-of-the-box Contribute permission level. Which code segment should you implement in the Web Part?

A.    SPRoleDefinition myRole = new SPRoleDefinition();
myRole.Name = “Contribute”;
SPContext.Current.Web.RoleDefinitions.Add(myRole);
B.    SPRoleDefinition myRole = new SPRoleDefinition(SPContext.Current.Web.
RoleDefinitions[“Contribute”]);
myRole.Name = “MyContribute”;
SPContext.Current.Web.RoleDefinitions.Add(myRole);
C.    SPRoleDefinition myRole = new SPRoleDefinition(SPContext.Current.Web.
RoleDefinitions[“MyContribute”]);
myRole.Description = “Contribute”;
SPContext.Current.Web.RoleDefinitions.Add(myRole);
D.    SPRoleDefinition myRole = new SPRoleDefinition(SPContext.Current.Web.
RoleDefinitions[“MyContribute”]);
myRole.Name = “Contribute”;
SPContext.Current.Web.RoleDefinitions.Add(myRole);

Answer: B
Explanation:
MNEMONIC RULE: “RoleDefinitions(“Contribute”)”

QUESTION 60
You plan to develop a Web Part that displays a SharePoint list. The Web Part will verify the list permissions when users access by using the web.CurrentUser. DoesUserHavePermissions method. You need to ensure that when users do not have permissions to the list, the Web Part displays the company’s logo. Which code segment should you add to the Web Part?

A.    RunWithElevatedPrivileges
B.    web.AllowUnsafeUpdates= true;
C.    web.CurrentUser.RequireRequestToken = false;
D.    web.ValidateFormDigest();

Answer: A


http://www.passleader.com/70-573.html

[Pass Ensure VCE Dumps] PassLeader Actual 285q 70-573 PDF Exam Dumps For Free Download (61-80)

$
0
0

Need The newest 70-573 Exam Dumps? Why not try PassLeader’s 285q 70-573 vce dumps or 70-573 pdf dumps? Recntly, the 70-573 exam has been changed with a lot of new questions, old version 70-573 vce dumps or practice tests are not valid now, if you want to pass 70-573 exam easily, please download the latest update 285q 70-573 braindumps from PassLeader. Now visit passleader.com and you will get all the 70-573 study materials including free 70-573 study guide with valid 70-573 vce dumps and free vce player, which will help you passing 70-573 exam easily!

keywords: 70-573 exam,285q 70-573 exam dumps,285q 70-573 exam questions,70-573 pdf dumps,70-573 vce dumps,70-573 study guide,70-573 practice test,TS: Microsoft SharePoint 2010, Application Development Exam

QUESTION 61
You plan to create one provider Web Part and two consumer Web Parts. You need to ensure that the consumer Web Parts can receive data from the provider Web Part. You create an interface that contains the following code segment:
public interface Interfacel
{
string Pararoeterl { get; set; }
}
What should you do next?

A.    Create a set accessor for Parameterl.
B.    Create a second interface and use it to communicate with the providerWeb Part.
C.    Implement Interface 1 in the provider Web Part.
D.    Implement IWebPartField in the provider Web Part.

Answer: C
Explanation:
MNEMONIC RULE: “Implement Interface1”
Walkthrough: Creating Connectable Web Parts in SharePoint Foundation
http://msdn.microsoft.com/en-us/library/ms469765.aspx
SharePoint 2010 Provider Consumer Web Parts
http://johanolivier.blogspot.com/2010/08/sharepoint-2010-provider-consumer-web.html

QUESTION 62
You create custom code to import content to SharePoint sites. You create a custom site definition by using Microsoft Visual Studio 2010. You need to ensure that when a new site that uses the custom site definition is created, the custom code executes after the site is created. Which class should you add to the project?

A.    SPEmailEventReceiver
B.    SPWebProvisioningProvider
C.    SPItemEventReceiver
D.    SPChangeFile

Answer: B
Explanation:
MNEMONIC RULE: “new site created = SPWebProvisioningProvider”
Provides a handler for responding to Web site creation.
SPWebProvisioningProvider Class
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spwebprovisioningprovider.aspx

QUESTION 63
You develop a custom master page. You need to ensure that all pages that use the master page contain a specific image. Page developers must be able to change the image on individual pages. The master page must be compatible with the default content page. What should you add to the master page?

A.    a ContentPlaceHolder control
B.    a Delegate control
C.    a PlaceHolder control
D.    an HTML Div element

Answer: A
Explanation:
MNEMONIC RULE: “master page = ContentPlaceHolder”
Defines a region for content in an ASP.NET master page.
ContentPlaceHolder Class
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.contentplaceholder.aspx

QUESTION 64
You have several SharePoint sites. You plan to load a custom script in all pages of the sites. You need to ensure that you can activate or deactivate the script at the site level. What should you do?

A.    Create a site definition and modify the CustomJSUrl attribute in the Onet.xml file.
B.    Create a site definition and modify the <system.web> element in the web.config file.
C.    Create a user control that contains the script.
Create a Feature that overrides the ControlArea delegate control.
D.    Create a user control that contains the script.
Create a Feature that overrides the AdditionalPageHead delegate control.

Answer: D
Explanation:
MNEMONIC RULE: AdditionalPageHead
The delegate control resides in the AdditionalPageHead control on the page. It registers some ECMAScript(JavaScript, JScript) on the page.
How to: Customize a Delegate Control
http://msdn.microsoft.com/en-us/library/ms470880.aspx

QUESTION 65
You are creating a Web Part in SharePoint Server 2010. You need to ensure that the Web Part can send data to another Web Part. Which interface should you implement?

A.    IWebPartField
B.    IQueryable
C.    ISerializable
D.    IWebEditable

Answer: A
Explanation:
MNEMONIC RULE: “Web Part send data = IWebPartField”
Defines a provider interface for connecting two server controls using a single field of data. This interface is designed to be used with Web Parts connections. In a Web Parts connection, two servercontrols that reside in a WebPartZoneBase zone establish a connection and share data, with one control actingas the consumer and the other control acting as a provider.
IWebPartField Interface
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.iwebpartfield.aspx

QUESTION 66
You create a sandboxed solution that contains a Web Part. You need to debug the Web Part by using Microsoft Visual Studio 2010. To which process should you attach the debugger?

A.    w3wp.exe
B.    owstimer.exe
C.    spucworkerprocess.exe
D.    spucworkerprocessproxy.exe

Answer: C
Explanation:
MNEMONIC RULE: “Sandbox worker needs no proxy”
To provide additional protection, the solution’s assembly is not loaded into the main IIS process (w3wp.exe). Instead, it is loaded into a separate process (SPUCWorkerProcess.exe).
Sandboxed Solution Considerations
http://msdn.microsoft.com/en-us/library/ee231562.aspx
If the project type lets you change the Sandboxed Solution property and its value is set to true, then thedebugger attaches to a different process (SPUCWorkerProcess.exe).
Debugging SharePoint Solutions
http://msdn.microsoft.com/en-us/library/ee231550.aspx

QUESTION 67
You create a Web Part that calls a function named longCall. You discover that longCall takes a long time to execute. You need to display in the Developer Dashboard how long it takes to execute longCall. Which code segment should you use?

A.    DateTime startTime = DateTime.Now;
longCall();
Trace.Write(“Long Call ” + DateTime.Now.Subtract(startTime).Seconds);
B.    DateTime startTime = DateTime.Now;
longCall();
Trace.TraceWarning(“Long Call ” + DateTime.Now.Subtract(startTime).Seconds);
C.    Monitor.Enter(“Long Call”);
if (true)
{
longCall();
}
Monitor.Exit(“Long Call”);
D.    using (SPMonitoredScope monitoredScope = new SPMonitoredScope(“Long
Call”))
{
longCall();
}

Answer: D
Explanation:
MNEMONIC RULE: “Developer Dashboard = SPMonitoredScope”
Monitors performance and resource use for a specified scoped block of code.
SPMonitoredScope Class
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.utilities.spmonitoredscope.aspx

QUESTION 68
You add a delegate control to the <head> section of a custom master page. You reference a default script file by using the delegate control. You need to ensure that the delegate control meets the requirements. Which property should you use?

A.    Template_Controls
B.    Scope
C.    BindingContainer
D.    AllowMultipleControls

Answer: D
Explanation:
MNEMONIC RULE: “additional script references = AllowMultipleControls”
DelegateControl.AllowMultipleControls Property
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.delegatecontrol.allowmultiplecontrols.aspx

QUESTION 69
You create a Web Part named WP1. You need to ensure that the name of the Web Part displays as Corporate in SharePoint. What should you do?

A.    Rename WP1.webpart as Corporate.webpart.
B.    In WP1.webpart, change the Title property to Corporate.
C.    In the constructor of WP1.cs, add the following line of code: Page.Title=”Corporate”;
D.    In the Elements.xml file, change the Name property of the <File> element to Corporate.

Answer: B
Explanation:
MNEMONIC RULE: “Title property to Corporate”
Web Parts Control Description Files
http://msdn.microsoft.com/en-us/library/ms227561.aspx

QUESTION 70
You have a SharePoint site that has the URL http://contoso.com/hr. You are creating a new Web Part. You need to create a reference to the current subsite without having to dispose of any returned objects. Which code segment should you use?

A.    SPSite siteCollection = new SPSite(“http://www.contoso.com”);
SPWebCollection site = siteCollection.AllWebs;
B.    SPSite siteCollection = new SPSite(“http://www.contoso.com”);
SPWeb site = siteCollection.RootWeb;
C.    SPSite site = SPContext.Current.Site;
D.    SPWeb site = SPContext.Current.Web;

Answer: A
Explanation:
MNEMONIC RULE: “One-line SPWeb”
NEVER dispose of anything created with the use of SPContext objects, so your choice is now limited to answers C and D. Since you need a reference to the subsite (in SharePoint world, subsite = web), answer D is correct.
SPContext objects are managed by the SharePoint framework and should not be explicitly disposed in your code. This is true also for the SPSite and SPWeb objects returned by SPContext.Site, SPContext.Current.Site, SPContext.Web, and SPContext.Current.Web.Disposing Objects
http://msdn.microsoft.com/en-us/library/ee557362.aspx


http://www.passleader.com/70-573.html

QUESTION 71
You have a SharePoint site that contains 10 lists. You need to prevent a list named List1 from appearing on the Quick Launch navigation bar. What should you configure?

A.    the QuickLaunchEnabled property of the site
B.    the Hidden property of List1
C.    the OnQuickLaunch property of List1
D.    the Navigation.QuickLaunch.Parent.IsVisible property of the site

Answer: C
Explanation:
MNEMONIC RULE: “Do you want to see the list on Quick Launch?”
Gets or sets a Boolean value that specifies whether the list appears on the Quick Launch area of the homepage.
SPList.OnQuickLaunch Property
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.onquicklaunch.aspx

QUESTION 72
You create a Feature. You need to add an item to the context menu of a list. Which type of element should you use?

A.    a Listlnstance
B.    a ListTemplate
C.    a CustomAction
D.    a Module

Answer: C
Explanation:
MNEMONIC RULE: “context menu item = CustomAction”
A custom action can be added inside a secondary XML file, part of a normal feature. It is defined by a”CustomAction” element type.
How to add a custom action to list elements context menu
http://www.dev4side.com/community/technical-articles/sharepoint-2007/how-to-add-a-custom-action-to-listelements-context-menu.aspx

QUESTION 73
You have a Web page named ShowMessage.aspx. You create a new Web page. You need to display the content from ShowMessage.aspx in an IFRAME on the new Web page. You must achieve this goal by using the minimum amount of effort. What should you do?

A.    Add a PageView Web Part that displays ShowMessage.aspx.
B.    Use Response.Write to write text to the browser.
C.    Use SP.UI.ModalDialog.showModalDialog() to display a dialog.
D.    Use Response.Redirect to send users to the ShowMessage.aspx page.

Answer: C
Explanation:
MNEMONIC RULE: “SP.UI will get you IFRAME”
html property of SP.UI.DialogOptions can render an IFRAME tag pointing to the appropriate URL.
Using the Dialog framework in SharePoint 2010
http://www.chaholl.com/archive/2010/11/17/using-the-dialog-framework-in-sharepoint-2010.aspx

QUESTION 74
You are creating a Web Part. The Web Part will be used in a SharePoint subsite that has the URL http://www.contoso.com/hr. You need to ensure that the Web Part activates a Feature in the subsite without causing a memory leak. Which code segment should you use?

A.    SPFeatureCollection featuresCollect = SPContext.Current.SiteFeatures;
featuresCollect.Add(new Guid(“xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”), true);
B.    SPFeatureCollection featuresCollect = SPContext.Current.WebFeatures;
featuresCollect.Add(new Guid(“xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”), true);
C.    SPSite web = new SPSite(“http://www.contoso.com/hr”);
SPFeatureCollection featureCollect = web.Features;
featureCollect.Add(new Guid(“xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”), true);
D.    SPWeb web = new SPSite(“http://www.contoso.com/hr”).OpenWeb();
SPFeatureCollection featureCollect = web.Features;
featureCollect.Add(new Guid(“xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”), true);

Answer: B
Explanation:
MNEMONIC RULE: “no memory leak = SPContext; subsite = WebFeatures”
Gets the activated site features of the Microsoft SharePoint Foundation context.
SPContext.WebFeatures Property
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spcontext.webfeatures.aspx

QUESTION 75
You are developing an application page. You need to create a pop-up window that uses the ECMAScript object mode. Which class in the SP.UI namespace would you use?

A.    Notify
B.    ModalDialog
C.    PopoutMenu
D.    Menu

Answer: B

QUESTION 76
You have one Web application that contains several SharePoint site collections. You need to add a custom button to the Documents tab on the Ribbon of one site collection only. What should you do?

A.    Create a new Feature. In a new <CommandUIDefinition> node, specify the location of Ribbon.Tabs._children.
B.    Create a new Feature. In a new <CommandUIDefinition> node, specify the location of Ribbon.Documents.Manage.Controls._children.
C.    Modify the CMDUI.xml file. In a new <CommandUIDefinition> node, specify the location of Ribbon.Tabs._children.
D.    Modify the CMDUI.xml file. In a new <CommandUIDefinition> node, specify the location of Ribbon.Documents.Manage.Controls._children.

Answer: B
Explanation:
SharePoint 2010 Ribbon customization: Basics
http://howtosharepoint.blogspot.com/2010/06/ribbon-basics.html

QUESTION 77
You develop a custom master page. You need to ensure that all pages that use the master page contain a specific image in the same location. Page developers must be able to change the image on individual pages without impacting other pages that use the same master page. What should you add to the master page?

A.    a ContentPlaceHolder control
B.    an HTML Div element
C.    a Placeholder control
D.    an Image control

Answer: A
Explanation:
MNEMONIC RULE: “master page = ContentPlaceHolder”
Defines a region for content in an ASP.NET master page.
ContentPlaceHolder Class
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.contentplaceholder.aspx

QUESTION 78
You have a timer job that has the following constructors. (Line numbers are included for reference only.)
01 public TimerJob1 (): base() {}
02 public TimerJobl(SPWebApplication wApp)
You need to ensure that the timer job runs on only the first available timer server. Which base class constructor should you use in line 02?

A.    base(null, wApp, null/ SPJobLockType.ContentDatabase){}
B.    base(null, wApp, null, SPJobLockType.None){}
C.    base( ” TimerJobl” , wApp, null, SPJobLockType.Job){}
D.    base(“TimerJobl” , wApp, null, SPJobLockType.None){}

Answer: C

QUESTION 79
You are developing a Feature that will be used in multiple languages. You need to ensure that users view the Feature’s title and description in the display language of their choice. What should you create?

A.    a site definition
B.    multiple Elements.xml files
C.    a Feature event receiver
D.    multiple Resource (.resx) files

Answer: D
Explanation:
MNEMONIC RULE: “Language Resource”
Using Resource Files (.resx) when developing SharePoint solutions
http://blogs.msdn.com/b/joshuag/archive/2009/03/07/using-resource-files-resx-when-developing-sharepointsolutions.aspx

QUESTION 80
You need to send a single value from a consumer Web Part to a provider Web Part. Which interface should you use?

A.    IWebPartField
B.    IWebPartRow
C.    IWebPartParameters
D.    IAlertNotifyHandler

Answer: A
Explanation:
MNEMONIC RULE: “single value = field”
Defines a provider interface for connecting two server controls using a single field of data. This interface is designed to be used with Web Parts connections. In a Web Parts connection, two server controls that reside in a WebPartZoneBase zone establish a connection and share data, with one control acting as the consumer and the other control acting as a provider.
IWebPartField Interface
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.iwebpartfield.aspx


http://www.passleader.com/70-573.html

[Pass Ensure VCE Dumps] Accurate 285q 70-573 Exam Questions With VCE Dumps Offered By PassLeader (81-100)

$
0
0

Where Download New Free 70-573 Exam Dumps? As we all konw that new 70-573 exam is difficult to pass, if you cannot get the valid 70-573 exam questions, you will fail the 70-573 exam, but DO NOT WORRY! Nowdays, PassLeader has published the newest 285q 70-573 vce dumps and pdf dumps, in PassLeader’s new 285q 70-573 braindumps, you can get all the new questions and answers, it is 100% vaild and will help you achieving 70-573 exam certification quickly.

keywords: 70-573 exam,285q 70-573 exam dumps,285q 70-573 exam questions,70-573 pdf dumps,70-573 vce dumps,70-573 study guide,70-573 practice test,TS: Microsoft SharePoint 2010, Application Development Exam

QUESTION 81
You create a Web Part that contains the following code segment. (Line numbers are included for reference only.)
01 public class HebPart1: WebPart
02 {
03 public VebPart1() {}
04
05 protected override void CreateChildControlst)
06 {
07 Button clickButton = new Button();
08
09 base.CreateChildControls();
10 ]
11
12 protected override void BenderContents(HtrolTextWriter writer)
13 {
14
15 base.RenderContents(writer);
16 }
17 }
You discover that the clickButton button does not appear. You need to ensure that the clickButton button appears. What should you do?

A.    Delete line 09.
B.    Add the following code segment to line 08: Controls.Add(clickButton);
C.    Move the code segment from line 07 to line 14.
D.    Add the following code segment to line 14: EnsureChildControls();

Answer: B
Explanation:
MNEMONIC RULE: “create Button, then Add Button”
Create a Custom Web Part for SharePoint 2010
http://blog.concurrency.com/sharepoint/create-a-custom-web-part-for-sharepoint-2010/
SharePoint 2010 Visual Web Parts
http://httpcode.com/blogs/PermaLink,guid,357e4853-9a75-4962-ad68-1e07bcf40bb8.aspx

QUESTION 82
You create a custom list named Products. You need to perform a Representational State Transfer (REST) query that returns products 30 to 39. Which URL should you use?

A.    /ListData.svc/Products(30) $skip=10
B.    /ListData.svc/Products(39) $skip=30
C.    /ListData.svc/Products $skip=10&$top=30
D.    /ListData.svc/Products $skip=30&$top=10

Answer: D
Explanation:
MNEMONIC RULE: “skip first 30, get top 10”
Using REST to get data form SharePoint 2010 lists
http://mysharepointwork.blogspot.com/2010/09/using-rest-to-get-data-form-sharepoint.html

QUESTION 83
You are creating a Web Part for SharePoint Server 2010. The Web Part contains the following code segment. (Line numbers are included for reference only.)
01 protected override void CreateChildControls ()
02 {
03 base.CreateChildControls ();
04 SPSecurity.FunWithElevatedPrivileges (
05 delegate
06 {
07 Label ListCount = new Label ();
08 ListCount.Text = String.Format
(“There are {0> Lists”, SPContext.Current.Heb.Lists.Count );
09 Controls.Add ( ListCount );
10 }}
11 }
You need to identify which line of code prevents the Web Part from being deployed as a sandboxed solution. Which line of code should you identify?

A.    04
B.    09
C.    08
D.    03

Answer: A
Explanation:
MNEMONIC RULE: “No RunWithElevatedPrivileges for sandboxed solutions”
Methods in a sandboxed solution cannot be configured to run with the elevated privileges of the user identity inwhich the application pool runs.
Restrictions on Sandboxed Solutions in SharePoint 2010
http://msdn.microsoft.com/en-us/library/gg615454.aspx

QUESTION 84
You have a Feature that contains an image named ImageVl.png. You plan to create a new version of the Feature. You need to ensure that when the Feature is upgraded, the image is renamed as ImageV2.png. You must achieve this goal by using the minimum amount of development effort. Which element should you configure in the Feature definition file?

A.    <ApplyElementManifests>
B.    <MapFile>
C.    <CustomUpgradeAction>
D.    <VersionRange>

Answer: B
Explanation:
MNEMONIC RULE: “image file upgrade = MapFile”
MapFile Element (Feature)
http://msdn.microsoft.com/en-us/library/ff595311.aspx

QUESTION 85
You use a custom site definition to create SharePoint sites. You need to add a Web Part to the home page of the site definition. Which file should you modify?

A.    Onet.xml
B.    default.master
C.    web.conflg
D.    Sp.xml

Answer: A
Explanation:
MNEMONIC RULE: “third-party site definition = Onet.xml”
You can perform the following kinds of tasks in a custom Onet.xml file that is used for either a custom site definition or a custom web template:
Specify an alternative cascading style sheet (CSS) file, JavaScript file, or ASPX header file for a site definition.
Modify navigation areas for the home page and list pages.
Add a new list definition as an option in the UI.
Define one configuration for the site definition or web template, specifying the lists, modules, files, and Web Parts that are included when the configuration is instantiated.
Specify Features to be included automatically with websites that are created from the site definition or web template.
Understanding Onet.xml Files
http://msdn.microsoft.com/en-us/library/ms474369.aspx

QUESTION 86
You create a SharePoint solution that contains two Features named Feature1 and Feature2. You need to ensure that Feature1 is always activated before Feature2. You must achieve this goal by using the minimum amount of development effort. What should you do?

A.    From Feature1.feature explorer, add Feature2 to the Feature Activation Dependencies list.
B.    Create a custom Feature receiver for Feature2.
C.    From Feature2.feature explorer, add Feature1 to the Feature Activation Dependencies list.
D.    Create a custom Feature receiver for Feature1.

Answer: C
Explanation:
MNEMONIC RULE: “add Feature1 to Feature2.feature explorer”
Activation Dependencies and Scope
http://msdn.microsoft.com/en-us/library/aa543162.aspx

QUESTION 87
You create a Visual Web Part. You need to add an image to the Web Part. The image must be deployed to the 14\TEMPLATE\IMAGES folder. What should you do in Microsoft Visual Studio?

A.    Add a SharePoint Layouts mapped folder and create a subfolder named Images.
B.    Create a folder named Images.
C.    Add a SharePoint Images mapped folder.
D.    Create a folder named_Layouts and a subfolder named Images.

Answer: C
Explanation:
MNEMONIC RULE: Images mapped folder
Deploying files using Mapped Folders
http://blogs.msdn.com/b/vssharepointtoolsblog/archive/2010/03/12/deploying-files-using-mapped-folders.aspx

QUESTION 88
You have a Web application named WebApp1. You have a Feature receiver named FeatureReceiver1. FeatureReceiver1 stores a connection string in the web.config file of WebApp1. You need to ensure that when FeatureReceiver1 makes configuration changes to web.config, the changes are automatically replicated to all Web servers in the farm. Which class should you use in FeatureReceiver1?

A.    SPPersistedObject
B.    SPWebConfigModification
C.    SPDiagnosticsService
D.    WebConfigurationManager

Answer: C
Explanation:
MNEMONIC RULE: “web.config modification = SPWebConfigModification”
To apply modifications that you define through the SPWebConfigModification class to the web.config files inthe server farm, call the ApplyWebConfigModifications method on the current content Web service object, as follows:
SPWebService.ContentService.ApplyWebConfigModifications
SPWebConfigModification Class
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spwebconfigmodification.aspx

QUESTION 89
You need to disable the CriticalExceptionCount measure for all sandboxed solutions. You write the following code segment. (Line numbers are included for reference only.)
01 SPUserCodeService userCode = SPUserCodeSecvi.ee. Local;
02 SPResourceHeasureCollection measures = userCode.ResourceHeasures;
03 SPResourceHeasure measure = measures [” CriticalExc eptionCounc “];
04
05 measure.Update ();
Which code segment should you add at line 04?

A.    measure.ResourcesPerPoint = 1;
B.    measure. AfosoluteLimit. = 0;
C.    measure.AbsoluteLimit = 1;
D.    measure.ResourcesPerPoint = 0;

Answer: D
Explanation:
MNEMONIC RULE: Zero ResourcesPerPoint
For example, AbnormalProcessTerminationCount has a ResourcesPerPoint value of 1. Every time asandboxed solution terminates abnormally, 1 point is added. If you want to increase the penalty for asandboxed solution that terminates, you can set ResourcesPerPoint to another value, such as 2. You can use0 if you are not concerned about this metric.
SharePoint 2010 Sandboxed Solutions-Resource Quotas
http://sharepointinnovations.blogspot.com/2011/05/sharepoint-2010-sandboxed-solutions_06.html

QUESTION 90
You need to add a new field to a provisioned content type. You must propagate the field to child lists and child content types. What should you use?

A.    <MapFile>
B.    <FieldRefs>
C.    <AddContentTypeField>
D.    <ApplyElementManifests>

Answer: C
Explanation:
MNEMONIC RULE: “field for content type = AddContentTypeField”
AddContentTypeField Element (Feature)
http://msdn.microsoft.com/en-us/library/ff595314.aspx


http://www.passleader.com/70-573.html

QUESTION 91
You have a SharePoint site that uses the default search settings. You create a new Search Center. You need to ensure that the new Search Center is the default Search Center for the site. What should you modify?

A.    the AllWebs collection of the site collection
B.    the Cache property of the current HttpContext
C.    the AllProperties collection of the site
D.    the Session property of the current HttpContext

Answer: C
Explanation:
MNEMONIC RULE: “AllProperties of the site”
SPWeb.AllProperties Property
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.allproperties.aspx
Bloody Stupid SPWeb properties
http://www.novolocus.com/2010/12/22/stupid-spweb-properties/

QUESTION 92
You create an entity named Customer in a Business Connectivity Services (BCS) object mode. You need to ensure that Customer data can be displayed in a Business Data List Web Part. Which method type should you use?

A.    Genehclnvoker
B.    SpecificFinder
C.    Finder
D.    IDEnumerator

Answer: C
Explanation:
MNEMONIC RULE: “Finder for all Customer data”
The first method created is ReadItem, which allows you to retrieve a specific record from the external storebased on an identifier. This is mapped to the XML metadata as a method instance of type “SpecificFinder.” The second method that is created is ReadList, which retrieves all records from the external store. This ismapped in the XML metadata as a “Finder” method instance. These are the minimum two methods that your entity needs to implement in order to serve as a connector forBCS.
Using Business Connectivity Services in SharePoint 2010
http://msdn.microsoft.com/en-us/magazine/ee819133.aspx

QUESTION 94
You develop a custom approval workflow. The workflow uses the CreateTask class to assign tasks to a user named User1. A list called Tasks stores the tasks. Other workflows and users use the Tasks list. You need to ensure that the tasks assigned to User1 can only be viewed by User1. What should you do?

A.    Set the CreateTask.SpecialPermissions property.
B.    Set the CreateTask.TaskProperties property.
C.    Break the permission inheritance for the Tasks list.
D.    Assign a custom permission level to a group that contains User1.

Answer: A
Explanation:
MNEMONIC RULE: “SpecialPermissions”
CreateTask.SpecialPermissions Property
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.workflowactions.createtask.specialpermissions.aspx

QUESTION 95
You create a list named List1. You create two workflows named WF1 and WF2 for List1. You need to ensure that when a new item is created in List1, WF1 starts automatically. WF2 must start automatically after WF1 completes. What should you do?

A.    Add a SendActivity activity to WF2.
B.    Add a Replicator activity to WF2.
C.    Create a SPWebEventReceiver event receiver.
D.    Create a SPWorkflowEventReceiver event receiver.

Answer: D
Explanation:
MNEMONIC RULE: “Workflow = SPWorkflowEventReceiver”
The SPWorkflowEventReceiver class handles workflow events throughout the lifetime of a workflow.
Starting: Occurs when a workflow is starting
Started: Occurs when a workflow is started
Postponed: Occurs when a workflow is postponed
Completed: Occurs when a workflow is completed
You can register the SPWorkflowEventReceiver with any site, list, or content type.

QUESTION 96
You have the following event receiver. (Line numbers are included for reference only.)
01 public override void FieldDeleting(SPListEventProperties properties)
02 {
03 base.FieldDeleting(properties);
04
05 if (properties.FieldName == “Status”)
06 {
07
08
09 }
10 }
You need to cancel the operation and redirect the user to a custom error page if the name of the deleted field is Status. Which code segments should you add at lines 07 and 08?

A.    07 properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl;
08 properties.RedirectUrl – “/_layouts/ customErrorPage.ospx “;
B.    07 properties. RedirectUrl = “/ layouts/custoroErrorPage. aspx “;
08 properties.Cancel = true;
C.    07 properties.ErrorMessage = “<Pedirect URL = */_layouts/ customErrorPage.aspx’ />”;
08 properties.Cancel = true;
D.    07 properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl;
08 properties.ErrorHessage = “<Redirect URL > `_/ layouts/customErrorPage.aspx ‘ />”;

Answer: D

QUESTION 97
You create a custom page layout that has a field control named Field1. You need to ensure that Field1 is only visible when users modify the contents of the page. Which parent control should you use for Field1?

A.    PublishingContext
B.    PageLayoutValidator
C.    EditModePanel
D.    ValidatorAggregator

Answer: C
Explanation:
MNEMONIC RULE: “visible when modify = EditModePanel”
Provides a container that shows or hides its child controls based on the mode of the page.
EditModePanel Class
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.webcontrols.editmodepanel.aspx

QUESTION 98
You are creating an event receiver. The event receiver will have a field named Title and a field named Priority. You write the following code segment for the event receiver. (Line numbers are included for reference only.)
01 public override void ItemUpdating ( SPItemEventProperties prop)
02 {
03 base.ItemUpdating (prop);
04
05
06 }
You need to ensure that when the Title field is changed to include the word IMPORTANT, the Priority field is set to URGENT. Which code segments should you add at lines 04 and 05?

A.    04 if ( prop.BeforeProperties [“vti_title “] . ToString () .Contains (“IMPORTANT”))
08 prop.AfterProperties (“Priority”] – “URGENT”;
B.    04 iff prop.AfterProperties [“vti_title “] . ToString () .Contains(“IMPORTANT”))
05 prop.Listltem [“Priority”] = “URGENT”;
C.    04 if ( prop.AfterProperties [“vti_title “] . ToString () .Contains(“IMPORTANT”))
05 prop.AfterProperties [“Priority”] = “URGENT”;
D.    04 if ( prop.Listltem [“Title”] . ToString () -Contains (“IMPORTANT”))
05 prop.AfterProperties [“Priority”] – “URGENT”;

Answer: A

QUESTION 99
You are creating a custom workflow action to be used in Microsoft SharePoint Designer reusable workflows. The action programmatically creates a SharePoint site named Site1 at a specific URL. The workflow actions schema file contains the following code segment.
< Workflowlnfo>
<Actions Sequential=”then” Parallel=”and”>
<Action Name=”Create Sice”
ClassName =” SPDActivityDemo.Createsite ” Assembly=” SPDActivityDemo ,
Version=l.0.0.0, Culture=neutral, PublicKeyToken= Ia4a7a2c3215a71b ” AppliesTo =”all” Category=”Test”> <Parameters>
<Parameter Name=”Url” Type=” System.String , mscorlib ” Direction=”Inr’ /> <Parameters> </Action>
</Actions>
</ Workflowlnfo >
You need to ensure that users can specify the URL property of the action in SharePoint Designer. What should you add to the schema of the action?

A.    <Parameter Name=” Url ” Type=” System.String , mscorlib ” Direction=”Out” />
B.    <Option Name=”equals” Value=”Equal”/>
C.    <xml vecsion”M1.0″ encoding-“utf-8” />
D.    < RuleDesigner Sentence=”Create site at Ur1 %1.”>
<FieldBlnd Field=” Url ” Text=” Url of site” Id=”l” DesignerType =” TextArea ” />
</ RuleDesigner >

Answer: D

QUESTION 100
You need to create a custom application that provides users with the ability to create a managed property. The managed property name must be specified in the args [1] parameter. You write the following code segment for the application.
01 SPSite currentSite = new SPSite(“http://intranet”);
02 SearchContext context = SearchContext.GetContext(currentSite);
03 Schema schema = new Schema(context);
Which code segment should you add to the application?

A.    context.SearchApplication.CrawlStores.Create(args[1]);
B.    ManagedPropertyCollection properties = schema.AllManagedProperties;
ManagedProperty newMng = properties.Create(args[1], ManagedDataType.Text);
C.    ManagedPropertyCollection properties = schema.AllManagedProperties;
ManagedProperty newMng = properties.CreateCrawlMonProperty(); newMng.Name = args[1];
D.    schema.AllCategories.Create(args[1], Guid.NewGuid());

Answer: B
Explanation:
MNEMONIC RULE: “properties.Create()”
Use the AllManagedProperties property of the Schema class to get the collection of managed properties inthe Shared Service Provider’s search schema. To add a new managed property to the collection, use the Create() method.
ManagedPropertyCollection Class
http://msdn.microsoft.com/en-us/library/microsoft.office.server.search.administration.managedpropertycollection.create.aspx


http://www.passleader.com/70-573.html

[New Exam Dumps] The Best PassLeader 70-687 Exam Questions With Free VCE Download

$
0
0

New Updated 70-687 Exam Questions from PassLeader 70-687 PDF dumps! Welcome to download the newest PassLeader 70-687 VCE dumps: http://www.passleader.com/70-687.html (302 Q&As)

Keywords: 70-687 exam dumps, 70-687 exam questions, 70-687 VCE dumps, 70-687 PDF dumps, 70-687 practice tests, 70-687 study guide, 70-687 braindumps, Configuring Windows 8.1 Exam

NEW QUESTION 292
You have 100 Windows 8.1 Pro client computers that run. Each computer has a single local hard disk drive, a DVD drive. and an external USB drive. Each computer has a different set of line-of-business (LOB) desktop applications that are installed locally. All of the applications store their configurations in the HKEY_Local_Machine\Software registry hive. You need to design a recovery solution to ensure that you can restore the initial state of the locally installed LOB desktop applications if an application is misconfigured. The solution must preserve the existing locally stored user data. What should you do?

A.    Run redmg-exe. Perform a system reset.
B.    Create a restore point Perform a system restore.
C.    Enable File History. Restore files by using File History.
D.    Create a recovery drive. Start the computer from the recovery drive and perform a refresh.

Answer: C

NEW QUESTION 293
You are a desktop support technician for your company. A user reports that her Windows 8.1 computer is missing .dll files. You need to restore the missing *dll files without losing the user’s data. What should you do?
 
A.    Use System Restore.
B.    Refresh the computer.
C.    Open PowerShell and run the wbadmin cmdlet.
D.    Run the redmg command.

Answer: A

NEW QUESTION 294
……

Download the newest PassLeader 70-687 dumps from passleader.com now! 100% Pass Guarantee! http://www.passleader.com/70-687.html

NEW QUESTION 295
You are the desktop administrator for a small company. You add a mirrored storage space as drive E to a marketing employee’s Windows 8.1 computer for redundancy. You move the employee’s .jpg and .bmp files to drive E. The employee can no longer search for the files. You need to ensure that the image files on drive E are indexed. What should you do?
 
A.    Right-click in an empty space under the Documents library.
Select New Shortcut Browse to drive E and select OK. Click Next and then click Finish.
B.    Open Libraries from Windows Search. Right-click and select New Name the library E.
C.    Right-click the properties of drive E.
On the General tab, select the AlIow files on this drive to have contents indexed in addition to file properties box.
D.    Right-click drive E. Select Include in Library. Create a new Library.

Answer: C

NEW QUESTION 296
……

Download the newest PassLeader 70-687 dumps from passleader.com now! 100% Pass Guarantee! http://www.passleader.com/70-687.html

NEW QUESTION 297
You work for a software development company. Your supervisor wants Secure Boot enabled on all Windows 8.1 computers in the development department. You need to ensure that the computers boot only if they are using UEFL. What should you do on the Windows 8.1 computers?

A.    Make sure that all drivers are signed by a trusted certification authority (CA).
B.    Install Windows 8.1 Professional 64-bit.
C.    Install a Trusted Platform Module (TPM).
D.    In the BIOS, set the Compatibility Support Module (CSM) to Disabled.

Answer: A

NEW QUESTION 298
You are a desktop administrator at a college. The college use three Windows 7 computer as registration bosks with loal user account. The college wants to upgrade the computers from Windows 7 to Windows 8.1. You need to automate migration of local user accounts by using User State Migration Tool (USMT). What should you do?

A.    Run ScanState with the /lac parameter on Windows 7, and then run LoadState with the/lac parameter on Windows 8.1.
B.    Run ScanState with the /mu parameter on Windows 7, and then run LoadState with the /mu parameter on Windows 8.1
C.    Run ScanState on Windows 7, and then run LoadState vwlh the /lac parameter on Windows 8.1.
D.    Run ScanState with the /ccustom.xml parameter on Windows 7, and then run LoadState with the /custom.xml parameter on Windows 8.1.

Answer: B

NEW QUESTION 299
……


Download the newest PassLeader 70-687 dumps from passleader.com now! 100% Pass Guarantee!

70-687 PDF dumps & 70-687 VCE dumps: http://www.passleader.com/70-687.html (302 Q&As)


[New Exam Dumps] PassLeader Best Valid 70-689 Braindump in VCE and PDF Help Passing Exam

$
0
0

New Updated 70-689 Exam Questions from PassLeader 70-689 PDF dumps! Welcome to download the newest PassLeader 70-689 VCE dumps: http://www.passleader.com/70-689.html (327 Q&As)

Keywords: 70-689 exam dumps, 70-689 exam questions, 70-689 VCE dumps, 70-689 PDF dumps, 70-689 practice tests, 70-689 study guide, 70-689 braindumps, Microsoft Upgrading Your Skills to MCSA Windows 8 Exam

NEW QUESTION 301
You have 100 Windows 8.1 Pro client computers that run. Each computer has a single local hard disk drive, a DVD drive. and an external USB drive. Each computer has a different set of line-of-business (LOB) desktop applications that are installed locally. All of the applications store their configurations in the HKEY_Local_Machine\Software registry hive. You need to design a recovery solution to ensure that you can restore the initial state of the locally installed LOB desktop applications if an application is misconfigured. The solution must preserve the existing locally stored user data. What should you do?

A.    Run redmg-exe. Perform a system reset.
B.    Create a restore point Perform a system restore.
C.    Enable File History. Restore files by using File History.
D.    Create a recovery drive. Start the computer from the recovery drive and perform a refresh.

Answer: C

NEW QUESTION 302
You are a desktop support technician for your company. A user reports that her Windows 8.1 computer is missing .dll files. You need to restore the missing *dll files without losing the user’s data. What should you do?
 
A.    Use System Restore.
B.    Refresh the computer.
C.    Open PowerShell and run the wbadmin cmdlet.
D.    Run the redmg command.

Answer: A

More New Exam Questions — Download the newest PassLeader 70-689 dumps from passleader.com now! 100% Pass Guarantee! http://www.passleader.com/70-689.html

NEW QUESTION 313
You administer Windows 8.1 Pro dient computers that are members of an Active Directory domain that includes Active Directory Certificate Services (AD CS). You restored a computer from a backup that was taken 45 days ago. Users are no longer able to log on to that computer by using their domain accounts. An error message states that the trust relationship between the computer and the primary domain has failed. You need to restore the ability to log on to domain accounts, with a minimal risk of data loss. What should you do?

A.    Logon as a local administrator and issue the netdom resetpwd command. Log off and restart the computer.
B.    Reset the passwords of all affected domain users.
C.    Restore the client computer from a known good backup that was taken two weeks earlier than the backup you previously restored.
D.    Renew the certificates issued to the dient computer.

Answer: A

NEW QUESTION 314
You administer Windows 8.1 Pro desktops. You discover that a company employee enabled file encryption on several folders by using a self- signed Encrypted File System (EFS) certificate. You need to ensure that you are able to decrypt the encrypted files if the user profile is deleted. What should you do?

A.    Open the Certificates console and connect to the user account certificates.
Find the personal self-signed EFS certificate and export it to a Personal Information Exchange (PFX) file.   
B.    Open the Certificates console and connect to the computer account certificates.
Export the self-signed EFS certificate from the Trusted People folder to a Canonical Encoding Rules (CER) file.
C.    Open the Certificates console and connect to the user account certificates.
Export the personal seff-signed EFS certificate from the Trusted Root Certification Authority folder to a Personal Information Exchange (PFX) file.
D.    Open the Certificates console and connect to the user account certificates.
Export the self-signed EFS certificate from the Trusted People folder to a Canonical Encoding Rules (CER) file.

Answer: B

More New Exam Questions — Download the newest PassLeader 70-689 dumps from passleader.com now! 100% Pass Guarantee! — http://www.passleader.com/70-689.html

NEW QUESTION 326
You are an application developer for a federal government agency. You maintain a legacy application that the agency originally developed for Windows 2000. The agency is upgrading all desktop computers to Windows 8.1. The legacy application does not run on Windows 8.1. You use the Application Compatibility Toolkit (ACT) to create a shim. You need to deploy the shim to all Windows 8.1 computers. What should you do?

A.    Install the shim on all Windows XP computers prior to the Windows ai upgrade.
B.    Run the sdbinst.exe utility on each computer to install the shim locally.
C.    Install .NET Framework 4 with current software updates.
D.    Configure a Group Policy to install the shim with user privileges.

Answer: D

NEW QUESTION 327
……


Download the newest PassLeader 70-689 dumps from passleader.com now! 100% Pass Guarantee!

70-689 PDF dumps & 70-689 VCE dumps: http://www.passleader.com/70-689.html (327 Q&As)

[Pass Ensure VCE Dumps] PassLeader New 70-573 Braindump With VCE Files For Free Download (101-120)

$
0
0

Where Download New Free 70-573 Exam Dumps? As we all konw that new 70-573 exam is difficult to pass, if you cannot get the valid 70-573 exam questions, you will fail the 70-573 exam, but DO NOT WORRY! Nowdays, PassLeader has published the newest 285q 70-573 vce dumps and pdf dumps, in PassLeader’s new 285q 70-573 braindumps, you can get all the new questions and answers, it is 100% vaild and will help you achieving 70-573 exam certification quickly.

keywords: 70-573 exam,285q 70-573 exam dumps,285q 70-573 exam questions,70-573 pdf dumps,70-573 vce dumps,70-573 study guide,70-573 practice test,TS: Microsoft SharePoint 2010, Application Development Exam

QUESTION 101
You have a document library named Documents. Minor and major version management is enabled for the document library. You plan to add a document named MyFile.docx to Documents. You create a console application that contains the following code segment. (Line numbers are included for reference only.)
01 using (SPSite site = new SPSite(“http://intranet”))
02 {
03 SPList documents = site.RootWeb.Lists[“Documents”];
04 FileStream fstream = File.OpenRead(@”MyFile.docx”);
05 byte[] content = new byte[fstream.Length];
06 fstream.Read(content, 0, (int)fstream.Length);
07 fstream.Close();
08 site.RootWeb.Files.Add(documents.RootFolder.Url + “/MyFile.docx”, content, true);
09 SPFile file = site.RootWeb.GetFile(documents.RootFolder.Url + “/MyFile. docx”);
10 file.CheckIn(string.Empty);
11
12 }
You need to ensure that all users can see the document. Which code segment should you add at line 11?

A.    file.CanOpenFile(true);
B.    file.Publish(string.Empty);
C.    file.ReleaseLock(string.Empty);
D.    file.Update();

Answer: B
Explanation:
MNEMONIC RULE: “Minor and major versions to Publish”
Minor and major version management is enabled for the document library; therefore, we must use Publish()method.
SPFile.Publish Method
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfile.publish.aspx

QUESTION 102
You create a Microsoft .NET Framework console application that uses a Representational State Transfer (REST) API to query a custom list named Products. The application contains the following code segment.
AdventureWorksDataContext codc = new AdventureWorksDataContext(new Uri(“http://contoso/_vti_bin/listdata.svc”));
codc.Credentials = CredentialCache.DefaultCredentials;
You need to read all items in Products into an object. Which method should you use?

A.    code.Products.ToList
B.    code.Products.All
C.    code.Products.AsQueryable
D.    code.Products.ElementAt

Answer: A
Explanation:
MNEMONIC RULE: “read all items ToList”
Interacting with SharePoint 2010 lists using REST, ASP.NET and ADO.NET Data Services
http://extendtheenterprise.com/2010/11/03/using-sharepoint-2010-rest-apis-in-asp-net/
Enumerable.ToList<TSource> Method
http://msdn.microsoft.com/en-us/library/bb342261.aspx

QUESTION 103
You have a helper method named CreateSiteColumn that contains the following code segment.
static void CreateSiteColumn ( SPWeb web, string columnName )
{
}
You need to add a new site column of type Choice to a SharePoint site by using the helper method. Which code segment should you include in the helper method?

A.    SPField field = new SPFieldChoice(System.web.Lists[0].Fields, columnName);
B.    web.Fields.Add(columnName, SPFieldType.Choice, true);
C.    web.Lists[0].Fields.Add(columnName, SPFieldType.Choice, True);
D.    web.Lists[0].Views[0].ViewFields.Add(columnName);

Answer: B
Explanation:
MNEMONIC RULE: “web.Fields.Add”
SPFieldCollection.Add Method (String, SPFieldType, Boolean)
http://msdn.microsoft.com/en-us/library/ms472869.aspx

QUESTION 104
You have a custom user profile property named MyProperty. You need to create a Web Part that displays the value of MyProperty for the current user. Which code segment should you use?

A.    string profile = SPContext.Current.Web.Properties(“CurrentUser/MyProperty”);
B.    string profile = SPContext.Current.Web.Users[“MyProperty”].ToString();
C.    UserProfileManager profileManager = new UserProfileManager(SPServiceContext.Current);
UserProfile userProfile = profileManager.GetUserProfile(SPContext.Current.Web. CurrentUser.LoginName);
string profile = userProfile[“MyProperty”].ToString();
D.    UserProfileManager profileManager = new UserProfileManager(SPServiceContext.Current);
UserProfile userProfile = profileManager.GetUserProfile(SPContext.Current.Web.CurrentUser.LoginName);
string profile = userProfile.Properties.GetPropertyByName(“MyProperty”).ToString();

Answer: D
Explanation:
MNEMONIC RULE: GetPropertyByName
userProfile.Properties is ProfileSubtypePropertyManager object.
See its members in this MSDN article:
ProfileSubtypePropertyManager Members
http://msdn.microsoft.com/en-us/library/microsoft.office.server.userprofiles.profilesubtypepropertymanager_members.aspx
See the sample code at the link below.
Creating profile properties and sections the SharePoint 2010 way-part 2, The code
http://pholpar.wordpress.com/2010/03/17/creating-profile-properties-and-sections-the-sharepoint-2010-waypart-2-the-code/

QUESTION 105
You have a SharePoint Web application that has the URL http://intranet. You are creating a Microsoft .NET Framework application that will display the title of the SharePoint site and will execute outside of the SharePoint server. You create a textbox named textBoxTitle. You write the following code segment. (Line numbers are included for reference only.)
01 ClientContext context = new ClientContext(“http://intranet”);
02
03 Web site = context.Web;
04 context.Load(site) ;
05
06 textBoxTitle.Text = site.Title;
You discover that line 0 6 generates an error. You need to ensure that the .NET application displays the title of the SharePoint site in textBoxTitle. What should you do?

A.    Add the following line of code at line 02.
context.ExecuteQuery() ;
B.    Add the following line of code at line 05.
context.ExecuteQuery();
C.    Add the following line of code at line 05.
context.ValidateOnClient = true;
D.    Add the following line of code at line 02.
context-ValidateOnClient = true;

Answer: B

QUESTION 106
You are creating a custom content type named CT1. You need to use a Feature to add an existing site column named SiteCol1 to CT1. Which code segment should you include in the Feature?

A.    <Field ID=”SiteCol1″/>
B.    <Field ID=”{XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX}” Name=”SiteCol1″/>
C.    <FieldRef ID=”SiteCol1″ Name=”{XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX}”/>
D.    <FieldRef ID=”{XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX}” Name=”SiteCol1″/>

Answer: D
Explanation:
MNEMONIC RULE: “existing Field needs to be Referenced”
FieldRef Element (ContentType)
http://msdn.microsoft.com/en-us/library/aa543225.aspx

QUESTION 107
You create a Web Part. You need to display the number of visits to a SharePoint site collection in a label named LblVisits. You write the following code segment. (Line numbers are included for reference only.)
01 SPSecurity.RuntfithElevatedPrivileges (delegate()
02 {
03 try
04 {
05
06 LblVisits.Text = site.Usage.Visits.ToString () ;
07 }
08 finally
09 {
10
11 }
12 }
13 );
Which code segment should you add at line 05?

A.    SPSite site – SPContext.GetContext (HttpContext.Current ).Site;
B.    SPSite site = new SPSite (SPContext.Current.Site.ID );
C.    SPSite site = SPContext.Current.Site;
D.    SPSite site – SPControl.GetContextSite (HttpContext.Current );

Answer: B

QUESTION 108
You plan to create a custom Web Part that displays items from a custom SharePoint list named Project. You need to ensure that you can access the list by using strongly-typed objects in Microsoft Visual Studio 2010. What should you do first?

A.    Edit the web.config file.
B.    Run spmetal.exe.
C.    Run ecmangen.exe.
D.    Edit the Manifest.xml file.

Answer: B
Explanation:
MNEMONIC RULE: “strongly-typed = spmetal.exe”
The LINQ to SharePoint provider is a new feature in SharePoint 2010 that allows you to use a strongly-typedentity model and the language integrated query (LINQ) query syntax to query list data. Essentially, LINQ toSharePoint hides the complexity of developing CAML queries from developers, which can reduce developmenttime and make code more readable. The LINQ to SharePoint provider converts the LINQ expressions into CAML queries at run time. Although you can manually develop your entity classes, in most cases, you will want to use the SPMetalcommand line tool.
Using LINQ to SharePoint
http://msdn.microsoft.com/en-us/library/ff798478.aspx

QUESTION 109
You need to create a Web Part that displays all of the content created by a specific user. You write the following code segment. (Line numbers are included for reference only.)
01 Dim kRequest As New KeywordQuery(ServerContext.Current)
02
03 kRequest.QueryText = strQuery
04 Dim resultTbls As ResultTableCollection = kRequest.Execute()
Which code segment should you add at line 02?

A.    Dim strQuery As String = “author:” & searchAuthor
B.    Dim strQuery As String = “docID:” & searchAuthor
C.    Dim strQuery As String = “SELECT Title, Rank, Write, Url FROM SCOPE() WHERE author = ” & searchAuthor
D.    Dim strQuery As String = “SELECT Title, Rank, Write, Url FROM SCOPE() WHERE docID = ” & searchAuthor

Answer: A

QUESTION 110
You create two custom lists named Offices and Rooms.
Rooms has the following columns:
Offices thas the following columns:
You need to perform a Representational State Transfer (REST) query that returns a list of all the offices that have rooms with a capacity of 10. The query results must include the room titles and the equipment in each room. Which URL should you choose?

A.    /_vti_bin/ListData.svc/Offices $expand=Rooms&$filter=Rooms/Capacity eq 10
B.    /_vti_bin/ListData.svc/Offices &$filter=Rooms/Capacity eq 10
C.    /_vti_bin/ListData.svc/Rooms $expand=Offices&$filter=Rooms/Capacity eq 10
D.    /_vti_bin/ListData.svc/Rooms &$filter=Offices/Capacity eq 10

Answer: A
Explanation:
MNEMONIC RULE: “Offices-Rooms-Rooms/Capacity”
You can use the Expand method to navigate from one entity to a related entity. You can append query strings to the URLs in order to specify filter criteria or query logic.
Using the REST Interface
http://msdn.microsoft.com/en-us/library/ff798339.aspx


http://www.passleader.com/70-573.html

QUESTION 111
You create a Web Part that programmatically updates the description of the current SharePoint site. The Web Part contains the following code segment. (Line numbers are included for reference only.)
01 RunWithElevatedPrivileges(EvelateSub)
02 Private Sub ElevatedSub()
03 Dim currSite As SPSite = SPContext.Current.Site
04 Dim currWeb As SPWeb = SPContext.Current.Web
05 Using eSite As New SPSite(currSite.ID)
06 Using eWeb As SPWeb = eSite.OpenWeb(currWeb.ID)
07 eWeb.AllowUnsafeUpdates = True
08 currWeb.Description = “Test”
09 currWeb.Update()
10 eWeb.AllowUnsafeUpdates = False
11 End Using
12 End Using
Users report that they receive an Access Denied error message when they use the Web Part. You need to ensure that all users can use the Web Part to update the description of the current site. What should you do?

A.    Remove lines 07 and 10.
B.    Remove lines 08 and 09.
C.    Change lines 08 and 09 to use the eWeb variable.
D.    Change lines 07 and 10 to use the currWeb variable.

Answer: C

QUESTION 112
You create a Web Part that queries a list. The Web Part contains the following code segment. (Line numbers are included for reference only.)
01 Protected Overloads Overrides Sub Render(ByVal writer As HtmlTextWriter)
02 Dim spInToken As SPUserToken = GetTheContext(SPContext.Current.Site)
03 Using aSite As New SPSite(curSiteCtx.ID, spInToken)
04 …
05 End Using
06 End Sub
07 Private Function GetTheContext(ByVal nWeb As SPSite) As SPUserToken
08 nWeb.CatchAccessDeniedException = False
09 Dim spToken As SPUserToken = Nothing
10 Try
11 spToken = nWeb.SystemAccount.UserToken
12 Catch generatedExceptionName As UnauthorizedAccessException
13
14 End Try
15 Return spToken
16 End Function
You need to ensure that users without permissions to the list can view the contents of the list from the Web Part. Which code segment should you add at line 13?

A.    SPSecurity.RunWithElevatedPrivileges(EvelvatedSub)
Private Sub ElevatedSub()
Using eSite As New SPSite(nWeb.ID)
spToken = nWeb.SystemAccount.UserToken
End Using
End Sub
B.    SPSecurity.RunWithElevatedPrivileges(EvelvatedSub)
Private Sub ElevatedSub()
Using eSite As New SPSite(nWeb.ID)
spToken = SPContext.Current.Web.CurrentUser.UserToken
End Using
End Sub
C.    spToken = nWeb.RootWeb.AllUsers(SPContext.Current.Web.Name).UserToken
D.    spToken = nWeb.RootWeb.AllUsers(SPContext.Current.Web.Name).UserToken

Answer: A

QUESTION 113
You need to create a custom content type and specify the content type ID. What should you do?

A.    Create a new module.
B.    Create a custom Feature.
C.    Call the Lists Web service.
D.    Call the Webs Web service.

Answer: B
Explanation:
MNEMONIC RULE: “custom Feature for custom content type”
Create Custom Content Types in SharePoint 2010
http://msdn.microsoft.com/en-us/library/ff630942.aspx

QUESTION 114
You need to delete the previous versions of all documents in a document library. The deleted versions of the documents must be retained in the SharePoint Recycle Bin. What should you do?

A.    For the document library, call the Recycle method.
B.    For the document library, call the Delete method.
C.    For each document, call the DeleteAll method of the Versions property.
D.    For each document, call the RecycleAll method of the Versions property.

Answer: D
Explanation:
MNEMONIC RULE: “all previous versions to Recycle Bin = RecycleAll of the Versions”
Recycles the version collection except for the current version.
SPListItemVersionCollection.RecycleAll Method
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitemversioncollection.recycleall.aspx

QUESTION 115
You have a SharePoint solution that contains a custom site column and a custom content type. You need to add the custom site column as a lookup field for the custom content type. What should you create?

A.    a Feature activation dependency
B.    a new Feature event receiver
C.    a new module
D.    a new SharePoint mapped folder

Answer: B
Explanation:
MNEMONIC RULE: “Feature event receiver”
Walkthrough: Add Feature Event Receivers
http://msdn.microsoft.com/en-us/library/ee231604.aspx

QUESTION 116
You have a SharePoint site collection that has the URL http://contoso/sites/finance. You are creating a Microsoft .NET Framework console application that will use the SharePoint client object model to create a site in the site collection. The application contains the following code segment. (Line numbers are included for reference only.)
01 Dim cCtx As New ClientContext(“http://contoso/sites/finance”)
02 Dim root As Web = cCtx.Site.RootWeb
03 cCtx.Load(root)
04 Dim webInfo As New WebCreationInformation()
05 webInfo.Title = “site1”
06 webInfo.Url = “site1”
07 webInfo.WebTemplate = “MPS#2”
08 root.Webs.Add(webInfo)
09
10 cCtx.Dispose()
You need to ensure that the application creates the site. Which code segment should you add at line 09?

A.    cCtx.ExecuteQuery()
B.    cCtx.Site.RootWeb.Update()
C.    root.Context.Dispose()
D.    root.Update()

Answer: A

QUESTION 117
You need to create a Web Part that adds a term set to the current SharePoint site collection’s term store. You write the following code segment. (Line numbers are included for reference only.)
01 Dim txtBoxTermSetToAdd As New System.Web.UI.WebControls.TextBox()
02 Dim session As New TaxonomySession(SPContext.Current.Site)
03 Dim addedTerm As TermSet = session.TermStores(0).Groups(“MyNewTermStore”).CreateTermSet(txtBoxTermSetToAdd.Text)
04
Which code segment should you add at line 04?

A.    addedTerm.Export()
B.    addedTerm.TermStore.CommitAll()
C.    SPContext.Current.Site.WebApplication.Update()
D.    SPContext.Current.Web.AllowUnsafeUpdates = True

Answer: B

QUESTION 118
You have a SharePoint site collection that contains 100 sites. Each site contains 100 lists. You need to retrieve all item titles from all lists. The data must be retrieved in the minimum amount of time. Which access method should you use?

A.    SPList.Items
B.    SPListltemCollection.GetDataTable
C.    SPSiteDataQuery
D.    ListData.svc

Answer: C
Explanation:
MNEMONIC RULE: “100 sites = SPSite”
The data must be retrieved in the minimum amount of time; therefore, SPSiteDataQuery SPSiteDataQuery Class
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsitedataquery.aspx

QUESTION 119
You have a SharePoint site. The current master page of the site is v4.master. You create a custom master page named MyMasterPage.master and deploy it to /_catalogs/masterpage/. You need to apply the custom master page to the site and ensure that future pages added to the site, including system and application pages, automatically use the custom master page. You must also ensure that future SharePoint updates do not remove or modify the changes you have made. What should you do?

A.    Set the MasterUrl property and CustomMasterUrl property of the site to /_catalogs/masterpage/MyMasterPage.master.
B.    In the Cpage directive of each page layout, set the MasterPageFile attribute to /_catalogs/masterpage/MyMasterPage.master.
C.    Rename the custom master page as v4.master and overwrite \14\TEMPLATE\GL0BAL\v4.master.
D.    Rename the custom master page as v4.master and overwrite /_catalogs/masterpage/v4,master.

Answer: A

QUESTION 120
You plan to develop a Web Part that displays a SharePoint list. The Web Part will verify the list permissions when users access it by using the web.CurrentUser.DoesUserHavePermissions method. You need to ensure that when users do not have permissions to the list, the Web Part displays the company’s logo. Which code segment should you add to the Web Part?

A.    RunWithElevatedPrivileges;
B.    web.ValldateFormDigest();
C.    web.CurrentUser.RequireRequestToken = false;
D.    web.AllowUnsafeUpdates= true;

Answer: A
Explanation:
MNEMONIC RULE: “DoesUserHavePermissions = RunWithElevatedPrivileges”
You need to elevate your privileges to check on current user’s permissions.
DoesUserHavePermissions?
http://www.shannonbray.com/2010/01/doesuserhavepermissions.html


http://www.passleader.com/70-573.html

[Pass Ensure VCE Dumps] Accurate 285q 70-573 Exam Questions With VCE Dumps Offered By PassLeader (121-140)

$
0
0

Pass 70-573 exam easily by learning PassLeader 70-573 exam dumps! PassLeader just updated the 285q 70-573 exam questions, the new 70-573 VCE or PDF practice tests cover all the real questions, which will help you passing 70-573 exam easily. What’s more, PassLeader’s new 70-573 VCE dumps and PDF dumps have corrected many wrong answers, which is not available in other free 70-573 VCE dumps, it will ensure you 100 percent passing 70-573 exam!

keywords: 70-573 exam,285q 70-573 exam dumps,285q 70-573 exam questions,70-573 pdf dumps,70-573 vce dumps,70-573 study guide,70-573 practice test,TS: Microsoft SharePoint 2010, Application Development Exam

QUESTION 121
You are developing a Feature that will be used in multiple languages. You need to ensure that users view the Feature’s title and description in the display language of their choice. What should you create?

A.    a Feature event receiver
B.    a site definition
C.    multiple Elements.xml files
D.    multiple Resource (.resx) files

Answer: D
Explanation:
MNEMONIC RULE: “Language Resource”
Using Resource Files (.resx) when developing SharePoint solutions
http://blogs.msdn.com/b/joshuag/archive/2009/03/07/using-resource-files-resx-when-developing-sharepointsolutions.aspx

QUESTION 122
You create a Web Part that updates a list. You need to ensure that users can use the Web Part to update the list, regardless of the users’ permissions to the list. What should you use in the Web Part?

A.    the SPSecurity.AuthenticationMode property
B.    the SPSecurity.CatchAccessDeniedException property
C.    the SPSecurity.RunWithElevatedPrivileges method
D.    the SPSecurity.SetApplicationCredentialKey method

Answer: C
Explanation:
MNEMONIC RULE: “regardless of permissions = RunWithElevatedPrivileges” SPSecurity.RunWithElevatedPrivileges Method
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsecurity.runwithelevatedprivileges.aspx

QUESTION 123
You need to create a Web Part that creates a copy of the out-of-the box Contribute permission level. Which code segment should you implement in the Web Part?

A.    Dim myRole As New SPRoleDefinition()
myRole.Name = “Contribute”
SPContext.Current.Web.RoleDefinitions.Add(myRole)
B.    Dim myRole As New SPRoleDefinition(SPContext.Current.Web.RoleDefinitions(“Contribute”))
myRole.Name = “MyContribute”
SPContext.Current.Web.RoleDefinitions.Add(myRole)
C.    Dim myRole As New SPRoleDefinition(SPContext.Current.Web.RoleDefinitions(“MyContribute”))
myRole.Description = “Contribute”
SPContext.Current.Web.RoleDefinitions.Add(myRole)
D.    Dim myRole As New SPRoleDefinition(SPContext.Current.Web.RoleDefinitions(“MyContribute”))
myRole.Name = “Contribute”
SPContext.Current.Web.RoleDefinitions.Add(myRole)

Answer: B

QUESTION 124
Using Microsoft Visual Studio 2010, you create a custom workflow action named WF1 that copies the content of a document library to another document library. WF1 is used in a Microsoft SharePoint Designer reusable workflow. You need to ensure that the workflow action can be deployed to multiple sites. Where should you define the workflow action?

A.    the ReplicatorActivity activity
B.    the Elements.xml file
C.    the WF1.actions file
D.    the SPPersistedObject object

Answer: B
Explanation:
MNEMONIC RULE: “Elements.xml”
Sandboxed workflow activities in SharePoint 2010
http://www.wictorwilen.se/Post/Sandboxed-workflow-activities-in-SharePoint-2010.aspx

QUESTION 125
You plan to create one provider Web Part and two consumer Web Parts. You need to ensure that the consumer Web Parts can receive data from the provider Web Part. You create an interface that contains the following code segment.
Public
Interface Interface1
Property Parameter1 As String
End Interface
What should you do next?

A.    Implement Interface1 in the provider Web Part.
B.    Implement IWebPartField in the provider Web Part.
C.    Create a set accessor for Parameter1.
D.    Create a second interface and use it to communicate with the provider Web Part.

Answer: D

QUESTION 126
You create a Web Part that contains the following code segment. (Line numbers are included for reference only.)
01 Public Class WebPart1
02 Inherits WebPart
03
04 Public Sub New()
05 MyBase.New
06
07 End Sub
08
09 Protected Overrides Sub CreateChildControls()
10 Dim clickButton As Button = New Button
11
12 MyBase.CreateChildControls
13 End Sub
14
15 Protected Overrides Sub RenderContents(ByVal writer As HtmlTextWriter)
16
17 MyBase.RenderContents(writer)
18 End Sub
19 End Class
You discover that the clickButton button does not appear. You need to ensure that clickButton appears. What should you do?

A.    Delete line 12.
B.    Move line 10 to line 16.
C.    Add the following line of code at line 11.
Controls.Add(clickButton)
D.    Add the following line of code at line 11.
clickButton.Page = me.Page

Answer: C

QUESTION 127
You have a timer job that has the following constructors. (Line numbers are included for reference only.)
01 public TimerJob1():base(){ }
02 public TimerJob1(SPWebApplication wApp)
You need to ensure that the timer job runs on the first available timer server only. Which base class constructor should you use at line 02?

A.    public TimerJob1(SPWebApplication wApp) :
base (null, wApp, null, SPJobLockType.ContentDatabase) { }
B.    public TimerJob1(SPWebApplication wApp):
base (null, wApp, null, SPJobLockType.Job){ }
C.    public TimerJob1(SPWebApplication wApp):
base (null, wApp, null, SPJobLockType.None) { }
D.    public TimerJob1(SPWebApplication wApp):
base (“TimerJob1”, wApp, null, SPJobLockType.None) { }

Answer: B
Explanation:
MNEMONIC RULE: “SPJobLockType.Job”
Job member locks the timer job so that it runs only on one machine in the farm.
SPJobLockType Enumeration
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spjoblocktype.aspx

QUESTION 128
You need to programmatically add a user named User1 to a group named Group1. You write the following code segment. (Line numbers are included for reference only.)
01 Dim login As String = “User1”
02 Dim grpName As String = “Group1”
03 Dim user As SPUser = SPContext.Current.Web.EnsureUser(login)
04 Dim group As SPGroup = SPContext.Current.Web.Groups(grpName)
05
06 group.Update()
Which code segment should you add at line 05?

A.    group.AddUser(user)
B.    group.Owner = user
C.    user.AllowBrowseUserInfo = True
D.    user.Update()

Answer: A

QUESTION 129
You are running a default installation of Microsoft Visual Studio 2010. You have a Web Part named WebPart1. WebPart1 runs on a Microsoft Office SharePoint Server 2007 server. You need to ensure that WebPart1 can run as a sandboxed solution in Microsoft SharePoint Server 2010. What should you do?

A.    Create a new Visual Web Part by using the code from WebPart1.
B.    Create a new Web Part by using the code from WebPart1.
C.    Create an ASCXfile for WebPart1, and then copy the file to the ISAPI folder.
D.    Create an ASCXfile for WebPart1, and then copy the file to the CONTROLSTEMPLATES folder.

Answer: A

QUESTION 130
You develop a custom master page. You need to ensure that all pages that use the master page contain a specific image. Page developers must be able to change the image on individual pages. The master page must be compatible with the default content page. What should you add to the master page?

A.    a ContentPlaceHolder control
B.    a Delegate control
C.    a PlaceHolder control
D.    an HTML Div element

Answer: A
Explanation:
MNEMONIC RULE: “master page = ContentPlaceHolder”
Defines a region for content in an ASP.NET master page.
ContentPlaceHolder Class
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.contentplaceholder.aspx


http://www.passleader.com/70-573.html

QUESTION 131
You need to send a single value from a consumer Web Part to a provider Web Part. Which interface should you use?

A.    IAlertNotifyHandler
B.    IWebPartField
C.    IWebPartParameters
D.    IWebPartRow

Answer: B
Explanation:
MNEMONIC RULE: “single value = field”
Defines a provider interface for connecting two server controls using a single field of data. This interface is designed to be used with Web Parts connections. In a Web Parts connection, two servercontrols that reside in a WebPartZoneBase zone establish a connection and share data, with one control actingas the consumer and the other control acting as a provider.
IWebPartField Interface
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.iwebpartfield.aspx

QUESTION 132
You create a custom Web Part. You need to create a class to log Web Part errors to the Unified Logging Service (ULS) logs. What should you use?

A.    the ILoggingProvider interface
B.    the SPPersistedObject class
C.    the SPDiagnosticsServiceBase class
D.    the ILogger interface

Answer: C
Explanation:
MNEMONIC RULE: “Unified Logging Service = SPDiagnosticsServiceBase”
Logging to ULS in SharePoint 2010
http://blog.mastykarz.nl/logging-uls-sharepoint-2010/

QUESTION 133
You create a user control named MySearch.ascx. You plan to change the native search control in SharePoint to MySearch.ascx. You need to provide the site administrator with the ability to change the out-of-the-box search control to MySearch.ascx. What should you do?

A.    Override the search delegate control by using a Feature.
B.    Modify the <SafeControls> element in the web.config file.
C.    Configure the SearchBox.dwp in the Web Part gallery.
D.    Modify \14\TEMPLATE\FEATURES\SearchWebParts\SearchBox.dwp.

Answer: A
Explanation:
MNEMONIC RULE: “change the native search control = Override the search delegate”
Customizing the search box using a feature
http://sharepointschool.net/2010/10/14/customizing-the-search-box-using-a-feature/

QUESTION 134
You plan to activate the Developer Dashboard. You create a command line application that contains the following code segment. (Line numbers are included for reference only.)
01 Dim cs As SPWebService = SPWebService.ContentService
02 cs.DeveloperDashboardSettings.DisplayLevel = SPDeveloperDashboardLevel.[On]
03
You execute the application and discover that the Developer Dashboard fails to appear. You need to ensure that the application activates the Developer Dashboard. What should you do?

A.    Add the following line of code at line 03.
cs.Update()
B.    Add the following line of code at line 03.
cs.DeveloperDashboardSettings.Update()
C.    Change line 02 to the following code segment.
cs.DeveloperDashboardSettings.DisplayLevel = SPDeveloperDashboardLevel.Off
D.    Change line 02 to the following code segment.
cs.DeveloperDashboardSettings.DisplayLevel = SPDeveloperDashboardLevel.OnDemand

Answer: B

QUESTION 135
You have a custom Web Part. You need to create a custom user interface for modifying the Web Part properties. What should you do?

A.    Create a new Master Page. Implement the IControlBuilderAccessor interface.
B.    Create a new tool part for the custom Web Part.
C.    Modify the [ToolBox] attribute of the custom Web Part.
D.    Create a new Web Part. Implement the IControlBuilderAccessor interface.

Answer: B
Explanation:
MNEMONIC RULE: “Tool part for the Web Part”
What is a custom tool part? The Custom tool part is part of the web part infrastructure, that helps us to create a custom user interface forthe web part properties that goes beyond the capabilities of the default property pane.
When do we need a custom tool part? Let’s say, if we need to create a web part property of type dropdown, we need to create a custom tool part.This is not supported out-of-box in the web part framework. I’ve the similar requirement of creating a customweb part property of type drop-down.
Create Custom Tool Parts for SharePoint Web Parts
https://msmvps.com/blogs/sundar_narasiman/archive/2009/09/02/create-custom-tool-parts-for-sharepoint-webparts.aspx

QUESTION 136
You plan to create two Web Parts named Products and ProductDetails. You create an interface that contains the following code segment.
Public
Interface Interface1
Property Productid As String
End Interface
You need to ensure that the Products Web Part sends Productid to the ProductDetails Web Part. You must achieve this goal by using the ASP.NET Web Part connection framework. What should you do?

A.    Implement Interface1 in the Products Web Part.
B.    Implement Interface1 in the ProductDetails Web Part.
C.    Add a private set-accessor-declaration to the Productid property.
D.    Add a protected set-accessor-declaration to the Productid property.

Answer: A

QUESTION 137
You create a custom Web Part. You need to ensure that a custom property is visible in Edit mode. Which attribute should you set in the Web Part?

A.    WebDisplayName
B.    WebBrowsable
C.    Personalizable
D.    WebCategoryName

Answer: B
Explanation:
MNEMONIC RULE: “Web Part is visible = WebBrowsable”
The WebBrowsable attribute specifies that the decorated property should appear in the editor component ofthe web part. It only allows the end user to modify the property and does nothing about persistence. WebBrowsable will make the property appear in the ToolPane or EditorPart of the WebPart.
WebBrowsable vs Personalizable in Web Parts
http://stackoverflow.com/questions/4362234/webbrowsable-vs-personalizable-in-web-parts

QUESTION 138
You create a Web Part that contains the following logging code. (Line numbers are included for reference only.)
01 Try
02 …
03 Catch ex As Exception
04
05 System.Diagnostics.EventLog.WriteEntry(“WebPart Name”, (“Exception Information: ” + ex.Message), EventLogEntryType.Error)
06 End Try
You discover that line 05 causes an error. You need to resolve the error. What should you do?

A.    Run the code segment at line 05 inside a RunWithElevatedPrivileges delegate.
B.    Add the following code at line 04.
If web.CurrentUser.IsSiteAuditor = False
Then System.Diagnostics.EventLog.WriteEntry(“WebPart Name”, “Exception Information: ” & ex.Message, EventLogEntryType.[Error])
End If
C.    Add the following code at line 04
If web.CurrentUser.IsSiteAdmin = False
Then System.Diagnostics.EventLog.WriteEntry(“WebPart Name”, “Exception Information: ” & ex.Message, EventLogEntryType.[Error])
End If
D.    Change line 05 to the following code segment.
System.Diagnostics.EventLog.WriteEntry(“WebPart Name”, “Exception Information”, EventLogEntryType.Error)

Answer: A

QUESTION 139
You have a custom Web Part that is deployed as a sandboxed solution. You need to ensure that the Web Part can access the local file system on a SharePoint server. You must minimize the amount of privileges assigned to the Web Part. What should you do?

A.    Elevate the trust level to Full.
B.    Elevate the trust level to WSS_Medium.
C.    Redeploy the Web Part as a farm solution.
D.    Deploy the Web Part to the Global Assembly Cache (GAC).

Answer: C

QUESTION 140
You have a SharePoint site that uses a master page named Master1.master. You create a custom user control named MySearch.ascx. You need to change the default search box to MySearch.ascx. What should you do?

A.    Modify the SmallSearchInputBox control tag in the master page, and then configure the ControlId property.
B.    Modify the SmallSearchInputBox control tag in the master page, and then configure the ControlSrc property.
C.    Create a Web Part that uses MySearch.ascx. In the master page, add a control tag that references the .webpart file.
D.    Create a Visual Web Part that uses MySearch.ascx. In the master page, add a control tag that references the .webpart file.

Answer: B
Explanation:
MNEMONIC RULE: “ControlSrc”
Delegate Control (Control Templatization)
http://msdn.microsoft.com/en-us/library/ms463169.aspx


http://www.passleader.com/70-573.html

[Pass Ensure VCE Dumps] Free 285q 70-573 Exam Questions From PassLeader For Free Download (141-160)

$
0
0

Pass 70-573 exam easily by learning PassLeader 70-573 exam dumps! PassLeader just updated the 285q 70-573 exam questions, the new 70-573 VCE or PDF practice tests cover all the real questions, which will help you passing 70-573 exam easily. What’s more, PassLeader’s new 70-573 VCE dumps and PDF dumps have corrected many wrong answers, which is not available in other free 70-573 VCE dumps, it will ensure you 100 percent passing 70-573 exam!

keywords: 70-573 exam,285q 70-573 exam dumps,285q 70-573 exam questions,70-573 pdf dumps,70-573 vce dumps,70-573 study guide,70-573 practice test,TS: Microsoft SharePoint 2010, Application Development Exam

QUESTION 141
You need to connect two Web Parts by using the IWebPartRow interface. Which method should you use?

A.    GetFieldValue
B.    Dataltem
C.    GetRowData
D.    GetTableData

Answer: C
Explanation:
Explanation:
MNEMONIC RULE: “iWebPartRow = GetRowData”
Returns the data for the row that is being used by the interface as the basis of a connection between twoWebPart controls.
IWebPartRow.GetRowData Method
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.iwebpartrow.getrowdata.aspx

QUESTION 142
You create a Web Part by using Microsoft Visual Studio 2010. You need to execute SPDisposeCheck.exe before the Web Part is deployed. What should you do?

A.    Configure a pre-deployment command line.
B.    Configure SPDisposeCheck.exe as an external tool.
C.    Change the configuration from Active (Debug) to Release.
D.    Change the active deployment configuration to No Activation.

Answer: A
Explanation:
MNEMONIC RULE: “before deployed = pre-deployment”
How to: Set SharePoint Deployment Commands
http://msdn.microsoft.com/en-us/library/ee231534.aspx

QUESTION 143
You create a SharePoint solution by using Microsoft Visual Studio 2010. The SharePoint solution contains a third-party assembly. You need to deploy the third-party assembly to the Global Assembly Cache (GAC). What should you use?

A.    a SharePoint mapped folder
B.    the active deployment configuration
C.    the Feature Designer
D.    the Package Designer

Answer: D
Explanation:
MNEMONIC RULE: “Package Designer for GAC”
How to add assemblies into GAC/web application’s bin folder using WSPs created using Visual studio 2010’sSharePoint projects.
http://girishm.blog.com/2010/10/19/how-to-add-assemblies-into-gac-web-applications-bin-folder-using-wspscreated-using-visual-studio-2010s-sharepoint-projects-2/
The package contains features and other assets and is used when you deploy solutions to SharePoint. The package is also where the assembly deployment location is determined. Visual Studio 2010 introduces a package designer, which makes viewing and managing packages mucheasier.
Visual Studio 2010 Tools for SharePoint Development
http://msdn.microsoft.com/en-us/magazine/ee309510.aspx

QUESTION 144
You create a console application to manage Personal Sites. The application contains the following code segment. (Line numbers are included for reference only.)
01 Dim siteCollection As New SPSite(“http://moss”);
02 Dim profileManager As New serProfileManager(ServerContext.GetContext(siteCollection));
03 Dim profile As UserProfile = profileManager.GetUserProfile(“domain\username”);
04 Dim personalSite As SPSite = profile.PersonalSite;
05
06 siteCollection.Dispose();
You deploy the application to a SharePoint site.After deploying the application, users report that the site loads slowly. You need to modify the application to prevent the site from loading slowly. What should you do?

A.    Remove line 06.
B.    Add the following line of code at line 05.
personalSite.close();
C.    Add the following line of code at line 05.
personalSite.Dispose();
D.    Change line 06 to the following code segment.
siteCollection.close();

Answer: C
Explanation:
MNEMONIC RULE: “Dispose”
Disposing Objects
http://msdn.microsoft.com/en-us/library/ee557362.aspx

QUESTION 145
You need to create a Web Part that will store and retrieve information for the current subsite. Which object should you use?

A.    SPContext.Current.Site.RootWeb.AllProperties
B.    SPContext.Current.Site.RootWeb.Configuration
C.    SPContext.Current.Web.Configuration
D.    SPContext.Current.Web.Properties

Answer: D
Explanation:
MNEMONIC RULE: “information is in Web.Properties”
SPContext.Current.Web is SPWeb object. Properties is the SPPropertyBag object with the metadata for the website.
SPWeb.Properties Property
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.properties.aspx

QUESTION 146
You are creating a Web Part that will be deployed as a sandboxed solution. You need to ensure that the Web Part can write debugging information to the SharePoint trace logs. Which class should the logging component inherit?

A.    SPDelegate
B.    SPLog
C.    SPPersistedObject
D.    SPProxyOperation

Answer: D
Explanation:
MNEMONIC RULE: “sandboxed solution needs SPProxyOperation”
You can implement your full-trust functionality in classes that derive from the SPProxyOperation abstract classand deploy the assembly to the global assembly cache. These classes expose a full-trust proxy that you cancall from within the sandbox environment. Full-trust proxies can provide a useful way to expose logging and configuration functionality to sandboxedapplications.
Hybrid Approaches
http://msdn.microsoft.com/en-us/library/ff798433.aspx

QUESTION 147
You have a SharePoint site collection. The root Web of the site collection has the URL http://intranet. You plan to create a user solution that will contain a Web Part. The Web Part will display the title of the root Web. You write the following code segment for the Web Part. (Line numbers are included for reference only.)
01 Dim currentSite As New SPSite(“http://intranet”)
02
03 Dim currentTitle As New Label()
04 currentTitle.Text = currentSite.RootWeb.Title
You add the Web Part to a page in the root Web and receive the following error message:
“Web Part Error: Unhandled exception was thrown by the sandboxed code wrapper’s Execute method in the partial trust app domain: An unexpected error has occurred.”
You need to prevent the error from occurring. What should you do?

A.    Add the following line of code at line 02.
currentSite.OpenWeb()
B.    Add the following line of code at line 02.
currentSite.OpenWeb(“http://intranet”)
C.    Change line 01 to the following code segment.
Dim currentSite As SPSite = SPContext.Current.Site
D.    Change line 04 to the following code segment.
currentTitle.Text = currentSite.OpenWeb().Title

Answer: C

QUESTION 148
You have a Feature named Feature1. You plan to create a new version of Feature1 that will upgrade the existing version of Feature1. You need to ensure that when Feature1 is upgraded, additional configuration data is added to the property bag of the site. What should you do?

A.    Add a <CustomUpgradeAction> element and increase the Version number of the Feature.
B.    Add a <CustomUpgradeAction> element and increase the UIVersion number of the Feature.
C.    Add an <ActivationDependencies> element and increase the Version number of the Feature.
D.    Add an <ActivationDependencies> element and increase the UIVersion number of the Feature.

Answer: A
Explanation:
MNEMONIC RULE: “CustomUpgradeAction Version”
<CustomUpgradeAction>-Allows you to execute custom code when a Feature instance is being upgraded.
Feature.xml Changes
http://msdn.microsoft.com/en-us/library/ee537575.aspx

QUESTION 149
You have a custom site definition. You create a custom site Feature. You need to ensure that the Feature is activated for all new sites that are created by using the custom site definition. What should you do?

A.    Modify the Onet.xml file.
B.    Modify the web.config file.
C.    Add a Feature receiver to the custom site Feature.
D.    Add a Feature dependency to the custom site Feature.

Answer: A
Explanation:
MNEMONIC RULE: “custom site definition = Onet.xml”
You can perform the following kinds of tasks in a custom Onet.xml file that is used for either a custom sitedefinition or a custom web template:
Specify an alternative cascading style sheet (CSS) file, JavaScript file, or ASPX header file for a sitedefinition. Modify navigation areas for the home page and list pages. Add a new list definition as an option in the UI. Define one configuration for the site definition or web template, specifying the lists, modules, files, and WebParts that are included when the configuration is instantiated. Specify Features to be included automatically with websites that are created from the site definition or webtemplate.
Understanding Onet.xml Files
http://msdn.microsoft.com/en-us/library/ms474369.aspx

QUESTION 150
You create a SharePoint solution. You deploy the SharePoint solution by using Microsoft Visual Studio 2010. You need to prevent the Feature that is contained in the solution from being automatically activated when you deploy the solution. What should you configure in Visual Studio 2010?

A.    the active deployment configuration
B.    the build configuration
C.    the pre-deployment command line
D.    the startup item

Answer: A
Explanation:
MNEMONIC RULE: “deploy the solution = active deployment configuration”
How to: Edit a SharePoint Deployment Configuration
http://msdn.microsoft.com/en-us/library/ee231587.aspx
Walkthrough: Creating a Custom Deployment Step for SharePoint Projects
http://msdn.microsoft.com/en-us/library/ee256698.aspx


http://www.passleader.com/70-573.html

QUESTION 151
You are developing a custom Feature by using Microsoft Visual Studio 2010. You need to ensure that when you deploy the Feature, a file named Form1.xsn is deployed to the Feature folder. You must achieve this goal by using the minimum amount of development effort. What should you do?

A.    Add a new module to the Visual Studio project.
B.    Add a Feature receiver to the Visual Studio project.
C.    Configure the Properties element in the Feature definition file.
D.    Configure the ActivationDependencies element in the Feature definition file.

Answer: A
Explanation:
MNEMONIC RULE: “deploy file = module”
A module is a collection of file instances, which are instances of files that are provisioned in a site. To provisiona file into Microsoft SharePoint Foundation Web sites, you must use the Module element within a Feature orsite definition. The Module element allows you to add one or more files to a SharePoint Foundation Web site ordocument library.
Module
http://msdn.microsoft.com/en-us/library/ms462994.aspx
How to: Provision a File
http://msdn.microsoft.com/en-us/library/ms441170.aspx

QUESTION 152
You create a Web Part that takes three values from three text boxes and creates a new SharePoint site when you click a button named CreateNewSite. The Web Part contains the following code segment.
Protected Sub CreateNewSite_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim site As SPSite = SPContext.Current.Site
Dim web As SPWeb = site.AllWebs.Add(SiteNameTextBox.Text, SiteTitleTextBox.Text,
SiteDescriptionTextBox.Text, 0, SPWebTemplate.WebTemplateSTS, False, _False)
End Sub
You test the Web Part and it works properly. When another user attempts to use the Web Part to create a new site, he receives the following error message: “Error: Access Denied.” You need to ensure that users can use the Web Part to create new sites. What should you do?

A.    Add web.Update() after the code segment.
B.    Add web.ValidatesFormDigest() after the code segment.
C.    Run the code segment inside a SPSecurity.
RunWithElevatedPrivileges delegate.
D.    Add the following code after the code segment.
Dim currentUser As SPUser = web.CurrentUser
web.Users.Add(currentUser.LoginName, currentUser.Email, currentUser.Name, “”)

Answer: C

QUESTION 153
You have a custom theme named MyTheme. The theme is defined in a file named MyTheme.thmx. You have a console application that contains the following code segment. (Line numbers are included for reference only.)
01 Using site As New SPSite(“http://intranet”)
02 Dim web As SPWeb = site.OpenWeb()
03 …
04 End Using
You need to programmatically apply the theme to a SharePoint site. Which code segment should you add to the console application?

A.    ThmxTheme.SetThemeUrlForWeb(web, “/_catalogs/theme/MyTheme.thmx”, False)
B.    web.AlternateCssUrl = “/_themes/MyTheme”
C.    web.ApplyWebTemplate(“MyTheme.thmx”)
D.    web.ThemedCssFolderUrl = “/_themes/MyTheme”

Answer: A
Explanation:
MNEMONIC RULE: ThmxTheme
ThmxTheme.SetThemeUrlForWeb Method (SPWeb, String, Boolean)
http://msdn.microsoft.com/en-us/library/ee658324.aspx

QUESTION 154
You have a Microsoft Office SharePoint Server 2007 site. You upgrade the site to SharePoint Server 2010. You need to create a Feature that prevents site collection administrators from upgrading the user interface of the site to SharePoint Server 2010. Which property should you use?

A.    UIVersionConfigurationEnabled
B.    AdministrationSiteType
C.    AllowMasterPageEditing
D.    AllowDesigner

Answer: A
Explanation:
MNEMONIC RULE: “upgrading = UIVersionConfigurationEnabled”
Gets or sets a value that indicates whether to enable the user interface (UI) for changing the version of the UI.
SPWeb.UIVersionConfigurationEnabled Property
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.uiversionconfigurationenabled.aspx

QUESTION 155
You are creating an application page that will open a dialog box. The application page uses a custom master page. You write the following code segment. (Line numbers are included for reference only.)
01 < script type=”text/javascript” >
02 function DialogCallback ( dialogResult, retumValue ){>
03 function OpenEditDialog (id){
04 var options = {
url:” http://intranet/Jayouts /MsgToShow.aspx, width: 300,
05 height: 300,
06 dialogReturnValueCallback : DialogCallback
07 };
08 SP.UI.ModalDialog.showModalDialog (options);
09 }
10 < /script >
You need to ensure that the code opens the dialog box. What should you do?

A.    Add a script link that references SP.js.
B.    At line 08, change showModalDialog to commonModalDialogOpen.
C.    At line 08, change showModalDialog to openDialog.
D.    Add a script link that references SharePoint.Dialog.js.

Answer: A

QUESTION 156
You need to create a Web Part that hides the out-of-the-box Ribbon on the current page. Which code segment should you include in the Web Part?

A.    me.Page.FindControl(*’SPRibbon”) .Dispose*)
B.    SPRibbon.GetCurrent (me.Page) .CommandUIVisible = false
C.    me.Page.FindControlC’SPRibbon”) .Visible – false
D.    SPRibbon.GetCucrenttme.Page).Dispose()

Answer: B

QUESTION 157
You create a custom site definition. You need to modify the contents of the Quick Launch area. Which file should you modify?

A.    Schema.xml
B.    WebTemp.xml
C.    vwstyles.xml
D.    Onet.xml

Answer: D
Explanation:
MNEMONIC RULE: “custom site definition = Onet.xml”
You can perform the following kinds of tasks in a custom Onet.xml file that is used for either a custom sitedefinition or a custom web template:
Specify an alternative cascading style sheet (CSS) file, JavaScript file, or ASPX header file for a sitedefinition. Modify navigation areas for the home page and list pages. Add a new list definition as an option in the UI. Define one configuration for the site definition or web template, specifying the lists, modules, files, and WebParts that are included when the configuration is instantiated. Specify Features to be included automatically with websites that are created from the site definition or webtemplate.
Understanding Onet.xml Files
http://msdn.microsoft.com/en-us/library/ms474369.aspx

QUESTION 158
You created a custom ASPX page that updates a list. The page is deployed to the Jayouts folder. The page contains the following code segment.
01 < form id=” Forml” runat =” Server” >
02 < asp: Button id=” btnUpdate ” runat =” server” Text=” Update” ></asp : Button >
03 </form >
A user attempts to update the list by using the page and receives the following error message:
“The security validation for this page is invalid”.
You need to prevent the error from occurring. Which control should you include in Form1?

A.    inputFormCustomValidator
B.    EncodedLiteral
C.    UlVersionedContent
D.    FormDigest

Answer: D
Explanation:
MNEMONIC RULE: “Digest your security”
FormDigest Class
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.formdigest.aspx

QUESTION 159
You create a modal dialog that displays a list of items. You need to capture the items selected by a user. Which code segment should you use?

A.    SPItem item = SPContext.Current.Item;
B.    var items = SP.ListOperation.Current.Item();
C.    var items = SP.ListOperation.Selection.getSelectedItems();
D.    var item = SPContext.Current.Item[“Selected”];

Answer: C
Explanation:
MNEMONIC RULE: “getSelectedItems”
SP.ListOperation.Selection.getSelectedItems() Method
http://msdn.microsoft.com/en-us/library/ff409526.aspx

QUESTION 160
You create a Feature receiver. You need to hide the Quick Launch navigation bar of a SharePoint site. What should you use?

A.    the Hidden property of each list
B.    the OnQuickLaunch property of each list
C.    the QuickLaunchEnabled property
D.    the Navigation.QuickLaunch.Parent.IsVisible property

Answer: C
Explanation:
MNEMONIC RULE: “hide Quick Launch = QuickLaunchEnabled”
SPWeb.QuickLaunchEnabled Property
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.quicklaunchenabled.aspx


http://www.passleader.com/70-573.html

[Pass Ensure VCE Dumps] Clear 70-573 Exam Easily With PassLeader Free 70-573 Dumps (161-180)

$
0
0

Valid Tips For 100% Pass Exam 70-573: PassLeader now is providing the best 285q 70-573 VCE dumps and PDF dumps for your 70-573 certification exam. We offer the latest 285q 70-573 exam questions to ensure that you can 100 percent pass 70-573 exam, and what’s more, we will offer you the new updated 70-573 exam dumps for one year free and free new version VCE Player. Welcome to visit our site — passleader.com and get the valid 285q 70-573 braindumps to pass exam as soon as possible.

keywords: 70-573 exam,285q 70-573 exam dumps,285q 70-573 exam questions,70-573 pdf dumps,70-573 vce dumps,70-573 study guide,70-573 practice test,TS: Microsoft SharePoint 2010, Application Development Exam

QUESTION 161
You create a Business Connectivity Services (BCS) object model in Microsoft Visual Studio 2010. The model connects to an XML file. You create an external list that displays the BCS entity. You need to ensure that users can delete items from the external list. What should you do?

A.    Create a custom method and specify the method as a Deleter method instance.
B.    Call the SPListItem.Delete() method.
C.    Call the SPList.Delete() method.
D.    Create a custom method and specify the method as a Disassociator method instance.

Answer: A
Explanation:
MNEMONIC RULE: “Deleter method”
XML Snippet: Modeling a Deleter Method
http://msdn.microsoft.com/en-us/library/ff464327.aspx
Code Snippet: Execute the Deleter Method Instance of an External Content Type
http://msdn.microsoft.com/en-us/library/ff464351.aspx

QUESTION 162
You have a SharePoint list named Projects and a site column named PrivateColumn. You need to prevent users from adding PrivateColumn to the Projects list. Users must be able to add any other site column to the Projects list. What should you do?

A.    Create an event receiver that inherits SPListEventReceiver and override FieldAdded.
B.    Create an event receiver that inherits SPListEventReceiver and override FieldAdding.
C.    Create an event receiver that inherits SPItemEventReceiver and override ItemAdded.
D.    Create an event receiver that inherits SPItemEventReceiver and override ItemAdding.

Answer: B
Explanation:
MNEMONIC RULE: “FieldAdding to a List”

QUESTION 163
You need to create a Web Part that displays all of the permission levels of the current subsite. Which collection should you use?

A.    SPContext.Current.Web.Permissions
B.    SPContext.Current.Web.Properties
C.    SPContext.Current.Web.RoleAssignments
D.    SPContext.Current.Web.RoleDefinitions

Answer: D
Explanation:
MNEMONIC RULE: “permission levels = RoleDefinitions”
The role definition, or permission level, is the list of rights associated with the role.
Role Assignments, Role Definitions, and Inheritance
http://msdn.microsoft.com/en-us/library/ms414036.aspx

QUESTION 164
You create a custom workflow by using Microsoft Visual Studio 2010. You need to specify a custom InfoPath workflow initiation form in the workflow element manifest file. Which attribute should you configure?

A.    Association_FormURN
B.    Instantiation_FieldML
C.    Instantiation_FormURN
D.    InstantiationUrl

Answer: C
Explanation:
MNEMONIC RULE: “initiation form = Instantiation_FormURN”
Specifies the URN of the Microsoft InfoPath 2010 form to use to initiate the workflow.
Instantiation_FormURN Element (Workflow)-ECM
http://msdn.microsoft.com/en-us/library/aa672715.aspx

QUESTION 165
You need to create a timer job that queries a list. What should you do?

A.    Create a class that inherits SPJobDefinition and override the Execute method.
B.    Create a class that inherits SPServiceApplicationand override the Provision method.
C.    Create a class that inherits SPServiceApplicationand override the Provisionlnstances method.
D.    Create a class that inherits SPJobDefinition and override the Provision method.

Answer: A
Explanation:
MNEMONIC RULE: “Execute timer job”
Next, and the most important thing, is to override Execute() method. This method is called each time when thejob is fired, so it should contain all the logic to accomplish what You expect from the job.
SPJobDefinition as the way to create scheduled tasks
http://tomaszrabinski.pl/wordpress/2010/05/27/spjobdefinition-as-the-way-to-create-scheduled-tasks/

QUESTION 166
You create a workflow named WF1. WF1 is attached to a list named List1. You need to receive an e-mail notification if WF1 is postponed. What should you do?

A.    Use a HandleExternalEvent activity in WF1.
B.    Attach an SPWorkflowEventReceiver event receiver to List1.
C.    Attach an SPItemEventReceiver event receiver to List1.
D.    Use a ReceiveActivity activity in WF1.

Answer: B
Explanation:
MNEMONIC RULE: “Workflow = SPWorkflowEventReceiver”
The SPWorkflowEventReceiver class handles workflow events throughout the lifetime of a workflow.
Starting: Occurs when a workflow is starting
Started: Occurs when a workflow is started
Postponed: Occurs when a workflow is postponed
Completed: Occurs when a workflow is completed
You can register the SPWorkflowEventReceiver with any site, list, or content type.

QUESTION 167
You need to create a Web Part that verifies whether a user who accesses the Web Part page is a member of a group named Group1. Which code condition should you use?

A.    SPContext.Current.Web.Groups(“Group1”).ContainsCurrentUser
B.    SPContext.Current.Web.SiteUsers(SPContext.Current.Web.CurrentUser.ID).Groups (“Group1”) <> null
C.    SPContext.Current.Web.SiteUsers(SPContext.Current.Web.CurrentUser.ID).Groups (“Group1”) = null
D.    SPContext.Current.Web.Users(“Group1”).IsDomainGroup

Answer: A
Explanation:
MNEMONIC RULE: ContainsCurrentUser
Gets a Boolean value that indicates whether the group contains the current user, included either through director indirect membership.
SPGroup.ContainsCurrentUser Property
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spgroup.containscurrentuser.aspx

QUESTION 168
You create a custom field type and a CustomFieldControl.ascx user control. You need to write the code-behind of the CustomFieldControl.acsx user control. Which object should you override?

A.    SPFieldText
B.    BaseFieldControl
C.    SPFieldCalculated
D.    WebPart

Answer: B
Explanation:
MNEMONIC RULE: “CustomFieldControl = BaseFieldControl”
Renders a field on a form page (not a list view page) by using one or more child controls such as a label, link,or text box control.
BaseFieldControl Class
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.basefieldcontrol.aspx

QUESTION 169
You plan to create a custom approval workflow. The workflow approvers will enter their employee number in the edit task form. You need to ensure that the onTaskChangedl_Invoked method of the workflow retrieves the value of the employee number. Which object should you use?

A.    SPWorkflowTaskProperties.ExtendedProperties
B.    SPWorkflowTaskProperties.Properties
C.    SPWorkflowActivationProperttes.Item
D.    SPWorkflowActivationProperties.TaskUstld

Answer: A
Explanation:
MNEMONIC RULE: “onTaskChanged1 = SPWorkflowTaskProperties.ExtendedProperties”
There is no Properties member in SPWorkflowTaskProperties class. Gets a hash table that represents the collection of extended task properties as name/value pairs.
SPWorkflowTaskProperties Properties
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.workflow.spworkflowtaskproperties_properties.aspx

QUESTION 170
You are creating a custom workflow action that will be used in Microsoft SharePoint Designer reusable workflows. The action will programmatically create a SharePoint site named Site1 at a specific URL. You need to ensure that users can specify the URL of Site1 in the action. What should you use?

A.    the DependencyProperty class
B.    the SPPersistedObject class
C.    the SPWorkflowActivationProperties.InitiationData property
D.    the OnWorkflowActivated.WorkflowProperties property

Answer: A
Explanation:
MNEMONIC RULE: “specify DependencyProperty”
Using Dependency Properties
http://msdn.microsoft.com/en-us/library/ms734499(v=vs.90).aspx


http://www.passleader.com/70-573.html

QUESTION 171
You create a Web Part named WP1. You need to ensure that the name of the Web Part displays as Corporate in SharePoint. What should you do?

A.    Rename WP1.webpart as Corporate.webpart.
B.    In WP1.webpart, change the Title property to Corporate.
C.    In the constructor of WP1.cs, add the following line of code: Page.Title=”Corporate”;
D.    In the Elements.xml file, change the Name property of the <File> element to Corporate.

Answer: B
Explanation:
MNEMONIC RULE: “Title property to Corporate”
Web Parts Control Description Files
http://msdn.microsoft.com/en-us/library/ms227561.aspx

QUESTION 172
You create a Web Part that calls a function named long Call. You discover that long Call takes a long time to execute. You need to display in the Developer Dashboard how long it takes to execute long Call. Which code segment should you use?

A.    Dim startTime As DateTime = DateTime.Now
longCall()
Trace.Write(“Long Call ” & DateTime.Now.Subtract(startTime).Seconds)
B.    Dim startTime As DateTime = DateTime.Now
longCall()
Trace.TraceWarning(“Long Call ” & DateTime.Now.Subtract(startTime).
Seconds)
C.    Monitor.Enter(“Long Call”)
If True Then
longCall()
End If
Monitor.[Exit](“Long Call”)
D.    Using monitoredScope As New SPMonitoredScope(“Long Call”) longCall()
End Using

Answer: D

QUESTION 173
You have several SharePoint sites. You plan to load a custom script in all pages of the sites. You need to ensure that you can activate or deactivate the script at the site level. What should you do?

A.    Create a site definition and modify the <system.web> element in the web.config file.
B.    Create a user control that contains the script. Create a Feature that overrides the AdditionalPageHead delegate control.
C.    Create a site definition and modify the CustomJSUrl attribute in the Onet.xml file.
D.    Create a user control that contains the script. Create a Feature that overrides the ControlArea delegate control.

Answer: B
Explanation:
MNEMONIC RULE: AdditionalPageHead
The delegate control resides in the AdditionalPageHead control on the page. It registers some ECMAScript(JavaScript, JScript) on the page.
How to: Customize a Delegate Control
http://msdn.microsoft.com/en-us/library/ms470880.aspx

QUESTION 174
You create a sandboxed solution that contains a Web Part. You need to debug the Web Part by using Microsoft Visual Studio 2010. To which process should you attach the debugger?

A.    owstimer.exe
B.    spucworkerprocess.exe
C.    w3wp.exe
D.    spucworkerprocessproxy.exe

Answer: B
Explanation:
MNEMONIC RULE: “Sandbox worker needs no proxy”
To provide additional protection, the solution’s assembly is not loaded into the main IIS process (w3wp.exe). Instead, it is loaded into a separate process (SPUCWorkerProcess.exe).
Sandboxed Solution Considerations
http://msdn.microsoft.com/en-us/library/ee231562.aspx
If the project type lets you change the Sandboxed Solution property and its value is set to true, then thedebugger attaches to a different process (SPUCWorkerProcess.exe).
Debugging SharePoint Solutions
http://msdn.microsoft.com/en-us/library/ee231550.aspx

QUESTION 175
You add a delegate control to the <head> section of a custom master page. You reference a default script file by using the delegate control. You need to ensure that the delegate control meets the following requirements. Which property should you use?

A.    Template_Controls
B.    Scope
C.    BindingContainer
D.    AllowMultipleControls

Answer: D
Explanation:
MNEMONIC RULE: “additional script references = AllowMultipleControls” DelegateControl.AllowMultipleControls Property
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.delegatecontrol.allowmultiplecontrols.aspx

QUESTION 176
You are creating a Web Part in SharePoint Server 2010. You need to ensure that the Web Part can send data to another Web Part. Which interface should you implement?

A.    IWebPartField
B.    IQueryable
C.    ISerializable
D.    IWebEditable

Answer: A
Explanation:
MNEMONIC RULE: “Web Part send data = IWebPartField”
Defines a provider interface for connecting two server controls using a single field of data. This interface is designed to be used with Web Parts connections. In a Web Parts connection, two servercontrols that reside in a WebPartZoneBase zone establish a connection and share data, with one control actingas the consumer and the other control acting as a provider.
IWebPartField Interface
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.iwebpartfield.aspx

QUESTION 177
You are creating an event receiver. The event receiver will have a field named Title and a field named Priority. You write the following code segment for the event receiver. (Line numbers are included for reference only.)
01 Public Overloads Overrides Sub ItemUpdating(ByVal prop As SPItemEventProperties)
02 MyBase.ItemUpdating(prop)
03
04
05
06 End Sub
You need to ensure that when the Title field is changed to include the word IMPORTANT, the Priority field is set to URGENT. Which code segments should you add at lines 03, 04 and 05?

A.    03 If prop.AfterProperties(“vti_title”).ToString().Contains(“IMPORTANT”) Then
04 prop.AfterProperties(“Priority”) = “URGENT”
05 End If
B.    03 If prop.AfterProperties(“vti_title”).ToString().Contains(“IMPORTANT”) Then
04 prop.ListItem(“Priority”) = “URGENT”
05 End If
C.    03 If prop.BeforeProperties(“vti_title”).ToString().Contains(“IMPORTANT”) Then
04 prop.AfterProperties(“Priority”) = “URGENT”
05 End If
D.    03 If prop.ListItem(“Title”).ToString().Contains(“IMPORTANT”) Then
04 prop.AfterProperties(“Priority”) = “URGENT”
05 End If

Answer: A

QUESTION 178
You create an entity named Customer in a Business Connectivity Services (BCS) object mode. You need to ensure that Customer data can be displayed in a Business Data List Web Part. Which method type should you use?

A.    Genehclnvoker
B.    SpecificFinder
C.    Finder
D.    IDEnumerator

Answer: C
Explanation:
MNEMONIC RULE: “Finder for all Customer data”
The first method created is ReadItem, which allows you to retrieve a specific record from the external storebased on an identifier. This is mapped to the XML metadata as a method instance of type “SpecificFinder.” The second method that is created is ReadList, which retrieves all records from the external store. This ismapped in the XML metadata as a “Finder” method instance. These are the minimum two methods that your entity needs to implement in order to serve as a connector forBCS.
Using Business Connectivity Services in SharePoint 2010
http://msdn.microsoft.com/en-us/magazine/ee819133.aspx

QUESTION 179
You create a custom page layout that has a field control named Field1. You need to ensure that Field1 is only visible when users modify the contents of the page. Which parent control should you use for Field1?

A.    PublishingContext
B.    PageLayoutValidator
C.    EditModePanel
D.    ValidatorAggregator

Answer: C
Explanation:
MNEMONIC RULE: “visible when modify = EditModePanel”
Provides a container that shows or hides its child controls based on the mode of the page. EditModePanel Class
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.webcontrols.editmodepanel.aspx

QUESTION 180
You have the following event receiver. (Line numbers are included for reference only.)
01 Public Overloads Overrides Sub FieldDeleting
(ByVal properties As SPListEventProperties)
02 MyBase.FieldDeleting(properties)
03 If properties.FieldName = “Status” Then
04
05
06 End If
07 End Sub
You need to cancel the operation and redirect the user to a custom error page if the name of the deleted field is Status. Which code segments should you add at lines 04 and 05?

A.    04 properties.ReceiverData = “/_layouts/customErrorPage.aspx”
05 properties.Cancel = True
B.    04 properties.RedirectUrl = “/_layouts/customErrorPage.aspx”
05 properties.Cancel = True
C.    04 properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl
05 properties.ReceiverData = “/_layouts/customErrorPage.aspx”
D.    04 properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl
05 properties.RedirectUrl = “/_layouts/customErrorPage.aspx”

Answer: D


http://www.passleader.com/70-573.html

[Pass Ensure VCE Dumps] Passing 70-573 Exam By Learning PassLeader Free 70-573 Exam Dumps (181-200)

$
0
0

Valid Tips For 100% Pass Exam 70-573: PassLeader now is providing the best 285q 70-573 VCE dumps and PDF dumps for your 70-573 certification exam. We offer the latest 285q 70-573 exam questions to ensure that you can 100 percent pass 70-573 exam, and what’s more, we will offer you the new updated 70-573 exam dumps for one year free and free new version VCE Player. Welcome to visit our site — passleader.com and get the valid 285q 70-573 braindumps to pass exam as soon as possible.

keywords: 70-573 exam,285q 70-573 exam dumps,285q 70-573 exam questions,70-573 pdf dumps,70-573 vce dumps,70-573 study guide,70-573 practice test,TS: Microsoft SharePoint 2010, Application Development Exam

QUESTION 181
You create a list named List1. You create two workflows named WF1 and WF2 for List1. You need to ensure that when a new item is created in List1, WF1 starts automatically. WF2 must start automatically after WF1 completes. What should you do?

A.    Add a SendActivity activity to WF2.
B.    Add a Replicator activity to WF2.
C.    Create a SPWebEventReceiver event receiver.
D.    Create a SPWorkflowEventReceiver event receiver.

Answer: D
Explanation:
MNEMONIC RULE: “Workflow = SPWorkflowEventReceiver”
The SPWorkflowEventReceiver class handles workflow events throughout the lifetime of a workflow.
Starting: Occurs when a workflow is starting
Started: Occurs when a workflow is started
Postponed: Occurs when a workflow is postponed
Completed: Occurs when a workflow is completed
You can register the SPWorkflowEventReceiver with any site, list, or content type.

QUESTION 182
You develop a custom approval workflow. The workflow uses the CreateTask class to assign tasks to a user named User1. A list called Tasks stores the tasks. Other workflows and users use the Tasks list. You need to ensure that the tasks assigned to User1 can only be viewed by User1. What should you do?

A.    Set the CreateTask.SpecialPermissions property.
B.    Set the CreateTask.TaskProperties property.
C.    Break the permission inheritance for the Tasks list.
D.    Assign a custom permission level to a group that contains User1.

Answer: A
Explanation:
MNEMONIC RULE: “SpecialPermissions”
CreateTask.SpecialPermissions Property
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.workflowactions.createtask.specialpermissions.aspx

QUESTION 183
You plan to create a workflow that has the following three activities. You need to ensure that each time the workflow starts, the three activities are linked to a single task. What should you do?

A.    Create an SPWorkflowEventReceiver event receiver for the SharePoint Tasks list.
B.    Configure all activities to use the same Taskld.
C.    Configure all activities to use the same correlation token.
D.    Create an SPItemEventReceiver event receiver for the SharePoint Tasks list.

Answer: C
Explanation:
MNEMONIC RULE: “Correlation token (to correlate one task with three activities)”
Each specific task within the workflow should have its own correlation token, which each related activity canuse to access the same, task-specific information. For example, if in your workflow you want to reference thesame task in CreateTask, CompleteTask, and OnTaskChanged activities, you would bind the CorrelationTokenproperty of each of these activities to the same correlation token variable.
Correlation Tokens in Workflows
http://msdn.microsoft.com/en-us/library/ms475438.aspx

QUESTION 185
You need to disable the CriticalExceptionCount measure for all user solutions. You write the following code segment. (Line numbers are included for reference only.)
01 Dim userCode As SPUserCodeService = SPUserCodeService.Local
02 Dim measures As SPResourceMeasureCollection = userCode.ResourceMeasures
03 Dim measure As SPResourceMeasure = measures(“CriticalExceptionCount”)
04
05 measure.Update()
Which code segment should you add at line 04?

A.    measure.AbsoluteLimit = 0
B.    measure.AbsoluteLimit = 1
C.    measure.ResourcesPerPoint = 0
D.    measure.ResourcesPerPoint = 1

Answer: C

QUESTION 186
You create a Visual Web Part. You need to add an image to the Web Part. The image must be deployed to the 14\TEMPLATE\IMAGES folder. What should you do in Microsoft Visual Studio?

A.    Add a SharePoint Layouts mapped folder and create a subfolder named Images.
B.    Create a folder named Images.
C.    Add a SharePoint Images mapped folder.
D.    Create a folder named_Layouts and a subfolder named Images.

Answer: C
Explanation:
MNEMONIC RULE: Images mapped folder
Deploying files using Mapped Folders
http://blogs.msdn.com/b/vssharepointtoolsblog/archive/2010/03/12/deploying-files-using-mapped-folders.aspx

QUESTION 187
You use a custom site definition to create SharePoint sites. You need to add a Web Part to the home page of the site definition. Which file should you modify?

A.    Onet.xml
B.    default.master
C.    web.conflg
D.    Sp.xml

Answer: A
Explanation:
MNEMONIC RULE: “third-party site definition = Onet.xml”
You can perform the following kinds of tasks in a custom Onet.xml file that is used for either a custom sitedefinition or a custom web template:
Specify an alternative cascading style sheet (CSS) file, JavaScript file, or ASPX header file for a sitedefinition. Modify navigation areas for the home page and list pages. Add a new list definition as an option in the UI. Define one configuration for the site definition or web template, specifying the lists, modules, files, and WebParts that are included when the configuration is instantiated. Specify Features to be included automatically with websites that are created from the site definition or webtemplate.
Understanding Onet.xml Files
http://msdn.microsoft.com/en-us/library/ms474369.aspx

QUESTION 188
You have a Web application named WebApp1. You have a Feature receiver named FeatureReceiver1. FeatureReceiver1 stores a connection string in the web.config file of WebApp1. You need to ensure that when FeatureReceiver1 makes configuration changes to web.config, the changes are automatically replicated to all Web servers in the farm. Which class should you use in FeatureReceiver1?

A.    SPPersistedObject
B.    SPWebConfigModification
C.    SPDiagnosticsService
D.    WebConfigurationManager

Answer: C
Explanation:
MNEMONIC RULE: “web.config modification = SPWebConfigModification”
To apply modifications that you define through the SPWebConfigModification class to the web.config files inthe server farm, call the ApplyWebConfigModifications method on the current content Web service object, as follows:
SPWebService.ContentService.ApplyWebConfigModifications
SPWebConfigModification Class
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spwebconfigmodification.aspx

QUESTION 189
You are creating a Web Part for SharePoint Server 2010. The Web Part contains the following code segment. (Line numbers are included for reference only.)
01 Protected Overloads Overrides Sub CreateChildControls()
02 MyBase.CreateChildControls()
03 SPSecurity.RunWithElevatedPrivileges(ElevatedCode)
04
05 End Sub
06 Private Sub ElevatedCode()
07 Dim ListCount As New Label()
08 ListCount.Text = [String].Format
(“There are {0} Lists”, SPContext.Current.Web.Lists.Count)
09 Controls.Add(ListCount)
10 End Sub
You need to identify which line of code prevents the Web Part from being deployed as a sandboxed solution. Which line of code should you identify?

A.    02
B.    03
C.    08
D.    09

Answer: B

QUESTION 190
You need to add a new field to a provisioned content type. You must propagate the field to child lists and child content types. What should you use?

A.    <MapFile>
B.    <FieldRefs>
C.    <AddContentTypeField>
D.    <ApplyElementManifests>

Answer: C
Explanation:
MNEMONIC RULE: “field for content type = AddContentTypeField”
AddContentTypeField Element (Feature)
http://msdn.microsoft.com/en-us/library/ff595314.aspx


http://www.passleader.com/70-573.html

QUESTION 191
You have a SharePoint site that uses the default search settings. You create a new Search Center. You need to ensure that the new Search Center is the default Search Center for the site. What should you modify?

A.    the AllWebs collection of the site collection
B.    the Cache property of the current HttpContext
C.    the AllProperties collection of the site
D.    the Session property of the current HttpContext

Answer: C
Explanation:
MNEMONIC RULE: “AllProperties of the site”
SPWeb.AllProperties Property
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.allproperties.aspx
Bloody Stupid SPWeb properties
http://www.novolocus.com/2010/12/22/stupid-spweb-properties/

QUESTION 192
You create a Microsoft .NET Framework console application that uses a Representational State Transfer (REST) API to query a custom list named Products. The application contains the following code segment.
Dim codc As New AdventureWorksDataContext(NewUrl(“http://contoso/_vti_bin/listdata.svc”))
codc.Credentials = CredentialCache.DefaultCredentials
You need to read all items in Products into an object. Which method should you use?

A.    codc.Products.All
B.    codc.Products.AsQueryable
C.    codc.Products.ElementAt
D.    codc.Products.ToList

Answer: D

QUESTION 193
You have a document library named Documents. Minor and major version management is enabled for the document library. You plan to add a document named MyFile.docx to Documents. You create a console application that contains the following code segment. (Line numbers are included for reference only.)
01 Using site As New SPSite(“http://intranet”)
02 Dim documents As SPList = site.RootWeb.Lists(“Documents”)
03 Dim fstream As FileStream = File.OpenRead(“MyFile.docx”)
04 Dim content As Byte() = New Byte(fstream.Length – 1) {}
05 fstream.Read(content, 0, CInt(fstream.Length))
06 fstream.Close()
07 site.RootWeb.Files.Add(documents.RootFolder.Url & “/MyFile.docx”, content, True)
08 Dim file As SPFile = site.RootWeb.GetFile(documents.RootFolder.Url & “/ MyFile.docx”)
09 file.CheckIn(String.Empty)
10
11 End Using
You need to ensure that all users can see the document. Which code segment should you add at line 10?

A.    file.CanOpenFile(true)
B.    file.Publish(string.Empty)
C.    file.ReleaseLock(string.Empty)
D.    file.Update()

Answer: B

QUESTION 194
You are creating a custom content type named CT1. You need to use a Feature to add an existing site column named SiteCol1 to CT1. Which code segment should you include in the Feature?

A.    <Field ID=”SiteCol1″/>
B.    <Field ID=”{XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX}” Name=”SiteCol1″/>
C.    <FieldRef ID=”SiteCol1″ Name=”{XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX}”/>
D.    <FieldRef ID=”{XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX}” Name=”SiteCol1″/>

Answer: D
Explanation:
MNEMONIC RULE: “existing Field needs to be Referenced”
FieldRef Element (ContentType)
http://msdn.microsoft.com/en-us/library/aa543225.aspx

QUESTION 195
You have a helper method named CreateSiteColumn that contains the following code segment.
Private Shared Sub CreateSiteColumn
(ByVal web As SPWeb, ByVal columnName As String)
web.Lists(0).Views(0).ViewFields.Add(columnName)
End Sub
You need to add a new site column of type Choice to a SharePoint site by using the helper method. Which code segment should you include in the helper method?

A.    Dim field As SPField = New SPFieldChoice(web.Lists(0).Fields, columnName)
B.    web.Fields.Add(columnName, SPFieldType.Choice, True)
C.    web.Lists(0).Fields.Add(columnName, SPFieldType.Choice, True)
D.    web.Lists(0).Views(0).ViewFields.Add(columnName)

Answer: B

QUESTION 196
You have a custom user profile property named MyProperty. You need to create a Web Part that displays the value of MyProperty for the current user. Which code segment should you use?

A.    Dim profile As String = SPContext.Current.Web.Properties(“CurrentUser/MyProperty”)
B.    Dim profile As String = SPContext.Current.Web.Users(“MyProperty”).ToString()
C.    Dim profileManager As New UserProfileManager(SPServiceContext.Current)
Dim userProfile As UserProfile = profileManager.GetUserProfile (SPContext.Current.Web.CurrentUser.LoginName)
Dim profile As String = userProfile(“MyProperty”).ToString()
D.    Dim profileManager As New UserProfileManager(SPServiceContext.Current)
Dim userProfile As UserProfile = profileManager.GetUserProfile (SPContext.Current.Web.CurrentUser.LoginName)
Dim profile As String = userProfile.Properties.GetPropertyByName (“MyProperty”).ToString()

Answer: C

QUESTION 197
You need to create a custom application that provides users with the ability to create a managed property. The managed property name must be specified in the args[1] parameter. You write the following code segment for the application. (Line numbers are included for reference only.)
01 Dim currentSite As New SPSite(“http://intranet”)
02 Dim context As SearchContext = SearchContext.GetContext(currentSite)
03 Dim schema As New Schema(context)
Which code segment should you add to the application?

A.    context.SearchApplication.CrawlStores.Create(args(1))
B.    Dim properties As ManagedPropertyCollection = schema.AllManagedProperties
Dim newMng As ManagedProperty = properties.Create(args(1), ManagedDataType.Text)
C.    Dim properties As ManagedPropertyCollection = schema.AllManagedProperties
Dim newMng As ManagedProperty = properties.CreateCrawlMonProperty() newMng.Name = args(1)
D.    schema.AllCategories.Create(args(1), Guid.NewGuid())

Answer: B

QUESTION 198
You create a Web Part. You need to display the number of visits to a SharePoint site collection in a label named LblVisits. You write the following code segment. (Line numbers are included for reference only.)
01 RunWithElevatedPrivileges(ElevateSub)
02 Private Sub ElevatedSub()
03 Try
04
05 LblVisits.Text = site.Usage.Visits.ToString()
06 Finally
07 …
08 End Try
09 End Sub
Which code segment should you add at line 04?

A.    Dim esite As New SPSite(SPContext.Current.Site.ID)
B.    Dim esite As SPSite = SPContext.Current.Site
C.    Dim esite As SPSite = SPContext.GetContext(HttpContext.Current).Site
D.    Dim esite As SPSite = SPControl.GetContextSite(HttpContext.Current)

Answer: A

QUESTION 199
You have one Web application that contains several SharePoint site collections. You need to add a custom button to the Documents tab on the Ribbon of one site collection only. What should you do?

A.    Create a new Feature.
In a new <CommandUIDefinition> node, specify the location of Ribbon.Tabs._children.
B.    Create a new Feature.
In a new <CommandUIDefinition> node, specify the location of Ribbon.Documents.Manage.Controls._children.
C.    Modify the CMDUI.xml file.
In a new <CommandUIDefinition> node, specify the location of Ribbon.Tabs._children.
D.    Modify the CMDUI.xml file.
In a new <CommandUIDefinition> node, specify the location of Ribbon.Documents.Manage.Controls._children.

Answer: B

QUESTION 200
You have a SharePoint site that contains 10 lists. You need to prevent a list named List1 from appearing on the Quick Launch navigation bar. What should you configure?

A.    the QuickLaunchEnabled property of the site
B.    the Hidden property of List1
C.    the OnQuickLaunch property of List1
D.    the Navigation.QuickLaunch.Parent.IsVisible property of the site

Answer: C
Explanation:
MNEMONIC RULE: “Do you want to see the list on Quick Launch?”
Gets or sets a Boolean value that specifies whether the list appears on the Quick Launch area of the homepage.
SPList.OnQuickLaunch Property
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.onquicklaunch.aspx


http://www.passleader.com/70-573.html

[Pass Ensure VCE Dumps] Free PassLeader 70-573 VCE and PDF Dumps With New Update Exam Questions (201-220)

$
0
0

How To 100% Pass New 70-573 Exam: PassLeader have been launched the newest 285q 70-573 exam dumps with all the new updated exam questions. We provide the latest full version of 70-573 PDF and VCE dumps with new real questions and answers to ensure your 70-573 exam 100% pass, and you will get the free new version VCE Player along with your 70-573 VCE dumps. Welcome to visit our website — passleader.com — and get the premium 285q 70-573 exam questions.

keywords: 70-573 exam,285q 70-573 exam dumps,285q 70-573 exam questions,70-573 pdf dumps,70-573 vce dumps,70-573 study guide,70-573 practice test,TS: Microsoft SharePoint 2010, Application Development Exam

QUESTION 201
You are developing an application page. You need to create a pop-up window that uses the ECMAScript object model. Which namespace should you use?

A.    SP.UI.Menu
B.    SP.UI.ModalDialog
C.    SP.UI.Notify
D.    SP.UI.PopoutMenu

Answer: B
Explanation:
MNEMONIC RULE: “pop-up window = ModalDialog”
SP.UI.ModalDialog Class
http://msdn.microsoft.com/en-us/library/ff408909.aspx

QUESTION 202
You have a SharePoint site that has the URL http://contoso.com/hr. You are creating a new Web Part. You need to create a reference to the current subsite without having to dispose of any returned objects. Which code segment should you use?

A.    Dim siteCollection As New SPSite(“http://www.contoso.com”)
Dim site As SPWebCollection = siteCollection.AllWebs
B.    Dim siteCollection As New SPSite(“http://www.contoso.com”)
Dim site As SPWeb = siteCollection.RootWeb
C.    Dim site As SPSite = SPContext.Current.Site
D.    Dim site As SPWeb = SPContext.Current.Web

Answer: D

QUESTION 203
You create a Feature. You need to add an item to the context menu of a list. Which type of element should you use?

A.    a Listlnstance
B.    a ListTemplate
C.    a CustomAction
D.    a Module

Answer: C
Explanation:
MNEMONIC RULE: “context menu item = CustomAction”
A custom action can be added inside a secondary XML file, part of a normal feature. It is defined by a”CustomAction” element type.
How to add a custom action to list elements context menu?
http://www.dev4side.com/community/technical-articles/sharepoint-2007/how-to-add-a-custom-action-to-listelements-context-menu.aspx

QUESTION 204
You are creating a Web Part. The Web Part will be used in a SharePoint subsite that has the URL http://www.contoso.com/hr. You need to ensure that the Web Part activates a Feature in the subsite without causing a memory leak. Which code segment should you use?

A.    Dim featuresCollect As SPFeatureCollection = SPContext.Current.SiteFeatures featuresCollect.Add(New Guid(“xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”), True)
B.    Dim featuresCollect As SPFeatureCollection = SPContext.Current.WebFeatures featuresCollect.Add(New Guid(“xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”), True)
C.    Dim web As New SPSite(“http://www.contoso.com/hr”)
Dim featureCollect As SPFeatureCollection = web.Features
featureCollect.Add(New Guid(“xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”), True)
D.    Dim web As SPWeb = New SPSite(“http://www.contoso.com/hr”).OpenWeb()
Dim featureCollect As SPFeatureCollection = web.Features
featureCollect.Add(New Guid(“xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”), True)

Answer: B

QUESTION 205
You are running a default installation of Microsoft Visual Studio 2010. You have a user control named Control.ascx. You need to convert the user control to a Web Part that will be hosted in a Microsoft SharePoint Server 2010 farm. The Web Part must be packaged as a sandboxed solution. What should you do?

A.    Create a new Web Part and reuse the code from the existing MyControl.ascx file.
B.    Import the user control into a new Visual Web Part and use the existing MyControl.ascx file.
C.    Modify the SafeControls section of the web.config file.
D.    Copy the Control.ascx file to the ControlTemplates folder.

Answer: A

QUESTION 206
You are running a default installation of Microsoft Visual Studio 2010. You have a Web Part named WebPart1. WebPart1 runs on a Microsoft Office SharePoint Server 2007 server. You need to ensure that WebPart1 can run as a sandboxed solution in Microsoft SharePoint Server 2010. What should you do?

A.    Create a new Visual Web Part by using the code from WebPart1.
B.    Create a new Web Part by using the code from WebPart1.
C.    Create an ASCXfile for WebPart1, and then copy the file to the ISAPI folder.
D.    Create an ASCXfile for WebPart1, and then copy the file to the CONTROLSTEMPLATES folder.

Answer: A

QUESTION 207
You are creating two Web Parts named WPMaster and WPDetails. You need to ensure that when an item is selected from WPMaster, the details of the item are displayed in WPDetails. This must occur without requiring WPDetails to retrieve the existing item from the data source. What should you implement in WPMaster?

A.    IWebActionable
B.    IWebPartTable
C.    IListProvider
D.    IWebPartRow

Answer: D

QUESTION 208
You develop a custom master page. You need to ensure that all pages that use the master page contain a specific image in the same location. Page developers must be able to change the image on individual pages without impacting other pages that use the same master page. What should you add to the master page?

A.    a ContentPlaceHolder control
B.    an HTML Div element
C.    a Placeholder control
D.    an Image control

Answer: A

QUESTION 209
You create custom code to import content to SharePoint sites. You create a custom site definition by using Microsoft Visual Studio 2010. You need to ensure that when a new site that uses the custom site definition is created, the custom code executes after the site is created. Which class should you add to the project?

A.    SPEmailEventReceiver
B.    SPWebProvisioningProvider
C.    SPItemEventReceiver
D.    SPChangeFile

Answer: B
Explanation:
MNEMONIC RULE: “new site created = SPWebProvisioningProvider”
Provides a handler for responding to Web site creation.
SPWebProvisioningProvider Class
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spwebprovisioningprovider.aspx

QUESTION 210
You create a custom site definition named DCS. You create a site provision handler for DCS. DCS contains a file named DCSTemplate.xsd that stores configuration data. You need to read the content of DCSTemplate.xsd in the site provision handler. Which property should you use?

A.    SPSite.GetCustomWebTemplates(1033)[“DCS”].ProvisionClass
B.    SPWebApplication.DataRetrievalProvider
C.    SPWebProvisioningProperties.Data
D.    SPWebProvisioningProperties.Web.DataRetrievalServicesSettings

Answer: C
Explanation:
MNEMONIC RULE: “configuration data = SPWebProvisioningProperties.Data”
Gets custom data that is used in creating the Web site.
SPWebProvisioningProperties.Data Property
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spwebprovisioningproperties.data.aspx


http://www.passleader.com/70-573.html

QUESTION 211
You create a custom Web Part. You need to verify whether the Web Part causes any memory leaks. Which tool should you use?

A.    SPDisposeCheck.exe
B.    SPMetal.exe
C.    Wca.exe
D.    WinDbg.exe

Answer: A
Explanation:
MNEMONIC RULE: “memory leaks = SPDisposeCheck”
SPDisposeCheck is a tool that helps developers and administrators check custom SharePoint solutions thatuse the SharePoint Object Model helping measure against known Microsoft dispose best practices. This toolmay not show all memory leaks in your code and may produce false positives which need further review bysubject matter experts.
SharePoint Dispose Checker Tool
http://archive.msdn.microsoft.com/SPDisposeCheck

QUESTION 212
You update a solution validator. You need to ensure that all SharePoint solutions are validated the next time the solutions are executed. What should you do?

A.    Modify the Guid attribute of the solution validator.
B.    Deactivate and activate all of the installed solutions.
C.    Modify the Signature property of the solution validator.
D.    In the Feature that deploys the solution validator, modify the Version attribute of the Feature element.

Answer: C
Explanation:
MNEMONIC RULE: “signature solution validator”
Gets or sets the version number and state hash of a solution validator.
SPSolutionValidator.Signature Property
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.usercode.spsolutionvalidator.signature.aspx

QUESTION 213
You have a SharePoint site collection that contains 100 subsites. You plan to create a Web Part. The Web Part will be deployed to each subsite. You need to ensure that the Web Part retrieves all of the files in the root directory of the current subsite. You write the following code segment. (Line numbers are included for reference only.)
01 Dim site As SPSite = SPContext.Current.Site
02 Dim web As SPWeb = SPContext.Current.Web
03
Which code segment should you add at line 03?

A.    site.AllWebs[1].Files
B.    Site.RootWeb.Lists[0].Items
C.    web.Files
D.    web.RootFolder.SubFolders[0].Files web.Users.Add(currentUser.LoginName, currentUser.Email, currentUser.Name, “”)

Answer: C
Explanation:
MNEMONIC RULE: “current subsite = web = web.Files”
Gets the collection of all files in the root directory of the website.
SPWeb.Files Property
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.files.aspx

QUESTION 214
You have a SharePoint farm that has more than 100 custom Features. You upgrade several Features in the farm. You need to ensure that the site collection uses the most up-to-date versions of the Features. Only Features that require an upgrade must be evaluated. Which code segment should you use?

A.    Dim webServices As New SPWebServiceCollection(SPFarm.Local)
For Each myWebService1 As SPWebService In webServices
Dim queryResults As SPFeatureQueryResultCollection = myWebService1.QueryFeatures(SPFeatureScope.Site, True)
Dim featureEnumerator As IEnumerator(Of SPFeature) = queryResults.GetEnumerator()
While featureEnumerator.MoveNext()
Dim feature As SPFeature =
featureEnumerator.Current feature.Upgrade(False)
End While
Next
B.    Dim webServices As New SPWebServiceCollection(SPFarm.Local)
For Each myWebService1 As SPWebService In webServices
Dim queryResults As SPFeatureQueryResultCollection = myWebService1.QueryFeatures(SPFeatureScope.Web, True)
Dim featureEnumerator As IEnumerator(Of SPFeature) =
queryResults.GetEnumerator()
While featureEnumerator.MoveNext()
Dim feature As SPFeature = featureEnumerator.Current
feature.Upgrade(False)
End While
Next
C.    Dim site As SPSite = SPContext.Current.Site
Dim allFeatures As SPFeatureCollection = site.Features
For Each currentFeature As SPFeature In allFeatures
currentFeature.Upgrade(True)
Next
D.    Dim web As SPWeb = SPContext.Current.Web
Dim allFeatures As SPFeatureCollection = web.Features
For Each currentFeature As SPFeature In allFeatures
currentFeature.Upgrade(True)
Next

Answer: A
Explanation:
MNEMONIC RULE: “large chunk of code, SPFeatureScope.Site”
Since we are working with the site collection, we need to use SPFeatureScope.Site, not SPFeatureScope.Web.
needsUpgrade (Boolean): if true, only features that need to be upgraded are included. If false, only featuresthat do not need to be upgraded are included.
SPSite.QueryFeatures Method (Guid, Boolean)
http://msdn.microsoft.com/en-us/library/ee545763.aspx

QUESTION 215
You are creating an application. You develop a custom control that renders a contextual tab. The control contains the following code segment. (Line numbers are included for reference only.)
01 Protected Overloads Overrides Sub OnPreRender(ByVal e As EventArgs)
02 Dim curRibbon As SPRibbon = SPRibbon.GetCurrent(Me.Page)
03
04 curRibbon.MakeContextualGroupInitiallyVisible
(“SP.Ribbon.ContextualGroup”, String.Empty)
05 MyBase.OnPreRender(e)
06 End Sub
You need to ensure that when the custom control is rendered, the custom contextual tab appears in the Ribbon. Which code segment should you add at line 03?

A.    curRibbon.Enabled = true
B.    curRibbon.MakeRTEContextualTabsAvailable(“SP.Ribbon.ContextualTab “)
C.    curRibbon.MakeTabAvailable(“SP.Ribbon.ContextualTab”)
D.    curRibbon.Visible = true

Answer: C
Explanation:
MNEMONIC RULE: “MakeTabAvailable”
Ribbon.MakeTabAvailable Method (String)
http://msdn.microsoft.com/en-us/library/ff409505.aspx

QUESTION 216
You have a SharePoint list named Announcements. You have an event receiver that contains the following code segment. (Line numbers are included for reference only.)
01 Public Overloads Overrides Sub ItemAdding(ByVal properties As SPItemEventProperties)
02 If properties.ListItem(“Title”).ToString().Contains(“secret”) Then
03
04 End If
05 End Sub
You need to prevent users from adding items that contain the word “secret” in the title to the list. Which code segment should you add at line 03?

A.    properties.Cancel = false
B.    properties.Cancel = true
C.    properties.Status = SPEventReceiverStatus.Continue
D.    Exit Sub

Answer: B

QUESTION 217
You create a client application that remotely calls the Business Connectivity Services (BCS) object model. You need to create the context that will be used to request a cache refresh. Which code segment should you use?

A.    Dim cCtx As BdcService = SPFarm.Local.Services.GetValue(Of BdcService)(String.Empty)
B.    Dim cCtx As New ClientContext(String.Empty)
C.    Dim cCtx As New RemoteOfflineRuntime()
D.    Dim cCtx As New RemoteSharedFileBackedMetadataCatalog()

Answer: C

QUESTION 218
You create a Web Part. The Web Part contains a grid view named GridView1 and the following code segment. (Line numbers are included for reference only.)
01 Dim dc As New IntranetDataContext(“http://intranet”)
02 MyGridView.DataSource = From announce In dc.Announcements _
03
04 Select announce IntranetDataContext is a LINQ context
You need to ensure that GridView1 only displays items from Announcements that have an expiry date that is greater than or equal to the current date. What should you do?

A.    Change line 04 to the following code segment.
Select Not announce.Expires.HasValue
B.    Change line 04 to the following code segment.
Select announce.Expires.Value.CompareTo(DateTime.Now) >= 0
C.    Add the following line of code at line 03.
Where announce.Expires.Value.CompareTo(DateTime.Now) >= 0 _
D.    Add the following line of code at line 03.
Order By announce.Expires.Value.CompareTo(DateTime.Now) >= 0 _

Answer: C

QUESTION 219
You have a SharePoint Web application that has the URL http://intranet. You are creating a Microsoft .NET Framework application that will display the title of the SharePoint Web application and will execute outside of the SharePoint server. You create a textbox named textBoxTitle. You write the following code segment. (Line numbers are included for reference only.)
01 Dim context As New ClientContext(“http://intranet”)
02
03 Dim site As Web = context.Web
04 context.Load(site)
05
06 textBoxTitle.Text = site.Title
You discover that line 04 generates an error. You need to ensure that the .NET application displays the title of the SharePoint Web application in textBoxTitle. What should you do?

A.    Add the following line of code at line 02.
context.ExecuteQuery()
B.    Add the following line of code at line 02.
context.ValidateOnClient = true
C.    Add the following line of code at line 05.
context.ExecuteQuery()
D.    Add the following line of code at line 05.
context.ValidateOnClient = true

Answer: C

QUESTION 220
You have a Microsoft .NET Framework console application that uses the SharePoint client object model. The application contains the following code segment. (Line numbers are included for reference only.)
01 Dim cCtx As ClientContext = New ClientContext(“http://contoso/sites/finance”)
02 Dim root As Web = cCtx.Site.RootWeb
03 cCtx.Load(root)
04 Dim webInfo As WebCreationInformation = New WebCreationInformation
05 webInfo.Title = “site1”
06 webInfo.Url = “site1”
07 webInfo.WebTemplate = “MPS#2”
08 root.Webs.Add(webInfo)
09
10 cCtx.Dispose
You need to ensure that the application queries Shared Documents for a document named Doc1.docx. Which code element should you add at line 09?

A.    <FieldRef Name=’FileDirRef’/>
B.    <FieldRef Name=’FileLeafRef’/>
C.    <FieldRef Name=’FileRef’/>
D.    <FieldRef Name=’File_x0020_Type’/>

Answer: B


http://www.passleader.com/70-573.html


[Pass Ensure VCE Dumps] Free Download — 285q 70-573 VCE and PDF Dumps — All People Are Finding (221-240)

$
0
0

How To 100% Pass New 70-573 Exam: PassLeader have been launched the newest 285q 70-573 exam dumps with all the new updated exam questions. We provide the latest full version of 70-573 PDF and VCE dumps with new real questions and answers to ensure your 70-573 exam 100% pass, and you will get the free new version VCE Player along with your 70-573 VCE dumps. Welcome to visit our website — passleader.com — and get the premium 285q 70-573 exam questions.

keywords: 70-573 exam,285q 70-573 exam dumps,285q 70-573 exam questions,70-573 pdf dumps,70-573 vce dumps,70-573 study guide,70-573 practice test,TS: Microsoft SharePoint 2010, Application Development Exam

QUESTION 221
You have a document library named MyDocs. MyDocs has a column named Column1. Column1 is a required column. You discover that many documents are checked out because users fail to enter a value for Column1. You need to create a Web Part to delete the documents. Which code segment should you include in the Web Part?

A.    For Each file As SPCheckedOutFile In
CType(SPContext.Current.Web.Lists(“MyDocs”),SPDocumentLibrary).
CheckedOutFiles file.Delete
Next
B.    For Each file As SPItem In SPContext.Current.Web.Lists(“MyDocs”).
Items If (file(“CheckOutStatus”) = “CheckOut”) Then
file.Delete
End If
Next
C.    For Each file As SPListItem In
CType(SPContext.Current.Web.Lists(“MyDocs”),SPDocumentLibrary).
Items If (file(“CheckOutStatus”) = “CheckOut”) Then
file.Delete
End If
Next
D.    For Each file As SPCheckedOutFile In
CType(SPContext.Current.Web.Lists(“MyDocs”),SPDocumentLibrary).
CheckedOutFiles file.TakeOverCheckOut
Next

Answer: A

QUESTION 222
You need to create a Web Part that displays all social tags entered by users. Which code segment should you use?

A.    Dim session As New TaxonomySession(SPContext.Current.Site)
Dim socialTags As TermSet = session.DefaultKeywordsTermStore.SystemGroup.TermSets(“Keywords”)
B.    Dim session As New TaxonomySession(SPContext.Current.Site)
Dim socialTags As TermSet = session.DefaultKeywordsTermStore.SystemGroup.TermSets(“Tags”)
C.    Dim socialTags As TermSet = DirectCast
(SPContext.Current.Site.WebApplication.Properties(“Tags”), TermSet)
D.    Dim socialTags As TermSet = DirectCast
(SPContext.Current.Web.AllProperties(“Keywords”), TermSet)

Answer: A

QUESTION 223
You have a list named Projects that contains a column named ClassificationMetadata. You need to create a Web Part that updates the ClassificationMetadata value to NA for each item in the Projects list. You write the following code segment. (Line numbers are included for reference only.)
01 For Each currentItem As SPListItem In SPContext.Current.Web.Lists(“Projects”).Items
02
03 Next
Which code segment should you add at line 02?

A.    currentItem(“ClassificationMetadata”) = “NA”
B.    currentItem.Fields(“ClassificationMetadata”).DefaultFormula = “NA”
C.    currentItem.Fields(“ClassificationMetadata”).DefaultValue = “NA”
D.    currentItem(“Value”) = “ClassificationMetadata/NA”

Answer: A

QUESTION 224
You have a Web application that contains the following code segment.
Private Sub CreatingSPSite()
Dim siteCollection As SPSite = Nothing
Try
siteCollection = New SPSite(“http://contoso.com”)
Finally
End Try
End Sub
You need to prevent the code segment from causing a memory leak. Which code segment should you add?

A.    if (siteCollection != null)
{
siteCollection.Close();
}
B.    if (siteCollection != null)
{
siteCollection.Dispose();
}
C.    siteCollection = null;
D.    siteCollection.WriteLocked = false;

Answer: B
Explanation:
MNEMONIC RULE: “Dispose of memory leak”
Difference between Close() and Dispose() Method
http://dotnetguts.blogspot.com/2007/06/difference-between-close-and-dispose.html

QUESTION 225
You deploy a custom Web Part named WebPart1 to a SharePoint site. WebPart1 contains the following code segment. (Line numbers are included for reference only.)
01 Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
02 Dim site As SPSite = Nothing
03 Try
04 Dim site As New SPSite(“http://www.contoso.com/default.aspx”)
05 Dim web As SPWeb = site.OpenWeb()
06
07 …
08 Catch
09
10 Finally
11
12 End Try
13 End Sub
After you deploy WebPart1, users report that the pages on the site load slowly. You retract WebPart1 from the site. Users report that the pages on the site load without delay. You need to modify the code in WebPart1 to prevent the pages from loading slowly. What should you do?

A.    Add the following line of code at line 06.
site.ReadOnly = True
B.    Add the following line of code at line 09.
site.Dispose()
C.    Add the following line of code at line 11.
site.Dispose()
D.    Add the following line of code at line 11.
site.ReadOnly = True

Answer: C

QUESTION 226
You have a Web Part that contains the following code segment. (Line numbers are included for reference only.)
01 Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
02 Dim site As New SPSite(“http://www.contoso.com/default.aspx”)
03 If True Then
04 Dim web As SPWeb = site.OpenWeb()
05
06 End If
07 End Sub
You deploy the Web Part to a SharePoint site. After you deploy the Web Part, users report that the site loads slowly. You need to modify the Web Part to prevent the site from loading slowly. What should you do?

A.    Add the following line of code at line 05.
web.Close()
B.    Add the following line of code at line 05.
web.Dispose()
C.    Add the following line of code at line 05.
site.Close()
D.    Change line 02 to the following code segment.
Using site As New SPSite(“http://www.contoso.com/default.aspx”)

Answer: D

QUESTION 227
You create an event receiver. The ItemAdded method for the event receiver contains the following code segment. (Line numbers are included for reference only.)
01 Dim recWeb As SPWeb = properties.Web
02 Using siteCollection As New SPSite(“http://site1/hr”)
03 Using web As SPWeb = siteCollection.OpenWeb()
04 Dim oWeb As PublishingWeb = PublishingWeb.GetPublishingWeb(web)
05 Dim pubWebs As PublishingWebCollection = oWeb.GetPublishingWebs()
06 For Each iWeb As PublishingWeb In pubWebs
07 Try
08 Dim page As SPFile = web.GetFile(“/Pages/default.aspx”)
09 Dim wpManager As SPLimitedWebPartManager = page.GetLimitedWebPartManager(PersonalizationScope.[Shared])
10 Finally
11 If iWeb IsNot Nothing Then
12 iWeb.Close()
13 End If
14 End Try
15 Next
16 End Using
17 End Using
You need to prevent the event receiver from causing memory leaks. Which object should you dispose of?

A.    oWeb at line 04
B.    recWeb at line 01
C.    wpManager at line 09
D.    wpManager.Web at line 09

Answer: D

QUESTION 228
You need to add a modal dialog box to a SharePoint application. What should you use?

A.    the Core.js JavaScript
B.    the Microsoft.SharePoint assembly
C.    the Microsoft.SharePoint.Client assembly
D.    the SP.js JavaScript

Answer: D
Explanation:
MNEMONIC RULE: “SP.js”
SP.UI namespace is defined in SP.Core.js, SP.js, SP.UI.Dialog.js files. ModalDialog is a part of SP.UInamespace.
JavaScript Class Library
http://msdn.microsoft.com/en-us/library/ee538253.aspx

QUESTION 229
You plan to add a custom tab to the Ribbon in a SharePoint Web application. You create a custom Feature that contains an Elements.xml file. You need to ensure that the custom tab only appears in the document libraries of the Web application. Which code segment should you add to the Custom Action node of the Elements.xml file?

A.    Location=”DocumentLibrary”
B.    RegistrationId=”101″
C.    RegistrationType=”List”
D.    ShowInLists=”false”

Answer: B
Explanation:
MNEMONIC RULE: “document libraries 101”
SharePoint: RegistrationId List Template Type IDs
http://techtrainingnotes.blogspot.com/2008/01/sharepoint-registrationid-list-template.html
Work with the SharePoint 2010 Ribbon User Interface
http://msdn.microsoft.com/en-us/library/ff630938.aspx

QUESTION 230
You have one Web application that contains several SharePoint site collections. You need to create a Feature that adds a custom button to the Documents tab on the Ribbon of one site collection only. What should you do?

A.    Create a new Feature.
In a new <CommandUIDefinition> node, specify the location of Ribbon.Tabs._children.
B.    Create a new Feature.
In a new <CommandUIDefinition> node, specify the location of Ribbon.Documents.Manage.Controls._children.
C.    Modify the CMDUI.xml file.
In a new <CommandUIDefinition> node, specify the location of Ribbon.Tabs._children.
D.    Modify the CMDUI.xml file.
In a new <CommandUIDefinition> node, specify the location of Ribbon.Documents.Manage.Controls._children.

Answer: B


http://www.passleader.com/70-573.html

QUESTION 231
You create a Feature. You need remove the link to the Site Content Type page from the Site Settings page by using the Feature. Which element should you use in the Feature?

A.    ContentType
B.    ContentTypeBinding
C.    HideCustomAction
D.    Module

Answer: C
Explanation:
MNEMONIC RULE: “remove = HideCustomAction”
Use the HideCustomAction element to hide an existing action that is implemented by default within theinfrastructure of Microsoft SharePoint Foundation Features, or within another custom action.
<HideCustomAction
GroupId = “Text”
HideActionId = “Text”
Id = “Text”
Location = “Text”>
</HideCustomAction>
HideCustomAction Element
http://msdn.microsoft.com/en-us/library/ms414790.aspx

QUESTION 232
You have a custom master page named MyApplication.master. You need to apply MyApplication.master to only a custom application page in a SharePoint site. You must achieve the goal by using the minimum amount of effort. What should you do?

A.    Add a custom HTTP module to the Web application that modifies the master page.
B.    Add a custom HTTP module to the Web application that modifies the custom application page.
C.    Set the MasterPageFile attribute to ~/_layouts/MyApplication.master in the @Page directive of the customapplication page.
D.    Rename the custom application page as application.master and overwrite the default application.master page in the 14\TEMPLATE\LAYOUTS folder.

Answer: C
Explanation:
MNEMONIC RULE: “custom master page = MasterPageFile”
Using a Page Specific Master Page in SharePoint 2010
http://kjellsj.blogspot.com/2010/07/using-page-specific-master-page-in.html

QUESTION 234
You need to create a Web control that displays HTML content during the last stage of the page processing lifecycle. Which method should you override in the Web control?

A.    LoadControlState
B.    Render
C.    SaveViewState
D.    SetDesignModeState

Answer: B
Explanation:
MNEMONIC RULE: “Render”
Render
This is not an event; instead, at this stage of processing, the Page object calls this method on each control. AllASP.NET Web server controls have a Render method that writes out the control’s markup to send to thebrowser. If you create a custom control, you typically override this method to output the control’s markup.
ASP.NET Page Life Cycle Overview
http://msdn.microsoft.com/en-us/library/ms178472.aspx

QUESTION 235
You need to create a Web control that displays an ASCX control. Which event should you use?

A.    CreateChildControls
B.    LoadControlState
C.    SaveViewState
D.    SetDesignModeState

Answer: A
Explanation:
MNEMONIC RULE: “display ASCX control = CreateChildControl”
BaseFieldControl.CreateChildControls Method
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.basefieldcontrol.createchildcontrols.aspx

QUESTION 236
You have a Web Part named WebPart1. WebPart1 runs on a Microsoft Office SharePoint Server 2007 server. You need to ensure that WebPart1 can run as a sandboxed solution in SharePoint Server 2010. What should you do?

A.    Create a new Web Part by using the code from WebPart1.
B.    Create a new Visual Web Part by using the code from WebPart1.
C.    Create an ASCX file for WebPart1, and then copy the file to the ISAPI folder.
D.    Create an ASCX file for WebPart1, and then copy the file to the CONTROLSTEMPLATES folder.

Answer: A
Explanation:
MNEMONIC RULE: “new Web Part”
Since sandboxed solutions have been introduced only with SharePoint 2010, your only option is to use theMOSS 2007 Web Part source code and create a new sandboxed Web Part.

QUESTION 237
You need to convert a user control named Control.ascx to a SharePoint Web Part. The Web Part must be packaged as a user solution. What should you do?

A.    Modify the SafeControls section of the web.config file.
B.    Copy the Control.ascx file to the ControlTemplates folder.
C.    Create a new Visual Web Part and use the existing MyControl.ascx file.
D.    Create a new Web Part and reuse the code from the MyControl.ascx file.

Answer: D
Explanation:
MNEMONIC RULE: “Create a new Web Part”
Since you already have a user control, you don’t need to create a Visual Web Part (by dragging-and-droppinguser controls from the Toolbox).

QUESTION 238
You plan to create a Web Part for a SharePoint site. You need to ensure that the Web Part can send data to other Web Parts in the site. What should you do?

A.    Implement the IAlertNotifyHandler interface.
B.    Implement the IAlertUpdateHandler interface.
C.    Create a custom interface that uses the WebBrowsable and the WebPartStorage attributes.
D.    Create a custom interface that uses the ConnectionProvider and ConnectionConsumer attributes.

Answer: D
Explanation:
MNEMONIC RULE: “send data = Provider/Consumer”
Connect Web Parts in SharePoint 2010
http://msdn.microsoft.com/en-us/library/ff597538.aspx

QUESTION 239
You create a SharePoint farm solution that contains a Web Part. You need to debug the Web Part by using Microsoft Visual Studio 2010. To which process should you attach the debugger?

A.    owstimer.exe
B.    spucworkerprocess.exe
C.    spucworkerprocessproxy.exe
D.    w3wp.exe

Answer: B
Explanation:
MNEMONIC RULE: “Sandbox worker needs no proxy”
To provide additional protection, the solution’s assembly is not loaded into the main IIS process (w3wp.exe). Instead, it is loaded into a separate process (SPUCWorkerProcess.exe).
Sandboxed Solution Considerations
http://msdn.microsoft.com/en-us/library/ee231562.aspx
If the project type lets you change the Sandboxed Solution property and its value is set to true, then thedebugger attaches to a different process (SPUCWorkerProcess.exe).
Debugging SharePoint Solutions
http://msdn.microsoft.com/en-us/library/ee231550.aspx

QUESTION 240
You create and deploy a custom Web Part. You add the Web Part to a page and receive a run-time error. You need to display the detailed information of the error on the page. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

A.    In the web.config file, set CallStack=”True”.
B.    In the web.config file, set customErrors=”RemoteOnly”.
C.    In the registry, set the EnableDebug value to 1.
D.    In the registry, set the DisableLoopbackCheck value to 1.

Answer: AB
Explanation:
MNEMONIC RULE: “Check all with web.config”
Turning off custom errors in _layouts Web.Config for debugging mode in SharePoint 2010
http://www.khamis.net/blog/Lists/Posts/Post.aspx?ID=12


http://www.passleader.com/70-573.html

[Pass Ensure VCE Dumps] Free Valid PassLeader 143q 70-534 Exam Questions Ensure 100% Exam Passing (1-20)

$
0
0

100% Pass Ensure 70-534 Exam Dumps: PassLeader provides the newest 70-534 dumps updated in recent days with total 143q exam questions, it is the best study materials for preparing 70-534 certification exams. PassLeader’s 70-534 exam questions will offer you the latest questions and answers with free VCE and PDF file to download, which will help you 100% passing 70-534 exam. And PassLeader also supply the newest free version VCE Player now!

keywords: 70-534 exam,143q 70-534 exam dumps,143q 70-534 exam questions,70-534 pdf dumps,70-534 vce dumps,70-534 practice test,70-534 study guide,Architecting Microsoft Azure Solutions Exam

Case Study 1 – VanArsdel, Ltd (Question 1 – Question 8)
Overview:
VanArsdel, Ltd. builds skyscrapers, subways, and bridges. VanArsdel is a leader in using technology to do construction better. VanArsdel employees are able to use their own mobile devices for work activities because the company recognizes that this usage enables employee productivity. Employees also access Software as a Service (SaaS) applications, including DocuSign, Dropbox, and Citrix. The company continues to evaluate and adopt more SaaS applications for its business. VanArsdel uses Azure Active Directory (AD) to authenticate its employees, as well as Multi-Factor Authentication (MFA). Management enjoys the ease with which MFA can be enabled and disabled for employees who use cloud-based services. VanArsdel’s on-premises directory contains a single forest.
Helpdesk:
VanArsdel creates a helpdesk group to assist its employees. The company sends email messages to all its employees about the helpdesk group and how to contact it. Configuring employee access for SaaS applications is often a time-consuming task. It is not always obvious to the helpdesk group which users should be given access to which SaaS applications. The helpdesk group must respond to many phone calls and email messages to solve this problem, which takes up valuable time. The helpdesk group is unable to meet the needs of VanArsdel’s employees. However, many employees do not work with the helpdesk group to solve their access problems. Instead, these employees contact their co-workers or managers to find someone who can help them. Also, new employees are not always told to contact the helpdesk group for access problems. Some employees report that they cannot see all the applications in the Access Panel that they have access to. Some employees report that they must re-enter their passwords when they access cloud applications, even though they have already authenticated.
Bring your own device (BYOD):
VanArsdel wants to continue to support users and their mobile and personal devices, but the company is concerned about how to protect corporate assets that are stored on these devices. The company does not have a strategy to ensure that its data is removed from the devices when employees leave the company.
Customer Support:
VanArsdel wants a mobile app for customer profile registration and feedback. The company would like to keep track of all its previous, current, and future customers worldwide. A profile system using third-party authentication is required as well as feedback and support sections for the mobile app.
Migration:
VanArsdel plans to migrate several virtual machine (VM) workloads into Azure. They also plan to extend their on-premises Active Directory into Azure for mobile app authentication.

Business Requirements
Hybrid Solution:
A single account and credentials for both on-premises and cloud applications Certain applications that are hosted both in Azure and on-site must be accessible to both VanArsdel employees and partners. The service level agreement (SLA) for the solution requires an uptime of 99.9% The partners all use Hotmail.com email addresses.
Mobile App:
VanArsdel requires a mobile app for project managers on construction job sites.
The mobile app has the following requirements:
The app must display partner information.
The app must alert project managers when changes to the partner information occur.
The app must display project information including an image gallery to view pictures of construction projects.
Project managers must be able to access the information remotely and securely.
Security:
VanArsdel must control access to its resources to ensure sensitive services and information are accessible only by authorized users and/or managed devices. Employees must be able to securely share data, based on corporate policies, with other VanArsdel employees and with partners who are located on construction job sites. VanArsdel management does NOT want to create and manage user accounts for partners.

Technical Requirements
Architecture:
VanArsdel requires a non-centralized stateless architecture fonts data and services where application, data, and computing power are at the logical extremes of the network. VanArsdel requires separation of CPU storage and SQL services.
Data Storage:
VanArsdel needs a solution to reduce the number of operations on the contractor information table. Currently, data transfer rates are excessive, and queue length for read/write operations affects performance. A mobile service that is used to access contractor information must have automatically scalable, structured storage. Images must be stored in an automatically scalable, unstructured form.
Mobile Apps:
VanArsdel mobile app must authenticate employees to the company’s Active Directory. Event-triggered alerts must be pushed to mobile apps by using a custom Node.js script. The customer support app should use an identity provider that is configured by using the Access Control Service for current profile registration and authentication. The customer support team will adopt future identity providers that are configured through Access Control Service.
Security:
Active Directory Federated Server (AD FS) will be used to extend AD into Azure. Helpdesk administrators must have access to only the groups of Azure resources they are responsible for. Azure administration will be performed by a separate group. IT administrative overhead must be minimized. Permissions must be assigned by using Role Based Access Control (RBAC). Line of business applications must be accessed securely.

QUESTION 1
You need to assign permissions for the Virtual Machine workloads that you migrate to Azure. The solution must use the principal of least privileges. What should you do?

A.    Create all VMs in the cloud service named Groupl and then connect to the Azure subscription.
Run the following Windows PowerShell command: New-AzureRoleAssignment-Mail user1@vanarsdelltd.com–RoleDefinitionName Contributor-ResoureeGroupName group1
B.    In the Azure portal, select an individual virtual machine and add an owner.
C.    In the Azure portal, assign read permission to the user at the subscription level.
D.    Create each VM in a separate cloud service and then connect to the Azure subscription.
Run the following Windows PowerShell command: Get-AzureVM | New-AzureRoleAssignment-Mail userl@vanarsdelltd.com-RoleDefinitionName Contributor

Answer: A

QUESTION 2
You need to design the system that alerts project managers to data changes in the contractor information app. Which service should you use?

A.    Azure Mobile Service
B.    Azure Service Bus Message Queueing
C.    Azure Queue Messaging
D.    Azure Notification Hub

Answer: B
Explanation:
https://msdn.microsoft.com/en-us/library/azure/hh767287.aspx

QUESTION 3
You need to recommend a solution that allows partners to authenticate. Which solution should you recommend?

A.    Configure the federation provider to trust social identity providers.
B.    Configure the federation provider to use the Azure Access Control service.
C.    Create a new directory in Azure Active Directory and create a user account for the partner.
D.    Create an account on the VanArsdel domain for the partner and send an email message that contains the password to the partner.

Answer: B
Explanation:
http://azure.microsoft.com/en-gb/documentation/articles/active-directory-dotnet-how-to-use-access-control/
https://msdn.microsoft.com/en-us/library/azure/gg185971.aspx

QUESTION 4
You are designing a plan to deploy a new application to Azure. The solution must provide a single sign-on experience for users. You need to recommend an authentication type. Which authentication type should you recommend?

A.    SAML credential tokens
B.    Azure managed access keys
C.    Windows Authentication
D.    MS-CHAP

Answer: A
Explanation:
https://msdn.microsoft.com/en-us/library/azure/dn641269.aspx?f=255&MSPPError=-2147217396

QUESTION 5
You need to prepare the implementation of data storage for the contractor information app. What should you?

A.    Create a storage account and implement multiple data partitions.
B.    Create a Cloud Service and a Mobile Service. Implement Entity Group transactions.
C.    Create a Cloud Service and a Deployment group. Implement Entity Group transactions.
D.    Create a Deployment group and a Mobile Service. Implement multiple data partitions.

Answer: B
Explanation:
VanArsdel needs a solution to reduce the number of operations on the contractor information table. Currently, data transfer rates are excessive, and queue length for read/write operations affects performance.
https://msdn.microsoft.com/en-us/library/azure/dd894038.aspx

QUESTION 6
You need to ensure that users do not need to re-enter their passwords after they authenticate to cloud applications for the first time. What should you do?

A.    Enable Microsoft Account authentication.
B.    Set up a virtual private network (VPN) connection between the VanArsdel premises and Azure datacenter.
Set up a Windows Active Directory domain controller in Azure VM.
Implement Integrated Windows authentication.
C.    Deploy ExpressRoute.
D.    Configure Azure Active Directory Sync to use single sign-on (SSO).

Answer: D

QUESTION 7
Drag and Drop Question
You need to recommend data storage mechanisms for the solution. What should you recommend? To answer, drag the appropriate data storage mechanism to the correct information type. Each data storage mechanism 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:
http://www.thewindowsclub.com/understanding-blobqueuetable-storage-windows-azure

QUESTION 8
Hotspot Question
You need to design the contractor information app. What should you recommend? To answer, select the appropriate options in the answer area.

Answer:

Explanation:
– They also plan to extend their on-premises Active Directory into Azure for mobile app authentication.
– VanArsdel mobile app must authenticate employees to the company’s Active Directory.
http://azure.microsoft.com/en-gb/documentation/articles/mobile-services-ios-get-started-offlinedata/

QUESTION 9
You are designing an Azure web application. The solution will be used by multiple customers. Each customer has different business logic and user interface requirements. Not all customers use the same version of the .NET runtime. You need to recommend a deployment strategy. What should you recommend?

A.    Deploy with multiple web role instances.
B.    Deploy each application in a separate tenant.
C.    Deploy all applications in one tenant.
D.    Deploy with multiple worker role instances.

Answer: B
Explanation:
http://sanganakauthority.blogspot.in/2011/12/multi-tenancy-and-windows-azure.html

QUESTION 10
You design an Azure application that processes images. The maximum size of an image is 10 MB. The application includes a web role that allows users to upload images and a worker role with multiple instances that processes the images. The web role communicates with the worker role by using an Azure Queue service. You need to recommend an approach for storing images that minimizes storage transactions. What should you recommend?

A.    Store images in Azure Blob service.
Store references to the images in the queue.
B.    Store images in the queue.
C.    Store images in OneDrive attached to the worker role instances.
Store references to the images in the queue.
D.    Store images in local storage on the web role instance.
Store references to the images in the queue.

Answer: A
Explanation:
https://msdn.microsoft.com/en-gb/library/ff803365.aspx
https://msdn.microsoft.com/en-us/library/azure/hh767287.aspx


http://www.passleader.com/70-534.html

QUESTION 11
You are designing an Azure application. The application includes two web roles and three instances of a worker role. The web roles send requests to the worker role by using one or more Azure Queues. You need to recommend a queue design for sending requests to the worker role. What should you recommend?

A.    Create a queue for each combination of web roles and worker role instances.
Send requests to all worker role instances based on the sending web role.
B.    Create a single queue.
Send all requests on the single queue.
C.    Create a queue for each worker role instance.
Send requests on each worker queue by using a round robin rotation.
D.    Create a queue for each web role.
Send requests on all queues at the same time.

Answer: B
Explanation:
to communicate with the worker role, a web role instance places messages on to a queue. A worker role instance polls the queue for new messages, retrieves them, and processes them. There are a couple of important things to know about the way the queue service works in Azure. First, you reference a queue by name, and multiple role instances can share a single queue. Second, there is no concept of a typed message; you construct a message from either a string or a byte array. An individual message can be no more than 64 kilobytes (KB) in size.
https://msdn.microsoft.com/en-gb/library/ff803365.aspx
http://azure.microsoft.com/en-gb/documentation/articles/cloud-services-dotnet-multi-tier-app-using-service-bus-queues/

QUESTION 12
You are designing an Azure application that will use a worker role. The worker role will create temporary files. You need to minimize storage transaction charges. Where should you create the files?

A.    In Azure local storage
B.    In Azure Storage page blobs
C.    On an Azure Drive
D.    In Azure Storage block blobs

Answer: A
Explanation:
http://blog.codingoutloud.com/2011/06/12/azure-faq-can-i-write-to-the-file-system-on-windows-azure/
http://www.intertech.com/Blog/windows-azure-local-file-storage-how-to-guide-and-warnings/

QUESTION 13
You are designing an Azure web application. The application uses one worker role. It does not use SQL Database. You have the following requirements:
– Maximize throughput and system resource availability
– Minimize downtime during scaling
You need to recommend an approach for scaling the application. Which approach should you recommend?

A.    Increase the role instance size.
B.    Set up horizontal partitioning.
C.    Increase the number of role instances.
D.    Set up vertical partitioning.

Answer: C
Explanation:
http://azure.microsoft.com/en-gb/documentation/articles/cloud-services-how-to-scale/

QUESTION 14
You are evaluating an Azure application. The application includes the following elements:
– A web role that provides the ASP.NET user interface and business logic
– A single SQL database that contains all application data
Each webpage must receive data from the business logic layer before returning results to the client. Traffic has increased significantly. The business logic is causing high CPU usage. You need to recommend an approach for scaling the application. What should you recommend?

A.    Store the business logic results in Azure Table storage.
B.    Vertically partition the SQL database.
C.    Move the business logic to a worker role.
D.    Store the business logic results in Azure local storage.

Answer: C

QUESTION 15
You are planning an upgrade strategy for an existing Azure application. Multiple instances of the application run in Azure. The management team is concerned about application downtime, due to a business service level agreement (SLA). You are evaluating which change in your environment will require downtime. You need to identify the changes to the environment that will force downtime. Which change always requires downtime?

A.    Adding an HTTPS endpoint to a web role
B.    Upgrading the hosted service by deploying a new package
C.    Changing the value of a configuration setting
D.    Changing the virtual machine size

Answer: A
Explanation:
http://blog.toddysm.com/2010/06/re-deploying-your-windows-azure-service-without-incurring-downtime.html

QUESTION 16
You are designing an Azure application that processes graphical image files. The graphical Images are processed in batches by remote applications that run on multiple servers. You have the following requirements:
– The application must remain operational during batch-processing operations.
– Users must be able to roll back each image to a previous version.
You need to ensure that each remote application has exclusive access to an image while the application processes the image. Which type of storage should you use to store the images?

A.    Table service
B.    Queue service
C.    Blob service
D.    A single Azure VHD that is attached to the web role

Answer: C
Explanation:
http://justazure.com/azure-blob-storage-part-8-blob-leases/
http://justazure.com/azure-blob-storage-part-7-snapshots/

QUESTION 17
You are designing an Azure application that stores data. You have the following requirements:
– The data storage system must support storing more than 500 GB of data.
– Data retrieval must be possible from a large number of parallel threads.
– Threads must not block each other.
You need to recommend an approach for storing data. What should you recommend?

A.    Azure Notification Hubs
B.    A single SQL database in Azure
C.    Azure Queue storage
D.    Azure Table storage

Answer: D
Explanation:
https://msdn.microsoft.com/en-us/library/azure/jj553018.aspx

QUESTION 18
You are designing a Windows Azure application. The application includes processes that communicate by using Windows Communications Foundation (WCF) services. The WCF services must support streaming. You need to recommend a host for the processes and a WCF binding. Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)

A.    Host the processes in web roles.
B.    Host the processes in worker roles.
C.    Use NetTcpBinding for the WCF services.
D.    Use WSHttpBinding for the WCF services.

Answer: BC

QUESTION 19
You are designing a Windows Azure application. Messages will be placed into a Windows Azure Queue and then processed by a worker role. There is no requirement for adherence to the Windows Azure Service Level Agreement (SLA). You need to recommend an approach for concurrently processing messages while minimizing compute cost. What should you recommend?

A.    A single role instance that processes messages individually
B.    A single role instance with multithreaded request processing
C.    Multiple role instances that process messages individually
D.    Multiple role instances, each with multithreaded request processing

Answer: B

QUESTION 20
You are designing a Windows Azure application that will use a worker role. The worker role will create temporary files. You need to recommend an approach for creating the temporary files that minimizes storage transactions. What should you recommend?

A.    Create the files on a Windows Azure Drive.
B.    Create the files in Windows Azure local storage.
C.    Create the files in Windows Azure Storage page blobs.
D.    Create the files in Windows Azure Storage block blobs.

Answer: B


http://www.passleader.com/70-534.html

[Pass Ensure VCE Dumps] Practice PassLeader New 143q 70-534 Dumps To Pass Exam Quickly (21-40)

$
0
0

100% Pass Ensure 70-534 Exam Dumps: PassLeader provides the newest 70-534 dumps updated in recent days with total 143q exam questions, it is the best study materials for preparing 70-534 certification exams. PassLeader’s 70-534 exam questions will offer you the latest questions and answers with free VCE and PDF file to download, which will help you 100% passing 70-534 exam. And PassLeader also supply the newest free version VCE Player now!

keywords: 70-534 exam,143q 70-534 exam dumps,143q 70-534 exam questions,70-534 pdf dumps,70-534 vce dumps,70-534 practice test,70-534 study guide,Architecting Microsoft Azure Solutions Exam

QUESTION 21
You have business services that run on an on-premises mainframe server. You must provide an intermediary configuration to support existing business services and Azure. The business services cannot be rewritten. The business services are not exposed externally. You need to recommend an approach for accessing the business services. What should you recommend?

A.    Connect to the on-premises server by using a custom service in Azure.
B.    Expose the business services to the Azure Service Bus by using a custom service that uses relay binding.
C.    Expose the business services externally.
D.    Move all business service functionality to Azure.

QUESTION 22
You design an Azure web application. The web application is accessible by default as a standard cloudapp.net URL. You need to recommend a DNS resource record type that will allow you to configure access to the web application by using a custom domain name. Which DNS record type should you recommend?

A.    SRV
B.    MX
C.    CNAME
D.    A

Answer: C
Explanation:
http://azure.microsoft.com/en-gb/documentation/articles/cloud-services-custom-domain-name/

QUESTION 23
A company hosts a website and exposes web services on the company intranet. The intranet is secured by using a firewall. Company policies prohibit changes to firewall rules. Devices outside the firewall must be able to access the web services. You need to recommend an approach to enable inbound communication. What should you recommend?

A.    The Azure Access Control Service
B.    Windows Azure Pack
C.    The Azure Service Bus
D.    A web service in an Azure role that relays data to the internal web services

Answer: C
Explanation:
http://azure.microsoft.com/en-gb/documentation/articles/cloud-services-dotnet-hybrid-app-using-service-bus-relay/
https://brosteins.com/2015/02/13/accessing-internal-data-from-mobile-apps/

QUESTION 24
You are designing an Azure application. The application includes services hosted in different geographic locations. The service locations may change. You must minimize the cost of communication between services. You need to recommend an approach for data transmission between your application and Azure services. The solution must minimize administrative effort. What should you recommend?

A.    Azure Table storage
B.    Service Bus
C.    Service Management API
D.    Azure Queue storage

Answer: B
Explanation:
https://msdn.microsoft.com/library/azure/hh767287.aspx

QUESTION 25
You are designing a distributed application for Azure. The application must securely integrate with on-premises servers. You need to recommend a method of enabling Internet Protocol security (IPsec)-protected connections between on-premises servers and the distributed application. What should you recommend?

A.    Azure Access Control
B.    Azure Content Delivery Network (CDN)
C.    Azure Service Bus
D.    Azure Site-to-Site VPN

Answer: D
Explanation:
https://msdn.microsoft.com/en-us/library/azure/dn133798.aspx
http://azure.microsoft.com/en-gb/documentation/articles/virtual-networks-create-site-to-site-cross-premises-connectivity/

QUESTION 26
A company has 10 on-premises SQL databases. The company plans to move the databases to SQL Server 2012 that runs in Azure Infrastructure-as-a-Service (IaaS). After migration, the databases will support a limited number of Azure websites in the same Azure Virtual Network. You have the following requirements:
– You must restore copies of existing on-premises SQL databases to the SQL servers that run in Azure IaaS.
– You must be able to manage the SQL databases remotely.
– You must not open a direct connection from all of the machines on the on-premises network to Azure.
– Connections to the databases must originate from only five Windows computers.
– You need to configure remote connectivity to the databases.
Which technology solution should you implement?

A.    Azure Virtual Network site-to-site VPN
B.    Azure Virtual Network multi-point VPN
C.    Azure Virtual Network point-to-site VPN
D.    Azure ExpressRoute

Answer: C
Explanation:
https://msdn.microsoft.com/library/azure/dn133792.aspx

QUESTION 27
You have several virtual machines (VMs) that run in Azure. You also have a single System Center 2012 R2 Configuration Manager (SCCM) primary site on-premises. You have the following requirements:
– All VMs must run on the same virtual network.
– Network traffic must be minimized between the on-premises datacenter and Azure.
– The solution minimize complexity.
You need to use SCCM to collect inventory and deploy software to Azure VMs. What should you do first?

A.    Configure client push for the Azure virtual network.
B.    Enable and configure Operations Insights in Azure.
C.    Install a cloud distribution point on an Azure VM.
D.    Install a secondary site underneath the primary site onto an Azure VM.

Answer: C
Explanation:
http://www.aidanfinn.com/?p=16047

QUESTION 28
You are running a Linux guest in Azure Infrastructure-as-a-Service (IaaS). You must run a daily maintenance task. The maintenance task requires native BASH commands. You need to configure Azure Automation to perform this task. Which three actions should you perform? Each correct answer presents part of the solution.

A.    Create an automation account.
B.    Create an Orchestrator runbook.
C.    Create an asset credential.
D.    Run the Invoke-Workflow Azure PowerShell cmdlet.
E.    Import the SSH PowerShell Module.

Answer: ACE
Explanation:
http://azure.microsoft.com/en-gb/documentation/articles/automation-create-runbook-from-samples/
http://channel9.msdn.com/Shows/Azure-Friday/Azure-Automation-104-managing-Linux-and-creating-Modules-with-Joe-Levy
http://azure.microsoft.com/blog/2014/07/29/getting-started-with-azure-automation-automation-assets-2/

QUESTION 29
A company has multiple Azure subscriptions. It plans to deploy a large number of virtual machines (VMs) into Azure. You install the Azure PowerShell module, but you are unable connect to all of the company’s Azure subscriptions. You need to automate the management of the Azure subscriptions. Which two Azure PowerShell cmdlets should you run?

A.    Get-AzurePublishSettingsFile
B.    Import-AzurePublishSettingsFile
C.    Add-AzureSubscription
D.    Import-AzureCertificate
E.    Get-AzureCertificate

Answer: AB
Explanation:
https://msdn.microsoft.com/en-us/library/dn385850%28v=nav.70%29.aspx

QUESTION 30
Contoso, Ltd., uses Azure websites for public-facing customer websites. The company has a mobile app that requires customers sign in by using a Contoso customer account. Customers must be able to sign on to the websites and mobile app by using a Microsoft, Facebook, or Google account. All transactions must be secured in-transit regardless of device. You need to configure the websites and mobile app to work with external identity providers. Which three actions should you perform? Each correct answer presents part of the solution.

A.    Request a certificate from a domain registrar for the website URL, and enable TLS/SSL.
B.    Configure IPsec for the websites and the mobile app.
C.    Configure the KerberosTokenProfile 1.1 protocol.
D.    Configure OAuth2 to connect to an external authentication provider.
E.    Build an app by using MVC 5 that is hosted in Azure to provide a framework for the underlying authentication.

Answer: ADE
Explanation:
http://www.asp.net/mvc/overview/security/create-an-aspnet-mvc-5-app-with-facebook-and-google-oauth2-and-openid-sign-on


http://www.passleader.com/70-534.html

QUESTION 31
You are designing a solution that will interact with non-Windows applications over unreliable network connections. You have a security token for each non-Windows application. You need to ensure that non-Windows applications retrieve messages from the solution. Where should you retrieve messages?

A.    An Azure Queue
B.    The Azure Service Bus Queue
C.    An Azure blob storage container that has a private access policy
D.    Azure Table storage

Answer: B
Explanation:
http://azure.microsoft.com/en-gb/documentation/articles/fundamentals-service-bus-hybrid-solutions/

QUESTION 32
You are the administrator for a company named Contoso, Ltd. Contoso also has an Azure subscription and uses many on-premises Active Directory products as roles in Windows Server including the following:
– Active Directory Domain Services (AD DS)
– Active Directory Certificate Services (AD CS)
– Active Directory Rights Management Services (AD RMS) Active Directory Lightweight Directory Services (AD LDS) Active Directory Federation Services (AD FS).
Contoso must use the directory management services available in Azure Active Directory. You need to provide information to Contoso on the similarities and differences between Azure Active Directory and the Windows Server Active Directory family of services. Which feature does Azure Active Directory and on-premises Active Directory both support?

A.    Using the GraphAPI to query the directory
B.    Issuing user certificates
C.    Supporting single sign-on (SSO)
D.    Querying the directory with LDAP

Answer: C
Explanation:
http://justazure.com/azure-active-directory-part-5-graph-api/
http://windowsitpro.com/azure/azure-active-directory-vs-premises-active-directory
https://technet.microsoft.com/en-gb/windowsserver/dd448613.aspx?f=255&MSPPError=-2147217396

QUESTION 33
A company has a very large dataset that includes sensitive information. The dataset is over 30 TB in size. You have a standard business-class ISP internet connection that is rated at 100 megabits/second. You have 10 4-TB hard drives that are approved to work with the Azure Import/Export Service. You need to migrate the dataset to Azure. The solution must meet the following requirements:
– The dataset must be transmitted securely to Azure.
– Network bandwidth must not increase.
– Hardware costs must be minimized.
What should you do?

A.    Prepare the drives with the Azure Import/Export tool and then create the import job.
Ship the drives to Microsoft via a supported carrier service.
B.    Create an export job and then encrypt the data on the drives by using the Advanced
Encryption Standard (AES). Create a destination Blob to store the export data.
C.    Create an import job and then encrypt the data on the drives by using the Advanced
Encryption Standard (AES). Create a destination Blob to store the import data.
D.    Prepare the drives by using Sysprep.exe and then create the import job.
Ship the drives to Microsoft via a supported carrier service.

Answer: A
Explanation:
http://azure.microsoft.com/en-gb/documentation/articles/storage-import-export-service/

QUESTION 34
Hotspot Question
You have an Azure website that runs on several instances. You have a WebJob that provides additional functionality to the website. The WebJob must run on all instances of the website. You need to ensure that the WebJob runs even when the website is idle for long periods of time. How should you create and configure the WebJob object? To answer, select the appropriate options in the answer area.

Answer:

Explanation:
http://azure.microsoft.com/en-us/documentation/articles/web-sites-create-web-jobs/

QUESTION 35
Drag and Drop Question
You have a website that displays text, pictures, video files, and audio files. The website processes requests from countries and regions all over the world. You plan to migrate the website to the Azure platform. The website has the following requirements:
– Encode, store, and stream audio and video at scale.
– Load-balance communications with the website instance that is closest to the user’s location.
– Deliver content with high-bandwidth and low latency.
You need to recommend the technologies to implement the solution. Which technologies should you recommend? To answer, drag the appropriate technology to the correct requirement. Each technology 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:
http://azure.microsoft.com/en-gb/services/media-services/
http://azure.microsoft.com/en-gb/services/

QUESTION 36
You are designing a Windows Azure application that will use Windows Azure Table storage. The application will allow teams of users to collaborate on projects. Each user is a member of only one team. You have the following requirements:
– Ensure that each user can efficiently query records related to his or her team’s projects.
– Minimize data access latency.
You need to recommend an approach for partitioning table storage entities. What should you recommend?

A.    Partition by user.
B.    Partition by team.
C.    Partition by project.
D.    Partition by the current date.

Answer: B

QUESTION 37
You are designing a Windows Azure application that will store data in two SQL Azure databases. The application will insert data in both databases as part of a single logical operation. You need to recommend an approach for maintaining data consistency across the databases. What should you recommend?

A.    Execute database calls on parallel threads.
B.    Wrap the database calls in a single transaction scope.
C.    Use Microsoft Distributed Transaction Coordinator (MSDTC).
D.    Handle errors resulting from the database calls by using compensatory logic.

Answer: D

QUESTION 38
You are designing a Windows Azure application. The application includes two web roles and three instances of a worker role. The web roles will send requests to the worker role through one or more Windows Azure Queues. You have the following requirements:
– Ensure that each request is processed exactly one time.
– Minimize the idle time of each worker role instance.
– Maximize the reliability of request processing.
You need to recommend a queue design for sending requests to the worker role. What should you recommend?

A.    Create a single queue.
Send requests on the single queue.
B.    Create a queue for each web role.
Send requests on all queues at the same time.
C.    Create a queue for each worker role instance.
Send requests on each worker queue in a round robin.
D.    Create a queue for each combination of web roles and worker role instances.
Send requests to all worker role instances based on the sending web role.

Answer: A

QUESTION 39
Drag and Drop Question
You need to automate tasks with Azure by using Azure PowerShell workflows. How should you complete the Azure PowerShell script? To answer, drag the appropriate cmdlet to the correct location. Each cmdlet 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:
https://gallery.technet.microsoft.com/scriptcenter/How-to-use-workflow-cd57324f

QUESTION 40
Hotspot Question
A company uses Azure for several virtual machine (VM) and website workloads. The company plans to assign administrative roles to a specific group of users. You have a resource group named GROUP1 and a virtual machine named VM2. The users have the following responsibilities:

You need to assign the appropriate level of privileges to each of the administrators by using the principle of least privilege. What should you do? To answer, select the appropriate target objects and permission levels in the answer area.

Answer:

Explanation:
http://azure.microsoft.com/en-us/documentation/articles/role-based-access-controlconfigure/


http://www.passleader.com/70-534.html

[New Exam Dumps] Best 717q PassLeader 350-018 Exam Dumps Help Passing Exam Easily

$
0
0

New Updated 350-018 Exam Questions from PassLeader 350-018 PDF dumps! Welcome to download the newest PassLeader 350-018 VCE dumps: http://www.passleader.com/350-018.html (717 Q&As)

Keywords: 350-018 exam dumps, 350-018 exam questions, 350-018 VCE dumps, 350-018 PDF dumps, 350-018 practice tests, 350-018 study guide, 350-018 braindumps, CCIE Security Written Exam, v4.0

NEW QUESTION 1
Refer to the exhibit. Which three descriptions of the configuration are true? (Choose three)

A.    The tunnel encapsulates multicast traffic.
B.    The tunnel provides data confidentiality.
C.    This tunnel is a point-to-point GRE tunnel.
D.    The configuration is on the NHS.
E.    The tunnel is not providing peer authentication.
F.    The tunnel IP address represents the NBMA address.
G.    The configuration is on the NHC.

Answer: ABD

NEW QUESTION 2
Which statement about the fragmentation of IPsec packets in routers is true?

A.    By default, the router knows the IPsec overhead to add to the packet, performs a lookup if the packet will exceed egress physical interface IP MTU after encryption, then fragments the packet before encrypting and separately encrypts the resulting IP fragments.
B.    By default if the packet size exceeds MTU of the egress physical interface, it will be dropped.
C.    By default if the packet size exceeds MTU of ingress physical interface, it will be fragmented and sent without encryption.
D.    By default, the IP packets that need encryption are first encrypted with ESP, if the resulting encrypted packet exceeds the IP MTU on the egress physical interface, the the encrypted packet is fragmented before being sent.

Answer: A

NEW QUESTION 3
Which two statements about ISO 27001 are true? (Choose two)

A.    It was formerly known as BS7799-2.
B.    It is an Information Security Management Systems specification.
C.    It is an ISO 17799 code of practice.
D.    It is a code of practice for Informational Social Management.
E.    It is closely aligned to ISO 22000 standards.

Answer: AB

NEW QUESTION 4
Depending on configuration, which two behaviors can the ASA classifier exhibit when it receives unicast traffic on an interface that is shared by multiple contexts? (Choose two)

A.    It is classified using the destination address of the packet using the routing table.
B.    It is classified using the destination address of the packet using the NAT table.
C.    It is classified by copying and sending the packet to all the contexts.
D.    It is classified using the destination MAC address of the packet.
E.    It is classified using the destination address of the packet using the connection table.

Answer: BD

NEW QUESTION 5
Refer to the exhibit. Which configuration prevents R2 from becoming a PIM neighbor with R1?

A.    access-list 10 deny 192.168.1.2 0.0.0.0
!
Interface gi0/0
ip pim neighbor-filter 10
B.    access-list 10 deny 192.168.1.2 0.0.0.0
!
Interface gi0/0
ip pim neighbor-filter 1
C.    access-list 10 deny 192.168.1.2 0.0.0.0
!
Interface gi0/0
ip igmp access-group 10
D.    access-list 10 permit 192.168.1.2 0.0.0.0
!
Interface gi0/0
ip pim neighbor-filter 10

Answer: A

NEW QUESTION 6
Which statement is true about the PKI deployment using Cisco IOS devices?

A.    During the enrollment, CA or RA signs the client certificate request with it’s public key.
B.    RA is capable to publish the CRLs.
C.    Certificate Revocation is not supported by SCEP protocol.
D.    RA is used for accepting the enrollment requests.
E.    Peers use private keys in their certificates to negotiate IPSec SAs to establish the secure channel.

Answer: D

NEW QUESTION 7
Refer to the exhibit. Which two statements correctly describe the debug output? (Choose two)

A.    The message is observed on the NHS
B.    The NHRP hold time is 3 hours
C.    The local non-routable address is 20.10.10.3
D.    The message is observed on the NHC
E.    The remote routable address 91.91.91.1
F.    The remote VPN address is 180.10.10.1

Answer: DF

NEW QUESTION 8
Which statement about the Cisco Secure ACS Solution Engine TACACS+ AV pair is true?

A.    AV pairs are of two type: sting and integer.
B.    AV pairs must be enabled only on Cisco Secure ACS for successful implementation.
C.    AV pairs are only string values.
D.    The Cisco Secure ACS Solution Engine does not support accounting AV pairs.

Answer: C

NEW QUESTION 9
Of which IPS application is Event Store a component?

A.    MainApp
B.    InterfaceApp
C.    AuthenticationApp
D.    NotificationApp
E.    SensorApp

Answer: A

NEW QUESTION 10
When attempting to use basic HTTP authentication a client, which type of HTTP message should the server use?

A.    HTTP 302 with an Authenticate header
B.    HTTP 200 with a WWW-Authenticate header
C.    HTTP 401 with a WWW-Authenticate header
D.    HTTP 407

Answer: C

NEW QUESTION 11
In traceroute, which ICMP message indicates that the packet is dropped by a router in the path?

A.    Type 3, Code 1
B.    Type 11, Code 0
C.    Type 5, Code 1
D.    Type 3, Code 3
E.    Type 11, Code 1

Answer: B

NEW QUESTION 12
……


Download the newest PassLeader 350-018 dumps from passleader.com now! 100% Pass Guarantee!

350-018 PDF dumps & 350-018 VCE dumps: http://www.passleader.com/350-018.html (717 Q&As)

[Pass Ensure VCE Dumps] PassLeader Free New Update 70-534 Exam Questions Collection (41-60)

$
0
0

Where Download The 100% Valid 70-534 Exam Dumps? PassLeader now is offering the newest and valid 143q 70-534 exam questions for preparing 70-534 exam, we ensure our new version 143q 70-534 pdf dumps and vce dumps are 100% valid for passing 70-534 exam, because PassLeader 70-534 PDF dumps and VCE dumps have been updated with the newest 70-534 questions and the 70-534 dumps have been corrected with right questions and answers. Now visit passleader.com to get the newest 143q 70-534 practice tests with free VCE Player!

keywords: 70-534 exam,143q 70-534 exam dumps,143q 70-534 exam questions,70-534 pdf dumps,70-534 vce dumps,70-534 practice test,70-534 study guide,Architecting Microsoft Azure Solutions Exam

QUESTION 41
Hotspot Question
Resources must authenticate to an identity provider. You need to configure the Azure Access Control service. What should you recommend? To answer, select the appropriate responses for each requirement in the answer area.

QUESTION 42
Drag and Drop Question
Contoso, Ltd., uses Azure websites for their company portal sites. Admin users need enough access to effectively perform site monitoring or management tasks. You need to grant admin access to a group of 10 users. How should you configure the connection? To answer, drag the role or object to the correct connection setting. Each item 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:
http://azure.microsoft.com/blog/2015/01/05/rbac-and-azure-websites-publishing/

QUESTION 43
Drag and Drop Question
You are migrating Active Directory Domain Services (AD DS) domains to Azure. You need to recommend the least complex directory synchronization solution. What should you recommend? To answer, drag the appropriate solution to the correct client requirement. Each solution 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:
https://msdn.microsoft.com/en-us/library/azure/dn246918.aspx?f=255&MSPPError=-2147217396
http://blogs.office.com/2014/04/15/synchronizing-your-directory-with-office-365-is-easy/
http://blogs.office.com/2014/05/13/choosing-a-sign-in-model-for-office-365/

QUESTION 44
Drag and Drop Question
You have a web application on Azure. The web application does not employ Secure Sockets Layer (SSL). You need to enable SSL for your production deployment web application on Azure. 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:

Explanation:
http://azure.microsoft.com/en-gb/documentation/articles/cloud-services-configure-sslcertificate/

QUESTION 45
You are designing a plan for testing a Windows Azure service. The service runs in the development fabric but fails on Windows Azure. You need to recommend an approach for identifying errors that occur when the service runs on Windows Azure. What should you recommend?

A.    Attach a debugger to the Windows Azure role instance.
B.    Analyze debugging information captured by Windows Azure Diagnostics.
C.    Modify the service configuration for the Windows Azure role to access development storage.
D.    Analyze debugging information written to the output window of the Windows Azure role instance.

Answer: B

QUESTION 46
You are designing a Windows Azure web application. The application will be accessible at a standard cloudapp.net URL. You need to recommend a DNS resource record type that will allow you to configure access to the application through a custom domain name. Which type should you recommend?

A.    A
B.    CNAME
C.    MX
D.    SRV

Answer: B

QUESTION 47
You are designing a plan to migrate an existing application to Windows Azure. The application currently resides on a server that has 20 GB of hard disk space. You need to recommend the smallest compute instance size that provides local storage equivalent to that of the existing server. Which size should you recommend?

A.    ExtraSmall
B.    ExtraLarge
C.    Small
D.    Large

Answer: A

QUESTION 48
An application currently resides on an on-premises virtual machine that has 2 CPU cores, 4 GB of RAM, 20 GB of hard disk space, and a 10 megabit/second network connection. You plan to migrate the application to Azure. You have the following requirements:
– You must not make changes to the application.
– You must minimize the costs for hosting the application.
You need to recommend the appropriate virtual machine instance type. Which virtual machine tier should you recommend?

A.    Network Optimized (A Series)
B.    General Purpose Compute, Basic Tier (A Series)
C.    General Purpose Compute, Standard Tier (A Series)
D.    Optimized Compute (D Series)

Answer: B
Explanation:
http://azure.microsoft.com/en-us/pricing/details/virtual-machines/

QUESTION 49
You are designing an Azure web application that includes many static content files. The application is accessed from locations all over the world by using a custom domain name. You need to recommend an approach for providing access to the static content with the least amount of latency. Which two actions should you recommend? Each correct answer presents part of the solution.

A.    Place the static content in Azure Table storage.
B.    Configure a CNAME DNS record for the Azure Content Delivery Network (CDN) domain.
C.    Place the static content in Azure Blob storage.
D.    Configure a custom domain name that is an alias for the Azure Storage domain.

Answer: BC
Explanation:
https://github.com/Azure/azure-content/blob/master/articles/cdn-map-content-to-custom-domain.md
https://www.simple-talk.com/cloud/development/using-the-windows-azure-content-delivery-network/

QUESTION 50
You are designing an Azure development environment. Team members learn Azure development techniques by training in the development environment. The development environment must auto scale and load balance additional virtual machine (VM) instances. You need to recommend the most cost-effective compute-instance size that allows team members to work with Azure in the development environment. What should you recommend?

A.    Azure A1 standard VM Instance
B.    Azure A2 basic VM Instance
C.    Azure A3 basic VM Instance
D.    Azure A9 standard VM Instance

Answer: A
Explanation:
http://azure.microsoft.com/en-us/pricing/details/virtual-machines/


http://www.passleader.com/70-534.html

QUESTION 51
You are designing an Azure application that provides online backup storage for hundreds of media files. Each file is larger than 1GB. The data storage solution has the following requirements:
– It must be capable of storing an average of 1TB of data for each user.
– It must support sharing of data between all Windows Azure instances.
– It must provide random read/write access.
You need to recommend a durable data storage solution. What should you recommend?

A.    Azure Drive
B.    Azure Page Blob service
C.    Azure Block Blob service
D.    Local storage on an Azure instance

Answer: D

QUESTION 52
You are designing an Azure web application. All users must authenticate by using Active Directory Domain Services (AD DS) credentials. You need to recommend an approach to enable single sign-on to the application for domain-authenticated users. Which two actions should you recommend? Each correct answer presents part of the solution.

A.    Use Forms authentication to generate claims.
B.    Use the SQL membership provider in the web application.
C.    Use Windows Identity Foundation in the web application.
D.    Use Active Directory Federation Services (AD FS) to generate claims.

Answer: AD

Case Study 2 – Trey Research (Question 53 – Question 57)
Background
Overview
Trey Research conducts agricultural research and sells the results to the agriculture and food industries. The company uses a combination of on-premises and third-party server clusters to meet its storage needs. Trey Research has seasonal demands on its services, with up to 50 percent drops in data capacity and bandwidth demand during low-demand periods. They plan to host their websites in an agile, cloud environment where the company can deploy and remove its websites based on its business requirements rather than the requirements of the hosting company. A recent fire near the datacenter that Trey Research uses raises the management team’s awareness of the vulnerability of hosting all of the company’s websites and data at any single location. The management team is concerned about protecting its data from loss as a result of a disaster.
Websites
Trey Research has a portfolio of 300 websites and associated background processes that are currently hosted in a third-party datacenter. All of the websites are written in ASP.NET, and the background processes use Windows Services. The hosting environment costs Trey Research approximately S25 million in hosting and maintenance fees.
Infrastructure
Trey Research also has on-premises servers that run VMs to support line-of-business applications. The company wants to migrate the line-of-business applications to the cloud, one application at a time. The company is migrating most of its production VMs from an aging VMWare ESXi farm to a Hyper-V cluster that runs on Windows Server 2012.
Applications
DistributionTracking
Trey Research has a web application named Distribution!racking. This application constantly collects realtime data that tracks worldwide distribution points to customer retail sites. This data is available to customers at all times. The company wants to ensure that the distribution tracking data is stored at a location that is geographically close to the customers who will be using the information. The system must continue running in the event of VM failures without corrupting data. The system is processor intensive and should be run in a multithreading environment.
HRApp
The company has a human resources (HR) application named HRApp that stores data in an on-premises SQL Server database. The database must have at feast two copies, but data to support backups and business continuity must stay in Trey Research locations only. The data must remain on-premises and cannot be stored in the cloud. HRApp was written by a third party, and the code cannot be modified. The human resources data is used by all business offices, and each office requires access to the entire database. Users report that HRApp takes all night to generate the required payroll reports, and they would like to reduce this time.
Metrics Tracking
Trey Research has an application named MetricsTracking that is used to track analytics for the DistributionTracking web application. The data MetricsTracking collects is not customer-facing. Data is stored on an on-premises SQL Server database, but this data should be moved to the cloud. Employees at other locations access this data by using a remote desktop connection to connect to the application, but latency issues degrade the functionality. Trey Research wants a solution that allows remote employees to access metrics data without using a remote desktop connection. MetricsTracking was written in-house, and the development team is available to make modifications to the application if necessary. However, the company wants to continue to use SQL Server for MetricsTracking.

Business Requirements
Business Continuity
You have the following requirements:
– Move all customer-facing data to the cloud.
– Web servers should be backed up to geographically separate locations, If one website becomes unavailable, customers should automatically be routed to websites that are still operational.
– Data must be available regardless of the operational status of any particular website.
– The HRApp system must remain on-premises and must be backed up.
– The Met ricsTrac king data must be replicated so that it is locally available to all Trey Research offices.
Auditing and Security
You have the following requirements:
– Both internal and external consumers should be able to access research results.
– Internal users should be able to access data by using their existing company credentials without requiring multiple logins.
– Consumers should be able to access the service by using their Microsoft credentials.
– Applications written to access the data must be authenticated. Access and activity must be monitored and audited.
– Ensure the security and integrity of the data collected from the worldwide distribution points for the distribution tracking application.
Storage and Processing
You have the following requirements:
– Provide real-time analysis of distribution tracking data by geographic location.
– Collect and store large datasets in real-time data for customer use.
– Locate the distribution tracking data as close to the central office as possible to improve bandwidth.
– Co-locate the distribution tracking data as close to the customer as possible based on the customer’s location.
– Distribution tracking data must be stored in the JSON format and indexed by metadata that is stored in a SQL Server database.
– Data in the cloud must be stored in geographically separate locations, but kept with the same political boundaries.

Technical Requirements
Migration
You have the following requirements:
– Deploy all websites to Azure.
– Replace on-premises and third-party physical server clusters with cloud-based solutions.
– Optimize the speed for retrieving exiting JSON objects that contain the distribution tracking data.
– Recommend strategies for partitioning data for load balancing.
Auditing and Security
You have the following requirements:
– Use Active Directory for internal and external authentication.
– Use OAuth for application authentication.
Business Continuity
You have the following requirements:
– Data must be backed up to separate geographic locations.
– Web servers must run concurrent versions of all websites in distinct geographic locations.
– Use Azure to back up the on-premises MetricsTracking data.
– Use Azure virtual machines as a recovery platform for MetricsTracking and HRApp.
– Ensure that there is at least one additional on-premises recovery environment for the HRApp.

QUESTION 53
Drag and Drop Question
You need to recommend a test strategy for the disaster recovery system. What should you do? To answer, drag the appropriate test strategy to the correct business application. Each test strategy 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:

QUESTION 54
Hotspot Question
You need to plan the business continuity strategy. For each requirement, what should you recommend? To answer, select the appropriate option from each list in the answer area.

Answer:

QUESTION 55
Drag and Drop Question
You need to ensure that customer data is secured both in transit and at rest. Which technologies should you recommend? To answer, drag the appropriate technology to the correct security requirement. Each technology 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:

QUESTION 56
You need to configure the distribution tracking application. What should you do?

A.    Map each role to a single upgrade domain to optimize resource utilization.
B.    Design all services as stateless services.
C.    Configure operations to queue when a role reaches its capacity.
D.    Configure multiple worker roles to run on each virtual machine.

Answer: C

QUESTION 57
Hotspot Question
You need to design a data storage strategy for each application. In the table below, identify the strategy that you should use for each application. Make only one selection in each column.

Answer:

Case Study 3 – Contoso, Ltd (Question 58 – Question 62)
Background
Overview
Contoso, Ltd., manufactures and sells golf clubs and golf balls. Contoso also sells golf accessories under the Contoso Golf and Odyssey brands worldwide. Most of the company’s IT infrastructure is located in the company’s Carlsbad, California, headquarters. Contoso also has a sizable third-party colocation datacenter that costs the company USD $30,000 to $40,000 a month. Contoso has other servers scattered around the United States. Contoso, Ltd., has the following goals:
Move many consumer-facing websites, enterprise databases, and enterprise web services to Azure. Improve the performance for customers and resellers who are access company websites from around the world. Provide support for provisioning resources to meet bursts of demand. Consolidate and improve the utilization of website- and database-hosting resources. Avoid downtime, particularly that caused by web and database server updating. Leverage familiarity with Microsoft server management tools.
Infrastructure
Contoso’s datacenters are filled with dozens of smaller web servers and databases that run on under-utilized hardware. This creates issues for data backup. Contoso currently backs up data to tape by using System Center Data Protection Manager. System Center Operations Manager is not deployed in the enterprise. All of the servers are expensive to acquire and maintain, and scaling the infrastructure takes significant time. Contoso conducts weekly server maintenance, which causes downtime for some of its global offices. Special events, such as high-profile golf tournaments, create a large increase in site traffic. Contoso has difficulty scaling the web- hosting environment fast enough to meet these surges in site traffic. Contoso has resellers and consumers in Japan and China. These resellers must use applications that run in a datacenter that is located in the state of Texas, in the United States. Because of the physical distance, the resellers experience slow response times and downtime.

Business Requirements
Management and Performance
Management
– Web servers and databases must automatically apply updates to the operating system and products.
– Automatically monitor the health of worldwide sites, databases, and virtual machines.
– Automatically back up the website and databases. Manage hosted resources by using on-premises tools.
Performance
– The management team would like to centralize data backups and eliminate the use of tapes.
– The website must automatically scale without code changes or redeployment. Support changes in service tier without reconfiguration or redeployment. Site-hosting must automatically scale to accommodate data bandwidth and number of connections.
– Scale databases without requiring migration to a larger server. Migrate business critical applications to Azure. Migrate databases to the cloud and centralize databases where possible.

Business Continuity and Support
Business Continuity
Minimize downtime in the event of regional disasters. Recover data if unintentional modifications or deletions are discovered. Run the website on multiple web server instances to minimize downtime and support a high service level agreement (SLA).
Connectivity
– Allow enterprise web services to access data and other services located on- premises.
– Provide and monitor lowest latency possible to website visitors. Automatically balance traffic among all web servers. Provide secure transactions for users of both legacy and modern browsers. Provide automated auditing and reporting of web servers and databases.
– Support single sign-on from multiple domains.
Development Environment
You identify the following requirements for the development environment:
– Support the current development team’s knowledge of Microsoft web development and SQL Service tools.
– Support building experimental applications by using data from the Azure deployment and on-premises data sources.
– Mitigate the need to purchase additional tools for monitoring and debugging.
– System designers and architects must be able to create custom Web APIs without requiring any coding.
– Support automatic website deployment from source control.
– Support automated build verification and testing to mitigate bugs introduced during builds.
– Manage website versions across all deployments.
– Ensure that website versions are consistent across ail deployments.

Technical Requirement
Management and Performance
Management
– Use build automation to deploy directly from Visual Studio. Use build-time versioning of assets and builds/releases. Automate common IT tasks such as VM creation by using Windows PowerShell workflows.
– Use advanced monitoring features and reports of workloads in Azure by using existing Microsoft tools.
Performance
– Websites must automatically load balance across multiple servers to adapt to varying traffic.
– In production, websites must run on multiple instances. First-time published websites must be published by using Visual Studio and scaled to a single instance to test publishing.
– Data storage must support automatic load balancing across multiple servers. Websites must adapt to wide increases in traffic during special events. Azure virtual machines (VMs) must be created in the same datacenter when applicable.

Business Continuity and Support
Business Continuity
Automatically co-locate data and applications in different geographic locations. Provide real-time reporting of changes to critical data and binaries. Provide real-time alerts of security exceptions. Unwanted deletions or modifications of data must be reversible for up to one month, especially in business critical applications and databases. Any cloud-hosted servers must be highly available.
Enterprise Support
The solution must use stored procedures to access on-premises SQL Server data from Azure. A debugger must automatically attach to websites on a weekly basis. The scripts that handle the configuration and setup of debugging cannot work if there is a delay in attaching the debugger.

QUESTION 58
Drag and Drop Question
You need to deploy the virtual machines to Azure. Which four Azure PowerShell scripts should you run in sequence? To answer, move the appropriate scripts from the list of scripts to the answer area and arrange them in the correct order.

Answer:

QUESTION 59
You need to recommend a solution for publishing one of the company websites to Azure and configuring it for remote debugging. Which two actions should you perform? Each correct answer presents part of the solution.

A.    From Visual Studio, attach the debugger to the solution.
B.    Set the application logging level to Verbose and enable logging.
C.    Set the Web Server logging level to Information and enable logging.
D.    Set the Web Server logging level to Verbose and enable logging.
E.    From Visual Studio, configure the site to enable Debugger Attaching and then publish the site.

Answer: AD

QUESTION 60
Drag and Drop Question
You need to recommend network connectivity solutions for the experimental applications. What should you recommend? To answer, drag the appropriate solution to the correct network connection requirements. Each solution 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:


http://www.passleader.com/70-534.html

Viewing all 1919 articles
Browse latest View live