1.You are an enterprise application developer. You are supporting a smart client application that manages customer data. The customer data is built for offline use. Company representatives use the customer data. The application performs the following steps: The application detects when it is connected to the network. The application synchronizes data by using the server component. Sometimes, data or network issues cause exceptions. In such a situation, the application waits for five minutes before attempting to synchronize again. Representatives can verify a log file for details of what has occurred. The application performs the synchronization process in the following manner: The application finds out if there are remote or local changes to the data. o If there are remote changes, the application gets updates through Web services. o If there are local changes, the application issues updates by using message queues. o Local and remote synchronizations can happen at the same time. In case conflicts occur during data updates to the remote database, the application provides the representative an opportunity to verify what data has changed since the last synchronization. o The representative can leave the current data intact. o The representative can update the data by using their local copy. You need to create an activity diagram to help you troubleshoot problems. How should you complete the activity diagram? To answer, drag the appropriate messages to the correct locations in the answer area.
Drag and drop question. Drag the items to the proper locations.Correct Answers:
2.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? A: Write the following code in the client application.TcpChannel chan = new TcpChannel();ChannelServices.RegisterChannel(chan, false);SimpleMath.SimpleMathClass sm = new SimpleMathClass();Console.WriteLine(sm.Add(2, 2).ToString());B: Write the following code in the client application.SimpleMathClass sm = (SimpleMathClass) Activator.GetObject(typeof(SimpleMathClass), "http: //server1:80/SimpleMathHost/SimpleMath.rem");Console.WriteLine(sm.Add(2, 2).ToString());C: Write the following code in the client application.SimpleMath.SimpleMathClass sm = (SimpleMathClass) Activator.GetObject(typeof(SimpleMathClass), "tcp: //server1:80/SimpleMathHost/SimpleMath.rem");Console.WriteLine(sm.Add(2, 2).ToString());D: Write the following code in the client application.SimpleMath.SimpleMathClass sm = (SimpleMathClass) Activator.CreateInstance(typeof(SimpleMathClass), new string[] {"http: //server1:80/SimpleMathHost/SimpleMath.rem", "SimpleMath.SimpleMathClass, SimpleMathLib"});Console.WriteLine(sm.Add(2, 2).ToString());Correct Answers: B 3.You are an enterprise application developer. You are creating an application that will deploy an on-demand training program. The training is a combination of documents and video files that the user can access from an internal server on the LAN. Users might access this application through their home computers when they are connected to the corporate network through a virtual private network (VPN). You need to design the video portion for the on-demand training program. You also need to ensure that users can view the videos without making modifications to their computer configuration. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.) A:Create one file for all demonstrations.B:Create a set of files that have different qualities for different connection speeds.C:Create a set of files that have different formats for different players.D:Create a set of files for the corporate office and one set for the branch offices.E:Create a set of files for the VPN users.F:Create a set of files that require license keys to protect the content.Correct Answers: B, C 4.You are an enterprise application developer. You are creating an application that will track shipments. This application must support integration with applications that run on different platforms and operating systems. The application that you are creating can be invoked only through SOAP messages over HTTP. You choose Web services instead of .NET Remoting to meet these requirements. You need to specify the reason for choosing Web services. Which statement should influence your decision? A: SOAP messages cannot be exchanged in .NET Remoting.B: Web Services Description Language documents cannot be generated from .NET Remoting class definitions.C: .NET Remoting objects will not be interoperable with other platforms.D: .NET Remoting objects cannot be invoked through HTTP.Correct Answers: C 5.You are creating a Windows-based application that allows users to store photographs remotely by using a Web service. The Web service is configured to use Web Services Enhancements (WSE) 3.0, and it has the following configuration XML in its Web.config file. 本新闻共2页,当前在第1页 1 2