| Braindumps
of 70-554
UPGRADE: MCSD Microsoft .NET Skills to
MCPD Enterprise Application Developer by
Using the Microsoft .NET Framework: Part 2
Exam
Questions, Answers, Braindumps (70-554)
Hi, Enjoy all the questions help. Questions start
here...........
QUESTION
1
You work as the Microsoft.NET developer at Abc .com.
Abc .com operates as an agency that specializes in
the placement of various breeds of pedigreed animals,
servicing at least ten different countries on two
continents. The Abc .com network consists of a single
Active Directory domain named Abc .com. All servers
in the domain run Windows Server 2003. The development
and deployment of Extensible Markup Language (XML)
Web Services forms part of your responsibilities at
Abc .com. You are currently developing an Extensible
Markup Language (XML) Web Service that will return
biological images in SOAP messages. Due to the size
of these messages, you decided to create a class named
CompressionSoapExtension to compress the SOAP responses.
You thus need to implement the ProcessMessage method
to encrypt the SOAP responses. What should you do?
A. Encrypt the message if the Stage property of the
Soapmessage parameter is set to SoapMessageStage.BeforeDeserialize.
B. Encrypt the message if the Stage property of the
Soapmessage parameter is set to SoapMessageStage.BeforeSerialize.
C. Encrypt the message if the Stage property of the
Soapmessage parameter is set to SoapMessageStage.AfterDeserialize.
D. Encrypt the message if the Stage property of the
Soapmessage parameter is set to SoapMessageStage.AfterSerialize.
Answer: D
Explanation:
You should compress the message if the Stage property
of the SoapMessage instance is set to SOapMessageStage.AfterSerialize.
The Stage property represents the stage in serialization
and deserialization process of a SOAP message. At
this stage, the Web method has been invoked and the
output parameter and return value have been fully
serialized into an XML message. This will allow you
to compress the message before it is sent back to
the Web service client.
Incorrect answers:
A: If you set the Stage property of the SoapMessageStage.BeforeDeserialize,
then the input parameters to a Web method would not
be deserialized into input parameters.
B: If you set the Stage property of the SoapMessageStage.BeforeSerialize,
then the Web method will be invoked, but the output
parameters and return value will not have been serialized
into an XML message.
C: If you set the Stage property of the SoapMessageStage.AfterDeserialize,
then the input parameters to the Web method will be
serialized into input parameters, but the Web method
would not yet have been invoked.
QUESTION
2
You work as the Microsoft.NET developer at Abc .com.
The Abc .com network consists of a single Active Directory
domain named Abc .com. All servers in the domain run
Windows Server 2003. Abc .com operates as a pharmaceutical
company with many branch offices that are located
worldwide. The development and deployment of Extensible
Markup Language (XML) Web Services forms part of your
responsibilities at Abc .com. You have just developed
and deployed an Extensible Markup Language (XML) Web
Service that will allow for the exchange of encrypted
SOAP messages between the different Abc .com branch
offices. The assembly that contains the Web service
also contains a SOAP extension class named EncryptionExtension
that encrypts the SOAP messages. Due to the size of
some of the messages, you implemented a second SOAP
extension class named CompressionExtension that compresses
SOAP messages. This class exists in the SoapUtilities
namespace in an assembly named SoapUtilities.dll You
must modify the Web.config file for the Web service
to ensure that compression occurs after encryption.
What should you do? (Choose the correct configuration
from the given options.)
A. <configuration>
<system.web>
<webServices>
<soapExtensionTypes>
<add type="SoapUtilities.CompressionExtension,SoapUtilities"
Priority="0"
Group="0"/>
</soapExtensionTypes>
</webServices>
</system.web>
</configuration>
B. <configuration>
<system.web>
<webServices>
<soapExtensionTypes>
<add type="SoapUtilities.CompressionExtension,SoapUtilities"
Priority="1"
Group="0"/>
</soapExtensionTypes>
</webServices>
</system.web>
</configuration>
C. <configuration>
<system.web>
<webServices>
<soapExtensionTypes>
<add type="SoapUtilities.CompressionExtension,SoapUtilities"
Priority="1"
Group="1"/>
</soapExtensionTypes>
</webServices>
</system.web>
</configuration>
D. <configuration>
<system.web>
<webServices>
<soapExtensionTypes>
<add type="SoapUtilities.CompressionExtension,SoapUtilities"
Priority="2"
Group="0"/>
</soapExtensionTypes>
</webServices>
</system.web>
</configuration>
Answer: C
Explanation:
You can either apply a SoapExtension-derived attribute
to a Web method or specify the SOAP extension in the
Web.config file when configuring a Web service to
use SOAP extensions. When specified in the Web.config
file, the extension is executed for all Web methods
defined for the Web service. The execution processing
order of SOAP extensions are:
1. All SOAP extensions that are members of group 0
are executed.
2. All SOAP extensions that are specified declaratively
as attributes are executed.
3. All SOAP extensions that are members of group 1
are executed.
Incorrect answers:
A, B, C: You should not set the group number to 0
as it will result in compression to occur before encryption.
QUESTION
3
You work as the Microsoft.NET developer at Abc .com.
The Abc .com network consists of a single Active Directory
domain named Abc .com. All servers in the domain run
Windows Server 2003. The development and deployment
of Microsoft.NET Remoting components forms part of
your responsibilities at Abc .com. You are busy developing
a Microsoft.NET Remoting component that will allow
messages to be sent between client applications. To
this end you are creating an event named MessageReceived.
Message Received is configured to accept two parameters:
1. An Object instance that represents the object that
raised the event.
2. A MessageReceivedEventArgs instance that will contain
the data about the message that was sent.
You need to enable the client applications to receive
details about a message that was sent. You thus need
to code the MessageReceivedEventArgs class accordingly.
What should you do?
A. The MessageReceivedEventArgs class must be derived
from the ServicedComponent.
B. The MessageReceivedEventArgs class must be derived
from the MarshalByRefObject.
C. You should apply the Serializable attribute to
the MessageReceivedEventArgs class.
D. You should apply the NonSerializable attribute
to each of the MessageReceivedEventArgs class members.
Answer: C
Explanation:
When you apply the Serializable attribute to the MessageReceivedEventArgs
class, it will configure the marshal-by-value type.
This type can be created on a remote server, serialized,
and then transported across the remote boundaries
to a remote client.
Incorrect answers:
A: The MessageReceivedEventArgs class should not be
derived from the ServicedComponent as ServicedComponent
derives from MarshalByRefObject and as such are executed
at the server only.
B: The MessageReceivedEventArgs class should not be
derived from the MarshalByRefObject as this will configure
the class as a marshal by reference type. And these
types are executed at the server only.
D: The NonSerializable attribute should not be applied
to each member of the MessageReceivedEventArgs class
as this will prevent the message details from being
serialized.
QUESTION
4
You work as the Microsoft.NET developer at Abc .com.
The Abc .com network consists of a single Active Directory
domain named Abc .com. All servers in the domain run
Windows Server 2003. The development and deployment
of client applications forms part of your responsibilities
at Abc .com. You have received instruction to create
an instance of the PropertyManager class from a client
application. Following are the circumstances that
you need to keep in mind in your attempts to accomplish
the task at hand:
1. A class named PropertyManager exists in an assembly
named PropertyManagement.dll.
2. The class and component are registered with COM+
services.
3. The COM+ application that hosts this class id configured
as a server application.
What should you do? (Choose the correct code segment.)
A. PropertyManager propertyManager =
(PropertyManager)Activator.GetObject(typeof(PropertyManager),"COM+");
B. PropertyManager propertyManager =
(PropertyManager)AppDomain.CurrentDomain.CreateInstanceFrom("PropertyManagement.dll","PropertyMana
C. PropertyManager propertyManager = new PropertyManager();
D. PropertyManager propertyManager =
(PropertyManager)Activator.CreateInstanceFrom("PropertyManagement.dll","PropertyManagement.PropertyM
a
Answer: C
Explanation:
An instance of the PropertyManager class should be
created by calling its constructor. Then the Enterprise
Services infrastructure will return a proxy instance
that you application uses to make calls across application
domain boundaries.
Incorrect answers:
A: The GetObject method of the Activator class should
not be used to create an instance of the PropertyManager
class. This method will require that the remote object
be accessible at a specific URL and COM+ services
do not allow objects to be accessed by URL's.
B: Albeit possible to call the CreateInstanceFrom
method of the AppDomain class, you should not cast
this instance to PropertyManager. It will return an
instance of ObjectHandle and to obtain the real object
you will need to call the Unwrap method of the ObjectHandle
instance.
D: Even though it is possible to call the CreateInstanceFrom
method of the Activator class, you should not cast
this instance to PropertyManager. It will return an
instance of ObjectHandle and to obtain the real object
you will need to call the Unwrap method of the ObjectHandle
instance.
QUESTION 5
You work as the Enterprise application developer at
Abc .com. The Abc .com network consists of a single
Active Directory domain named Abc .com. All servers
in the domain run Windows Server 2003. Your responsibilities
at Abc .com include the support and deployment of
applications. You are currently busy developing an
enterprise solution for Abc .com. The Abc .com network
contains amongst, others two Web servers named Abc
-WS501 and Abc -WS502, as well as a database server
named Abc -DB01 which you intend to use in the deployment
of the solution. Upon completion the solution will
consist of a Microsoft ASP.NET Web application, a
Microsoft .NET Remoting component, an Extensible Markup
Language (XML) Web service, as well as a Microsoft
SQL Server 2005 database. The Microsoft ASP.NET Web
application and the Extensible Markup Language (XML)
Web service make use of the inter-process communication
(IPC) channel for connectivity to the .NET Remoting
component. The .NET Remoting component in turn accesses
data in the database.
Following is the deployment design:
1. Deploy the Microsoft ASP.NET Web application to
Abc -WS501
2. Deploy the Extensible Markup Language (XML) Web
service to Abc -W502
3. Deploy the database to Abc -DB01
Now you need to make a decision as to where the data
access component should be deployed.
What should you do?
A. Identify Abc -WS02 AND Abc -DB01 for data access
component deployment.
B. Identify Abc -WS01 AND Abc -DB01 for data access
component deployment.
C. Identify either Abc -WS01 OR Abc -WS502 for data
access component deployment.
D. Identify both Abc -WS01 AND Abc -WS502 for data
access component deployment.
Answer: D
Explanation:
IPC is being used for connectivity purposes by the
Web application and the Web service. This means that
communication can occur between different application
domains or processes on the same computer only. However,
in this scenario the Web application is deployed to
ABC-WS501 and the Web service is deployed to ABC-W5S502,
thus you should deploy the Microsoft .NET Remoting
component to Abc -WS501 and Abc -WS502.
Incorrect answers:
A: There is no need to deploy the Microsoft .NET Remoting
component to Abc -DB01. The component will be able
to access data from the Microsoft SQL Server 2005
database over the network.
B: There is no need to deploy the Microsoft .NET Remoting
component to Abc -DB01. The component will be able
to access data from the Microsoft SQL Server 2005
database over the network.
C: The Microsoft .NET Remoting component should not
be deployed to either Abc -WS501 OR Abc -WS502. Rather
you need to deploy it to both servers since both the
Web service and the Web application must be allowed
to connect to it via IPC channel.
70-554
|