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

Which code segment should you use?

A SOAP message has the following body.

<soap:Body>
<tns:Greeting>
<Person href=”#id1″ />
</tns:Greeting>
<tns:User id=”id1″ xsi:type=”tns:User”>
<GivenName xsi:type=”xsd:string”>givenname</GivenName>
<SurName xsi:type=”xsd:string”>surname</SurName>
</tns:User>
</soap:Body>

You need to configure the Greeting method to accept the SOAP message.

Which code segment should you use?

What should you do?

A Web service returns a Node object X that references Node object Y.
Node object Y also references Node object X.
When the Web service method is called in a way that returns Node object X, the following exception is thrown.

System.InvalidOperationException: A circular reference was detected while serializing an object of type Node.

You need to ensure that the Web service method runs without generating the exception.
Your code must preserve the circular reference between the Node objects.

What should you do?

What should you do?

You are writing a Web service that will serve multiple client applications.
Some client applications will send billing information as SOAP headers, but you do not know the format of these headers.
You need to handle these SOAP headers so that the billing information is saved for analysis.

What should you do? (Each correct answer presents part of the solution. Choose two.)

What should you do?

A Console Application calls a Web service named SessionStateService five times, sequentially.
The IncrementSessionCounter Web service method increments and returns an integer value that is held in a cookie.

(Line numbers are included for reference only.)
01 void IncrementSession5Times() {
02 SessionStateService service = null;
03 …
04 for (int i = 0; i < 5; i++) {
05 …
06 Console.WriteLine(“Loop Pass {0} – result = {1}”,
07 i,
08 service.IncrementSessionCounter());
09 }
10 }

You need to ensure that when the IncrementSession5Times method is run, the following output is displayed.

Loop Pass 0 – result = 1
Loop Pass 1 – result = 2
Loop Pass 2 – result = 3
Loop Pass 3 – result = 4
Loop Pass 4 – result = 5

What should you do?

What conclusion can you draw?

You work as the Enterprise application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. Your responsibilities at Domain.com include the design and development of application frameworks.
You are currently developing a Microsoft Windows Forms application. You used Microsoft Visual Studio 2005 Team Edition for Software Developers. This Windows Forms application that you are developing, when completed will allow users to access data on the Domain.com mainframe. This data access will happen as follows: A Microsoft .NET Remoting component accesses the mainframe, and the application connects to the Remoting component via Transmission Control Protocol (TCP) channel.
You need to keep in mind that there is a performance requirement that the application should not perform excessive and unnecessary security checks. A performance monitoring solution that will be put in place will consists a measuring the Total Runtime Checks and Stack Walk Depth performance counters in the .NETCLR Security category.
You need to make a decision as to whether the monitoring solution is correct.

What conclusion can you draw?

What should you do?

You work as the Enterprise application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. Your responsibilities at Domain.com include the design and development of application frameworks.
You are currently developing a Microsoft Windows Forms monitoring application for Domain.com. This application is destined to read data in a Microsoft SQL Server 2005 database and display it graphically on a form. All Domain.com users need to be able to:
1. choose the refresh rate for displaying data
2. choose an interval in multiples of one second
To this end you need to reuse a component to meet these requirements without requiring excessive coding.

What should you do?


Page 26 of 43« First...1020...2425262728...40...Last »