Wednesday, April 21, 2010

Microsoft TestInside 70-643 v1 21 by cleitols 87q.vce

Microsoft TestInside 70-643 v1 21 by cleitols 87q.vce 70-643 14-Jun-2008

QUESTION 1
As a software develop at Certkiller Inc. you are creating an XML Web service named HousingService
that exposed two Web methods name SearchHouse and BuyHouses. Prior to deploying the service,
you want to customize the default template that is displayed when a customer makes a request
through the browser.
You create a Web Form named HousingServiceDescription.aspx that is a customized version of the
default template. You place the Web Form in the bin directory of the HousingService project.
The Web Form needs to override the default template when a request is made. You need to ensure
that customers who request HousingService though a browser view HousingServiceDescription.aspx.
What should you do?
A. Create a SOAP extension to redirect the user to HousingServiceDescription.aspx.
B. Set the Namespace property of the WebService attribute to the location of
HousingServiceDescription.aspx.
C. In the Web.config file, enable tracing and the set TraceMode node to
bin\HousingServiceDescription.aspx.
D. In the Web.config file, set the HRef property of the wsdlHelpGenerator node to
bin\HousingServiceDescription.aspx.
Answer: D
Explanation: The wsdlHelpGenerator element specifies the XML Web service Help page (an .aspx file)
that is displayed to a browser when the browser navigates directly to an ASMX XML Web services page


Incorrect Answers
A: Soap extensions are used to inspect or modify a message at specific stages in message processing on
either the client or the server. It is not useful here.
B: We are not interested in defining a name space.
C: We are not interested in enabling tracing.
Reference: .NET Framework General Reference, Element
QUESTION 2
You have a .NET Remoting object named Promotions. The Promotions class allows remote client
applications to add new product promotions to an online catalog application. The Promotions class is
an assembly file named Certkiller .dll.
You have an Internet Information Services (IIS) virtual directory named PromotionsObject. The
Certkiller .dll file is in the PromotionsObject\bin directory. You want to host the Promotions class in
IIS.
What should you do?
A. Create a Web.config file that includes the following code segment:


B. Create a Web.config file that includes the following code segment:

C. Create a Web.config file that includes the following code segment

D. Create a Web.config file that includes the following code segment:

Answer: C
Explanation: The HTTP channel does not require a custom-written listener because IIS provides the
listening functionality. Advantages of using IIS as the HTTP listener include: ease of configuration,
scalability, and process recycling.
Reference: Visual Studio Samples: Fitch and Mather 7.0, .NET Remoting
Incorrect Answers
A, B: These are inadequate since we want to host the application on the IIS server. We must, for example,
configure channels.
D: TCP channel would require development of an extra listener to process the request that enters the
TCP channel.
QUESTION 3
You are creating a .NET Remoting object named PropertyCache. PropertyCache will hold a
Hashtable object or name/value pairs.
A variety of remote client applications will communicate with PropertyCache to set and get property
values. You need to ensure that properties set by one client application are also accessible to other
client applications.
Which two actions should you take? (Each correct answer presents part of the solution. Choose two)
A. Configure PropertyCache to be a client-activated object.
B. Configure PropertyCache to be a server-activated Singleton object. Actualtests.org – The Power of Knowing
C. Configure PropertyCache to be a server-activated SingleCall object.
D. Derive the PropertyCache class from MarshalByRefObject and override InitializeLifetimeService()
to return null.
E. Mark the PropertyCache class with the Serializable attribute.
Implement the ISponsor interface in the PropertyCache class.
F. Implement the ISerializable and ILease interfaces in the PropertyCache class.
Implement ILease.CurrentLeaseTime to return Int32.MaxValue.
Answer: B, D
Explanation: Correct answer should be B, D. E is incorrect because it is not necessary to serialise a
Singleton object class. You only need to inherit it from MarshalByRefObject. Furthermore, D overrides
initializeLifetimeService() to return null to return an object with infinite lifetime. It will solve the object life
time issue that Answer E was trying to resolve through implementing ISponsor.

No comments:

Post a Comment