Which two actions should you recommend?
You are an enterprise application developer. You create a component that generates medical documents. Your component is used by multiple document management systems. Users generate documents throughout the entire day and most documents are generated during business hours. You notice that user load is increasing and performance is degrading. You need to identify sections of code on which to focus performance tuning efforts. Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)
What should you do?
A test team plans to conduct performance testing on a Web site that is deployed on a staging server. The test team needs to modify the deployed Web Forms to test different scenarios. You need to deploy the Web site to the staging server without the Web site’s source code files.
What should you do?
Which code segment should you add at line 05?
You need to activate a Microsoft Office 2007 form template named SalesTemplate in a site collection. You write the following code segment:
01: Dim siteColl As New SPSite(“http://companysite”)
02: Dim services As SPServiceCollection = SPFarm.Local.Services
03: For Each service As SPService in services
04: Dim formService As FormService = DirectCast(service, formService)
05:
06: Next
Which code segment should you add at line 05?
Which code segment should you use?
You are developing an application that will deploy by using ClickOnce. You need to test if the application executes properly. You need to write a method that returns the object, which prompts the user to install a ClickOnce application.
Which code segment should you use?
What should you do?
You are an enterprise application developer. You are creating a component that processes loan requests. Your component will be used inside Microsoft Windows Forms client applications. The loan request form is complex and time consuming to complete. Loan data is saved to a Microsoft SQL Server 2005 database. You need to ensure that in case of a system failure the loan officer does not need to re-enter any loan data. What should you do?
What should you do?
Your Web site uses custom Themes. Your Web site must support additional Themes based on the user’s company name. The company name is set when a user logs on to the Web site. The company’s Theme name is stored in a variable named ThemeName. You need to use this variable to dynamically set the Web site’s Theme. What should you do?
Which code segment should you use?
You create a SharePoint Server 2007 application. The application contains a user named UserA. You need to write a code segment to add the user to the user profile store.
Which code segment should you use?
Which attribute should you place on the method?
You are developing a method to call a COM component. You need to use declarative security to explicitly request the runtime to perform a full stack walk. You must ensure that all callers have the required level of trust for COM interop before the callers execute your method.
Which attribute should you place on the method?
What should you do?
You are an enterprise application developer. You are creating a .NET Remoting component. The Version 1.0 of the component is deployed as a well-known server-activated object. The strong- named component is installed into the global assembly cache. Ten distributed applications in your
company utilize the component, and each application has an independent schedule for upgrades and deployment. You add new features to the component. These additions will change the signatures of the public methods on the component. You need to devise a deployment strategy for the component. What should you do?
Which two actions should you perform?
You create a Web Form. The Web Form calls a method as part of its processing. The method takes a long time to process. In addition, the other Web Forms in the ASP.NET Web site are now taking longer to process. You need to decrease the page response times by executing the long running method in parallel to other requests. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)