Google Professional Cloud Developer Question 118
Select 3Google Cloud PlatformYou are developing a web application that requires end-users to sign in using their Google accounts. You decide to use Google Cloud's Identity Platform for authentication. Which of the following steps must you take to correctly configure and enable authentication using Google as an identity provider?
- A
Enable Identity Platform in your Google Cloud project.
- B
Create an OAuth 2.0 client ID in the Google Cloud Console and configure it in the Identity Platform settings.
- C
Implement a custom identity provider to manage Google account sign-ins.
- D
Add 'https://www.googleapis.com/auth/userinfo.email' to the list of scopes in your OAuth 2.0 client ID.
- E
Enable the Google identity provider in the Identity Platform settings.
Show answer and explanation
Correct answers: A, B, E
Explanation
To enable Google account authentication using Identity Platform, you must first enable Identity Platform in your project to access its features. Then, you need to create an OAuth 2.0 client ID in the Google Cloud Console and configure it in Identity Platform. Finally, you must enable the Google identity provider in the Identity Platform settings. These steps ensure the proper integration of Google's authentication system with your application.
- A. Correct.
Correct: Identity Platform must be enabled in your Google Cloud project to use its authentication features.
- B. Correct.
Correct: Creating an OAuth 2.0 client ID and configuring it in Identity Platform is required to allow Google account authentication.
- C. Incorrect.
Incorrect: Google is a built-in identity provider in Identity Platform, so you do not need to implement a custom provider for it.
- D. Incorrect.
Incorrect: While 'userinfo.email' is a common scope, setting it explicitly is not required for enabling Google as an identity provider in Identity Platform.
- E. Correct.
Correct: Enabling the Google identity provider in Identity Platform is necessary to allow users to authenticate using their Google accounts.