Top Banner
70-513 practice Exam Exhibit: <endpoint address http:/ m.PassGuide.com/PassGuideService ? Binding=褀 etTc pBinding? bi ndi ngConfi guraton-NetTcpBi ndi ng_PassGui deService contract=褀 erviceReference 1. IPassGuideService? nam e= NetTcpBi ndi ng_PassGu i deServicel> There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService use address tcp:www.PassGuide.com/PassGuideService to listens for messages. The logical address is www.PassGuide.com/PassGuideService The WCF client is configured as in the exhibit. However, the client is unable to communicate with the server. In what way must the configuration be adjusted? q. 1
189
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript

70-513 practice ExamExhibit: There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService use address tcp:www.PassGuide.com/PassGuideService to listens for messages. The logical address is www.PassGuide.com/PassGuideService The WCF client is configured as in the exhibit. However, the client is unable to communicate with the server. In what way must the configuration be adjusted?

q. 1

There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService has a callback contract. There is a client application PassGuideClient. PassGuideClient calls PassGuideService. How can you ensure that PassGuideClient and PassGuideService can communicate? Select two.

q. 2

There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService has a callback contract. There is a client application PassGuideClient. PassGuideClient calls PassGuideService. How can you ensure that PassGuideClient and PassGuideService can communicate? Select two.

q. 3

There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService supports transactions. Messages handled by PassGuideService must be encoded using a binary encoding, must be secured using Windows stream-based security, and must be sent over TCR. PassGuideService must implement a custom binding for the service. How should the stacking order be defined?

q. 4

There is a WCF (Windows Communication Foundation) application PassGuideApp. PassGuideApp exposes a service as and end point (SOAP) for consumption by crossplatforms clients. You want to log messages that the service receives from the client. What action should you take?

q. 5

There is a WCF (Windows Communication Foundation) service PassGuideService. PassOuideService communicates with a database PassGuideDB. PassGuideDB uses a workflow engine. PassGuideDB handles data access authorization. A security exception is raised an unauthorized user tries to access PassGuideDB. This exception must be transmitted the client that is calling PassGuideService. How can this be achieved? Select two.

q. 6

There is a WCF (Windows Communication Foundation) service PassGuideService. There are out of-process process resources that PassGuideService must access on behalf of an originating caller. What should you do?

q. 7

There is WCF (Windows Communication Foundation) application PassGuideApp. There is a data contract PassGuideData, with several data members, that is used by PassGuideApp. Consider a serialized instance of PassOuideData which is deserialized. If any of data members are not available PassGuideApp must throw a Serialization Exception. What action should you take? Select three.

q. 8

There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService exposes the operations PassGuidel and PassGuide2. PassGuidel should run with the identity of the client. PassGuide2 should run with the identity of the PassGuideService. How can this be achieved?

q. 9

There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService handles accounting related processes. You must ensure that PassGuideService runs with the identit, of the application that is calling PassGuideService. How can this be ensured?

q. 10

There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService is secured. How can you track attempts to access PassGuideService that are unsuccessful? Select all that apply.

q. 11

There is a WCF (Windows Communication Foundation) service PassGuideService. There is also a WCF (Windows Communication Foundation) client application PassGuideApp. PassGuideApp uses HTTP to communicate with PassOuideService. Message logging must be enabled. The logging should includes tokens and nonces should be included in the logged securilV information. How can this be achieved?

q. 12

There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService generates separate namespace declarations for every body member the message contract. How can the XML representation of the message contract be simplified under the assumption that all body members have the same namespace? Select two or three.

q. 13

There is a WCF (Windows Communication Foundation) service PassGuideService. There is a method PassGuideSubmit. PassGuideSubmit handles System.ServiceModel.Channels.Message tipes of messages. For any message the body of the message is processed several times. How can this be ensured? Make use of method...

q. 14

There is a WCF (Windows Communication Foundation) service PassGuideService. PassOuideService uses POX (plain-old XML). Only POX, JSON, or ATOM formats must be used by/catalog.svcfitems operation when it responds. The usage of these same URL must be enforced whatever the result type. The response format must be determined through the Accepts HTTP header. How can this be achieved?

q. 15

There is a WCF (Windows Communication Foundation) solution PassGuideSol. PassOuideSol uses two services, PassOuidel and PassCuide2, to handle a shopping cart Service. PassOuidel handles messages that contains line items between $0 and $1000. PassGuide2 handles messages that contains line items that total more than $1000. The business logic priority of PassOuidel and PassGuide2 are the same. Which filters should be used to facilitate WCF routing to the PassGuidel and PassGuide2?

q. 16

There is a WCF (Windows Communication Foundation) service PassGuideService. How can you ensure that other services are notified when PassGuideService starts?

q. 17

There is a WCF (Windows Communication Foundation) service PassGuideService. There is a a public non-transactional MSMQ queue PassGuideQueue. PassGuideService reads messages from PassGuideQueue. New PassGuideService must be tweaked to read messages from the failed-delivery queue. The endpoint configuration settings URI must be specified.

q. 18

There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService is currently exposing a contract over HTTP. Now the contract needs to be exposed over both HTTP and TCP. How can this be achieved?

q. 19

There is a WCF (Windows Communication Foundation) Web seivice PassGuideService. PassGuideService have problems handling larger messages. PassGuideService is not responding to messages larger than 96 KB. How can this be remedied? Select three

q. 20

There is a WCF (Windows Communication Foundation) service PassGuideSeriice. PassCuideService is handling transmission XML documents between systems. PassOuideService must be able to communicate with non NET systems that uses SOAP. PassGuideService must not use base64 encoding or escape characters in the XML documents that is transferred. PassOuideService must minimize the size of transmission by attaching transmitted XML documents as is. How can this be ensured? Select two or three.

q. 21

There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService is going to be moved from development into production. In order to check the performance and health of PassOuideService you intend to enable all performance counter instances exposed by the ServiceModelService 40.0.0 counter group. Which action should be taken?

q. 22

There are four WCF (Windows Communication Foundation) services. These services are hosted within MS IlS (Internet Information Services) application PassGuideApp. PassGuideApp must be tweaked so that eversl service and endpoint has a limit of 40 concurrent calls, and a limit of concurrent seasons to 20. In the web-config file there is no behavior configuration. What should be done?

q. 23

There is a WCF (Windows Communication Foundation) service PassGuideService. PassOuideService is self-hosted within a console application PassGuideApp. PassGuideService use the TimeService class to implement ITimeService service interface. To ensure HTTP communication how should the service endpoint be configured?

q. 24

There is a WCF (Windows Communication Foundation) service PassGuideSeriice. PassOuideService is hosted in MS IlS (Internet Information Services). There is a new application PassGuideApp. PassGuideService is hosted within PassGuideApp. The PassOuideService DLL is copied to PassCuideApp bin folder. How should the deployment of PassGuideService be completed?

