[Verified] 70-503 Microsoft free exam 196-210 (Mar 2016)

70-503 Royal Pack Testengine pdf

100% Actual & Verified — 100% PASS

Unlimited access to the world's largest Dumps library! Try it Free Today!

Get it now →

Product Description:
Exam Number/Code: 70-503
Exam name: TS: Microsoft .NET Framework 3.5 - Windows Communication Foundation
n questions with full explanations
Certification: Microsoft Certification
Last updated on Global synchronizing

Free Certification Real IT 70-503 Exam pdf Collection

Question No. 196

You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following code segment. 


You need to ensure that concurrent calls are allowed on the service instance. 

Which code segment should you insert at line 06? 

A. <ServiceBehavior(ConcurrencyMode:=ConcurrencyMode.Multiple, _ ReleaseServicelnstanceOnTransactionComplete:=True)> _ 

B. <ServiceBehavior(ConcurrencyMode:=ConcurrencyMode.Multiple, _ ReleaseServicelnstanceOnTransactionComplete:=False)> _ 

C. <ServiceBehavior(ConcurrencyMode:=ConcurrencyMode.Reentrant, _ ReleaseServicelnstanceOnTransactionComplete:=True)> _ 

D. <ServiceBehavior(ConcurrencyMode:=ConcurrencyMode.Reentrant, _ ReleaseServicelnstanceOnTransactionComplete:=False)> _ 

Answer:


Question No. 197

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service is hosted in a managed application. 

You need to perform the following tasks: 

Publish the service on the following address: net.tcp://localhost:8080/ExamService 

Publish the metadata on the following address: 

http://localhost:8081/ExamService/metadata?wsdl 

Which code fragment should you use? 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Question No. 198

How do you ensure Clipboard content is available if Service or client application is restarted? 

A. Increase session timeout to 60 minutes 

B. Modify service to use [ServiceBehavior(InstanceContextMode=InstanceContextMode. Single)] 

C. Apply [DurableService] attribute to service and [DurableOperation] to each method. 

D. Do a Copy() and Paste() to a local file, then when the service is restarted, read text from the local file. 

Answer:


Question No. 199

You are creating a Windows Communication Foundation application by using Microsoft .NET Framework 3.5. The application must consume an ATOM 1.0 feed published at http://localhost:8000/BlogService/GetBlog. 

You write the following code segment. (Line numbers are included for reference only.) 

01 Uri address = new 02 Uri("http://localhost:8000/BlogService/GetBlog"); 

04 Console.WriteLine(feed.Title.Text); 

You need to ensure that the application prints the title of the feed. 

Which code segment should you insert at the line 03? 

A. SyndicationFeed feed = SyndicationFeed.Load(address); 

B. SyndicationFeed feed = new SyndicationFeed0;feed.BaseUri = address; 

C. Syndicationltem item = Syndicationltem.Load(address); 

SyndicationFeed feed = new SyndicationFeed(); 

feed. Items = new Syndicationltem[] { item }; 

D. Syndicationltem item = new Syndicationltem(); 

item.BaseUri = address; 

SyndicationFeed feed = new SyndicationFeed(); 

feed. Items = new Syndicationltem[] { item }; 

Answer:


Question No. 200

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. 

You create the following service contract. 


You need to create an endpoint for the service contract in the application configuration file. 

Which endpoint should you use? 

A. <endpointaddress="" binding="basicHttpBinding" contract="HyServices.HyService"/> 

B. <endpointaddress="" binding="basicHttpBinding" contract="HyService"/> 

C. <endpointaddress="" binding="basicHttpBinding" contract="ServiceConfig"/> 

D. <endpointaddress="" binding="basicHttpBinding" contract="HyServices.ServiceConfig"/> 

Answer:


Question No. 201

You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. The service will authenticate the client applications by using Personal Information Cards. 

You write the following code segment. (Line numbers are included for reference only.) 


You need to ensure that only those client applications that provide a valid e-mail address can execute the Update method. 

Which code segment should you insert at line 08? 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Question No. 202

You create a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. The WCF service contains two operations named ProcessSimpleOrder and ProcessComplexOrder. 

You need to expose the ProcessSimpleOrder operation to all the client applications. You also need to expose the ProcessComplexOrder operation only to specific client applications. 

