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?

You write a Web service that is called by two client applications named Client1 and Client2.

The Web service must return a SOAP header that contains the date and time that the method executed.
You discover that the date and time information for Client1 must be stored in a different XML format from the format used for Client2.
The client application that is making the request is specified as a property of the SOAP header.
You need to ensure that date and time information is stored in the correct format for each client application.
Your solution must not change the way that ASP.NET handles SOAP requests.

What should you do?

What should you do?

You are writing an application that provides a graphical administrative interface to a message queue that displays information about the messages.
The GUI is updated in the AdminFunction function.
You need to ensure that the GUI is updated without unnecessary delay, and that processed messages contain the most recent message contents.

What should you do?

Which two actions should you perform?

A Windows-based application sends messages to the TestMessageQueue queue.

An acknowledgement message must be sent to the TestMessageQueueAdmin queue when:
The original message is retrieved from TestMessageQueue.
The message has not been retrieved from TestMessageQueue after a specified time period.

The following code is used to send a message to the TestMessageQueue queue.

(Line numbers are included for reference only.)
01 MessageQueue mq = new MessageQueue(“.\\TestMessageQueue”);
02 MessageQueue mqAdmin = new MessageQueue(“.\\TestMessageQueueAdmin”);
03 Message m = new Message(messageBody);
04 m.AcknowledgeType = AcknowledgeTypes.PositiveReceive;
05 mq.Send(m);

You need to ensure that an acknowledgement message is sent to the TestMessageQueueAdmin queue as required.

Which two actions should you perform?(Each correct answer presents part of the solution. Choose two.)

What should you do?

An application has components named ComponentA, ComponentB, and ComponentC.

ComponentA and ComponentB update tables in a database named DB1.
ComponentC updates tables in a database named DB2.
At run time, ComponentA is executed with either ComponentB or ComponentC in a single transaction.
You need to compose the transaction to minimize the use of the system resources.

What should you do?

What should you do?

A .NET Framework application receives messages from a private message queue named MyQueue.
The private queue exists on a computer named APPSERVER1.
A user in a domain named CONTOSO has the username dhall.
This user reports that when he attempts to run the application, he receives a MessageQueueException exception with the error message text

“Access to Message Queuing system is denied.”

You need to ensure that CONTOSO\dhall can receive messages from MyQueue using the .NET Framework application.
Your solution must not give dhall unnecessary privileges.

What should you do?

What should you do?

You are writing an application that creates network accounts for users.

The application monitors a private queue and it creates network accounts when messages arrive in that queue.
A message contains a User object.
The message is sent to the queue using the following code.

MessageQueue q = new MessageQueue(queueName);
Message m = new Message(new User(“anna”,”bedecs”));
q.Send(m, “create account”);

You need to ensure that the application can process the User object.
What should you do?

What should you do?

An application logs information about messages that pass through a message queue, including message contents.
The application must run once for each message.
You need to ensure that the application is executed for every message.
Your solution must not prevent other processes from receiving the messages on the same queue.

What should you do?

What should you do?

A Web service named Math uses Web Service Enhancements (WSE) 3.0 policy assertions that are defined in the policy configuration file to implement security.
The Web service authenticates access to the Web methods using the UsernameOverTransportAssertion policy assertion.
A client application must call a Web method on the Math Web service.
When the client application is executed, it throws an InvalidOperationException exception that displays the following text.

Unable to determine client token to use. Client token type requested was ‘Microsoft.Web.Services3.Security.Tokens.UsernameToken’.

The following code is used to invoke the Web method.

(Line numbers are included for reference only.)
01 Math ws = new Math();
02 ws.SetPolicy(“Secure”);
03 int result = ws.Add(3, 4);

You need to ensure that the Web methods can be invoked without causing the client application to throw the InvalidOperationException exception.

What should you do?

What should you do?

A Windows Forms application calls in to a Web service named SensitiveData.

The project has a Web reference named SensitiveDataWS.
The code uses a class of type SensitiveDataWS.Service. SensitiveDataWS.Service is a proxy to the Web service.
An administrator reports that users running the client application receive a SoapHeaderException exception with the following message text:

“Security requirements are not satisfied because the security header is not present in the incoming message”.

You discover that the Web Services Enhancements (WSE) 3.0 policy file for the Web service was changed to require the encryption of SOAP messages.
You acquire the X.509 certificate that is used for encryption in the Web service.
You need to ensure that the Windows Forms application meets the new security requirements of the Web service.

What should you do?


Page 31 of 43« First...1020...2930313233...40...Last »