q. 25

There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService will be hosted in MS lIS (Internet Information Services) 7.0. PassGuideService will be hosted in an IlS application PassGuideApp. How can enable PassGuideService so it it can be hosted in lIS?

q. 26

There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService must be ASP.NET compatible in order to use session states. How can this be achieved?

q. 27

There is a WCF (Windows Communication Foundation) service PassGuideService. There is a WCF (Windows Communication Foundation) client proxy PassGuideClient. PassGui deClient was created with the Microsoft Visual Studio Add Service Reference command. PassGuideClient must be able to handle responses up to size of 8 MB. How can this be achieved? Select three.

q. 28

There is a resful WCF (Windows Communication Foundation) service PassGuideService PassGuideService is hosted by the ASP.NET application PassGuideApp. PassCuideApp hosts PassGuideService at location lServices/PassCuideService.svc. Client access PassGuideService through a JavaScript resource. See exhibit for an explicit page markup reference to PassGuideService. How can you obtain the debug version of JavaScipt service? Select two or three.

q. 29

There is a WCF (Windows Communication Foundation) Client application PassGuideApp. There are two service interfaces PassOuidel and PassCuide2. PassGuideApp consumes PassOuidel and PassCuide2. You must make sure that PassGuideApp detects services that implement PassGuidel and PassGuide2. Assume that the services to be detected are already online or comes online within 45 seconds. How can you enforce this behavior with WCF discovery?

.

q. 30

There is a WCF (Windows Communication Foundation) service PassGuideService. When PassGuideService is stopped or started it sends notification. You want to enable the clients to log these notifications. Which class should be used?

q. 31

There is a WCF (Windows Communication Foundation) service PassGuideService. Which binding element should be used to be able to use a customized message-level security binding?

q. 32

You are employed as a developer at PassGuide.com. There is a WCF (Windows Communication Foundation) service PassGuideService. basicHttpBinding is used by the PassOuideService endpointfor its binding. At the moment clear text messages are allowed but now you need to ensure that the messages are encrypted when they are sent over the PassGuide.com network. How can this be achieved?

q. 33

You are employed as a developer at PassGuide .com. There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService is based on WSHttpBinding. Now you need to make sure that each caller must be authenticated on every call. You also prevent caching of requesttoken. How can this be enforced? Choose three.

q. 34

You are employed as a developer at PassGuide.com. There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService is self-hosted. During authentication PassGuideService must provide a certifixate of type X.509. How can this be enforced? Select two.

q. 35

Exhibit: a Select two.

q. 40

There is a WCF (Windows Communication Foundation) service PassGuideService. The Windows Event Log is used by PassGuideService to log all authorization attempts. PassOuideService needs to be configured with a behavior to achieve this. Which behavior is appropriate?

q. 41

There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService is configured to accept messages that are encrypted and signed. There is a client PassGuideClient that is using PassGuideService. PassGuideClient is not working well. It is not receiving proper responses from PassGuideService. To troubleshoot this problem you need to veritsi that the messages from PassGuideClient are encrypted and signed. You would need to enable logging. Furthermore, you need to check the content of each message body before it is deserialized to a NET object. How can this be achieved?

q. 42

There is a WCF (Windows Communication Foundation) service PassGuideService. There is a PassGuideClientthat communicates with PassOuideService. There is a need of a comparison of PassOuideClient and PassOuideService traces. What should be done?

q. 43

Exhibit: Opening System.ServiceModel.ServiceHostJ84234l4 Get configuration section. ----- Get configuration section. MSMQ detected successfully. ------ Throwing an exception. Error. Failed to open System.ServiceModel.ServiceHost Warning Faulted to System.ServiceModel.ServiceHost Warning ServiceHost faulted Message: Binding validation failed because the bindings MsmqAuthentlcatlonMode properti is set to VvindowsDomain but MSMQ IS installed with Active Directory integration disabled. The channel factory or service host cannot be opened. There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService has some run-time problems. SvcTraceviewer.exe is used to retrieve tracing information. Parts of this information is being displayed in the exhibit. You are required to determine where the determine where the error occurred. You must also recommend what is the best action to take.

q. 44

Contract exhibit: [ServiceContract] public interface IHelloService [OperationContract] [WebGet(UriTemplate =helloname={name})] string PassGuideHello(string name); Class exhibit: public class HelloService: IHelloService { public string PassGuideHello(string name) { return Hi there? + name; } } Hosting code exhibit: WebServiceHost svcHost = CreateHostO; svcHost.OpenO; Console .ReadLineO; SrvHost.CloseO; There is a WCF (Windows Communication Foundation) service PassGuideService. The contract of PassGuideService, the implementation, and self-hosted service hosting code are displayed in separate exhibits. A single endpoint, at http://PassGuide:7500/HelloService, is used for the implementation of CreateHost. Which code should you use?

q. 45

There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService is selfed-hosted within a console application. PassGuideService is implementing the DataAccess contract. The PassGuideApplication namespace includes a definition of the DataAccess contract. A ServiceHost instance must first be created and then be assigned to a host variable. The service host must be intantiated. Which code should be used?

q. 46

There is a WCF (Windows Communication Foundation) service application PassGuideApp. PassGuideApp is required to provide service to a hea client request load, even simulatanous requests. Stateful conversation must be provided for each ensure subsequent individual client request. Which attribute should be added to the class implementation?

q. 47

ServiceContract Exhibit: Your service has the rollowing service contract. [ServiceContract] public class PassGuideService { [OperationContract] public Boolean PassGuideConfirm(string PhoneNumber, double wage, integer EmployeeNumber) {} } There is a WCF (Windows Communication Foundation) service PassGuideService. PassOuideService exists within SCA (Service Oriented Architecture) within an enterprise. The serviceContact of PassGuideService is displayed in the exhibit. Method PassGuideConfirm, when executed, must be participate transperentally in existing transactions.Furthermore, when there is no existing transaction, a new transaction must be created. How should the ServiceContract be tweaked to achieve is?

q. 48

There is a WCF (Windows Communication Foundation) service PassGuideService. The clients and the service that uses PassGuideService use NetTcpBinding (transaction flow enabled). Assuming that the operations PassOuideOPi and PassGuideOP2 are called within the same client session, you need to enforce that they are executed within the same transaction context. Which contract should PassGuideService have?

q. 49

Contract exhibit:[ServiceContract(CallbackContract typeof(lNameService))] public interface lGreetingSennce { [OperationContract] string GetMessage();} [ServiceContract] public interface INameService { [OperationContract] string GetName(); }

