Which two actions should you perform?
You are writing an application that handles the batch processing of user accounts.
The application assigns network identities for users by calling the following Web service method.
[WebMethod]
public string GetNetworkID(string name)
{ …}
The application calls the Web
service using the following code.
(Line numbers are included for reference only.)
01 void ProcessPeople(List<Person> people) {
02 PersonService serviceProxy = new PersonService();
03 serviceProxy.GetNetworkIDCompleted += new
04 GetNetworkIDCompletedEventHandler(GetNetworkIDCompleted);
05 for (int i = 0; i < people.Count;i++) {
06 …
07 }
08 }
09
10 void GetNetworkIDCompleted(object sender,
11 GetNetworkIDCompletedEventArgs e){
12 Person p = null;
13 …
14 p.NetworkID = e.Result;
15 ProcessPerson(p);
16 }
You need to ensure that the application can use the data supplied by the Web service to update each Person instance. Which two actions should you perform? (Each correct answer
presents part of the solution. Choose two.)
What should you do?
A class library named MathLib contains the following code.
public class MathClass : MarshalByRefObject
{
public decimal DoHugeCalculation(int iterations)
{
decimal result;
//Some very lengthy calculations …
return result;
}
}
The MathLib class is hosted in a .NET Framework remoting server application.
A Windows application project running on a client computer contains the following class.
public class MathClient
{
public void ProcessHugeCalculation(int iterations)
{
MathClass cm = new MathClass();
decimal decRes = cm.DoHugeCalculation(iterations);
//process the result …
}
}
The MathClient class must call the MathClass class asynchronously by using remoting.
A callback must be implemented to meet this requirement.
You need to complete the implementation of the MathClient class.
What should you do?
What should you do?
You are writing a .NET Framework remoting client application that must call two remoting servers.
The first server hosts an assembly that contains the following delegate and class definition.
public delegate bool IsValidDelegate(string number, Int16 code);
public class CreditCardValidator : MarshalByRefObject
{
public bool IsValid (string number, Int16 code)
{
//some data access calls that are slow under heavy load …
}
}
The second server hosts an assembly that contains the following delegate and class definition.
public delegate float GetCustomerDiscountDelegate( int customerId);
public class PreferredCustomer
{
public float GetCustomerDiscount(int customerId)
{
//some data access calls that are slow under heavy load …
}
}
You configure the remoting client application to call both server classes remotely.
The amount of time it takes to return these calls varies, and long response times occur during heavy load times.
The processing requires the result from both calls to be returned.
You need to ensure that calls to both remoting servers can run at the same time.
What should you do?
What should you do?
You are converting an application to use .NET Framework remoting.
The server portion of the application monitors stock prices and contains a class named StockPriceServer, which is a Server Activated Object (SAO).
The client computer interacts with the server using a common assembly.
When the server attempts to raise an event on the client computer, the server throws the following exception.System.IO.FileNotFoundException.
You discover that the event delegate is not being called on the client computer. You need to ensure that the server application can raise the event on the client computer.
What should you do?
What should you do?
You create a .NET Framework remoting application that provides stock information to customers.
The server component raises an event on the client computer when certain conditions are met.
You need to ensure the server raises exactly one event for each client application that is registered for the event.
What should you do?
What should you do?
You are writing a Web service application that uses Web Services Enhancements (WSE) 3.0 policies.
The Web service request and response data must be signed.
Routing occurs between the client and server computers, and uses the Action SOAP header of the SOAP messages.
You need to ensure that the SOAP signature is not invalidated when the SOAP message is routed.
What should you do?
What conclusion can you draw?
You work as the Enterprise application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. Your responsibilities at Domain.com include the design and development of application frameworks.
You are currently developing a Microsoft Windows Forms application. You used Microsoft Visual Studio 2005 Team Edition for Software Developers. This Windows Forms application that you are developing, when completed will allow users to access data on the Domain.com mainframe. This data access will happen as follows: A Microsoft .NET Remoting component accesses the mainframe, and the application connects to the Remoting component via Transmission Control Protocol (TCP) channel.
You need to keep in mind that there is a performance requirement that the application should not perform excessive and unnecessary security checks. A performance monitoring solution that will be put in place will consists a measuring the Total Runtime Checks and Stack Walk Depth performance counters in the .NETCLR Security category.
You need to make a decision as to whether the monitoring solution is correct.
What conclusion can you draw?
What should you do?
You work as the Enterprise application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. Your responsibilities at Domain.com include the design and development of application frameworks.
You are currently developing a Microsoft Windows Forms monitoring application for Domain.com. This application is destined to read data in a Microsoft SQL Server 2005 database and display it graphically on a form. All Domain.com users need to be able to:
1. choose the refresh rate for displaying data
2. choose an interval in multiples of one second
To this end you need to reuse a component to meet these requirements without requiring excessive coding.
What should you do?
What should you do?
You work as the Enterprise application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. Your responsibilities at Domain.com include the design and development of applications. Domain.com operates as an Independent Electoral Commission. You are currently developing a voter registration application for Domain.com. Following is a list of the facts that must be taken into account:
1. A voter is associated with one political party.
2. A voter has one mailing address.
3. A mailing address can belong to multiple voters.
4. It is estimated that on average each mailing address can be used by two voters.
5. A voter has two telephone contact numbers.
6. A contact phone number can belong to multiple voters.
7. It is estimated that on average each contact phone number can be used by two voters.
The plan is to design the database schema based on these facts. Now you need to decide on the minimum number of tables that will be required. In your solution you must ensure that it offers the best performance.
What should you do? (Choose the correct amount of tables required.)
What should you do?
You work as the Enterprise application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. Your responsibilities at Domain.com include the design and development of application frameworks. Domain.com operates in the security and surveillance environment. You are currently developing a Microsoft Windows Forms security monitoring system. The application is destined to connect to fifty cameras to record as well as play video. A class named Camera interacts with a physical camera. You make use of the semaphore class to create a resource pool of five camera instances. The business is of such a nature that no more than three Camera instances will be in use at a time. To this end you implement a custom trace listener to send trace messages to a database. In the event of a fourth Camera instance is obtained from the resource pool, you will require to log a message that will read something like:
Only one Camera instance remains in the resource pool. You now need to choose the most appropriate trace level for this message.
What should you do?