Infrastructure 2023-05-22

Notes on GCP

Miscellaneous notes taken while studying for the Google Cloud Certified Associate Cloud Engineer exam.

Read in: ja
Notes on GCP

Overview

Miscellaneous notes taken while studying for the Google Cloud Certified Associate Cloud Engineer exam.

Concepts

cf. https://blog.g-gen.co.jp/entry/associate-cloud-engineer

Network Service Tiers

Cloud Billing Account

Regions and Zones

Regions

Zones

Examples of Multi-Region Services

Resource Placement

IAM

Members

Roles

Using IAM Securely

Refer to Using IAM Securely

Service Accounts

VPC

VPC Network

Subnet

Firewall

Routes

VPC Network Peering

Shared VPC

Serverless VPC Access

Network Connectivity

Connecting to Google Cloud

Cloud VPN

Classic VPN

HA VPN

Cloud Interconnect

Cloud Router

Network Connectivity Center

Connecting to Google Workspace and Supported APIs

Direct Peering

Carrier Peering

Connecting to CDN Providers

CDN Interconnect

Cloud DNS

Cloud KMS

Cloud Deployment Manager

Cloud Foundation Toolkit

Resource Manager

Resource Hierarchy

Tags and Labels

Tags Labels
Resource Structure Individual resources Metadata of resources
Definition Organization level Per resource
Access Control Requires IAM roles for management and attachment Requires different IAM roles depending on the resource
Attachment Prerequisites Requires definition of tag keys and tag values before tags can be attached to resources No prerequisites
Deletion Requirements Cannot be deleted if tag bindings exist No conditions
IAM Policy Support Available in IAM policy conditions Not supported
Organization Policy Support Available in organization policy conditional constraints Not supported
Cloud Billing Integration Chargeback, auditing, and other cost allocation analysis, exporting Cloud Billing cost data to BigQuery Filter resources by label in Cloud Billing, export Cloud Billing data to BigQuery

Tags can be flexibly used for constraints, while labels are just labels.

Compute Engine

Instance Groups

Managed Instance Groups (MIG)

Unmanaged Instance Groups

Instance Templates

Discounts

Machine Types

Type Feature Machine Type
General Purpose Cost Optimization E2
General Purpose Balanced (Cost Performance) N2, N2D, N2
General Purpose Scale-out Optimization Tau T2D, Tau T2A
Optimized Workloads Memory Optimization M3, M2, M1
Optimized Workloads Compute Optimization C2, C2D
Optimized Workloads Accelerator Optimization A2

Other Machine Types

Storage Options

Type Feature Data Redundancy
Zonal Standard PD Efficient, reliable block storage Zone
Regional Standard PD Synchronous replication across two zones within a region, efficient and reliable block storage Multi-zone
Zonal Balanced PD Cost-effective, reliable block storage Zone
Regional Balanced PD Synchronous replication across two zones within a region, cost-effective and reliable block storage Multi-zone
Zonal SSD PD Fast, reliable block storage Zone
Regional SSD PD Synchronous replication across two zones within a region, fast and reliable block storage Multi-zone
Zonal Extreme PD Highest performance persistent block storage Zone
Local SSD High-performance local block storage. Physically attached to the server, cannot be set as a boot disk. None
Cloud Storage Bucket Low-cost object storage Region, Dual-region, Multi-zone

Zonal XXX → Redundancy is zone Region → Redundancy is multi-zone

cf. https://cloud.google.com/compute/docs/disks?hl=ja#disk-types

Spot VM

Shielded VM

Windows VM

Snapshots

Cloud Load Balancing

Types

The following LBs can configure both IPv4 and IPv6 external IP addresses.

Choosing a Load Balancer

External Load Balancing vs. Internal Load Balancing

Global Load Balancing vs. Regional Load Balancing

Proxy Load Balancing vs. Pass-through Load Balancing

Cloud Scheduler

Cloud Batch

Cloud Run

App Engine

app.yaml

env: flex

Warmup Requests

inbound_services:
- warmup

Deploy

Traffic

Traffic Migration

Traffic Splitting

Scaling Types

Standard Environment

Flexible Environment

Environment Comparison

Standard Environment Flexible Environment
Instance Startup Time Milliseconds Minutes
Deployment Time Seconds Minutes
Background Processes
SSH Access
WebSocket
Scaling Manual, Basic, Auto Manual, Auto
Scaling to Zero ✗ (Minimum 1 instance)
Runtime Changes ○ (via Dockerfile)
Writing to Local Disk
Third-party Binary Support
Network Access Via App Engine services
Pricing Model Charges apply per instance class after exceeding daily free usage Charges based on hourly resource (vCPU, memory, persistent disk) allocation
Automatic Shutdown

cf. https://cloud.google.com/appengine/docs/the-appengine-environments?hl=ja

Flexible environment offers more flexibility in features, configuration, and pricing. Instance startup and deployment times are shorter in the standard environment. The standard environment allows more flexible scaling.

GKE

Cluster Redundancy

All multi-zone is a regional cluster.

Maintenance Window

Release Channels

Regular or Stable is recommended for production environments.

Manual Node Pool Upgrades

Autopilot clusters use surge upgrades. Standard clusters use surge upgrades for automatic upgrades and can use either surge or blue/green upgrades for manual upgrades.

Rolling Updates

Autoscaling

Generally based on K8S features or extensions of those features

Cloud Functions

Commands

Supported Triggers (2nd Generation)

1st Generation does not support Eventarc triggers and supports Firebase-related triggers

Cloud Audit

Types of Audit Logs

Cloud IDS

Google Cloud Directory Sync

Cloud Storage

Encryption

Storage Classes

Type Feature Availability SLA
Standard Used for most frequently accessed data. No minimum storage duration. No retrieval fees 99.95%
Nearline Accessed less than once a month, minimum storage duration of 30 days. Retrieval fees apply 99.0%
Coldline Accessed once a quarter, used for disaster recovery, etc. Minimum storage duration of 90 days. Retrieval fees apply 99.0%
Archive Accessed less than once a year, used for audit logs, archives, etc. Minimum storage duration of 365 days. Retrieval fees apply 99.0%

Storage Fees Standard > Nearline > Coldline > Archive

Retrieval Fees Standard < Nearline < Coldline < Archive

Storage class can be changed after bucket creation.

Location Types

Location type cannot be changed after bucket creation. Data can be moved to a different location.

Access Control

Available Audit Logs

Performance Optimization

Consistency

Logs

Storage Transfer Service

GCP Database Services

Partial List

Service Name Type Feature
BigTable NoSQL (Columnar) Low latency, high throughput
Firestore NoSQL (Document) Web, Native App, IoT, etc.
Firebase Realtime Database NoSQL (Document) Real-time synchronization
Memorystore NoSQL (Key-Value) Compatible with Redis/Memcached
BigQuery Data Warehouse Large datasets and queries
Bare Metal Solution Hardware for RDB operation Special requirements

Cloud SQL

Bigtable

Firestore

Firebase Realtime Database

Cloud Composer

Cloud Dataflow

Cloud Dataprep by Trifacta

Cloud Dataproc

Cloud Data Fusion

BigQuery

Predefined Roles

Query

Cost

Cost Management

Cost Estimation

BigQuery Data Transfer Service

BI Tools

Machine Learning

Transfer Appliance

API

Cloud Endpoints

Apigee

Cloud Logging

Log Types

Log Storage

Pricing

Sink

Tags: Google Cloud Platform
Share: 𝕏 Post Facebook Hatena
✏️ View source / Discuss on GitHub
☕ Support

If you enjoy this blog, consider supporting it. Every bit helps keep it running!


Related Articles