What should you choose?
You are an enterprise application developer. You create a distributed invoicing solution. Operating requirements state that the memory that is used by the Microsoft Windows-based applications must not exceed a specified value. Technology requirements state that all execution failures must be reported.
The Windows-based application must meet the following criteria:
Alert system administrators when the memory usage reaches a critical value. Alert system administrators when a technical exception occurs. Log processor and disk space usage on all client computers.
You need to select an event management implementation to meet the criteria. What should you choose?
Which code logic should you use?
You are using the ASP.NET membership APIs to manage user accounts for a Web site. The Web.config file contains the definition for the membership provider. After modifying the Web.config file to enable password recovery, you create a PasswordReset.aspx file. You need to enable users to reset their passwords online. The new passwords must be sent to them by e-mail after they have logged on through the Login.aspx page. In addition, users must be required to answer their secret questions before resetting their passwords.
Which code logic should you use?
Which code segment should you use?
You are creating a web service that uses Search Service in SharePoint 2007. The service uses the key word query object. The web service must return results only for the author named John Smith. You need to construct a query for the key word query object.
Which code segment should you use?
What should you do?
You create an application for your business partners to submit purchase orders. The application deserializes XML documents sent by your partners into instances of an object named PurchaseOrder. You need to modify the application so that it collects details if the deserialization process encounters any XML content that fails to map to public members of the PurchaseOrder object.
What should you do?
Which approach should you choose?
You are an enterprise application developer. You create a large-scale, managed application that needs a consistent approach to event logging. The application must format and log events to 20 destinations. Events from 15 sources must be collated onto a single computer. The application must perform the following tasks:
Maintain consistent logging and instrumentation practices, both within an application and across the enterprise.
Ease the learning curve for developers by using a consistent architectural model. Support custom implementations of formatters and event sinks. Generate log entries as discrete events or as part of a traced process.
You need to select an appropriate implementation approach. Which approach should you choose?
which event handler should you write the code?
You create a Web Form. The Web Form allows users to log on to an application. You include a Login control named Login1 on the Web Form. You need to write code in one of Login1’s event handlers. This code must implement your custom logic that validates the user’s credentials.
In which event handler should you write the code?
Which code segment should you insert?
You are creating a Microsoft Office SharePoint Server 2007 web part. You write the following code segment:
01: Public cmdCrawler as Button
02: Protected Overloads OverRides Sub CreateChildControl()
03: cmdCrawler = New Button AS Crawler cmdCrawler.Click, AddressOf CommandCrawl_Click
04: cmdCrawler.Text = “Index”
05: Controls.Add(cmdCrawler)
06: End Sub
07:
08: Public Sub cmdCrawler_Click(ByVal sender AS object, ByVal e as eventArgs)
09: Dim xspContent as Microsoft.Office.Server.Search.Administration.Content = New 12
10: Microsoft.Office.Server.Search.Administration.Content
(SearchContent.Current)
11: …
12: End Sub
You need to ensure that the web part initiates a search crawl of a content source named Patents. Which code segment should you insert?
What should you do?
You create a class library that contains the class hierarchy defined in the following code segment. (Line numbers are included for reference only.)
01 public class Group {
02 public Employee[] Employees;
03 }
04 public class Employee {
05 public string Name;
06 }
07 public class Manager : Employee {
08 public int Level;
09 }
You create an instance of the Group class. You populate the fields of the instance. When you attempt to serialize the instance by using the Serialize method of the XmlSerializer class, you receive InvalidOperationException. You also receive the following error message: “There was an error generating the XML document.” You need to modify the code segment so that you can successfully serialize instances of the Group class by using the XmlSerializer class. You also need to ensure that the XML output contains an element for all public fields in the class hierarchy.
What should you do?
What should you recommend?
You are an enterprise application developer. You design and develop an event logging strategy for a distributed system. The distributed system consists of a Web-based application, a Microsoft Windows service, and several Microsoft Windows-based applications. The event logging strategy
must meet the following requirements:
All system errors are logged and available to a central administration application.
The data is available for historical analysis.
The delivery mechanism is fault-tolerant and reliable. You need to recommend a system-wide event logging strategy. What should you recommend?
What should you do?
You create a Web site with membership and personalization enabled. You must use an existing CRM database for storing the membership information. You need to implement the Membership Provider.
What should you do?