Google Professional Cloud Security Engineer Question 101
Select 3Google Cloud PlatformYour company uses Google Workspace for identity management and you need to configure access to an internal application hosted on Google Cloud. The application requires users to authenticate via SAML, but you also want to enable API access for automation using OAuth tokens. What steps should you take to set this up securely?
- A
Configure a SAML identity provider (IdP) in Google Workspace and link it to the application.
- B
Set up an OAuth 2.0 client ID in Google Cloud and configure the application to use it for API access.
- C
Enable Google Cloud's Identity-Aware Proxy (IAP) for the application to enforce OAuth-based authentication.
- D
Create service accounts for each user and distribute private keys to them for API access.
- E
Configure the application's metadata in the IdP to establish a trust relationship for SAML authentication.
Show answer and explanation
Correct answers: A, B, E
Explanation
To securely configure both SAML authentication for user access and OAuth for API access, you must set up a SAML identity provider (IdP) in Google Workspace, configure the application's metadata in the IdP, and establish an OAuth 2.0 client ID for API usage. These steps ensure that user authentication and API access are handled securely and according to best practices.
- A. Correct.
Correct: Setting up a SAML identity provider (IdP) in Google Workspace is necessary to enable SAML-based authentication for the application.
- B. Correct.
Correct: To enable API access via OAuth, you need to configure an OAuth 2.0 client ID in Google Cloud.
- C. Incorrect.
Incorrect: Identity-Aware Proxy (IAP) is not required in this scenario. While it can provide additional security, the question does not specify its use.
- D. Incorrect.
Incorrect: Distributing private keys for service accounts to users is not a secure or recommended practice for API access.
- E. Correct.
Correct: The application's metadata must be configured in the IdP to establish a trust relationship, which is a key component of SAML authentication.