70-513 WCF Development with Microsoft .NET Framework 4 Exam Set 1

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?


Options are :

  • Use a BasicHttpBinding binding with the security code set to Message
  • Use a WSFederationHttpBinding binding.
  • Use a WSFederationHttpBinding binding with the security code set to Message.
  • Use a BasicHttpBinding binding

Answer : Use a WSFederationHttpBinding binding with the security code set to Message.

70-642 Windows Server 2008 Network Infrastructure Exam Set 4

You work as a Windows Developer for PassGuide.com. 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?


Options are :

  • Call a constructor of the ServiceHost class.
  • Create and add a custom endpoint behavior to the service.
  • Configure the behavior using an application configuration file
  • Add the IEndpointBehavior object to the Service.Endpoint.Behaviors property

Answer : Call a constructor of the ServiceHost class.

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?


Options are :

  • Implement the Inspector
  • Confirm the undelivered message queue.
  • Confirm the dead-letter queue
  • Confirm the Journal queue

Answer : Confirm the dead-letter queue

Exhibit: string void PassGuideDelete(string PassGuideId); 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 PassGuideService with the HTTP DELETE operation PassGuideService must use this method. How can this be achieved?


Options are :

  • .. WebInvoke(UriTemplate = "/Items/(id,Method=”DELETE")
  • All of the above
  • Use the operation
  • ..and add attribute…

Answer : All of the above

70-647 Pro Windows Server 2008 Enterprise Administrator Exam Set 5

Contract exhibit: [ServiceContract(CallbackContract typeof(INameService))] public interface IGreetingSennce { [OperationContract] string GetMessage0, } [ServiceContract] public interface INameService { [OperationContract] string GetName(); } IGreetingService interface exhibit: public class GreetingService IGreetingService { public string GetMessage() { INameService clientChannel OperationContext Current.GetCallbac kChannel <INameService>; using clientName = clientChanne[GetName()]; return String.Format(“Hi there {0}, clientName); }} Hosting code exhibit: ServiceHost host = new ServiceHost(typeof(GreetingService)); NetTcpBinding binding = new NetTcpBinding(SecurityMode.None); host Add ServiceEndpoint(PassGuideAppIGreetingService", binding, net.tcp:localhost = “96374"); 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 IGreetingService interface, the hosting code, and the INameService interface are all being displayed in the exhibits. At the moment the above code fails at line “return String.Format(“Hi there {0}, clientName);”. You need to tweak the code in order to make it work. What should you do? (select three) Use code…


Options are :

  • All of the above
  • .. the IGreetingService interface
  • [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Reentrant)]
  • ..and Insert the following code before the first line in the implementation of..

Answer : All of the above

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?


Options are :

  • Observe the system event log.
  • Observe the security log.
  • Observe the application log.
  • Observe the application EventLog class

Answer : Observe the application EventLog class

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


Options are :

  • maxReceivedMessageSize
  • All of the above
  • ..and increase the value of..
  • Use the endpoint binding..

Answer : All of the above

Microsoft 70-642 Windows Server Network Infrastructure Exam Set 4

You work as a Windows Developer for PassGuide.com. You are required to handle orders placed for the company's IT department. You are required to write the following code for a service contract: <ServiceContract> Public Interface IOrderManager <OperationContract> 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?


Options are :

  • Public Sub OrderPlaced(ordered As Integer) End Sub
  • Public Sub OrderPlaced(ordered As String) End Sub
  • (TransactionScopeRequired:=True, TransactionAutoComplete:=False)] Public Sub OrderPlaced (ordered As Integer) End Sub
  • (TransactionScopeRequired:=False, TransactionAutoComplete:=True)] Public Sub OrderPlaced (ordered As Integer) End Sub

Answer : (TransactionScopeRequired:=False, TransactionAutoComplete:=True)] Public Sub OrderPlaced (ordered As Integer) End Sub

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. 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?


Options are :

  • All of the above
  • ..add the following attribute..
  • [OperationBehavior(TransactionScopeRequired true)]
  • Use the PassGuideConfirm method..

Answer : All of the above

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.


Options are :

  • C & D
  • Use the serviceDebugger behavior..
  • ..and use attribute..
  • Use the serviceAuthorization behavior..
  • Use the serviceSecurityAudit behavior..

Answer : C & D

70-515 Web Applications Development with Microsoft .NET Exam Set 1

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


Options are :

  • NetTcpBinding
  • BasicHttpBinding
  • WebHttpBinding
  • B & C

Answer : B & C

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


Options are :

  • Host the service in a Windows service.
  • Host the service under IIS 7.0 by using Windows Activation Services.
  • Host the service under IIS 6.0 by using the IIS 5.0 compatibility mode.
  • Host the service under IIS 2.0 by using the IIS 1.0 compatibility mode.

Answer : Host the service in a Windows service.

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?


Options are :

  • A & B
  • Use the following method of the X509CertificateRecipientServiceCredential class..
  • SetCertificate
  • Certificate

Answer : A & B

70-513 WCF Development with Microsoft .NET Framework 4 Exam Set 2

You work as a Windows Developer for PassGuide.com. The company uses Visual Studio .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 attributes would you need to specify in your binding, in order to implement transactions in your WCF service 4.0? Each correct answer represents a complete solution. Choose all that apply


Options are :

  • C & D
  • ServiceBehaviorattribute
  • transactionProtocol
  • OperationBehaviorattribute
  • transactionProtocol

Answer : C & D

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 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?


Options are :

  • Construct a Service.svc file that uses and manages WSHttpBinding.
  • Construct a Web.config file to configure an endpointforthe Service that uses and manages WebHttpBinding.
  • Construct a Service.svc file that uses and manages WebHttpBinding.
  • Construct a Web.config file to configure an endpointforthe Service that uses and manages WSHttpBinding.

