An architect is required to integrate with an External Data Source via a Named Credential with an Apex callout due to technical constraints.
How is authentication achieved?
An architect is required to integrate with an External Data Source via a Named Credential with an Apex callout due to technical constraints.
How is authentication achieved?
When using Apex callouts and Named Credentials in Salesforce, authentication details are not required to be explicitly handled in the code. Instead, Salesforce manages the authentication process based on the configuration set within the Named Credential itself. Therefore, the authentication is automatically handled by Salesforce, making option D the correct choice.
The correct answer is D. Handle authentication in the code. However, when using Named Credentials in Salesforce, the authentication is handled by Salesforce itself, not in the Apex code. While login flows are a powerful tool for managing the login process and enforcing certain business processes at login, they are not typically used to handle authentication for Apex callouts to external data sources via Named Credentials
+1 for D
idiot question and answers. the best answer is in the question - just use Named Credential, and use the Named Credential from apex.