TS: Windows Communication Foundation Development: Version: Demo
TS: Windows Communication Foundation Development: Version: Demo
TS: Windows Communication Foundation Development: Version: Demo
Found in 1998
Our Advances
* 99.9% Uptime
All examinations will be up to date.
* 24/7 Quality Support
We will provide service round the clock.
* 100% Pass Rate
Our guarantee that you will pass the exam.
* Unique Gurantee
If you do not pass the exam at the first time, we will not only arrange FULL
REFUND for you, but also provide you another exam of your claim,
ABSOLUTELY FREE!
You need to ensure that the service meets the following requirements:
Answer: A
2. An existing Windows Communication Foundation (WCF) service uses basicHttpBinding. You are releasing
updates to the service and the client application.
You need to enable the client application to flow transactions to the service.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose
two.)
A. Change to a custom binding that has the httpTransport, textMessageEndcoding, and transactionFlow
binding elements in this order.
B. Change to a custom binding that has the transactionFlow, textMessageEncoding, and httpTransport
binding elements in this order.
Answer: B,C
3. 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.)
You need to ensure that the transaction is aborted if the Update method is not successful. What should you
do?
Answer:: A
You must record all available information for the first 1,000 messages processed, even if they are malformed.
Answer: A
5. You are developing a Windows Communication Foundation (WCF) service to replace an existing A5MX
Web service.
The WCF service contains the following code segment. (Line numbers are included for reference only.)
The existing Web service returns the EmployeeID as an attribute of the EmployeeInfo element in the
response XML.
You need to ensure that applications can consume the service without code changes in the client.
B. Option B
C. Option C
D. Option D
Answer: C
6. You are creating a Windows Communication Foundation (WCF) service that implements
[ServiceContract]
You need to ensure that only users with the Manager role can call the ApproveOrder method.
A. In the method body, check the Rights.PossessProperty property to see if it contains Manager.
B. Add a PrincipalPermission attribute to the method and set the Roles property to Manager.
C. Add a SecurityPermission attribute to the method and set the SecurityAction to Demand.
D. In the method body, create a new instance of WindowsClaimSet. Use the FindClaims method to locate a
claimType named Role with a right named Manager.
Answer: B
7. DRAG DROP
You configure a Windows Communication Foundation (WCF) service. The service has a class named Person
that includes the following code segment:
? The secret property must be encrypted and serialized in the SOAP header.
? The comments property must be transmitted in plain text and serialized in the SOAP body.
? The name property must be transmitted in plain text and serialized in the SOAP body.
? The service must ensure the integrity of the name property when data is transmitted.
? The service must not ensure the integrity of the comments property when data is transmitted.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct
location or locations in the answer area. Each code segment may be used once, more than once, or not at all.
You may need to drag the split bar between panes or scroll to view content.)
8. You develop a Windows Communication Foundation (WCF) service to generate reports. Client applications
call the service to initiate report generation but do not wait for the reports to be generated. The service does
not provide any status to the client applications.
The service class is defined as follows. (Line numbers are included for reference only.)
You need to ensure that client applications can initiate reports without waiting for status. Which two actions
Choose two.)
D. Remove line 08. At line 05, change the return type of GenerateReports method to void.
Answer: A,D
The senvice is self-hosted, and the hosting code is as follows. WebServiceHost svcHost = CreateHoseO;
You need to implement CreateHost so that the senvice has a single endpoint hosted at
http://localhost:8000/HelloService which code segment should you use?
return svcHost;
return svcHost
Answer: A
10. You are hosting a Windows Communication Foundation (WCF) service at http://www.contoso.com for a
law enforcement agency. The agency adds operations to support sending biometric fingerprint data via non-
buffered streaming. The service data is not routed between intermediaries.
The WCF binding you are using by default does not support encryption.
You need to ensure that fingerprint data is not disclosed when it is passed over the network.
Answer: B
11. You develop a Windows Communication Foundation (WCF) service that is hosted by using Windows
Activation Services (WAS).
You need to configure the service to accept requests that use the TCP/IP protocol. What should you do?
(Each correct answer presents part of the solution. Choose two.)
B. In Control Panel, enable the Windows Communication Foundation HTTP Activation feature.
Answer: B,D
Explanation: B: Go to the Control Panel–> Program and Features and select Turn Windows features on or off.
Then you need to select some options/components to install. Have a look at the picture below to see what
those options are
D: Example:
Now we need to enable those protocols on the CalculatorServiceSite website that hosts our WCF service.In
the same Visual Studio 2010 command prompt window type
/enabledProtocols:http,net.pipe,net.tcp,net.msmq
Note:
Windows Process Activation Service generalizes the Internet Information Services (IIS) process model,
removing the dependency on HTTP. All the features of IIS that were previously available only to HTTP
applications are now available to applications hosting Windows Communication Foundation (WCF) services,
by using non-HTTP protocols. IIS 7.0 also uses Windows Process Activation Service for message-based
activation over HTTP.
You name the service MovieService in the Movie namespace. The service is hosted in Microsoft Internet
Information Services (IIS).
You copy the assembly containing the service to the bin folder in the virtual directory path. You need to set up
the URI that is mapped to the service.
<serviceHostingEnvironment>
<serviceActivations>
</serviceAct ivations>
</serviceHostingEnvironment>
B. Add a Movie.svc file in the root of the virtual path with the following line.
<serviceHostingEnvironment>
<serviceActivations>
</serviceActivations>
</serviceHostingEnvirorunent>
D. Add a Movie.svc file in the root of the virtual path with the following line.
Answer: B
13. A service implements the following contract. (Line numbers are included for reference only.)
ContosoService uses NetMsmqBinding to listen for messages. The queue was set up to use transactions for
adding and removing messages.
You need to ensure that OperationOne and OperationTwo execute under the same transaction context when
they are invoked in the same session.
C. Add the following XML segment to the application config file in the system.serviceModel/bindings
configuration section.
<netMsmqBinding>
</netMsmqBinding>
Then use the NetMsmqBinding named contosoTx to listen for messages from the clients.
D. Add the following XML segment to the application config file in the system.serviceModel/bindings
configuration section.
<customBinding>
<binding name="contosoTx">
<transactionFlow />
<binaryMessageEncoding />
</binding>
</customBinding>
Then use the CustomBinding named contosoTx to listen for messages from the clients.
Answer: B
14. You are developing a Windows Communication Foundation (WCF) service. The following code defines
and implements the service. (Line numbers are included for reference only.)
You need to ensure that two identical copies of the received message are created in the service.
Answer: B
15. You develop a Windows Communication Foundation (WCF) service that interacts with Microsoft Message
Queuing (MSMQ).
The service requires sessions. You need to create a custom binding that enables messages sent to the
queue to be viewed when you are using a listener tool.
Answer: A
16. You are developing a Windows Communication Foundation (WCF) service. One of the service operations
contains the following code.
counter++;
You need to set a service behavior that prevents two or more threads from incrementing the counter variable
at the same time.
Which code segment should you use to set the service behavior?
B. [ServiceBehavior(
C. [ServiceBehavior(
D. [ServiceBehavior(
Answer: A
17. You are modifying a Windows Communication Foundation (WCF) service that provides access to report
generation system. The following code segment is part of your service
Client applications are blocked while the service processes reports. You need to ensure that the service
methods are asynchronous. What should you do?
C. Insert the following code at line 04. [OperotionConcroct(AsyncPactern = false) Insert the following code at
line 07. [OperacionConcracc(AsyncPactern = true)]
Answer: B
B. Call the Message.CreateMessage static method. Pass the value MessageVersion.Default as a parameter.
C. On the OperationContractAttribute of a method, set the value of the Action and ReplyAction properties to *.
D. On the OperationContractAttribute of a method, set the value of the Action and ReplyAction properties to ?.
Answer: A
19. You develop a Windows Communication Foundation (WCF) RESTful service that provides media
streaming services. The service includes the following code. (Line numbers are included for reference only.)
You need to apply the correct attribute to AddMediaTitle method. Which code segment should you insert at
line 05?
D. [WebInvoice]
Answer: A
20. You have a Windows Communication Foundation (WCF) service that uses a multicast
protocol as a custom transport. The service implements the channel framework. You need to choose a
message exchange pattern for the transport.
A. Datagram by using the IOutputChannel interface for clients and the IInputChannel interface for the service.
B. Half-Duplex by using the IRequestChannel interface for clients and the IReplyChannel interface for the
service.
D. Request-Response by using the IRequestChannel interface for clients and the IReplyChannel interface for
the service.
Answer: A
http://www.exambible.com/70-513-exam/
Contact us
We are proud of our high-quality customer service, which serves you around the clock 24/7.
Viste - http://www.exambible.com/