Salesforce Certified Platform Developer II — Question 77
A company has a web page that needs to get Account record information, given its Salesforce record ID, from JavaScript on the page and then display it.
Which method of integration is optimal?
Answer options
- A. REST API
- B. Apex SOAP Web Service
- C. Soap API
- D. Apex REST Web Service
Correct answer: A
Explanation
The REST API is the most suitable option for this scenario because it is designed for web applications and allows JavaScript to easily make HTTP requests to retrieve data. The Apex SOAP Web Service and Soap API are less optimal for this use case, as they are more complex and not as straightforward for JavaScript integration compared to REST. Apex REST Web Service could also work, but the standard REST API is often preferred for simplicity and efficiency.