Tuesday 18 February 2014

.Net WCF interview questions and answers

  1. When should i use message security versus transport security in WCF
    1. http://msdn.microsoft.com/en-us/library/ff648863.aspx
    2. http://msdn.microsoft.com/en-us/library/vstudio/ms733137%28v=vs.100%29.aspx
  2. When should i use resource-bases authorization versus roles bases authorization in WCF
    1. http://msdn.microsoft.com/en-us/library/ff647503.aspx
  3. When should i impresonate the original caller in WCF
    1. http://msdn.microsoft.com/en-us/library/ff650591.aspx
    2. http://blogs.msdn.com/b/irenak/archive/2009/12/02/sysk-373-how-to-impersonate-the-original-caller-when-calling-the-wcf-service-in-asp-net-by-configuration-only.aspx
  4. How do i migrate to WCF service from a ASMX webservice
    1. http://www.codeproject.com/Articles/312490/Migrating-ASMX-Services-To-WCF-services
    2. http://msdn.microsoft.com/en-us/library/ms730214%28v=vs.110%29.aspx
    3. http://msdn.microsoft.com/en-us/library/aa738697%28v=vs.110%29.aspx
  5. How do i enable logging and auditing in WCF
    1. http://msdn.microsoft.com/en-us/library/ff650832.aspx
    2. http://msdn.microsoft.com/en-us/library/ms734737%28v=vs.110%29.aspx
  6. How do i stop my service if there has been an auditing failure in WCF
    1. http://msdn.microsoft.com/en-us/library/ff650832.aspx
  7. How do i authenticate against active directory  in WCF
    1.  http://social.msdn.microsoft.com/Forums/vstudio/en-US/18dcfcc7-28db-4bb4-8cf9-af2dbe3fddbe/wcf-service-and-active-directory-authenticationautorization-through-internet
    2. http://forums.asp.net/t/1680469.aspx
  8. How do i authenticate against SQL Store in WCF
    1. http://msdn.microsoft.com/en-us/library/ff647294.aspx
  9. How do i send credentials in the message when i an using transport security  in WCF
    1.  http://msdn.microsoft.com/en-us/library/ms789011%28v=vs.110%29.aspx
  10. How do i avoid clear text password  in WCF?
    1.  http://wcfsecurity.codeplex.com/wikipage?title=How%20do%20I%20avoid%20cleartext%20passwords?
  11. How do i use the windows token role provider for ASP.Net role authorization in WCF ?
    1.  http://msdn.microsoft.com/en-us/library/ff649821.aspx#Authorization5
  12. How do i encrypt sensitive data in the WCF configuration file.
    1.  http://wcfsecurity.codeplex.com/wikipage?title=How%20do%20I%20encrypt%20sensitive%20data%20in%20WCF%20configuration%20file?
  13. How do i run the WCF service with a particular identity ?
    1.  http://msdn.microsoft.com/en-us/library/ff650534.aspx#ConfigurationManagement2
  14. When should i use a service principal name (SPN)  in WCF ?
    1.  http://social.msdn.microsoft.com/Forums/vstudio/en-US/6b8862f8-39bd-4af5-8616-4abab369da87/wcf-userprincipalname-and-serviceprincipalname-confusion?forum=wcf
  15. How do i configure a least privileged account for my WCF service ?
    1.  http://wcfsecurity.codeplex.com/wikipage?title=How%20do%20I%20configure%20a%20least%20privileged%20account%20to%20host%20my%20service?
  16. Should i validate before or after message serialization  in WCF ?
    1.  http://msdn.microsoft.com/en-us/library/ff647141.aspx#InputDataValidation4
  17. How do i protect my service from malformed messages  in WCF?
    1.  http://msdn.microsoft.com/en-us/library/ff647141.aspx#InputDataValidation7
  18. When should i use a channel factory  in WCF?
    1.  http://msdn.microsoft.com/en-us/library/ms734681%28v=vs.110%29.aspx
    2. http://msdn.microsoft.com/en-us/library/ms576132%28v=vs.110%29.aspx
  19. What is REST in WCF ? how do we implement REST service in WCF ?
    1. http://msdn.microsoft.com/en-us/magazine/dd315413.aspx
  20. WCF poison message, WCF Dead letter
    1. http://www.michaelfcollins3.me/blog/2012/09/20/wcf-msmq-bad-message-handling.html
  21. Method overloading in WCF
    1. http://www.codeproject.com/Tips/656042/Method-Overloading-in-WCF
  22. dynamic and var
    runtime polymorph.
    viewbag
    jquery selectors
    2 default delegates
    flag enums
     

No comments:

Post a Comment