Which two encoding formats do REST APIs commonly support? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: XML, JSON.
Why this is the answer
REST APIs commonly use XML (Extensible Markup Language) and JSON (JavaScript Object Notation) for data encoding. XML is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. JSON is a lightweight data-interchange format that is easy for humans to read and write, and easy for machines to parse and generate. Both are widely supported and offer structured ways to represent data exchanged between clients and servers in a RESTful architecture. SGML is a predecessor to HTML and XML but is not commonly used for REST API data exchange. YAML is another data serialization language but is less prevalent than JSON or XML for general REST API data transfer. EBCDIC is an old character encoding primarily used on IBM mainframe systems and is not relevant to modern web APIs.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed