nerdexam
Google

PROFESSIONAL-CLOUD-SECURITY-ENGINEER · Question #39

You are creating an internal App Engine application that needs to access a user's Google Drive on the user's behalf. Your company does not want to rely on the current user's credentials. It also…

The correct answer is D. Create a new service account, and grant it G Suite domain-wide delegation. Have the application. Creating a service account with G Suite (now Google Workspace) domain-wide delegation (D) is Google's recommended approach for server-to-server scenarios requiring delegation. The service account can impersonate any user in the domain and act on their behalf (e.g., access their…

Submitted by diego_uy· Apr 18, 2026Configuring access within a cloud solution environment

Question

You are creating an internal App Engine application that needs to access a user's Google Drive on the user's behalf. Your company does not want to rely on the current user's credentials. It also wants to follow Google-recommended practices. What should you do?

Options

  • ACreate a new Service account, and give all application users the role of Service Account User.
  • BCreate a new Service account, and add all application users to a Google Group. Give this group
  • CUse a dedicated G Suite Admin account, and authenticate the application's operations with these
  • DCreate a new service account, and grant it G Suite domain-wide delegation. Have the application

How the community answered

(21 responses)
  • A
    5% (1)
  • B
    5% (1)
  • C
    10% (2)
  • D
    81% (17)

Explanation

Creating a service account with G Suite (now Google Workspace) domain-wide delegation (D) is Google's recommended approach for server-to-server scenarios requiring delegation. The service account can impersonate any user in the domain and act on their behalf (e.g., access their Drive) without needing their credentials at runtime. This satisfies the requirement that the app does not rely on the current user's credentials. Option A grants users the Service Account User role, which allows them to act as the service account - the opposite of what is needed. Option B uses a group but still doesn't solve the delegation problem. Option C using a dedicated admin account is not recommended (credential management risk, not scalable, not a Google best practice).

Topics

#Service Accounts#Domain-Wide Delegation#App Engine Security#Google Drive Access

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-SECURITY-ENGINEER Practice