Which code segment should you use? 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Question No. 203

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The component will return custom business objects. You plan to develop a design strategy that meets the following requirements: 

The component can be accessed by the .NET Windows applications and JavaScript-based Web applications. The component can be consumed by the client applications by using the minimum amount of code. The least amount of network bandwidth is consumed. You need to implement the design strategy by using the minimum amount of development effort. What should you do? 

A. Develop the component as a Web service. Return the business objects as XML. 

B. Develop the component as a Windows Communication Foundation service. Return the business objects as serialized binary objects. 

C. Develop the component as a Windows Communication Foundation service. Return the business objects as JavaScript Object Notation objects. 

D. Develop the component as a Web service. Return the business objects as strings that contain the values of the properties concatenated and separated by a comma. 

Answer:


Question No. 204

You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. The service will authenticate the client applications by using Personal Information Cards. You write the following code segment. (Line numbers are included for reference only.) 


You need to ensure that only those client applications that provide a valid e-mail address can execute the Update method. Which code segment should you insert at line 15? 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Question No. 205

You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. 

The service will authenticate the client applications by using Personal Information Cards. 

You write the following code segment. (Line numbers are included for reference only.) 

01 public class CustomServiceAuthorizationManager: 

02 ServiceAuthorizationManager{ 

03 protected override bool CheckAccessCore(OperationContext operationContext) 

04 { 

05 string action = operationContext.RequestContext.RequestMessage.Headers.Action; 

06 if (action == "http://tempuri.org/lEnginefUpdate") 

07 { 

06 foreach (ClaimSet cs in 

operationContext.ServiceSecurityContext.AuthorizationContext.ClaimSets) 

09 { 

10 

11 

12 return false; 

13 } 

14 return true; 

15 } 

16 } ... 

17 bool IsEmailValid(string email) 

18 { 

19 //e-mail validation is performed here; 

20 return true; 

21 } 

You need to ensure that only those client applications that provide a valid email address can execute the Update method. 

Which code segment should you insert at line 10? 

A. foreach (Claim c in 

cs.FindClaims("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress", 

"PossessProperty")) 

return IsEmailValid(c.Resource.ToString()); 

B. foreach (Claim c in 

cs.FindClaims("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress", 

String.Empty)) 

return IsEmailValid(c.Resource.ToString()); 

C. foreach (Claim c in 

cs.FindClaims("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress", 

Rights.PossessProperty)) 

return IsEmailValid(c.Resource.ToString()); 

D. foreach (Claim c in 

cs.FindClaims("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress", 

Rights.Identity)) 

return IsEmailValid(c.Resource.ToString()); 

Answer:


Question No. 206

You are creating a distributed application by using Microsoft .NET Framework 3.5. The application uses Windows Communication Foundation. 

The client applications require the users to provide a user name and a password. 

You need to ensure that the server authenticates the client applications by verifying user names and passwords. 

Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.) 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: BD 


Question No. 207

You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. 

The service receives automation commands for a factory robot. 

You need to ensure that the robot receives the commands in the same order as they are transmitted. 

Which binding element should you use? 

A. <security/> 

B. <transactionFlow/> 

C. <compositeDuplex/> 

D. <reliableSession/> 

Answer:


Question No. 208

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service will be hosted in a Console application. 

You need to configure the service by using a configuration file other than the default app.config file. 

Which code segment should you use? 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Question No. 209

You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following code segment. 


You need to ensure that when the MyMethod method is called, the service is the root of a transaction. Which code segment should you insert at line 09? 

A. [OperationBehavior(TransactionScopeRequired=true)] 

[TransactionFlow(TransactionFlowOption.Allowed)] 

B. [OperationBehavior(TransactionScopeRequired=true)] 

[TransactionFlowfTransactionFlowOption.NotAllowed)] 

C. [OperationBehavior(TransactionScopeRequired=false)] 

[TransactionFlow(TransactionFlowOption.Mandatory)] 

D. [OperationBehavior(TransactionScopeRequired=false)] 

[TransactionFlow(TransactionFlowOption.NotAllowed)] 

Answer:


Question No. 210

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. 

The client application and the server application authenticate by using certificates. You need to implement message-level security. 

Which configuration settings should you use? 


A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: