This is part third of .Net interview questions. We are covering WCF interview questions in this blog, so without wasting time lets start:
Default question: (for each question from below list, prepare examples from your latest projects. Because there is always a default question with each question
("Where did you use it in your latest project and why?"). By giving examples form your current projects will make an impression in interviewer's mind that you are not just read it up but you are in practice to follow good coding standards.
How do you rate yourself in WCF service out of 5.
What is WCF service and what is the advantage of this over web service(.asmx) ?
What is the base class of WCF service ?
What are the advantages and disadvantages of WCF service?
What are the end points of WCF services?
How do you decide when should we create WCF service and when MVC Web API? What are the differences between them ?
What is REST api?
What are service contracts and operation contracts?
How a service implements different service contracts and how to configure different end point for them?
How to make changes to WCF service without breaking the existing clients?
What are data contracts and data members in WCF service?
What is KnownType attribute in WCF service? what are the different ways to associate known type over service contract?
How do you enable massage logging and tracing in WCF service?
What is message contract in WCF and what is it's the advantages over data contract?
How to make changes in WCF contract in backward compatible manner so it doesn't break the existing clients?
What is the use of extension data object in WCF or What is the DataExtensibleDataObject interface?
What is the risk of implementing IDataExtensibleDataObject interface?
How do you handle exceptions in WCF service?
What is SOAP fault in WCF?
How to manage unhandled exception in WCF service?
How do you throw fault exception from WCF service?
How do you create strongly typed SOAP fault in WCF?
How do you implement centralized exception handling in WCF serice?
What are the different kinds of binding in WCF service?
How do you configure end points dynamically from code behind ?
How many ways you can host a WCF service? What is self hosting?
How to host a wcf service over window service and IIS?
Advantages and disadvantages of hosting wcf service over IIS?
What is WAS hosting in wcf?
What are the different message exchange patterns in WCF?
How do you implement Duplex message exchange pattern ?
What is default message encoding mechanism in wcf and what are the advantages and disadvantage of it?
What are the other ways to send large binary messages in wcf? Or what is MTOM ?
What are the instancing modes in wcf and how to define it? or what are the difference between PerCall, PerSession and Single instancing modes in wcf?
How to retrieve session id wcf service and client?
What is single instance context mode in wcf service?
What is session mode enumeration in wcf service?
What is single concurrency mode in wcf?
what is multiple concurrency mode in wcf?
What is reentrant concurrency mode in wcf?
What is throttling in wcf service ?
What is wcf security? What is transport security and message security ? How do you achieve this in wcf?
How do you control wcf message protection using protection level parameter?
What default security wsHttpBinding, basicHttpBinding, netTcpBinding support ? and how to configure wsHttpBinding to support transport level security?
How do you achieve authentication and authorization in wcf service?
What is message confidentiality and integrity with transport security ?
How do you configure netTcpBinding to use message security?
How do you configure SSL in wcf service?
How do you configure 2 way or mutual SSL ?
To build communication on 2 way SSL what are the handshaking messages between client and server processed? or how communication happen between client and server using 2 way SSL or mutual SSL authentication ?