Microsoft TS: Windows Communication Foundation velopment with Microsoft .NET Framework 4 Sample Questions:
1. The endpoint of a Windows Communication Foundation (WCF) service uses basicHttpBinding for its binding. Your company's policies have changed to require that messages not be sent in clear text.
You must ensure that all messages are encrypted when traveling across the network.
What should you do?
A) Set the PrincipalPermissionAttribute on the service contract and update the bindingConfiguration attribute in the endpoint element of the configuration file to wsHttpBinding.
B) Set the PrincipalPermissionAttribute on the service contract and update the binding attribute in the endpoint element of the configuration file to wsHttpBinding.
C) Set the ProtectionLevel property on the service contract and update the bindingConfiguration attribute in the endpoint element of the configuration file to webHttpBinding.
D) Set the ProtectionLevel property on the service contract and update the binding attribute in the endpoint element of the configuration file to wsHttpBinding.
2. A Windows Communication Foundation (WCF) service is self-hosted in a console application. The service implements the ITimeService 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) Define the service tag as follows.
<service name=" ITimeService " >
Define the endpoint tag as follows.
< endpoint kind =" TimeService "
address="http://localhost:8080/TimeService"
binding=" wsHttpBinding "
contract=" ITimeService"/ >
B) Define the service tag as follows.
<service name=" TimeService ">
Define the endpoint tag as follows.
<endpoint address="http://localhost:8080/TimeService"
binding=" wsHttpBinding "
contract=" ITimeService "/ >
C) Define the service tag as follows.
<service name=" TimeService ">
Define the endpoint tag as follows.
< endpoint kind=" TimeService "
address="http://localhost:8080/TimeService"
binding=" wsHttpBinding "
contract=" ITimeService " / >
D) Define the service tag as follows.
<service name=" ITimeService ">
Define the endpoint tag as follows.
< endpoint name=" TimeService "
address="http://localhost:8080/TimeService"
binding=" wsHttpBinding "
contract=" ITimeService "/ >
3. 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) Use <dispatcherSynchronizationBehavior> endpoint behavior and set the maxPendingReceives attribute.
B) Use <transactedbatching> endpoint behavior and set the maxBatchSize attribute.
C) Use <synchronousReceive> endpoint behavior.
D) Use <serviceThrottling> service behavior and set the maxConcurrentCalls attribute.
4. You are developing a Windows Communication Foundation (WCF) service.
You need to enable security auditing for all events.
What should you do?
A) Set the messageAuthenticationAuditLevel setting to Success and the auditLogLocation setting to Application.
B) Set the serviceAuthorizationAuditLevel setting to Success and the messageAuthenticationAuditLevel setting to Success.
C) Set the messageAuthenticationAuditLevel setting to SuccessAndFailure and the auditLogLocation setting to Security.
D) Set the serviceAuthorizationAuditLevel setting to SuccessAndFailure and the messageAuthenticationAuditLevel setting to SuccessAndFailure.
5. You are developing a Windows Communication Foundation (WCF) service that allows customers to update financial data.
The client applications call the service in a transaction. The service contract is defined as follows. (Line numbers are included for reference only.)
Customers report that the transaction completes successfully even if the Update method throws an exception.
You need to ensure that the transaction is aborted if the Update method is not successful.
What should you do?
A) Insert the following line at line 09. [ServiceBehavior( TransactionAutoCompleteOnSessionClose = true)]
B) Insert the following line at line 09. [ServiceBehavior( TransactionAutoCompleteOnSessionClose = false)]
C) insert the following line at line 22. throw;
D) Replace line 12 with the following line. [OperationBehavior( TransactionScopeRequired = true, TransactionAutoCoroplete - false)]
Solutions:
| Question # 1 Answer: D | Question # 2 Answer: B | Question # 3 Answer: B | Question # 4 Answer: D | Question # 5 Answer: C |














1343 Customer Reviews
Quality and ValueITCertKing Practice Exams are written to the highest standards of technical accuracy, using only certified subject matter experts and published authors for development - no all study materials.
Tested and ApprovedWe are committed to the process of vendor and third party approvals. We believe professionals and executives alike deserve the confidence of quality coverage these authorizations provide.
Easy to PassIf you prepare for the exams using our ITCertKing testing engine, It is easy to succeed for all certifications in the first attempt. You don't have to deal with all dumps or any free torrent / rapidshare all stuff.
Try Before BuyITCertKing offers free demo of each product. You can check out the interface, question quality and usability of our practice exams before you decide to buy.
