单选题You are developing a data contract for a Windows Communication Foundation (WCF) service. The data in the data contract must participate in round trips. Strict schema validity is not required. You need to ensure that the contract is forward-compatible and allows new data members to be added to it. Which interface should you implement in the data contract class?()AICommunicationObjectBIExtensionCIExtensibleObjectDIExtensibleDataObject

单选题
You are developing a data contract for a Windows Communication Foundation (WCF) service. The data in the data contract must participate in round trips. Strict schema validity is not required. You need to ensure that the contract is forward-compatible and allows new data members to be added to it. Which interface should you implement in the data contract class?()
A

ICommunicationObject

B

IExtension

C

IExtensibleObject

D

IExtensibleDataObject


参考解析

解析: 暂无解析

相关考题:

You are developing a Windows Service. The Windows Service will host a Windows Communication Foundation (WCF) service.The Windows Service class will inherit from ServiceBase.You need to ensure that the WCF service starts when the Windows Service is restarted.What should you do in the Windows Service class?()A.B.C.D.

You are developing a client application that consumes a Windows Communication Foundation (WCF) service.The operation contract is as follows.[OperationContract][FaultContract(typeof(SalesFault))]string GetSales(string saleId);()The service configuration file contains the following line in the serviceBehaviors section.A divide-by-zero exception is not being handled by the service.You need to ensure that the exception is caught in the client application.Which type of exception should the client catch?()A. TimeoutExceptionB. FaultExceptionC. DivideByZeroExceptionD. FaultExceptionSalesFault

You are developing a new version of an existing message contract named CustomerDetailsVersion1. The new version of the message contract must add a Department field of type String to the SOAP header.You create a new class named CustomerDetailsVersion2 that inherits from CustomerDetailsVersion1. You need to ensure that all client applications can consume the service.Which code segment should you use?()A.B.C.D.

You are developing a Windows Communication Foundation (WCF) service. The service operation takes a customer number as the only argument and returns information about the customer. The service requires a security token in the header of the message. You need to create a message contract for the service.Which code segment should you use?()A.B.C.D.

You are developing a Windows Communication Foundation (WCF) service. The service needs to access out-of-process resources.You need to ensure that the service accesses these resources on behalf of the originating caller. What should you do?()A. Set the value of ServiceSecurityContext.Current.WindowsIdentity.ImpersonationLevel to TokenlmpersonationLevel.ImpersonationB. Set the value of ServiceSecurityContext.Current.Windowsldentity.ImpersonationLevel to TokenlmpersonationLevel.DelegationC. Set the PrincipalPermissionAttribute on the service contract and update the binding attribute in the endpoint element of the configuration file to wsHttpBindingD. Set the PnncipalPermissionAttribute on the service contract and update the bindingConfiguration attribute in the endpoint element of the configuration file to wsHttpBinding

You are developing a client that sends several types of SOAP messages to a Windows Communication Foundation (WCF) service method named PostData. PostData is currently defined as follows:[OperationContract]void PostData(Order data);You need to modify PostData so that it can receive any SOAP message. Which code segment should you use?()A. [OperationContract(IsOneWay=true, Action=*, ReplyAction=*)] void PostData(Order data);B. [OperationContract(IsOneWay=true, Action=*, ReplyAction = *)] void PostData(BodyWriter data);C. [OperationContract] void PostData(BodyWriter data);D. [OperationContract] void PostData(Message data);

You install a custom application on a computer that runs Microsoft Windows XP. The application stores each user’s data in the %programfiles%\app1\data folder on the computer. You install the custom application on a computer that runs Windows Vista.On the Windows Vista computer, you back up the %programfiles%\app1\data folder and notice that the backup contains no data.You need to back up the application’s user data on the Windows Vista computer.What should you do?()A.AB.BC.CD.D

You are developing a Windows Presentation Foundation (WPF) application that display pricing and inventory.List box‘s ItemsSource property has decimal and string types. Decimals represent price and strings represents the folowing markup is defined as follows.You need to ensure that data templates are used to format the strings without changes and the decimals as ..Which markup segment should you insert at line 05 ?()A.B.C.D.

You are planning to migrate an existing web application to Windows Azure.  The application consists of an ASP.NET web application and a set of native Win32 Windows Services that provide data to the application by using named pipes. The Windows Services cannot be modified.  You need to recommend a strategy for migrating the application to Windows Azure.  What should you recommend?()A、 Define a Windows CommunicationFoundation (WCF) contract for the services.B、 Deploy each Windows Service to a separate worker role.  Deploy the ASP.NET application to a web role.C、 Deploy the application and Windows Services in a Windows Azure VM role.D、 Upload service binaries to a web role by using the Windows Azure Service Management API.

