Exam MuleSoft-Integration-Associate Topic 1 Question 8 Discussion

Actual exam question for Salesforce's MuleSoft-Integration-Associate exam
Question #: 8
Topic #: 1
An API client makes an HTTP request to an API gateway with an Accept header containing the value
"application/json"
What is a valid HTTP response payload for this request in the client's requested data format?

Suggested Answer: C Vote an answer

When an API client makes an HTTP request with an Accept header containing the value "application/json", the API server should respond with a payload formatted as JSON. Here's a detailed explanation:
* Accept Header:
* Purpose: The Accept header indicates the media type(s) that the client is willing to receive from the server.
* Value "application/json": Specifies that the client expects a response in JSON format.
* Valid JSON Response:
* Format: JSON (JavaScript Object Notation) is a lightweight data interchange format that uses key-value pairs.
* Example: A valid JSON response for the requested format would be{"status": "healthy"}.
* Key: "status"
* Value: "healthy"
References
* JSON Standard: JSON.org
* HTTP Headers:MDN HTTP Headers

by Bowen at Aug 24, 2024, 10:34 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10