On-premises application needs to call AutoML APIs using a service account with appropriate access. How should you enable authentication from your data center?
Choose an answer
Tap an option to check your answer.
Correct answer: Use gcloud to create a service account key file and use that key for authentication from your on-premises application..
Why this is the answer
To authenticate an on-premises application to Google Cloud APIs, you need a service account key. The gcloud CLI is the standard tool to create this key file (JSON or P12 format). Your application then uses this key file to authenticate as the service account, which should have the necessary permissions (e.g., AutoML Editor) to access the AutoML APIs. Using service account credentials directly in your application without a key file is not how programmatic authentication works. Direct Interconnect provides network connectivity but doesn't handle authentication itself. Granting a user account permissions and using its credentials is less secure and not recommended for programmatic access from applications; service accounts are designed for this purpose.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed