PrepAway - Latest Free Exam Questions & Answers

Category: 70-513

Exam 70-513: TS: Windows Communication Foundation Development with Microsoft .NET Framework 4

What should you use?

You develop a Windows Communication Foundation (WCF) service. It is used exclusively as an intranet application and is currently unsecured.

You need to ensure that the service meets the following requirements:
* The service now must be exposed as an Internet application.
* The service must be secured at the transport level.
* Impersonation and delegation cannot be enabled.

What should you use?

Which code segment should you insert at line 04?

You are developing a Windows Communication Foundation (WCF) REST service to provide access to a library book catalog.
The following code segment defines the service contract. (Line numbers are included for reference only.)

01 [ServiceContract()]
02 [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
03 public Class LibraryService
04 {
05 public Book GetBookByTitle(string title)
06 {
07 …
08 }
09
10 [WebGet(UriTemplate = “Book/{id}”)]
11 public Book GetBookById(string id)
12 {
13 …
14 }
15 }

Library patrons want the ability to search the catalog by title.
You need to ensure that the GetBookByTitle method is exposed as a service method.
Which code segment should you insert at line 04?

What should you do?

You develop a Windows Communication Foundation (WCF) service. 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. What should you do?

Which code segment should you insert at line 12?

You are developing a Windows Communication Foundation (WCF) service.
The following code defines and implements the service. (Line numbers are included for reference only.)

01 [ServiceContract(SessionMode = SessionMode.Allowed)]
02 public interface ICatchAll
03 {
04 [OperationContract(IsOneWay = false, Action = “*”, ReplyAction = “*”)]
05 Message ProcessMessage(Message message);
06 }
07
08 public class CatchAllService : ICatchAll
09 {
10 public Message ProcessMessage(Message message)
11 {
12
13 …
14 return returnMsg;
15 }
16 }

You need to ensure that two identical copies of the received message are created in the service.
Which code segment should you insert at line 12?

What should you do?

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?

What should you do next?

You develop a Windows Communication Foundation (WCF) service that uses basic authentication for client credentials.
This service is currently configured to use message security. The service is hosted on a server in workgroup mode.
Users report that their passwords are stolen when they use public computers.
You need to ensure that messages are secure and users are authenticated.
You prevent the service from being called over HTTP through Microsoft Internet Information Services (IIS) configuration.
What should you do next?

Which code segment should you insert at line 07?

You are developing a Windows Communication Foundation (WCF) service to provide an in-memory cache for many Web applications.
The service contract is defined as follows. (Line numbers are included for reference only.)

01 [ServiceContract]
02 public interface IDataCache
03 {
04 …
05 }
06
07
08 public class DataCache : IDataCache
09 {
10 …
11 }

You need to ensure that all users share the cache. Which code segment should you insert at line 07?


Page 1 of 1512345...10...Last »