How can the developer meet these following requirements? A developer must create a custom pagination solution for accessing approximately 2000 recordsand displaying 50 records on each page. Data from Salesforce will be accessed via an API and not viaApex.
A. Use a StandardSetController. B. Use CURSOR 50 in SOQL queries. C. Use OFFSET in SOQL queries. D. Use LIMIT 50 in SOQL queries.
At times, a worker using Salesforce in their company may need to access a large amount of records at one time and they will want it displayed together, so that they will be able to look at them and compare the data. It would be quite time-consuming to flip through each record. Clicking on each record and waiting for it to open would take quite a while. Instead, there are ways to display 50 records on each page.
Then you could analyze 50 records at one time. To do this, the Salesforce worker will access it by API and not Apex. API stands for application programming interface. This provides the exact behavior that is expected. In order to do this, use OFFSET in the SOQL queries and also use the LIMIT 50 SOQL queries.