Topic 2 - Google AI Services Flashcards

(33 cards)

1
Q

Project

A

An organizing entity for Google Cloud resources, containing settings, permissions, and metadata. Each project has a name, ID, and number.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Name the five ways listed in the source material to interact with Google services.

A
  1. Google Cloud console
  2. Google Cloud Command Line Interface (CLI)
  3. Local Terminal
  4. Cloud Shell
  5. Client Libraries
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Google Cloud console

A

A web-based graphical interface for interacting with Google Cloud services.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Google Cloud Command Line Interface (CLI)

A

A tool for managing Google Cloud resources and services from the command line.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Local Terminal

A

Interacting with Google Cloud services using the gcloud CLI from a local computer’s terminal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Cloud Shell

A

A browser-based command-line environment for Google Cloud.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Client Libraries

A

Code libraries provided by Google to simplify programmatic access to Google Cloud APIs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Cloud Client Libraries

A

Recommended client libraries providing idiomatic code and handling low-level communication and authentication details, often using gRPC.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Google API Client Libraries

A

Older client libraries that provide access to the API’s REST interface only, often used for specific language support or upgrading existing projects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Why might someone choose to use Google API Client Libraries instead of Cloud Client Libraries?

A

Someone might use Google API Client Libraries if a Cloud Client Library is not available for their preferred programming language or if they are upgrading a project that already uses them. These libraries only access the API’s REST interface.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

App APIs

A

Application Programming Interfaces used by applications to interact with Google services.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Admin APIs

A

Application Programming Interfaces used for administrative tasks and managing Google Cloud resources.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Principal

A

An identity (user account or service account) that can be granted access to a Google Cloud resource.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Authentication

A

The process of verifying the identity of a principal (such as a user account or service account) attempting to access a resource.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Authorization

A

The process of determining the level of access a principal or application is permitted to have to a resource, after authentication.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Credentials

A

Digital objects or methods (like passwords, PINs, biometric data) that provide proof of identity for authentication.

17
Q

Token

A

A digital object exchanged for proper credentials that proves a caller’s identity and authorized access levels, used for authentication and authorization with Google APIs (except API keys).

18
Q

User account

A

A principal representing a human user (developer, administrator) who interacts with Google APIs and services.

19
Q

Service account

A

A principal that does not represent a human user, managed by IAM, typically used by applications or services to interact with Google Cloud.

20
Q

Describe the difference between User accounts and Service accounts as principals.

A

User accounts represent human users like developers or administrators, while service accounts do not represent human users and are managed by IAM, often used for applications or services to interact with Google Cloud.

21
Q

API key

A

A simple credential used to associate a request with a Google Cloud project for billing and quota, typically used for accessing public data. It does not identify a principal.

22
Q

Why are API keys generally used for accessing public data or resources and not recommended for identifying a principal?

A

API keys do not identify a specific user or provide authorization information; they primarily associate a request with a Google Cloud project for billing and quota. They are suitable for accessing public data where identifying the caller is not necessary for authorization.

23
Q

IAM (Identity and Access Management)

A

The service used to manage principals and their permissions for accessing Google Cloud resources.

24
Q

Application Default Credentials (ADC)

A

A strategy used by Google authentication libraries to automatically find credentials based on the application environment, simplifying authentication for client libraries and REST calls.

25
What is the advantage of using Application Default Credentials (ADC) with Client Libraries for authentication?
Using ADC with Client Libraries simplifies authentication by automatically finding credentials based on the application environment. This allows your code to run in development or production without changing how it authenticates and handles access tokens automatically.
26
REST (Representational State Transfer)
An architectural style for designing networked applications, often used for interacting with Google APIs.
27
When authenticating a REST call in a production environment, which method is preferred and why?
For authenticating a REST call in a production environment, authenticating using credentials provided to Application Default Credentials (ADC) is the preferred option. This is because ADC finds credentials from the resource where the code is running, which is a secure method for production environments.
28
gcloud credentials
User credentials used to log in to the gcloud CLI and access Google Cloud services or generate access tokens.
29
Service account impersonation
A method of authenticating by using a user account or service account to temporarily act as another service account, often used for testing or granting temporary elevated privileges.
30
Short-lived credentials
Credentials with a limited lifetime that are not automatically refreshed, offering less risk than long-lived credentials.
31
Long-lived credentials
Credentials with a longer lifetime, such as service account keys, which pose a higher security risk and should be avoided when possible.
32
gRPC
A high-performance, open-source framework for remote procedure calls, used by Cloud Client Libraries for potential performance benefits.
33
Metadata server
A service that provides information about a resource (like a Compute Engine virtual machine) to the resource itself, including attached service account credentials.