PrepAway - Latest Free Exam Questions & Answers

Tag: Exam 70-513 (update October 28th, 2015)

Exam 70-513: TS: Windows Communication Foundation Development with Microsoft .NET Framework 4 (update October 28th, 2015)

Which two lines of code should you insert between lines 02 and 03?

A Windows Communication Foundation (WCF) client application is consuming an RSS
syndication feed from a blog. You have a SyndicationFeed variable named feed. The
application iterates through the items as follows. (Line numbers are included for reference
only.) 01 For Each item As SyndicationItem In feed.Items 02 03 04 Next You need to
display the content type and body of every syndication item to the console. Which two lines
of code should you insert between lines 02 and 03?

which order should the binding stack be configured?

You are creating a Windows Communication Foundation (WCF) service. You have the
following requirements: Messages must be sent over TCP. The service must support
transactions. Messages must be encoded using a binary encoding. Messages must be
secured using Windows stream-based security. You need to implement a custom binding
for the service. In which order should the binding stack be configured?

You need to deploy your service to the Web site

You are hosting a Windows Communication Foundation (WCF) service under Microsoft

Internet Information Services (IIS) 7.0. You have set up a Web site in IIS Manager. The
physical path is C:\wwwroot\Calendar. There is a Calendar.svc file in the
C:\wwwroot\Calendar folder. It contains the following directive. <%@ ServiceHost
Language=”VB” Debug=”true” Service=”Calendar.Calendar”
CodeBehind=”Calendar.svc.vb” %> The Calendar.svc.vb file contains the source for the
Calendar class in the Calendar namespace. You compile this code into the Calendar.dll file.
You need to deploy your service to the Web site. What should you do?

Which line of code should you insert at line 04?

A Windows Communication Foundation (WCF) service is self-hosted in a console
application. The service implements the IDataAccess contract, which is defined in the
MyApplication namespace. The service is implemented in a class named
DataAccessService, which implements the IDataAccess interface and also is defined in the
MyApplication namespace. The hosting code is as follows. (Line numbers are included for
reference only.) You need to create a ServiceHost instance and assign it to the host
variable. You also need to instantiate the service host. Which line of code should you insert
at line 04?

You need to ensure that new and existing client applications can access the service through HTTP and named pip

You are modifying a Windows Communication Foundation (WCF) service that issues
security tokens. The service is accessible through the named pipe protocol. No endpoints

are added in the service code. The configuration file for the service is as follows. (Line
numbers are included for reference only.) You need to ensure that new and existing client
applications can access the service through HTTP and named pipes. What should you do?

You need to configure the service to publish the service metadat

You are adding a Windows Communication Foundation (WCF) service to an existing
application. The application is configured as follows. (Line numbers are included for
reference only.) 01 <configuration> 02 <system.serviceModel> 03 <services> 04 <service
name=”Contoso.Sales.StockService” 05 behaviorConfiguration=”MetadataBehavior”> 06
<host> 07 <baseAddresses> 08 <add
baseAddress=”http://contoso.com:8080/StockService” /> 09 </baseAddresses> 10 </host>
11 </service> 12 </services> 13 <behaviors> 14 <serviceBehaviors> 15 <behavior
name=”MetadataBehavior”> 16 </behavior> 17 </serviceBehaviors> 18 </behaviors> You
need to configure the service to publish the service metadat

Which XML segment should you add to the system.serviceModel configuration section of the web.config file?

Four Windows Communication Foundation (WCF) services are hosted in Microsoft Internet
Information Services (IIS). No behavior configuration exists in the web.config file. You need

to configure the application so that every service and endpoint limits the number of
concurrent calls to 50 and the number of concurrent sessions to 25. Which XML segment
should you add to the system.serviceModel configuration section of the web.config file?

You need to ensure that OperationOne and OperationTwo execute under the same transaction context when they are

A service implements the following contract. (Line numbers are included for reference only.)
The service is implemented as follows. 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. What should you do?


Page 14 of 23« First...1213141516...20...Last »