Developing Applications Using Cisco Core Platforms and APIs (DEVCOR) — Question 115
An application has been developed for monitoring rooms in Cisco Webex. An engineer uses the application to retrieve all the messages from a Cisco Webex room, but the results are slowly presented.
Which action optimizes calls to retrieve the messages from the /v1/messages endpoint?
Answer options
- A. Define the ma property by using the pagination functionality.
- B. Set the beforeMessage property to retrieve the messages sent before a specific message ID.
- C. Avoid unnecessary calls by using a prior request to /v1/rooms to retrieve the last activity property.
- D. Filter the response results by specifying the created property in the request.
Correct answer: A
Explanation
The correct answer is A because defining the ma property through pagination allows for more efficient retrieval of messages in segments, thus speeding up the process. Options B and D are less efficient as they only manipulate the data after retrieval, and C is not directly related to optimizing message retrieval from the endpoint.