Question 1 of 29
A company is integrating an external service into its Salesforce environment to enhance its customer support capabilities. The external service provides a REST API that allows for the retrieval of customer data based on specific parameters. The integration requires the use of Named Credentials for authentication and a custom Apex class to handle the API calls. Given this scenario, which of the following best describes the steps needed to successfully implement this integration while ensuring secure access to the external service?
Create a Named Credential to store the authentication details, develop an Apex class that uses HttpRequest to call the external service, and implement error handling to manage any exceptions that may arise during the API call.
Directly embed the API key in the Apex class, use a standard Salesforce HTTP client to make the call, and ignore error handling since the API is reliable.
Use a custom Visualforce page to handle the API calls, bypass Named Credentials for simplicity, and rely on user input for authentication details.
Set up a custom Lightning component to manage the API calls, utilize a third-party library for authentication, and avoid implementing any error handling to streamline the process.

Preparing for SalesForce Certified Associate Salesforce Certified Associate? Now land the interview.

73% of qualified candidates get rejected because of weak resumes. Build an ATS-optimized, recruiter-ready resume in under 5 minutes - free to start.

Build My Resume Free