Question: Fill in the blank: The part of an HTTP request that tells the API where to retrieve data from is the ___.
- request
- method
- header
- body
Explanation
The request in an HTTP request specifies the endpoint or URL from which the API should retrieve data. It contains the necessary information for the API to know where to fetch the data. The request defines the resource being accessed and may include query parameters, which help specify the data to retrieve.
Why the other options are incorrect
Method specifies the action to be performed (e.g., GET, POST) but does not tell the API where to retrieve the data.
Header contains metadata about the request, such as authentication details, but not the location for data retrieval.
Body contains the data sent to the API (usually in POST or PUT requests), not the endpoint.
Source for verification
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods
The answer(s) to the question is highlighted in the BOLD text above. You can also find more questions and answers related to the exams on the "Data Integrations Certification" page.
