Automation and Programmability
Which data encoding formats are commonly used in the body of REST API requests and responses?
Show the answer
Correct answerB. JSON and XML
AWhy not this: SNMP and Syslog are management protocols, not data encoding formats.
BWhy this is right: JSON and XML are the standard encodings for REST API request and response bodies.
CWhy not this: HTML is a web page markup, and SMTP is an email transfer protocol, not an encoding.
DWhy not this: YAML is used for automation files, and CSV is not a standard REST body encoding.
REST APIs commonly carry data encoded as JSON or XML. SNMP and Syslog are management protocols, not data encodings for REST bodies.