
Answer-first summary for fast verification
Answer: Create an OAuth Client ID.
To access user-specific data like Google Drive, the application must use OAuth 2.0 to obtain user consent and generate access tokens. API keys (A) are for accessing public data, not user-authorized resources. SAML (B) is for SSO authentication, not API authorization. Service accounts (C) are used for server-to-server interactions where the app acts on its own behalf, not for user-delegated access. Creating an OAuth Client ID (D) enables the OAuth flow, allowing the app to request user permissions securely.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
To enable your JavaScript web application to access Google Drive's API and request user permission for storing files, which authorization approach should you implement?
A
Create an API key.
B
Create a SAML token.
C
Create a service account.
D
Create an OAuth Client ID.
No comments yet.