What should you do?
A Web service application uses Web Services Enhancements (WSE) 3.0. A class named RejectUnknownActorFilter is derived from the SoapFilter class.
The RejectUnknownActorFilter class throws a SoapException exception if the request contains an unexpected actor.
A class defines a policy assertion as follows.
(Line numbers are included for reference only.)
01 public class RequireActorAssertion : PolicyAssertion {
02 public override SoapFilter
03 CreateClientInputFilter(FilterCreationContext context) {
04 return null;
05 }
06 public override SoapFilter
07 CreateClientOutputFilter(FilterCreationContext context) {
08 return null;
09 }
10 public override SoapFilter
11 CreateServiceInputFilter(FilterCreationContext context) {
12 return null;
13 }
14 public override SoapFilter
15 CreateServiceOutputFilter(FilterCreationContext context) {
16 return null;
17 }
18 }
You need to ensure that the Web service rejects any SOAP request that contains an unexpected actor.
Your code must minimize the server resources used to process the request.
What should you do?
What should you do?
An administrator reports that a .NET Framework remoting application named MyServer has poor performance.
You want to observe the application’s performance during a high-activity time period.
You run System Monitor on the computer that is running MyServer.
You need to add the correct performance counter to the details view of System Monitor.
What should you do?
What should you do?
An assembly named SimpleMathLib is deployed to the Bin folder that is under a virtual directory named SimpleMathHost, which is on an IIS server named SERVER1.
The SimpleMathLib assembly contains the following code.
namespace SimpleMath
{
public class SimpleMathClass : MarshalByRefObject
{
public double Add(double x, double y)
{
return x + y;
}
}
}
The Web.config file under the SimpleMathHost virtual directory contains the proper configuration to host SimpleMath as a remoting object.
You write a client Console Application and add a reference to the SimpleMathLib assembly.
You need to ensure that the client Console Application calls the Add method on SERVER1 and returns the correct sum of the parameters to the Console Application.
What should you do?
What should you do?
A Windows service application must host a .NET Framework remoting class named SimpleMathClass.
SimpleMathClass must have the following method, which can be called remotely.
public double Add(double x, double y)
{
return x + y;
}
You need to create the SimpleMathClass class.
What should you do?
What should you do?
You create an assembly named SimpleMathLib.dll.
SimpleMathLib.dll contains a namespace named SimpleMath.
SimpleMath contains a .NET Framework remoting class named SimpleMathClass that inherits from the MarshalByRefObject class.
You deploy the SimpleMathLib assembly to the Bin folder under an IIS server virtual directory named SimpleMathHost that is on a server named Server1.
You need to configure the server application to initialize the SimpleMathClass class so that the class can be called by remoting client applications.
What should you do?
What should you do?
An administrator reports that when a client application runs, the application throws a RemotingException exception with the message:
“Object ‘/40b4b673_e739_43df_abe4_ee269ff67173/0t_g9ytvvi_lgue2i9q5qrni_1.rem’ has been disconnected or does not exist at the server”.
You discover the following information: The object causing the exception is configured as a Client Activated Object (CAO).
The exception is thrown only if the client application is idle for more than five minutes.
If the client application is idle for nine minutes, the client application shuts down and the user is logged out.
You need to ensure that the CAO is available to the client application.
What should you do?
What should you do?
You are an enterprise application developer. You create 10 applications. Your companys application server will host the applications. You are responsible for designing a monitoring solution for the applications.
Your monitoring solution must meet the following criteria:
* The solution must be reusable.
* The solution must aggregate all data into one display.
You need to design a solution to meet the requirements. 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?
What should you do?
You are an enterprise application developer. You create an application that consists of a data access component and a business component. The business component calls the data access component to persist business objects. The Quality Analysis team tests both components and finds errors in the data access component. These errors result in retrieval of wrong data. You need to reduce the errors in your code before the components are retested by the Quality Analysis team.
What should you do?
What should you recommend?
You are an enterprise application developer. Your team has created a distributed application that permits users to generate reports. The reports aggregate data from existing databases. You must move your new application into a test environment. You propose the following criteria:
* Compile the application components in release mode.
* Publish the ASP.NET files to the test Web server.
* Install the serviced components in component services on the application server.
* Backup the development database and restore it on the test database server.
You need to evaluate the proposal and recommend accordingly. What should you recommend?