Answer : Construct a Web.config file to configure an endpointforthe Service that uses and manages WSHttpBinding.

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 a task to create a WCF Service based on Framework 4.0. John is required to add the following code segment: (Line numbers are included for reference only.) 01 [ServiceContract(SessionMode=SessionMode.Required)] 02 public interface IInventoryManager 03 { 04 05 void CloseOrder(); 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?


Options are :

  • [OperationContract(IsInitiating=true)]
  • [OperationContract(IsTerminating=true)]
  • [OperationContract(IsInitiating=false)]
  • [OperationContract(IsTerminating=false)]

Answer : [OperationContract(IsTerminating=true)]

70-646 Pro Windows Server 2008 - Server Administrator Exam Set 5

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.


Options are :

  • BasicHttpBinding
  • WSDualHttpBinding
  • NetTcpBinding
  • WSHttpBinding
  • C & D

Answer : C & D

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?


Options are :

  • Use the OperationContractAttribute..
  • On PassGuideClient..
  • ..set set the Async Pattern property value to false
  • On PassGuideService..

Answer : On PassGuideClient..

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


Options are :

  • For PassGuide1 add a SecunitySafeCriticalAttribute
  • For PassGuide2 add a SecunitySafeCriticalAttribute.
  • For PassGuide1 add a SecurityCriticalAttribute
  • Replace [OperationContract] with [OperationContract ProtectionLevel=Sign]

Answer : Replace [OperationContract] with [OperationContract ProtectionLevel=Sign]

Microsoft Windows Server 2016 Certification: Exam 70-741 Set 3

There is a WCF (Windows Communication Foundation) service PassGuideService. There are application-defined roles stored in a database PassGuideDB. PassGuideService uses a list of the roles stored in PassGuideDB. How can you ensure that calls are authorized with these roles?


Options are :

  • A & C
  • Use the following service attribute...
  • Use the following service behaviour...

Answer : A & C

Exhibit: <ServiceContract> Public Interface lService <OperationContract> Function PassGuide1() As String <OperationContract0> 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 PassGuide1 and PassGuide2. Calls to PassGuide1 and PassGuide2 from PassGuideClient must not be unencrypted. How can this be ensured? Select all that apply


Options are :

  • For PassGuide1 add a SecurityCriticalAttribute
  • Replace [OperationContract] with [OperationContract ProtectionLevel=Sign]
  • Replace [OperationContract] with [OperationContract ProtectionLevel=EncryptAndSign]
  • For PassGuide2 add a SecunitySafeCriticalAttribute.

Answer : Replace [OperationContract] with [OperationContract ProtectionLevel=Sign]

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 want to ensure that the service uses sessions. You have written the following code segment: (Line numbers are included for reference only.) 01 namespace MyBankService 02 { 03 [ServiceContract(Name = "BankService", 04 Namespace = "http://www.mybankservice.com", 05 CallbackContract = typeof(IBankService), 06 ' Insert code statement here.)] 07 public interface IBankService 08 { 09 [OperationContract(IsOneWay = true)] 10 int Deposit(double amount, int accountnum); 11 } 12 } Which of the following codes should you insert at line number 06?


Options are :

  • SessionMode = Allowed
  • SessionMode = SessionMode.Required
  • SessionMode = Required
  • SessionMode = SessionMode.Allowed

Answer : SessionMode = SessionMode.Required

70-247 Configuring and Deploying a Private Cloud Exam Set 4

There is a WCF (Windows Communication Foundation) service PassGuideService. PassGuideService 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?


Options are :

  • Use PassGuideDB..
  • B & C
  • ..and configure service Debug.
  • Use PassGuideService..

Answer : B & C

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 IBankService 03 { 04 [OperationContract] 05 void WithdrawFunds(); 06{ 07 08 public class ServiceImpl : IBankService 09 { 10 [OperationBehavior(TransactionScopeRequired=true)] 11 public void WithdrawFunds() { } 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?


Options are :

  • [ServiceBehavior(ConcurrencyMode=ConcurrencyMode.Single, ReleaseServiceInstanceOnTransactionComplete=true)]
  • [ServiceBehavior(ConcurrencyMode=ConcurrencyMode.Multiple, ReleaseServiceInstanceOnTransactionComplete=true)]
  • [ServiceBehavior(ConcurrencyMode=ConcurrencyMode.Reentrant, ReleaseServiceInstanceOnTransactionComplete=false)]
  • [ServiceBehavior(ConcurrencyMode=ConcurrencyMode.Multiple, ReleaseServiceInstanceOnTransactionComplete=false)]

Answer : [ServiceBehavior(ConcurrencyMode=ConcurrencyMode.Single, ReleaseServiceInstanceOnTransactionComplete=true)]

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 { [ServiceContract(Namespace="MyHospital.PatientService")] public interface IPatientService { [OperationContract] void CheckOutPatient(int PatientID); int FindPatientRecord(string LastName,stringFirstName); int 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?


Options are :

  • The code should have the [OperationContract] attribute before each method, and not just before the first method.
  • The IPatientService interface should be a class
  • The namespace syntax is incorrect. It should simply have Namespace="PatientService").
  • The [OperationContract] attribute should be defined before the interface definition

Answer : The code should have the [OperationContract] attribute before each method, and not just before the first method.

Microsoft 70-647 Windows Enterprise Administrator Exam Set 8

There is a WCF (Windows Communication Foundation) service PassGuideService. There is a WCF (Windows Communication Foundation) client proxy PassGuideClient. PassGuideClient 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


Options are :

  • Change the configuration file by..
  • setting the attribute maxReceivedMessageSize to..
  • 8388608
  • All of the above

Answer : All of the above

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?


Options are :

  • Message contract
  • Contract
  • Impersonation
  • Data binding

Answer : Impersonation

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


Options are :

  • REST
  • WCF runtime
  • WCF service
  • Managed .NET application
  • C & D

Answer : C & D

Microsoft 70-243 Administering Deploying System Manager Exam Set 3

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?


Options are :

  • Kerberos
  • Message level security
  • Https
  • Transport level securit

Answer : Message level security

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?


Options are :

  • On PassGuideClient
  • C & D
  • On PassGuideService
  • Use the OperationContractAttribute
  • add a proxy derived from DuplexClientBase (Of TChannel)

Answer : C & D

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions

Subscribe to See Videos

Subscribe to my Youtube channel for new videos : Subscribe Now