Microsoft 70-529 Real Exam Questions

TS: Microsoft .NET Framework 2.0 – Distributed Application Development

When the exam begins, you can choose the programming language in which the code segments will appear. The available code languages for this exam are:

  • Microsoft Visual Basic 2005

  • Microsoft Visual C# 2005

1: 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?
A.Configure the server class as a Singleton Server Activated Object (SAO) and check for duplicate client delegate methods before raising the event.
B.Configure the server class as a Client Activated Object (CAO) and override the CreateObjRef method to check for duplicate client delegate methods before raising the event.
C.Configure the server class as a SingleCall Server Activated Object (SAO) and check for duplicate client delegate methods before raising the event.
D.Configure the server class as a Client Activated Object (CAO) and check for duplicate client delegate methods before raising the event.
Correct Answers: A

2: 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?
A.Add the Serializable attribute to the StockPriceServer class and change the event to use one of the standard common language runtime (CLR) delegates.
B.In the common assembly, add an interface that contains the event and a method to raise the event. Implement that interface in the StockPriceServer class and use the interface’s event to register the delegate message on the client computer.
C.Add the event delegate to the common assembly. Implement the Add delegate and the Remove delegate methods of the event in the StockPriceServer class to reference the delegate method in the client application.
D.Raise the event using the BeginInvoke method and pass a reference to the client computer.
Correct Answers: B

3: A Web service exposes a method named GetChart that returns an image. The data used to generate the image changes in one-minute intervals.  You need to minimize the average time per request for CPU processing. What should you do?
A.Set the BufferResponse property on the WebMethod attribute of the GetChart method to True.
B.Set the BufferResponse property on the WebMethod attribute of the GetChart method to False.
C.Set the CacheDuration property on the WebMethod attribute of the GetChart method to 60.
D.Set the CacheDuration property on the WebMethod attribute of the GetChart method to 1.
Correct Answers: C

4: You create a Web service. The Web service must be deployed on a remote Web server. You need to ensure that the deployment does not place the source code for the Web service on the Web server.  What should you do?
A.Move the contents of the development Web site to the Web server.
B.Use the ASP.NET Compilation tool (Aspnet_compiler.exe) to compile the Web service locally. Move the resulting files to the Web server.
C.Add a Class attribute to the @WebService directive. Rebuild the Web service project and deploy it by using the Copy Web Site Wizard.
D.Add a CodeBehind attribute to the @WebService directive. Rebuild the Web service project and deploy it by using the Copy Web Site Wizard.
Correct Answers: B

5: You create a Web service. The method in the Web service maintains session information between calls. When a client invokes the method, the following exception is thrown.
System.Web.Services.Protocols.SoapException: Server was unable to
process request. —> System.NullReferenceException: Object
reference not set to an instance of an object.
You need to ensure that the Web service method can be called without generating an exception. What should you do?
A.Use the WebService.Session object instead of the HttpContext.Session object to access the session variables.
B.Set the EnableSession property of the WebMethod attribute to True.
C.Set the ConformsTo property in the WebServiceBindingAttribute attribute to WsiProvfiles.BasicProfile1_1.
D.Set the AllowAutoRedirect property on the proxy class on the Web service client to True.
Correct Answers: B

6: You use Microsoft Visual Studio 2005 to create a custom Web service discovery system that contains Disco files for your Web services.  You need to have the Disco file for each of your Web services for auditing purposes.  What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
A.Append the Disco parameter to the Web service’s .asmx URL’s querystring and save the returned data.
B.Open the Web service’s Web services description language (WSDL) file and copy the method information into the Disco file for that Web service.
C.Add a reference to the Web service in Visual Studio 2005 and use the generated Disco file.
D.Append the Web services description language (WSDL) parameter to the Web service’s .asmx URL’s querystring and save the returned data.
Correct Answers: A C

7: You create a Web service that will be deployed to a production Web server. You need to ensure that the first Web service request returns a response in the shortest amount of time possible. What should you do?
A.Run the ASP.NET Compilation tool (Aspnet_compiler.exe) on the Web service project. Copy the generated files to the Web server.
B.In the Web.config file, set the batch attribute in the compilation element to True. Deploy the .asmx files and the source code files to the Web server.
C.Set the CodeBehind attribute on the @WebService directive. Deploy the .asmx files and the source code files to the Web server.
D.Build the Web service project on the development platform. Deploy the .asmx files and the contents of all subdirectories to the Web server.
Correct Answers: A

8: 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?
A.Add the _Global_ instance of the Remote Calls/sec counter from the .NET CLR Remoting performance object.
B.Add the MyServer instance of the Remote Calls/sec counter from the .NET CLR Remoting performance object.
C.Add the _Global_ instance of the Total Remote Calls counter from the .NET CLR Remoting performance object.
D.Add the MyServer instance of the Total Remote Calls counter from the .NET CLR Remoting performance object.
Correct Answers: B

9: 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?
A.In the policy file, set the signatureOptions attribute to IncludeAddressing.
B.In the policy file, set the signatureOptions attribute to IncludeSoapBody.
C.Sign the SOAP request with a UserName token that includes a password to allow the SOAP message to be signed again during routing.
D.Sign a SOAP request that encapsulates the initial SOAP request.
Correct Answers: B

10: You have a Web service that is deployed on an unsecured network. You need to implement encryption on the Web service. The implementation must be configurable at run time. What should you do?
A.Write a custom SOAP extension attribute class to encrypt and decrypt the SOAP message. Apply the attribute to the Web service class.
B.Apply Web Services Enhancements (WSE) 3.0 security to the Web service that is configured to use an X.509 certificate with the Sign and Encrypt protection level.
C.Apply Web Services Enhancements (WSE) 3.0 security to the Web service that is configured to use an X.509 certificate with the Sign-Only protection level.
D.Write custom code in each Web method of the Web service that encrypts the data by using the DESCryptoServiceProvider class.
Correct Answers: B

Download  |  Password: certificatexam.com