PrepAway - Latest Free Exam Questions & Answers

Category: 70-554

Exam 70-554: UPGRADE: MCSD Microsoft .NET Skills to MCPD Enterprise Application Developer by Using the Microsoft .NET Framework: Part 2

What should you do?

A client application calls a Web service named Math.
Both the client application and Math are configured with a Web Services Enhancements (WSE) 3.0 policy named Secure to validate anonymous access for certificate security.
A Web reference to the Math Web service is added to the client application’s project using Microsoft Visual Studio 2005.
When the client application is built and executed, a SoapException exception is thrown with the following message.
The security requirements are not met because the security headeris not included in the incoming message.
You need to ensure that the application runs without throwing the SoapException exception.

What should you do?

What should you do?

You are creating a Windows-based application that allows users to store photographs remotely by using a Web service.
Both the Web service and the application are configured to use Web Services Enhancements (WSE) 3.0.
You need to configure the application to ensure that a photograph can be sent to the Web service.

What should you do?

<?xml version="1.0" ?

A Web Services Enhancements (WSE) 3.0 router application uses a referral cache to make routing decisions.
When a client application sends a SOAP message to the WSE router application, the following exception is thrown.

Microsoft.Web.Services3.Addressing.AddressingFault: MessageInformation Header RequiredThe referral cache used by the WSE router application is as follows:

<?xml version=”1.0″ ?>
<r:referrals xmlns:r=”http://schemas.xmlsoap.org/ws/2001/10/referral”>
<r:ref>
<r:for>
<r:exact> http://www.contoso.com/WSERouter/Service.asmx </r:exact>
</r:for>
<r:if />
<r:go>
<r:via> http://www.contoso.com/WSEService/Service.asmx </r:via>
</r:go>
<r:refId> uuid:fa469956-0057-4e77-962a-81c5e292f2ae </r:refId>
</r:ref>
</r:referrals>

You need to ensure that a SOAP message can be sent to the WSE router application without throwing the AddressingFault exception.

What should you do?

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?

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?


Page 32 of 43« First...1020...3031323334...40...Last »