Skip to main content

GCP - Basics

 


Google Cloud Resources: Global, Regional, and Zonal

Google Cloud resources are generally classified into three categories based on their scope:

  • Global Resources

  • Regional Resources

  • Zonal Resources

1. Global Resources

Global resources are not limited to a specific region or zone. They are accessible across all Google Cloud regions.

Examples of global resources include:

  • VPC Networks

  • IAM

  • Cloud DNS

  • Firewall Rules

  • Global Load Balancers

A VPC network is a global resource, meaning it can span multiple regions.


2. Regional Resources

A region is a geographic location where Google Cloud operates one or more data centers. This is where you deploy your cloud infrastructure.

Each region contains multiple zones, providing high availability and fault tolerance.

Examples of regional resources include:

  • Subnets

  • Cloud SQL

  • Cloud NAT

  • Cloud Routers

  • Regional Persistent Disks

A subnet is always regional, meaning it belongs to a single region. Multiple subnets can exist within the same global VPC, with one subnet created for each region as needed.


3. Zonal Resources

Each region is divided into multiple zones. A zone represents one or more physical data centers within that region.

Most compute resources are created in a specific zone.

Examples of zonal resources include:

  • Virtual Machine (VM) instances

  • Standard Persistent Disks

  • GPUs

  • TPUs

For example, if you create a VM in us-central1-a, both the VM and its attached standard persistent disk are zonal resources.


Google Cloud Global Network

Google Cloud has a high-speed global private network that connects all of its regions around the world.

When infrastructure is deployed across multiple regions, communication between those regions uses Google's global network, providing secure and reliable connectivity.


Summary

  • Global Resources: Available across all regions (e.g., VPC, IAM, Cloud DNS, Firewall Rules).

  • Regional Resources: Exist within a single region and support multiple zones (e.g., Subnets, Cloud SQL, Cloud NAT).

  • Zonal Resources: Deployed within a specific zone (e.g., VM instances, Standard Persistent Disks, GPUs).

Resource Hierarchy

Google Cloud
│
├── Global Resources
│     ├── VPC Network
│     ├── IAM
│     ├── Cloud DNS
│     └── Firewall Rules
│
├── Region
│     ├── Subnet
│     ├── Zone A
│     │      ├── VM
│     │      └── Persistent Disk
│     ├── Zone B
│     └── Zone C
│
└── Another Region
      ├── Subnet
      ├── Zone A
      ├── Zone B
      └── Zone C

This hierarchy helps organize Google Cloud resources and improves scalability, availability, and fault tolerance when designing cloud infrastructure.



Based on the whiteboard in your image, here's a clean and well-organized version of the notes.

Google Cloud Platform (GCP) Services Overview

Google Cloud Platform (GCP) provides a wide range of cloud services that are grouped into four major categories:

  • Compute

  • Storage

  • Big Data

  • Artificial Intelligence (AI)


1. Compute Services

Compute services provide the infrastructure and platforms required to run applications.

Compute Engine

  • Provides Virtual Machines (VMs).

  • Offers complete control over the operating system and infrastructure.

  • Best suited for traditional applications and custom workloads.

Kubernetes Engine (GKE)

  • Managed Kubernetes service for deploying and managing containerized applications.

  • Automates container orchestration, scaling, and management.

App Engine

  • A Platform as a Service (PaaS) offering.

  • Developers can deploy applications without managing servers.

  • Best suited for web and enterprise applications.

Cloud Functions

  • A serverless compute service.

  • Executes code in response to events.

  • Ideal for lightweight applications, automation, and event-driven workloads.


2. Storage Services

Storage services are used to store structured, semi-structured, and unstructured data.

Cloud Storage

  • Object storage for files, images, videos, backups, and static website content.

Bigtable

  • A NoSQL database designed for large-scale analytical and operational workloads.

  • Suitable for applications requiring low latency and high throughput.

Cloud SQL

  • Managed relational database service.

  • Supports MySQL, PostgreSQL, and SQL Server.

Cloud Spanner

  • Globally distributed relational database.

  • Combines SQL capabilities with horizontal scalability and high availability.

Cloud Datastore (Firestore in Datastore mode)

  • NoSQL document database.

  • Designed for applications that require flexible schemas and automatic scaling.


