Default serialization mechanism used by WCF
-
DataContractSerializer
-
XML Serializer
-
All of the above
-
Binary serialization
A
Correct answer
Explanation
DataContractSerializer is the default and recommended serialization mechanism for WCF. It provides better performance than XMLSerializer and is opt-in rather than opt-out. While you can configure WCF to use XMLSerializer using the [XmlSerializerFormat] attribute, DataContractSerializer is the out-of-the-box default.