70-521 study guide examination
Microsoft Certification Exam UPG:Trans MCPD.NET Frmwk 3.5 Dev Skil to .NET 4 Wndws App De, I am glad to share my joy with you. 70-521 study guide examination if you are learning, then I suggest that you can try this site to provide service, it can really help you a lot.
QUESTION 3
A Windows Communication Foundation (WCF) application uses a data contract that has several data members. You need the application to throw a SerializationException if any of the data members are not present when a serialized instance of the data contract is deserialized.
What should you do?
A. Add the KnownType attribute to the data contract. Set a default value in each of the data member declarations.
B. Add the KnownType attribute to the data contract. Set the Order property of each data member to unique integer value.
C. Set the EmitDefaultValue property of each data member to False.
D. Set the IsRequired property of each data member to True.
Answer: D
QUESTION 4
You are creating a Windows Communication Foundation (WCF) service that implements operations in a RESTful manner. You need to add a delete operation. You implement the delete method as follows.
Sub DeleteItems(ByVal id As String)
You need to configure WCF to call this method when the client calls the service with the HTTP DELETE operation. What should you do?
A. Add the WebInvoke(UriTemplate:="/Items/{id}", Method:="DELETE") attribute to the operation.
B. Add the HttpDelete attribute to the operation.
C. Replace the string parameter with a RemovedActivityAction parameter.
D. Change the Sub statement to Function and specify RemovedActivityAction as the return type.
Answer: A
QUESTION 5
You are building a client for a Windows Communication Foundation (WCF) service. You need to create a proxy to consume this service. Which class should you use?
A. ChannelFactory(Of TChannel)
B. ServiceHost
C. ClientRuntime
D. CommunicationObject
Answer: A