Salesforce Certified Platform Developer II — Question 253

How can the DISTANCE and GEOLOCATION functions be used in SOQL queries? (Choose two.)

Answer options

Correct answer: A, C

Explanation

Options A and C are correct because the DISTANCE function allows for filtering results based on proximity to specified coordinates and can also be used to sort results by distance. Options B and D are incorrect as the DISTANCE function does not return distance directly nor does it group results into ranges.