You are developing a Windows Communication Foundation (WCF) service. One of the parameters used with the service operations is a security token. The security token is not sensitive. The monitoring software tracks security tokens and can read tokens in clear text only.The company security policy requires that you validate all clear text data passed over the corporate network.You need to ensure that the service verifies that the security token is not changed during transit. What should you do?()A、For all the security-sensitive members, set the ProtectionLevel parameter of the MessageBodyMember or MessageHeader attribute to EncryptAndSign.B、Implement IEndpointldentityProvider in the message contract class.C、Implement ISecureConversationSession in the message contract class.D、For all the security-sensitive members, set the ProtectionLevel parameter of the MessageBodyMember or MessageHeader attribute to Sign.

You are designing a Windows Azure application that will store data. You have the following requirements:   - The data storage system must support the storage of more than 500 GB of data.   - Data retrieval must be possible from a large number of parallel threads without threads blocking each other.   You need to recommend an approach for storing data.  What should you recommend?()A、 Use Windows Azure Queues.B、 Use Windows Live Mesh 2011.C、 Use a single SQL Azure database.D、 Use Windows Azure Table storage

You are developing a client that sends several types of SOAP messages to a Windows Communication Foundation (WCF) service method named PostData. PostData is currently defined as follows:[OperationContract]void PostData(Order data);You need to modify PostData so that it can receive any SOAP message. Which code segment should you use?()A、[OperationContract(IsOneWay=true, Action="*", ReplyAction="*")] void PostData(Order data);B、[OperationContract(IsOneWay=true, Action="*", ReplyAction = "*")] void PostData(BodyWriter data);C、[OperationContract] void PostData(BodyWriter data);D、[OperationContract] void PostData(Message data);

You are developing a WCF service. The service includes an operation names GetProduct. You need to ensure that GetProduct will accept a POST request and will indicate that the returned data is XML.   Which two actions should you perform?()A、Add the WebGet attribute to the service contract.B、Set WebOperationContext.Current.OutgoingRequest.ContentType to "text/xml" in the GetProduct method.C、Add the WebInvoke attribute to the service contract.D、Set WebOperationContext.Current.OutgoingResponse.ContentType to "text/xml" in the GetProduct method.

Windows Communication Foundation (WCF) application uses a data contract that has several data members. You need the application to throw a Serialization Exception 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 Known Type attribute to the data contract.Set a default value in each of the data member declarations.B、 Add the Known Type attribute to the data contract.Set the Order property of each data member to unique integer value.C、 Set the Emit Default Value property of each data member to false.D、 Set the Is Required property of each data member to true.

You are designing a web service that will be hosted in Windows Azure.  The web service will accept and store structured and semi-structured data. The web service must meet the following requirements:   - Update all data within a single transaction.  - Enforce the data structure for structured data within the data store.    You need to recommend an approach for storing the data.  What should you recommend?()A、 Use Windows Azure Queues.B、 Use a single SQL Azure database.C、 Use a single Windows Azure Drive.D、 Use Windows Azure Table storage.

A Windows Communication Foundation (WCF) service has a callback contract. You are developing a client application that will call this service.You must ensure that the client application can interact with the WCF service. What should you do?()A、On the OperationContractAttribute, set the AsyncPattern property value to true.B、On the OperationContractAttribute, set the ReplyAction property value to the endpoint address of the client.C、On the client, create a proxy derived from DuplexClientBaseTChannel .D、On the client, use GetCallbackChannelT .

单选题You are designing a Windows Azure application that will store data. You have the following requirements:   - The data storage system must support the storage of more than 500 GB of data.   - Data retrieval must be possible from a large number of parallel threads without threads blocking each other.   You need to recommend an approach for storing data.  What should you recommend?()A Use Windows Azure Queues.B Use Windows Live Mesh 2011.C Use a single SQL Azure database.D Use Windows Azure Table storage

单选题You are designing a Windows Azure application.  The application will include occasionally connected clients that reference data stored in Windows Azure Blob storage.  The clients will be able to add data while disconnected.  You need to recommend an approach for synchronizing offline client data with Windows Azure Blob storage.  What should you recommend?()A Use SQL Azure Data Sync.B Use the Microsoft Sync Framework.C Use Windows Azure Blobstorage snapshots.D Use the Microsoft SQL Server replication component.

