You are modifying an existing Windows Communication Foundati

题目
单选题
You are modifying an existing Windows Communication Foundation (WCF) service that is defined as follows:[ServiceContract]public interface IMessageProcessor { [OperationContract] void ProcessMessages( );}public class MessageProcessor: IMessageProcessor { public void ProcessMessage( ); SubmitOrder( );}SubmitOrder makes a call to another service. The ProcessMessage method does not perform as expected under a heavy load.You need to enable processing of multiple messages. New messages must only be processed when the ProcessMessage method is not processing requests,or when it is waiting for calls to SubmitOrder to return.Which attribute should you apply to the MessageProcessor class?()
A

CallbackBehavior(ConcurrencyMode=ConcurencyMode.Reentrant)

B

CallbackBehavior(ConcurrencyMode=ConcurrencyMode.Multiple)

C

ServiceBehavior(ConcurrencyMode=ConcurrencyMode.Reentrant)

D

ServiceBehavior(ConcurrencyMode=ConcurrencyMode.Multiple)

参考答案和解析
正确答案: C
解析: 暂无解析
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Windows Communication Foundation (WCF) service is self-hosted in a console application. The service implements the lTimeService service interface in the TimeService class.You need to configure the service endpoint for HTTP communication. How should you define the service and endpoint tags?()

A.

B.

C.

D.


参考答案:D

第2题:

You have an existing Windows Communication Foundation (WCF) service. You need to ensure that other services are notified when the service is started.What should you do?()

A.

B.

C.

D.


参考答案:D

第3题:

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.


参考答案:B

第4题:

You are the administrator of a network that includes Windows NT Server 4.0 computers, Windows NT Workstation 4.0 computers, and UNIX computers. The network consists of a single Windows NT domain.

You are upgrading a Windows NT Server computer named Server1 to Windows 2000 Server. Server1 is a BDC in the domain. The existing DNS server is a UNIX computer that supports SRV (service) records and is configured to accept dynamic updates. The existing WINS server is another Windows NT Server computer.

You want to configure Server1 as a domain controller in a New Active Directory forest. You want the existing Windows NT domain accounts to be upgraded to Active Directory. You plan to upgrade the other domain controllers in the domain to Windows 2000 after the upgrade of Server1 is complete.

You want to perform. the upgrade of Server1 with the least possible impact on other computers on the network. What should you do?

A.Promote Server1 to the PDC of the domain. Run Windows 2000 Setup on Server1.

B.Run Windows 2000 Setup on Server1. At the end of Setup, configure Server1 as a DNS server and a WINS server.

C.Add a static mapping for Server1 on the WINS server. On the DNS server, create an SRV record for the LDAP service on Server1. Run Windows 2000 Setup on Server1.

D.Install the Microsoft DNS service on an existing Windows NT server. Apply Windows NT 4.0 service pack 4 or later to the server. Run Windows 2000 Setup on Server1.


正确答案:A
解析:Explanation: We want to upgrade the NT domain to an Active Directory domain; particularly we want to migrate the NT user accounts. First we need to promote server1 to PDC since it contains the master copy of domain information - SAM. Then upgrade the PDC to Windows 2000 Server. Active Directory requires a DNS server that supports SRV (service records). The UNIX DNS server supports this.

Incorrect answers:
B: Server1 must be upgraded to PDC before Windows 2000 is installed. Furthermore, there is already a DNS server on the network and Active Directory does not require a WINS server.

C: Server1 must be upgraded to PDC before Windows 2000 is installed. Furthermore, there is already a DNS server on the network and Active Directory does not require a WINS server.

D: Server1 must be upgraded to PDC before Windows 2000 is installed. Furthermore, there is already a DNS server on the network.

第5题:

You are modifying an existing Windows Communication Foundation (WCF) service that is defined as follows:[ServiceContract]public interface IMessageProcessor { [OperationContract] void ProcessMessages();}public class MessageProcessor: IMessageProcessor { public void ProcessMessage(); SubmitOrder();}SubmitOrder makes a call to another service. The ProcessMessage method does not perform as expected under a heavy load.You need to enable processing of multiple messages. New messages must only be processed when the ProcessMessage method is not processing requests,or when it is waiting for calls to SubmitOrder to return.Which attribute should you apply to the MessageProcessor class?()

A. CallbackBehavior(ConcurrencyMode=ConcurencyMode.Reentrant)

