Developing Applications Using Cisco Core Platforms and APIs (DEVCOR) — Question 41
An ETag header is included in the HTTP response for an API resource.
What are two benefits of using the value of the ETag for future interactions involving the same API resource? (Choose two.)
Answer options
- A. caching and optimization of response payloads
- B. creating conditional requests
- C. categorizing and comparing this API resource with others
- D. checking the integrity of the resource
- E. requesting the list of operations authorized for this resource
Correct answer: A, B
Explanation
Using the ETag value allows for caching and optimization of response payloads by enabling clients to avoid downloading unchanged resources, thus improving performance. Additionally, it facilitates creating conditional requests, as clients can specify the ETag to ensure they only receive updates if the resource has changed. The other options do not directly relate to the core benefits provided by ETags in API interactions.