General Flashcards
What is the Cloud Console?
The Cloud Console is a web UI used to manage GCP services
What are the 3 types of Service Accounts?
- User-defined Service Accounts
- Default Service Accounts (automatically created but managed by the user)
- Google-managed Service Accounts (Automatically created and managed by GCP)
What are the 3 project identifiers of every project?
- Project ID
- Project Name
- Project Number
A project ID is an immutable, globally unique identifier assigned by GCP. A project name is mutable, does not have to be unique, and is assigned by a user. A project number is similar to a project ID but is mostly used internally by GCP to keep track of resources.
Are projects billed separately?
By default, yes.
What are the 3 different tools that can be used to help you manage your cloud bill?
- Budgets and alerts
- Reports
- Quotas (are predefined but can be configured)
What are the 4 levels of GCP’s resource hierarchy and why is this important?
Level 4: Organization
Level 3: Folders
Level 2: Projects
Level 1: Service Resources
This is important because IAM policies are applied at these various levels. Furthermore, IAM policies applied at higher levels are inherited by lower levels.
What is the difference between global, regional, and zonal recources?
Global resources can be accessed by resources in any region or zone.
Regional resources can only be accessed by resources in the zones that make up that region.
Zonal resources can only be accessed by resources in the same zone.
How many zones does a region have?
3 or more
What are the 4 ways to interact with GCP services and resources?
- Cloud Console
- gcloud CLI
- Client libraries
- APIs
What are some of the ways Client Libraries make it easier to use GCP services more efficiently?
- Many client libraries give you performance benefits by automatically calling the gRPC APIs instead of HTTP APIs
- Many client libraries automatically handle authentication by using ADCs
- Many client libraries automatically implement retry logic
What are GCP’s 5 available service emulators?
- Spanner
- Firestore
- Bigtable
- Pub/Sub
- Cloud Run (through Cloud Code)
How does a blue-green deployment work?
Blue-green deployments have 2 environments, blue = old environment and green = new environment. Once the new environment is ready, the old environment will stop receiving traffic and the new environment will begin receiving all the traffic. If something goes wrong, the traffic can be immediately redirected back to the old environment with 0 downtime. If everything goes well, the old environment is shutdown.
What is a canary deployment?
A canary deployment is a deployment strategy that gradually roles out a new version of an application to a small group of users.
Where does Google and the 12 Factor App recommend storing configuration?
Both Google and 12 Factor App recommend storing configuration as environment variables and not as constants in application code. This ensures that the same code can run across different environments.
What is a stateless application?
A stateless application is an application that does not retain any local persistent data or state.