B. CallbackBehavior(ConcurrencyMode=ConcurrencyMode.Multiple)

C. ServiceBehavior(ConcurrencyMode=ConcurrencyMode.Reentrant)

D. ServiceBehavior(ConcurrencyMode=ConcurrencyMode.Multiple)


参考答案:C

第6题:

You have an existing Windows Communication Foundation (WCF) Web service. The Web service is not responding to messages larger than 64 KB. You need to ensure that the Web service can accept messages larger than 64 KB without generating errors. What should you do?()

A. Increase the value of maxReceivedMessageSize on the endpoint binding.

B. Increase the value of maxRequestLength on the httpRuntime element.

C. Increase the value of maxBufferSize on the endpoint binding.

D. Increase the value of maxBufferPoolSize on the endpoint binding.


参考答案:A

第7题:

A Windows Communication Foundation (WCF) solution exposes the following contract over an HTTP connection.[ServiceContract]public interface IDataService{ [OperationContract] string GetData();}Existing clients are making blocking calls to GetData. Calls to GetData take five seconds to complete.You need to allow new clients to issue non-blocking calls to get the data, without breaking any existing clients. What should you do?()

A.

B.

C.Generate a proxy class with asynchronous methods and use it for the new clients

D. Add a new endpoint to the service that uses a full-duplex binding and use it for the new clients.


参考答案:C

第8题:

Your company has an existing Windows Communication Foundation (WCF) service that allows business partners to place orders. The service uses netMsmqBinding. You find that processing every order in its own transaction is causing a delay. You need to ensure that the service is configured to process multiple orders in one transaction. What should you do? ()

A. Useservice behavior and set the maxConcurrentCalls attribute.

B. Useendpoint behavior and set the maxBatchSize attribute.

C. Useendpoint behavior and set the maxPendingReceives attribute.

D. Useendpoint behavior.


参考答案:B

第9题:

You are the administrator of a network that consists of a single Windows NT 4.0 domain. The network contains five Windows NT Server domain controllers and 1,000 Windows NT Workstation client computers.

You want to install Windows 2000 Server on a new computer. You want the new computer to act as domain controller in the existing domain.

What should you do?

A.On the new computer, install Windows NT Server 4.0 and designate the computer as a BDC in the existing domain. Promote the computer to the PDC of the domain. Upgrade the computer to Windows 2000 Server.

B.On the new computer, install Windows NT Server 4.0 and designate the computer as a PDC in a new domain that has the same NetBIOS name as the existing Windows NT domain. Upgrade the computer to Windows 2000 Server. Use the Active Directory sites and services to force synchronization of the domain controllers.

C.Shut down the PDC of the existing Windows NT domain from the network. On the new computer, install Windows 2000 Server, and then run the Active Directory installation wizard to install Active Directory, specifying the same NetBIOS name for the Windows 2000 domain as the existing Windows NT domain. Restart the Windows NT PDC on the network and demote it to a BDC.

D.Shut down the PDC of the existing Windows NT domain from the network. On the new computer, install Windows 2000 Server, and then run the Active Directory installation wizard to install Active Directory as a replica in the existing Windows NT domain. Promote the new computer to the PDC of the domain. Restart Windows NT PDC on the network and demote it to a BDC.


正确答案:A
解析:Explanation:ToinstallaWindows2000computerasadomaincontrollerinaWindowsNT4.0domain,wemustfirstinstallWindowsNT4.0thecomputerasaBDCintheWindowsNT4.0domainandthenpromotetheBDCtoPDC.WemustthenupgradethemachinetoWindows2000Server.WhenupgradingthedomaincontrollersinaWindowsNTdomaintoWindows2000,wemustupgradetheprimarydomaincontrollerfirst.Incorrectanswers:B:ThecomputermustbeinstalledasBDCandthenlaterpromotedtoPDC.C:ThecomputermustfirstbeinstalledasaWindowsNT4.0BDCandthenpromotedtoPDC.D:ThecomputermustfirstbeinstalledasaWindowsNT4.0BDCandthenpromotedtoPDC.

第10题:

You are designing a plan to migrate an existing application to Windows Azure.  The application currently resides on a server that has 768 MB of memory and multiple cores. You need to recommend the smallest compute instance size that is equivalent to the existing server.  Which size should you recommend?()

  • A、 Small
  • B、 Medium
  • C、 Large
  • D、 ExtraSmall

正确答案:B

更多相关问题