Multiple choice technology architecture

Default serialization mechanism used by WCF

  1. DataContractSerializer

  2. XML Serializer

  3. All of the above

  4. Binary serialization

Reveal answer Fill a bubble to check yourself
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.