单选题You are developing a Windows Communication Foundation (WCF) service. The service needs to access out-of-process resources.You need to ensure that the service accesses these resources on behalf of the originating caller. What should you do?()ASet the value of ServiceSecurityContext.Current.WindowsIdentity.ImpersonationLevel to TokenlmpersonationLevel.ImpersonationBSet the value of ServiceSecurityContext.Current.Windowsldentity.ImpersonationLevel to TokenlmpersonationLevel.DelegationCSet the PrincipalPermissionAttribute on the service contract and update the binding attribute in the endpoint element of the configuration file to wsHttpBindingDSet the PnncipalPermissionAttribute on the service contract and update the bindingConfiguration attribute in the endpoint element of the configuration file to wsHttpBinding

单选题You are planning to migrate an existing web application to Windows Azure.  The application consists of an ASP.NET web application and a set of native Win32 Windows Services that provide data to the application by using named pipes. The Windows Services cannot be modified.  You need to recommend a strategy for migrating the application to Windows Azure.  What should you recommend?()A Define a Windows CommunicationFoundation (WCF) contract for the services.B Deploy each Windows Service to a separate worker role.  Deploy the ASP.NET application to a web role.C Deploy the application and Windows Services in a Windows Azure VM role.D Upload service binaries to a web role by using the Windows Azure Service Management API.

单选题You are developing a data contract for a Windows Communication Foundation (WCF) service. The data in the data contract must participate in round trips. Strict schema validity is not required. You need to ensure that the contract is forward-compatible and allows new data members to be added to it. Which interface should you implement in the data contract class?()AICommunicationObjectBIExtensionCIExtensibleObjectDIExtensibleDataObject

单选题You are developing a Windows Communication Foundation (WCF) service. One of the parameters used with the service operations is a security token. The security token is not sensitive. The monitoring software tracks security tokens and can read tokens in clear text only.The company security policy requires that you validate all clear text data passed over the corporate network.You need to ensure that the service verifies that the security token is not changed during transit. What should you do?()AFor all the security-sensitive members, set the ProtectionLevel parameter of the MessageBodyMember or MessageHeader attribute to EncryptAndSign.BImplement IEndpointldentityProvider in the message contract class.CImplement ISecureConversationSession in the message contract class.DFor all the security-sensitive members, set the ProtectionLevel parameter of the MessageBodyMember or MessageHeader attribute to Sign.

单选题You create a Windows Communication Foundation (WCF) service and deploy it with wsHttpBinding and message security enabled.You create an intermediate WCF service for logging messages sent to the primary service.The intermediate service is called via endpoint behaviour. The primary service is receiving malformed data from a client application.You need to enable inspection of the malformed data and prevent message tampering. What do you do?()ASpecify a protection level of None in the contract for the intermediate service. Disable message and transport security from the client application configuration file.BSpecify a protection level of Sign in the contract for the intermediate service. Disable transport security from the client application configuration file.CModify the binding on the intermediate service to use netNamedPipeBinding.DModify the binding on the intermediate service to use webHttpBinding.

单选题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?()AAdd the KnownType attribute to the data contract. Set a default value in each of the data member declarations.BAdd the KnownType attribute to the data contract. Set the Order property of each data member to unique integer value.CSet the EmitDefaultValue property of each data member to false.DSet the lsRequired property of each data member to true.

单选题You are designing a web service that will be hosted in Windows Azure.  The web service will accept and store structured and semi-structured data. The web service must meet the following requirements:   - Update all data within a single transaction.  - Enforce the data structure for structured data within the data store.    You need to recommend an approach for storing the data.  What should you recommend?()A Use Windows Azure Queues.B Use a single SQL Azure database.C Use a single Windows Azure Drive.D Use Windows Azure Table storage.

单选题You are developing a client application that consumes a Windows Communication Foundation (WCF) service. The operation contract is as follows. [OperationContract] [FaultContract(typeof(SalesFault))] string GetSales(string saleId);() The service configuration file contains the following line in the serviceBehaviors section. A divide-by-zero exception is not being handled by the service. You need to ensure that the exception is caught in the client application. Which type of exception should the client catch?()ATimeoutExceptionBFaultExceptionCDivideByZeroExceptionDFaultExceptionSalesFault

单选题A Windows Communication Foundation (WCF) service has a callback contract. You are developing a client application that will call this service.You must ensure that the client application can interact with the WCF service. What should you do?()AOn the OperationContractAttribute, set the AsyncPattern property value to true.BOn the OperationContractAttribute, set the ReplyAction property value to the endpoint address of the client.COn the client, create a proxy derived from DuplexClientBaseTChannel .DOn the client, use GetCallbackChannelT .

单选题Windows Communication Foundation (WCF) application uses a data contract that has several data members. You need the application to throw a Serialization Exception 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 Known Type attribute to the data contract.Set a default value in each of the data member declarations.B Add the Known Type attribute to the data contract.Set the Order property of each data member to unique integer value.C Set the Emit Default Value property of each data member to false.D Set the Is Required property of each data member to true.