3. Big Data Services

Big Data services help organizations ingest, process, analyze, and manage large volumes of data.

BigQuery

  • Fully managed data warehouse.

  • Enables fast SQL analytics on massive datasets.

Pub/Sub

  • Messaging and event ingestion service.

  • Used for real-time data streaming and communication between applications.

Dataflow

  • Fully managed data processing service.

  • Supports both stream processing and batch processing using ETL pipelines.

Data Catalog

  • Metadata management service.

  • Helps organize, discover, and govern enterprise data assets.


4. Artificial Intelligence (AI) Services

Google Cloud provides pre-trained AI services that can be integrated into applications.

Natural Language API

  • Performs sentiment analysis.

  • Extracts entities and syntax from text.

  • Understands natural language.

Vision API

  • Analyzes images.

  • Detects objects, faces, logos, labels, and text.

Speech-to-Text API

  • Converts spoken audio into text.

  • Supports multiple languages.

Translation API

  • Translates text between different languages.

  • Useful for multilingual applications.


Summary Table

CategoryServicesPurpose
ComputeCompute Engine, GKE, App Engine, Cloud FunctionsRun applications and workloads
StorageCloud Storage, Bigtable, Cloud SQL, Cloud Spanner, Cloud DatastoreStore structured and unstructured data
Big DataBigQuery, Pub/Sub, Dataflow, Data CatalogData ingestion, processing, analytics, and governance
AINatural Language API, Vision API, Speech-to-Text API, Translation APIBuild intelligent applications using machine learning

These notes closely match the content shown on the whiteboard while presenting the information in a structured, interview-friendly format that is easy to study and revise.


Comments

Popular posts from this blog

Entity Relationship (ER) Diagram Model with DBMS Example

Reference :   Entity Relationship (ER) Diagram Model with DBMS Example What is ER Diagram? ER Diagram  stands for Entity Relationship Diagram, also known as ERD is a diagram that displays the relationship of entity sets stored in a database. In other words, ER diagrams help to explain the logical structure of databases. ER diagrams are created based on three basic concepts: entities, attributes and relationships. ER Diagrams contain different symbols that use rectangles to represent entities, ovals to define attributes and diamond shapes to represent relationships. At first look, an ER diagram looks very similar to the flowchart. However, ER Diagram includes many specialized symbols, and its meanings make this model unique. The purpose of ER Diagram is to represent the entity framework infrastructure. Entity Relationship Diagram Example Table of Content: What is ER Diagram? What is ER Model? History of ER models Why use ER Diagrams? Facts about ER Diagram Model ER Diagram...

SQL Joins and advanced joins and Subqueries

  Refernce :  Expert Guide to Advanced SQL Joins: What You Need to Know It's helpful to visualize how these different SQL joins work. Here's a breakdown in a table-like format, along with explanations: SQL Join Types Overview Join Type Description Key Characteristics Use Cases INNER JOIN Returns rows where there is a match in both tables. - Shows only matching records. - Excludes unmatched rows from both tables. - Retrieving related data that exists in both tables. - Finding records with corresponding entries in another table. LEFT OUTER JOIN (LEFT JOIN) Returns all rows from the left table, and the matched rows from the right table. - Includes all records from the left table. - Fills in NULL values for columns from the right table where there's no match. - Retrieving all records from one table and their related data from another, even if some records don't have matches. - Finding records in one table that don't have corresponding entries in another. RIGHT OUTER JO...

GIT BASH

  Bash Shell: Git Bash uses the Bash (Bourne Again SHell) command-line interpreter. This means you can use many of the same commands you'd find in a Linux or macOS terminal. Git Integration: Git Bash is tightly integrated with Git, making it easy to execute Git commands Essential Commands: Navigation: pwd : Prints the current working directory. ls : Lists files and directories in the current directory. cd <directory> : Changes the current directory. cd .. : Moves to the parent directory. File Management: mkdir <directory> : Creates a new directory. touch <file> : Creates a new file. rm <file> : Removes a file. rmdir <directory> : Removes an empty directory. Git Commands: git init : Initializes a new Git repository. git clone <repository URL> : Clones an existing Git repository. git status : Displays the status of your working directory. git add <file> : Adds a file to the staging area. git commit -m "commit message" : Commits chan...