Salesforce Certified Platform Developer II — Question 143
A company has a native iOS app for placing orders that needs to connect to Salesforce to retrieve consolidated information from many different objects in a JSON format.
Which is the optimal method to implement this in Salesforce?
Answer options
- A. Apex REST Web Service
- B. Apex SOAP Web Service
- C. Apex SOAP Callout
- D. Apex REST Callout
Correct answer: A
Explanation
The optimal choice is Apex REST Web Service because it is specifically designed to handle RESTful requests and returns data in JSON format, which is ideal for mobile applications. Apex SOAP Web Service and Apex SOAP Callout are more suited for SOAP protocols and XML data, making them less efficient for this scenario. Apex REST Callout is not the best option as it refers to making outbound calls rather than implementing a service for inbound requests.