lGreetingService interface exhibit:public class GreetingService lcreetingService { public string GetMessage() { INameService clientChannel OperationContext Current.GetCallbac kChannel ; using clientName = clientChanne[GetName()]; return String.Format(Hi there {O}, clientName); }}

Hosting code exhibit:ServiceHost host = new ServlceHost(typeof(GreetingService)), NetTcpBinding binding = new NetTcpBindi ng(SecurityMode None), host Add ServiceEndpoint(PasscuideApplcreetingService? binding, net.tcp:localhost = ?63 7411); host Open();

INameService interface exhibit:class NameService INameService { string name; public NameService(string name) { this.name = name; } public string GetName() { return name; }}

There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService is self-hosted. The implementations of contracts, the lGreetingService interface, the hosting code, and the INameService interface are all being displayed in the exhibits. At the moment the above code fails at line eturn String.Format Hi there {O}, clientName); You need to tweak the code in order to make it work. What should you do? (select three)

q. 50

q. 51

There is a WCF (Windows Communication Foundation) service PassGuideService. Which WCF service code should be used when your goal is to provide the clients a good response time from PassGuideService?

q. 52

Service implementation exhibit: class PassGuideService: lPassGuideService { public void PassGuideOp1(stringvalue) public void PasscuideOp2(string value) { } } Contract exhibit [ServiceContract(SessionMode s SessionMode Required)] public interface lPassGuideService { [OperationContract(lsOneWay = true, Islnitiating = true)] void PassGuideOpl(string value); [OperationContract(lsOneWay true, lslnitiating = false)] void PassGuideOp2(string value); } There is a WCF (Windows Communication Foundation) service PassOuideService. The contract and implementation of PassGuideService is being displayed in the exhibits. NetMsmqBinding us used by PassGuideService to listen for messages. The queue is configured to use transactions for removing and adding messages. How can you ensure that PassGuideOpl and PassGuideOp2 runs within the same transaction whenever they are called within the same session?

q. 53

ContractExhibit: [Service Contract] public interface IPassGuideService { [OperationContract] void SaveEmployee(Employee employee); } Binding exhibit: NetTcpBinding binding = new NetTcpBinding{TransactionFlow = True}; Client Call exhibit: using (TransactionScope ts = new TransactionScope(TransactionScopeOption.Required)) { lPassGuideService client = factoryCreateChannelO; client SaveEmployee(employee); Console .WriteLine(Transaction .CurrentTransacti cmi nformationDistributedldentifier); tsComplete(); } SaveEmployee Exhibit: Public void SaveEmployee(Employee employee) { employee .Save() ConsoleWriteLine(TransactionCurrentTransactionlnformation, Distributedldentifier); }

There is a WCF (Windows Communication Foundation) service PassGuideService. The service and the client has the service contract displayed in the contract exhibit. The binding of the service and the client is displayed in the binding exhibit. The client call exhibit displays how the client calls PassGuideService. The implementation of the PassOuideService SaveEmployee method is displayed in the SaveEmployee Exhibit. However, there is a problem. There is distributed identifier mismatch between the client and PassGuideSeivice. How can this be remedied?

q. 54

WCF Solution PassGuide. You need to specify the contract complying to the following requirements: PassGuideInitialize can always be called before PassGuideTerminate is called. PassGuideSomething can only be called after PassGuidelnitialize has been called. PassGuideSomething cannot be called after PassCuideTerminate has been called. PassGuideTerminate can only be called after PassGuidelnitialize has been called. Which contract should be used?

q. 55

Hosting Code Exhibit: ServiceHost host new ServiceHost(t eof(CounterService)); NetTcpBinding bind 1 = new NetTcpBinding(SecurityMode None); host .AddServiceEndpoint(PassGuideApp .lCounterService? bindi , net.tcp://localhost: 98765?; host .OpenO; Bind2 exhibit: host.AddServiceEndpoint( assGui deApp ,lCounterService? bind2, http:lllocalhost: 98765?; There is a WCF self-hosted service PassGuideService. PassGuideService provides a session-based counter. PassGuideService is exposed over TCP. The PassGuideService hosting code is being displayed in the exhibit. PassGuideService must also be exposed over HTTP for external clients. The session-counter must be able to perform over HTTP at it does over TCP. How should bind2 be defined and configured?

q. 56

Exhibit:[ServiceContract] [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple)] public class DataAccessService { [OperationContract] public void PutMessage(string message) { MessageDatabase .PutMessage(message); } [OperationContract] public string SeachMessages(string search) { return MessageDatabase.SearchMessages(search); } }

There is a WCF (Windows Communication Foundation) service PassOuideService. PassGuideService is specified in the exhibit. PassGuideService is used over a TCP binding. At the moment MessageDatabase only support a small finite number of concurrent executions of the methods belonging to it. While not preventing users to connecting to PassGuideService you need to tweak the performance of PassOuideService so it allows the maximum number calls the methods. What should be done?

q. 57

Exhibit: [ServiceContract] public interface ITeamMessageService { [Ope rati onContract] string GetMessageO; [Ope rati onContract] void PutMessage(string message); } There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService uses the contract being displayed in the exhibit. PassCuideService is used to share messages between the clients. You need to ensure that all the clients receive the same message from the GetMessage method, even if the PutMessage method is used by another client. Which code should be used?

q. 58

Data contract Exhibit: [DataContract] public class Employee { [DataMember] public string Name, [DataMember] public string Citi: [DataMember] public mnt Wage, [DataMember] public mt EMPLOYEEID; } XML exhibit: 123456789 < MPLOYEEID>

There is WCF (Windows Communication Foundation) application PassGuideApp. PassGuideApp uses the data contract being displayed data contract exhibit. The XML code in the XML exhibit must be produces with the data contract is serialized. How can this be achieved?

q. 59

There is WCF (Windows Communication Foundation) service which is being implemented. The error information that is being sent to the user should not include stack trace information. Which code should you use?

q. 60

Exhibit: public class Machine { public mt Multiply(int x, nty) { } } There is WCF (Windows Communication Foundation) service which is being implemented. You use the class displayed in the exhibit. The class must be exposed as a service named PassGuideA and operation OperationX. The internal implementation at the service layer should not be exposed. Which code should be used?

q. 61

There is WCF (Windows Communication Foundation) service PassGuideService. A data contract PassGuideContract for PassGuideService is being implemented. PassGuideContract must be forward-compatible. The round trips must include the information in PassGuideContract. It should be able to add ew data members to PassGuideContract. You do have to follow a strict schema validitiy. Which interface should be used for PassGuideContract class?

q. 62

