Salesforce Certified Platform Developer II — Question 212
The Salesforce instance at Universal Containers currently integrates with a third-party company to validate mailing addresses via REST services. The third-party address verification system recently changed endpoint URLs for all their services from https://th-address-service.3pc.com to https://plc1-mailservice.3pc.com. Everything else remained the same. The developer updated code to reflect this endpoint change, but the mailing address validation service stopped working after the change.
What else should be done to complete this web service endpoint change?
Answer options
- A. Create a new Remote Site for the new endpoint URL.
- B. Use a Custom Setting with the new endpoint instead of hard coding the URL.
- C. Test the callout properly using HttpCalloutMock.
- D. Add web service IP addresses to Trusted IP Ranges in the Network Access security controls settings.
Correct answer: A
Explanation
Creating a new Remote Site for the updated endpoint URL is essential because Salesforce requires that all external callouts to new endpoints are registered in Remote Site Settings for security reasons. The other options do not address the immediate need for the Remote Site Setting to allow communication with the new endpoint, which is why they would not resolve the issue.