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 file named Util.asmx contains the following code segment.

(Line numbers are included for reference only.)
01 <%@ WebService Language=”C#” class=”Exam.Util” %>
02 namespace Exam {
03 public class Util {
04 public string GetData() {
05 return “data”;
06 }
07 }
08 }

You need to expose the GetData method through a Web service.

What should you do?

Which two actions should you perform?

You are writing an application that handles the batch processing of user accounts.
The application assigns network identities for users by calling the following Web service method.

[WebMethod]
public string GetNetworkID(string name)
{ …}

The application calls the Web
service using the following code.

(Line numbers are included for reference only.)
01 void ProcessPeople(List<Person> people) {
02 PersonService serviceProxy = new PersonService();
03 serviceProxy.GetNetworkIDCompleted += new
04 GetNetworkIDCompletedEventHandler(GetNetworkIDCompleted);
05 for (int i = 0; i < people.Count;i++) {
06 …
07 }
08 }
09
10 void GetNetworkIDCompleted(object sender,
11 GetNetworkIDCompletedEventArgs e){
12 Person p = null;
13 …
14 p.NetworkID = e.Result;
15 ProcessPerson(p);
16 }

You need to ensure that the application can use the data supplied by the Web service to update each Person instance. Which two actions should you perform? (Each correct answer
presents part of the solution. Choose two.)

Which two actions should you recommend?

You are an enterprise application developer. You create a component that generates medical documents. Your component is used by multiple document management systems. Users generate documents throughout the entire day and most documents are generated during business hours. You notice that user load is increasing and performance is degrading. You need to identify sections of code on which to focus performance tuning efforts. Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)

What should you do?

You are an enterprise application developer. You are creating a .NET Remoting component. The Version 1.0 of the component is deployed as a well-known server-activated object. The strong- named component is installed into the global assembly cache. Ten distributed applications in your
company utilize the component, and each application has an independent schedule for upgrades and deployment. You add new features to the component. These additions will change the signatures of the public methods on the component. You need to devise a deployment strategy for the component. What should you do?

What should you do?

You are an enterprise application developer. You are implementing a new component for an application. The component accesses a database to populate a list of customer objects and exposes a method that is named GetAllCustomers. The component uses a design pattern to access the database only on an as-needed basis. A caching mechanism exists in a lower tier of the application architecture. The component must not cache data. You need to implement the logic for populating a list of customer objects by using a database query. You also need to ensure that you meet the company guidelines for the component design pattern. What should you do?

What should you do?

A client application must connect to a .NET Framework remoting class that is running in a Windows service that is deployed to a computer named APPSERVER1.
The class is named SimpleMathClass and it exists within a namespace named SimpleMath in an assembly named SimpleMathLib.
It is exposed through the TCP and it is configured with the objectUri attribute set to SimpleMath.rem.
You write the following XML configuration settings in the App.config file of the client application.

<configuration>
<system.runtime.remoting>
<application>
</application>
</system.runtime.remoting>
</configuration>

You need to ensure that the client application can connect to the remoting class.

What should you do?

What should you do?

You call a method in a Web service.
The following exception is thrown in the Web service client.

System.Web.Services.Protocols.SoapException: Server was unable toprocess request. –> System.NullReferenceException: Object reference not set to an instance of an object.

You discover that it is the following line of code that throws the exception.

if (Session [“StoredValue”] == null)

You need to ensure that the method runs without throwing the exception. What should you do?

What should you do?

A message queue named SecureQueue requires incoming messages to be authenticated.
When an application attempts to send a message to SecureQueue, the following exception is thrown.
User’s internal Message Queuing certificate does not exist.The following code is used to send the message.

(Line numbers are included for reference only.)
01 MessageQueue mq = new MessageQueue(“.\\SecureQueue”);
02 Message m = new Message(“Test Message”);
03 m.UseAuthentication = true;
04 mq.Send(m);

You need to ensure that a message can be sent to SecureQueue without the exception being thrown.

What should you do?


Page 27 of 43« First...1020...2526272829...40...Last »