Contract exhibit [ServiceContract(Namespace=http://PassGui de .com)> Public Interface IShipping { [OperationContract] string PassGuideWork(int id) } There is a WCF (Windows Communication Foundation) application PassCuideApp. There is a WCF (Windows Communication Foundation) service PassGuideService. The contract of PassGuideService is being displayed in the exhibit. PassGuideApp is also hosting other services. PassGuideApp endpoints use SOAP 1 .2 bindings with WS-Addressing 1.0. There is one single lister configured in System.ServiceModel.MessageLogging trace source of the system.diagnostics configuration section. Only the messeages that the PassGuideWork operation returns should be logged. How should this be achieved? Select four.

q. 63

There is a WCF (Windows Communication Foundation) service lPassGuideService in class PassGuideService. PassCuideService intermittently throws an exception and then fails. Now you need to handle the unhandled exceptions to clients by sending the stack trace of these to the clients as a fault message. How can this be achieved?

q. 64

Soap envelope exhibit: 9283PassGuidelD> Header> 1234 Body> Envelope> The SOAP envelope in the exhibit must be generated. How should this be achieved?

q. 65

PassOuideSeivice exhibit: [OperationContract] void PassGuideService(Order data); There is a client PassGuideClient. PassOuideClient sends multiple SOAP message to a WCF (Windows Communication Foundation) service method PassOuideService. PassGuideService must be tweaked so that any SOAP message can be received. Which code should you use?

q. 66

PassGuideService Exhibit: [ServiceContract] public interface PassGuideService { [OperationContract] DateTime GetPassideServiceTime; } There is a class PassGuideService. PassCuideService is hosted within an ASP.NET application PassCuideApp. PassOuideService implements the interface being displayed in the exhibit PassGuideApp must be tweaked so that the GetPassGuideServiceTime method returns the result formatted as JSON when request url ends in /PassCuide. How can this be achieved?

q. 67

Exhibit: string void PassGuideDelete(string PassGuideld); There is a WCF service PassGuideService. PassOuideService implements restful manner operations. The PassOuideDelete method is implemented as displayed in the exhibit. When a Client Calls PasssuideService with the HTTP DELETE operation PassOuideService must use this method. How can this be achieved? Select two or three.

q. 68

Service Contract exhibit: [ServiceContract] public interface Service { [OperationContract] string PassGuideOp (string s); } There is a WCF service PassCuideService. PassOuideService uses the service contract in the exhibit. PassGuideOp must respond to HTTP POST request. How can this be ensured?

q. 69

There is a WCF (Windows Communication Foundation) service PassGuideService. PassOuideService is implementing a contract through one-way and request reply operations. PassGuideService is exposed over a TCP transport. Question End users use a router to access PassGuideService. How should the router be implemented?

q. 70

You are modifying an existing Windows Communication Foundation (WCF) service that is defined as follows [ServiceContract] public interface MessageProcessor{ [Ope rati onContract] void PassCuideProcess () public class MessageProcessor: lMessageProcessor{ public void ProcessMessage() PassGui deSubmitO; } There is a WCF (Windows Communication Foundation) service PassGuideService. It is defined in the exhibit. PassGuideSubmit uses another service not defined above. There is performance problem with the PassGuideProcess method when it is run in hea load. Processing of multiple messages must be supported. Additionaly you must make sure that new messages is only processed when PassGuideProcess is not waiting for request and there is no waiting for PassGuideSubmit processes to finish. How can this be ensured?

q. 71

There is a WCF (Windows Communication Foundation) service PassGuideService. There is a client for PassGuideService. Which class should be used when you want to create a proxy to consume this service?

q. 72

There is a WCF (Windows Communication Foundation) service client application PassGuideService. There is a proxy named PasscuideServiceProxy You need to provide code that are able to catch and handle errors for this proxy. Which code should be used?

q. 73

There is a WCF (Windows Communication Foundation) service client PassOuideServiceClient. The system ServiceModel element of PassOuideServiceClient includes the XML element that is being displayed in the exhibit. There is a need of channel factory. The channel factory should send messages to endpoint listening at net.pipe: //localhost/PassGui deService. Which code should be used for the channel factory?

q. 74

[ServiceContract(CallbackContract = typeof(lNameService))] public interface lcreetingService [Ope rati onContract] string PassGuideMessage; } [ServiceContract] public intetface INameService { [Ope rati onContract] string PassGuideName(); } There is a WCF (Windows Communication Foundation) solution PassGuideSol, which is using some contracts being displayed in the exhibit. Whenever the client uses PassGuideMessage on the service interface, the service uses the client callback to call PassGuideName. Within the client the callback contract is implemented by the NameService class. The service callback must processed by an instance of NameService. How should the client channed be implemented?

q. 75

Exhibit: [ServiceContract] public interface IDataService [OperationContract] string PassGuideDataO; There is a WCF (Windows Communication Foundation) solution PassGuideSol, which is exposing the contract being displayed in the exhibit. At the moment calls to PassGuideData has a lo seconds completion time. Current client calls makes blocking calls to PassGuideData. New clients must be allowed to make non-blocking calls to obtain data from PassGuideData. At the same time the existing clients must not break. How can this be achieved?

q. 76

Exhibit: [ServiceContract] public interface lDataAccessService { [OperationContract] void PassGuidePut(string message) [OperationContract] [FaultContract(typeof(Ti meoutFaultExcepti on)) [FaultContract(typeof(FaultExcepti on))] string PassGuideSearch(string search), } There is a WCF (Windows Communication Foundation) service. The service implements the contract being displayed in the exhibit. Database timeouts causes PassGuideSearch to throw TimeoutFaultException exceptions. Other issues that causes problems for PassGuideSearch thows Exceptions. The clients receives the exceptions as generic FaultException exceptions. A new channel must be created on the client. New error handling code for PassGuideSearch must be created. This code should only handle errors on the new channel. How can this be achieved?

q. 77

Exhibit: [ServiceContract] public interface ICatalog { [OperationContract] [WebGet(UriTemplate = ?Catalog/ltems/{id}? ResponseFormat = WebMessageFormatJson)] string PassGuideRetrieve(int id); } There is a WCF (Windows Communication Foundation) service. The service is consumed by an ASP. NET Web application PassGuideApp. lCatalogsvc is used to host the service. The definition of the service is displayed in the exhibit. JQuery, with variable EmployeelD, must be used to call the service to obtain data of an item indicated by EmployeelD. How can this be achieved?

q. 78

Exhibit: [DataContract(Namespace)] public class Item { [ServiceContract(Namespace)] public interface Catalog { [Ope rati onContract] [Weblnvoke(Method =POST, UriTemplate = *ltem*)] Item Updateltem(ltem item); }} There is a WCF (Windows Communication Foundation) service that is being consumed. The interface of the service is displayed in the exhibit. There is a WebResponse with the name of PassOuideResponse that the client application receives from the service. PassGuideResponse must be deserialized into a strongly tiped object. This object represents value that is returned by the method. How can this be achieved?

q. 79

There is a WCF (Windows Communication Foundation) client application PassGuideApp. PassGuideApp is consuming an syndication RSS feed from librivox.org. PassGuideApp uses a SyndicaionFeed variable PassGuideFeed. For each syndication item PassGuideApp needs to show the content type and body on the display. Which code should be used?

q. 80

Exhibit: [DataContract] public class Order{ [DataMember] public string CustomerName { get; set;} [DataMember] public string PhoneNumber { get; set; } } There is a WCF (Windows Communication Foundation) process PassGuldeProcess. PassGuideProcess handles orders. The data contract of Order is displayed in the exhibit. It includes name of the customer (CustomerName) and their telephone number (PhoneNumber). The Order data must be transmitted from the client to PassGuideProcess. PhoneNumber data must not be sent in clear text, but this data must be available for PassGuideProcess. How can this be achieved?

q. 81

Exhibit: [Message Contract] public class Agent { public string PassGuideName { get; set: } public string PassGuideSecret { get; set; } } There is a WCF (Windows Communication Foundation) process PassGuideProcess. When clients are started the send messages to PassGuideProcess. These messages are accepted by PassGuideProcess. The contract of the messages is being displayed in the exhibit. PassGuideProcess must be able to make sure that the properti values is kept unchanged after it has been sent by the client. PassOuideName should be sent in clear text while PassOuideSecret must not. PassGuideProcess must be able to read both. How can this be achieved?

q. 82

Exhibit: [ServiceContract] public interface IService { [OperationContract] string PassGuidel Q; [OperationContract] string PassCuide2o; } There is a WCF (Windows Communication Foundation) client PassGuideClient. The service contract of PassOuideClient is being displayed in the exhibit. There are two operations PassGuidel and PassGuide2. Calls to PassOuidel and PassCuide2 from PassOuideClient must not be unencrypted. How can this be ensured? Select all that apply.

q. 83

Exhibit: service contract [ServiceContract] public interface lOrderProcessing { [Ope rati onContract] void ConfirmOrder(int id) } Public Interface lOrderProcessing Sub ConfirmOrder(ByVal id As Integer) End Interface There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService is implementing the service contract being displayed in the exhibit. How can you ensure that only users that are members of the role named Employees can use the ConfirmOrder method?

q. 84

Exhibit: Public Interface Service Function PassCuidel() As String Function PassGuide2() As String End Interface There is a WCF (Windows Communication Foundation) client PassGuideClient. The service contract of PassGuideClient is being displayed in the exhibit. There are two operations PassGuidel and PassGuide2. Calls to PassOuidel and PassGuide2 from PassOuideClient must not be unencr,pted. How can this be ensured? Select all that apply.

q. 85

Exhibit: Public Class Agent Public Propert, PassGuideName As String Public Propert? PassGuideName As String End Class There is a WCF (Windows Communication Foundation) process PassGuideProcess. When clients are started the send messages to PassCuideProcess. These messages are accepted by PassGuideProcess. The contract of the messages is being displayed in the exhibit. PassGuideProcess must be able to make sure that the properti values is kept unchanged after it has been sent by the client. PassOuideName should be sent in clear text while PassOuideSecret must not. PassGuideProcess must be able to read both. How can this be achieved?

q. 86

Exhibit: Public Class Order Public Property CustomerName As String Public Property PhoneNumber As String End Class There is a WCF (Windows Communication Foundation) process PassGuideProcess. PassGuideProcess handles orders. The data contract of Order is displayed in the exhibit. It includes name of the customer (CustomerName) and their telephone number (PhoneNumber). The Order data must be transmitted from the client to PassGuideProcess. PhoneNumber data must not be sent in clear text, but this data must be available for PassGuideProcess. How can this be achieved?

q. 87

There is a WCF (Windows Communication Foundation) client application PassGuideApp. PassGuideApp is consuming an syndication RSS feed from librivox.org. PassGuideApp uses a SyndicaionFeed variable PassGuideFeed. For each syndication item PassGuideApp needs to show the content type and body on the display. Which code should be used?

q. 88

Exhibit: Public Class Item End Class Public Interface Catalog Function Updateltem(ByVal item As Item) As Item End Interface There is a WCF (Windows Communication Foundation) service that is being consumed. The interface of the service is displayed in the exhibit. There is a WebResponse with the name of PassGuideResponse that the client application receives from the service. PassGuideResponse must be deserialized into a strongly typed object. This object represents value that is returned by the method. How can this be achieved?

q. 89

Public Interface Catalog Function PassGuideRetrieve(ByVal id As Integer) As String End Interface There is a WCF (Windows Communication Foundation) service. The service is consumed by an ASP. NET Web application PasscuideApp. /Catalogsvc is used to host the service. The definition of the service is displayed in the exhibit. JQuery, with variable EmployeelD, must be used to call the service to obtain data of an item indicated by EmployeelD. How can this be achieved?

q. 90

Public Interface lDataAccessService Sub PassGuidePut(ByVal message As String) Function PassGuideSearch(ByVal search As String) As String() End Interface There is a WCF (Windows Communication Foundation) service. The service implements the contract being displayed in the exhibit. Database timeouts causes PassGuideSearch to throw TimeoutFaultException exceptions. Other issues that causes problems for PassGuideSearch thows Exceptions. The clients receives the exceptions as generic FaultException exceptions. A new channel must be created on the client. New error handling code for PassGuideSearch must be created. This code should only handle errors on the new channel. How can this be achieved?

q. 91

Exhibit: Public Interface IDataService - Function PassGuideData() As String End Interface There is a WCF (Windows Communication Foundation) solution PassOuideSol, which is exposing the contract being displayed in the exhibit. At the moment calls to PassOuideData has a 10 seconds completion time. Current client calls makes blocking calls to PassGuideData. New clients must be allowed to make non-blocking calls to obtain data from PassOuideData. At the same time the existing clients must not break. How can this be achieved?

q. 92

Public Interface lGreetingService Function PassGuideMessage() As String End Interface Public Interface INameService Function PassGuideName() As String End Interface There is a WCF (Windows Communication Foundation) solution PassGuideSol, which is using some contracts being displayed in the exhibit. Whenever the client uses PasscuideMessage on the service interface, the service uses the client callback to call PassGuideName. Within the client the callback contract is implemented bythe NameService class. The service callback must processed by an instance of NameService. How should the client channed be implemented?

q. 93

There is a WCF (Windows Communication Foundation) service client PassOuideServiceClient. The system ServiceModel element of PassOuideServiceClient includes the XML element that is being displayed in the exhibit. There is a need of channel factory. The channel factory should send messages to endpoint listening at net.pipe: //localhost/PassGui deService. Which code should be used for the channel factory?

q. 94

There is a WCF (Windows Communication Foundation) service client application PassGuideService. There is a proxy named PassGuideServiceProxy You need to provide code that are able to catch and handle errors for this proxy. Which code should be used?

q. 95

There is a WCF (Windows Communication Foundation) service PassGuideService. There is a client for PassGuideService.

q. 96

Contract exhibit: Public Interface IHelloService Public Interface IMessageProcessor Sub PassGuideProcess() End Interface Public Class MessageProcessor Implements IMessageProcessor Public Sub ProcessMessage() Implements IMessageProcessor ProcessMessage PassGui deSubmit() End Sub End Class

There is a WCF (Windows Communication Foundation) service PassGuideService. It is defined in the exhibit. PassGuideSubmit uses another service not defined above. There is performance problem with the PassCuideProcess method when it is run in hea load. Processing of multiple messages must be supported. Additionaly you must make sure that new messages is only processed when PassGuideProcess is not waiting for request and there is no waiting for PassGuideSubmit processes to finish. How can this be ensured?

q. 98

There is a WCF (Windows Communication Foundation) service PassGuideService. PassOuideService is implementing a contract through one-way and request reply operations. PassGuideService is exposed over a TCP transport. End users use a router to access PassGuideService. How should the router be implemented?

q. 99

Service Contract exhibit: Public Interface Service ? Function PassGuideOp (ByVal s As String) As String There is a WCF service PassGuideService. PassGuideService uses the service contract in the exhibit. PassGuideOp must respond to HTTP POST request. How can this be ensured?

q. 100

Sub PassGuideDelete (Byval PassGuideld As String) There is a WCF service PassGuideService. PassGuideService implements restful manner operations. The PassGuideDelete method is implemented as displayed in the exhibit. When a client calls PassOuideService with the HTTP DELETE operation PassCuideService must use this method. How can this be achieved? Select two or three.

q. 101

PassGuideService Exhibit: Public Interface PassOuideService Function GetPassGuideServiceTime() As DateTime End Interface

PassGuideService is hosted within an ASP.NET application PassGuideApp. PassCuideService implements the interface being displayed in the exhibit. PassGuideApp must be tweaked so that the GetPassGuideServiceTime method returns the result formatted as JSON when request url ends in /PassGuide. How can this be achieved?

q. 102

PassOuideSeivice exhibit: Sub OperationContract (Byval data As Order) There is a client PassGuideClient. PassGuideClient sends multiple SOAP message to a WCF (Windows Communication Foundation) service method PassGuideService. PassOuideService must be tweaked so that any SOAP message can be received. Which code should you use?

q. 103

Soap envelope exhibit: 1234 Envelope>

The SOAP envelope in the exhibit must be generated.How should this be achieved?

q. 104

Data contract Exhibit Public Class Employee Public Name As String Public Citj As String Public Wage As Integer Public EMPLOYEEID As Integer End Class XML exhibit 123456 789 There is WOE (Windows Communication Foundation) application PassGuideApp. PassCuideApp uses the data contract being displayed data contract exhibit. The XML code in the XML exhibit must be produces with the data contract is serialized. How can this be achieved?

q. 105

There is a WCF (Windows Communication Foundation) service lPassGuideService in class PassGuideService. PassOuideService intermittently throws an exception and then fails. Now you need to handle the unhandled exceptions to clients by sending the stack trace of these to the clients as a fault message. How can this be achieved?

q. 106

Contract exhibit Public Interface IShipping Function PassGuideWork(ByVal id As Integer) As String End Interface

There is a WCF (Windows Communication Foundation) application PassCuideApp. There is a WCF (Windows Communication Foundation) service PassGuideService. The contract of PassGuideService is being displayed in the exhibit. PassGuideApp is also hosting other services. PassGuideApp endpoints use SOAP 1 .2 bindings with WS-Addressing 1.0. There is one single lister configured in System.ServiceModel.MessageLogging trace source of the system.diagnostics configuration section. Only the messeages that the PassGuideWork operation returns should be logged. How should this be achieved? Select four.

q. 107

ServiceContract Exhibit: Public Class PassGuideService Public Function PassGuideConfirm(ByVaI PhoneNumber As String,ByVal wage As Double,ByVal EmployeeNumber Integer) As Boolean ... End Function

There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService exists within SOA (Service Oriented Architecture) within an enterprise. The serviceContact of PassGuideService is displayed in the exhibit. Method PassGuideConfirm, when executed, must be participate transperentally in existing transactions.Furthermore, when there is no existing transaction, a new transaction must be created. How should the ServiceContract be tweaked to achieve is?

q. 108

There is a WCF (Windows Communication Foundation) service application PassGuideApp. PassGuideApp is required to provide service to a hea client request load, even simulatanous requests. Stateful conversation must be provided for each ensure subsequent individual client request. Which attribute should be added to the class implementation?

q. 109

There is a WCF (Windows Communication Foundation) service PassGuideService. The clients and the service that uses PassOuideService use NetTcpBinding (transaction flow enabled). Assuming that the operations PassOuideOPi and PassCuideOP2 are called within the same client session, you need to enforce that they are executed within the same transaction context. Which contract should PassCuideService have?

q. 110

Contract exhibit: [ServiceContract(CallbackContract lipeof(INameService))] public interface IGreetingSennce { [OperationContract] string GetMessage(); } [ServiceContract] public interface INameService { [OperationContract] string GetName(); } lGreetingService interface exhibit: Public Interface IGreetingService Function GetMessage() As String End Interface Public Interface INameService Function CetNamne() As String End Interface Hosting code exhibit: Dim host As ServiceHost = New ServiceHost(GetType(GreetingService)) Dim binding As NetTcpBinding = New NetTc pBindng(SecurityMode.None) Host.AddServiceEndpoint(PassGui deApplGreeti ngService? binding, net.tcp:localhost = ?6374? Host Open() INameService interface exhibit: class NameService INameService { string name: public NameService(string name) { this.name name; } public string GetName() { return name; } } Class NameService Implements INameService Dim name As String Public Sub NameService(ByV name As String) Me.reme= name End Sub Public Function GetName() As String Impements INameService. GeNamee Return name End Function End Class

q. 111

PassGuideService is self-hosted WCF Service. At the moment the above code failed at line return String.Format(Hi there {O}, clientName). You need to tweak the code in order to make it work. What should you do? (select three)

q. 112

There is a WCF (Windows Communication Foundation) service PassGuideService. Which WCF service code should be used when your goal is to provide the clients a good response time from PassGuideService?

q. 113

The Same as 113.

q. 114

Service implementation exhibit: Class PassGuideService Implements lPassGuideService Public Sub PassGuideOne(ByVal value As String) Implements IPassOuideService. OperationOne End Sub Public Sub PassGuideTwo(ByVal value As String) Impements IPassOuideService. PassGuideTwo End Sub Contract exhibit: PubIc Interface lPassGuideService Sub PassGuideOne(ByVal value As String) Sub PassGuideTwo(ByVal value As String) End Interface

There is a WCF (Windows Communication Foundation) service PassGuideService. The contract and implementation of PassGuideService is being displayed in the exhibits. NetMsmqBinding us used by PassGuideService to listen for messages. The queue is configured to use transactions for removing and adding messages. How can you ensure that PassGuideOpl and PassGuideOp2 runs within the same transaction whenever they are called within the same session?

q. 115

ContractExhibit: Public Interface IPassGuideService Sub SaveEmployee(Byval employee As Employee) End Interface Binding exhibit: Dim binding As NetTcpBinding = New NetTcpBinding With (TransactionFlow = True) Client Call exhibit: using (TransactionScope ts = new TransactionScope(TransactionScopeOption.Required)) { lPassGuideService client = factoryCreateChannelO; client SaveEmployee(employee); Console .WriteLine( Transaction .CurrentTransacticminformation Distributedldentifier), tsComplete(); } SaveEmployee Exhibit: Public Sub SaveEmployee(ByVal employee As Employee) Implements IPassOuideService SaveEmployee employee .Save() ConsoleWriteLine(TransactionCurrentTransacti onlnformation. Distri butedldentifier) End Sub

There is a WCF service PassGuideService. The service and the client has the service contract displayed in the contract exhibit. The binding of the service and the client is displayed in the binding exhibit. The client call exhibit displays how the client calls PassGuideService. The implementation of the PassOuideService SaveEmployee method is displayed in the SaveEmployee Exhibit. However, there is a problem. There is distributed identifier mismatch between the client and PassGuideSeivice. How can this be remedied?

q. 116

There is a WCF (Windows Communication Foundation) solution for PassGuide. You need to specit the contract complying to the following requirements: PassGuidelnitialize can always be called before PassCuideTerminate is called. PassGuideSomething can only be called after PassGuidelnitialize has been called. PassGuideSomething cannot be called after PassCuideTerminate has been called. PassGuideTerminate can only be called after PassGuidelnitialize has been called. Which contract should be used?

q. 117

Hosting Code Exhibit: Dim host As ServiceHost = New ServiceHost(GetType(CounterService)) Dim bidl As NetTcpBinding = New NetTcpBinding(SecurityMode.None) host.AddServiceEndpoint(PassGui deApp .lCounterService?binding, et.tcp://localhost: 98765? host .Open() Bind2 exhibit: host.AddServiceEndpoint(? PassGui deApp .lCounterService? bind2, http:/!localhost: 98765?

There is a WCF (Windows Communication Foundation) self-hosted service PassGuideService. PassGuideService provides a session-based counter. PassGuideService is exposed over TCP. The PassGuideService hosting code is being displayed in the exhibit. PassGuideService must also be exposed over HTTP for external clients. The session-counter must be able to perform over HTTP at it does over TCP. How should bind2 be defined and configured?

q. 118

Exhibit: Public class DataAccessService Public Function PutMessage(ByVal message As String) Mes sageDatabase .PutMessage(message) Public Function SearchMessages(ByVai search As String) as String Return MessageDatabase.SearchMessages(search) End Function End Class

There is a WCF (Windows Communication Foundation) service PassGuideService, PassGuideService is specified in the exhibit. PassGuideService is used over a TCP binding. At the moment MessageDatabase only support a small finite number of concurrent executions of the methods belonging to it. While not preventing users to connecting to PassGuideService you need to tweak the performance of PassGuideService so it allows the maximum number calls the methods. What should be done?

q. 119

Exhibit: PuElic Interface ITeamMessageService Function GetMessage() As String Sub PutMessage(Byval message As String) End Interface

WCF service PassGuideService uses the contract being displayed in the exhibit. PassGuideService is used to share messages between the clients. You need to ensure that all the clients receive the same message from the GetMessage method, even if the PutMessage method is used by another client. Which code should be used?

q. 120

There is WCF (Windows Communication Foundation) service which is being implemented. The error information that is being sent to the user should not include stack trace information. Which code should you use?

q. 121

Exhibit: public class Machine { public intMultiply(intx, nty){ } } Public Class Calculator Public Function Add(ByVal x As Integer, ByVal yAs Integer) As Integer End Function End Class There is WCF (Windows Communication Foundation) service which is being implemented. You use the class displayed in the exhibit. The class must be exposed as a service named PassOuideA and operation OperationX. The internal implementation at the service layer should not be exposed. Which code should be used?

q. 122

There is WCF (Windows Communication Foundation) service PassCuideService. A data contract PassGuideContract for PassGuideService is being implemented. PassGuideContract must be forward-compatible. The round trips must include the information in PassGuideContract. It should be able to add ew data members to PassCuideContract. You do have to follow a strict schema validitiy. Which interface should be used for PassGuideContract class?

q. 123

You work as an Application Developer for PassGuide.com. The company uses Visual Studio .NET Framework 3.5 as its application development platform. You have decided to implement transactions in your WOE service. You wish to implement transactions in your binding settings. Which of the following are NOT the attributes you would set? Each correct answer represents a complete solution.

q. 124

You work as a Windows Developer for PassGuide,com. You are tasked to create a Windows Communication Foundation client application by using Microsoft .NET Framework 4.0. You are required to examine the parameters on the client application. Which of the following actions should you perform to accomplish the task? Each correct answer represents a part of the solution.

q. 125

John works as Windows Application Developer for PassGuide.com. The company uses Visual Studio NET Framework 4.0 as its application development platform. John has been given ataskto create aWCF Service based on Framework 4.0. John is required to add the following code segment: (Line numbers are included for reference only.) 01 [ServiceContract(SessionModeSessionMode.Required)] 02 public interface llnventoryManager 03 { 04 05 void CloseOrderO; 06 } John needs to decorate and manage the operation as the method that closes the current session method. Which of the following code statements should you insert at line number 04 to accomplish the task?

q. 126

You are working on a WCF service that will be accessed by several clients. The service will be used by a bank to handle financial calculations. You wantto ensure thatthe service uses sessions. You have written the following code segment: (Line numbers are included for reference only.) 01 namespace MyBankService 02 { 03 [ServiceContract(Name = ankService? 04 Namespace = ttp:llwww.mybankservice.com? 05 CallbackContract = typeof(lBankService), 06 insert code statement here.)] 07 public interface lBankService 08 { 09 [OperationContract(lsOneWay = true)] 10 int Deposit(double amount, mt accountnum); 11) 12 } Which of the following codes should you insert at line number 06?

q. 127

You have been tasked with creating a WCF service for a hospital. This service will provide access to patient data. You have written the following code:using System; using System.ServiceModel; namespace MyHospital.PatientService { [Servi ceContract(Namespace= yHospital.Pati entServi ce?] public interface lPatientService { [Operati onContract] void CheckOutPatient(int PatientlD); mt FindPatientRecord(string LastName,stringFirstName); mt AddPatientRecord(string LastName,stringFirstName); } }

However, you are getting an error in the above code. What should be done in the code to correct this error so that the service will compile and run properly?

q. 128

You work as a Windows Developer for PassCuide,com. The company uses Visual Studio .NET Framework 4.0 as its application development platform. You have been tasked to implement transactions in your WCF service 4.0. Which of the following order to implementtransactions inyourWCF service 4.0? Each correct answer represents a complete solution.

q. 129

You work as an Application Developer for PassGuide.com. You are tasked with creating a WCF application for a bank. You write the following code segment: (Line numbers are for reference only.) 01 [ServiceContract] 02 public interface lBankService 03 { 04 [OperationContract] 05 void WithdrawFundsO; 06{ 07 08 public class Servicelmpl : lBankService 09 { 10 [OperationBehavior(TransactionScopeRequired=true)] 11 public void WithdrawFundsO {} 12 } You need to ensure that each service call is allowed on the service instance at a time and the service object is released as soon as the current transaction is completed. Which of the following code segments should you insert at line number 07?

q. 130

Which of the following mechanisms is a commonly used technique that allows the .NET process to act as an authenticated user, or as an arbitrarily specified user?

q. 131

You work as a Windows Developer for PassOuidecom. You need to define a new Service contract. Which of the following corresponds to the .NET attributes from the System.ServiceModel namespace that you require when defining your Service contract?

q. 132

John works as a Windows Application Developer for PassGuide.com. The company uses Microsoft Visual Studio .NET 2010 as its application development platform for creating applications. He has been given a task of creating a WCF service based on Framework 4.0. He has finished creating the WCF service and must now configure the bindings. He requires using WSHttp nding binding. He has already defined and implemented the service contract on the application. What is the next step that he must take to accomplish the task?

q. 133

You work as a Windows Developer for PassGuide.com. You have been provided with a task to create a WCF service by using Microsoft .NET Framework 4.0. For this, you need to host the service in a medium trust environment on a Web server. Which of the following bindings whould you use to accomplish the task? Each correct answer represents a complete solution. Choose two.

q. 134

You are working on a WCF service that will have various client sessions connecting to it. You want a service instance to be created each time a client uses the service. Which of the following code segments should you use to implement this?

q. 135

You are creating a WCF application that includes a client using a remote WCF service. You are concerned about security for the communications between client and server. Your application specifications state that you should have end-to-end security. Which of the following security methods should you implement?

q. 136

John works as a Windows Application Developer for PassGuide.com. The company uses Microsoft Visual Studio NET 2010 as its application development platform for creating applications. He has been given a task of creating a WOE service based on Eramework4.0. He has finished creating the WOE service and must now configure the bindings. He requires using WSHttpBinding binding. He has already defined and implemented the service contract on the application. What is the next step that he must take to accomplish the task?

q. 137

John works as a Windows Application Developer for PassGuide.com. The company uses Visual Studio NET 2010 as its application development platform. John has been given a task to create a WCF service for his company using .NET Framework 4.0. Which of the following properties does the service require, in order to configure endpoints? Each correct answer represents a part of the solution.

q. 138

John works as a Windows Developer for PassGuide.com. John has been given a task to create a WCF 4.0 by using the Microsoft NET Framework 4.0. The client applications are unable to use SSL feature. John here needs to make sure that a client is authenticated by using a token mentioned by a Security Token Service (STS). What should John do to accomplish the task?

q. 139

You work as a Windows Developer for PassOuidecom. You need to define a new Service contract. Which of the following corresponds to the .NET attributes from the System.ServiceModel namespace that you require when defining your Service contract?

q. 140

You work as a Windows Developer for PassGuide.com. You need to generate a Windows Communication Foundation service by using Microsoft NET Framework 4.0. You set up tracing for the service. The tracing fails because of an error in the service configuration. You need to recognize the cause of the error. What should you do to accomplish the service without any error?

q. 141

You work as a Windows Developer for PassGuidecom. You have a task to create a WCF service 4.0 by using Microsoft .NET Framework 4.0. The WCF service will be hosted in a managed console application of the Framework. The WCF 4.0 service endpoint has an address that is comparative to the base address of the WCF service. You are required to programmatically add and manage the base address to the WCF service. What should you do to accomplish the task?

q. 142

You work as a Windows Developer for PassGuide,com. You are required to create a WOE service by using Microsoft .NET Framework 4.0. The WCF service uses the net.tcp transport. You are required to ensure that when the companys server starts, the service also starts and continues to run. What should you do to accomplish this task?

q. 143

Which of the following are the main requirements to self-host your services? Each correct answer represents a complete solution. Choose two.

q. 144

You work as a Windows Developer for PassGuide.com. You are required to handle orders placed for the companys IT department. You are required to write the following code for a service contract: Public Interface lOrderManager Sub OrderPlaced(ordered As Integer) EndSub End Interface

You want to make sure that the OrderPlaced method uses transactions, and if no exception occurs, then regulates and commits automatically. Which of the following implementations would you use?

q. 145

You work as a Windows Developer for PassGuidecom. You are required to create a WOE 4.0 service that will be used by multiple clients afterwards. According to the requirements, one service object should handle all service calls and this service object should not be recycled. Which of the following values for the session instance will You use to accomplish the task?

q. 146

You work as an Application Developer for PassGuide.com. You have been assigned to create a WCF service for the Business School of Management. You write the following code segment to define the service:Public Interface ISchoolService Sub FindStudent(int StudentlD) End Interface Public Class School Implements ISchoolService Public Sub FindStudent(int studentnumber) End Sub End Class

Your next task is to set the attribute for the transaction behavior of this service. Which of the following code statements should you insert atthe beginning of the above mentioned code segment?

q. 147

You work as a Windows Developer for PassGuide.com. The company uses .NET Framework 4.0 as its application platform. You are tasked to create a WCF service based on .NET 4.0 that uses message queues. You also find that most of the messages that are in the queue failed to reach their final destination. Which of the following actions would you choose to troubleshoot the problem and accomplish the task?

q. 148

You work as a Windows Developer for PassGuide.com. You have been provided with a task to create a WCF service by using Microsoft NET Framework 4.0. For this, you need to host the service in a medium trust environment on a Web server. Which of the following bindings whould you use to accomplish the task? Each correct answer represents a complete solution. Choose two.

q. 149

Which of the following determines whether an existing instance of the service class (the service instance) can process the request?

q. 150