Salesforce Certified Experience Cloud Consultant — Question 96
Cloud Kicks (CK) has built a site using Salesforce Experience Builder. The CTO of CK wants to give customers the ability to log in to the site using their Google credentials. CK also wants to access customers’ basic Google profile data when they log in so the company can serve content that matches customers’ interests.
How should the Experience Cloud consultant implement this?
Answer options
- A. Create a custom self-registration page and a custom login page by using Visualforce and Apex controllers.
- B. Create an Authentication Provider by choosing Google as the provider type and add relevant parameters to access the customers’ basic profile data.
- C. Set up a login flow for communities that accepts the customers’ Google credentials and matches with the credentials stored on the user records in Salesforce.
- D. Create a custom login page using Lightning components and use the Google REST API to access customers’ basic profile data.
Correct answer: B
Explanation
The correct answer is B because creating an Authentication Provider specifically for Google will allow seamless integration for logging in and retrieving profile data. The other options, while they may allow for some level of custom login functionality, do not provide the direct integration and ease of use that an Authentication Provider offers, especially in relation to accessing profile data.