Google Cloud Storage Classes Interview Questions and Answers

Learn Google Cloud Storage Classes including Standard, Nearline, Coldline, Archive, Persistent Disk, Filestore, and Local SSD with architecture diagrams, production use cases, best practices, and 15 interview questions.

Module Navigation

Previous: Azure Storage Types QA | Parent: Storage Learning Path | Next: Storage Lifecycle QA

Google Cloud Storage Classes Interview Questions and Answers

Cloud Interview Track

Storage Module — Lesson 05 of 08

Introduction

Google Cloud Platform (GCP) provides multiple storage services designed for object, block, file, and temporary storage workloads.

Choosing the correct storage service helps optimize:

  • Performance
  • Scalability
  • Availability
  • Durability
  • Cost

The major GCP storage services include:

  • Cloud Storage
  • Persistent Disk
  • Hyperdisk
  • Filestore
  • Local SSD

GCP Storage Overview

flowchart TB

Application

Application --> GCS[Cloud Storage]

Application --> PD[Persistent Disk]

Application --> Hyperdisk

Application --> Filestore

Application --> LocalSSD

Google Cloud Storage (GCS)

Cloud Storage is Google's object storage service.

Data is stored as Objects inside Buckets.

Best suited for:

  • Images
  • Videos
  • Documents
  • Static Websites
  • Data Lakes
  • Backups
  • Machine Learning
  • Logs

Cloud Storage Architecture

flowchart LR

Application --> API

API --> Bucket

Bucket --> Object1

Bucket --> Object2

Bucket --> Object3

Cloud Storage Classes

Standard Storage

Used for frequently accessed data.

Examples

  • Websites
  • Mobile Apps
  • Images
  • Videos

Nearline Storage

Designed for data accessed less than once a month.

Examples

  • Monthly Backups
  • Disaster Recovery

Coldline Storage

Designed for data accessed approximately once every quarter.

Examples

  • Compliance Data
  • Long-term Backup

Archive Storage

Lowest-cost storage for long-term archival.

Examples

  • Financial Records
  • Medical Records
  • Legal Documents

Storage Class Comparison

Storage Class Access Frequency Typical Use
Standard Frequent Active Applications
Nearline Monthly Backup
Coldline Quarterly Compliance
Archive Rarely Long-term Archive

Persistent Disk

Persistent Disk is Google's managed block storage service.

Equivalent to Amazon EBS and Azure Managed Disks.

Used for

  • Compute Engine
  • Databases
  • Boot Disks
  • Enterprise Applications

Persistent Disk Architecture

flowchart LR

ComputeEngine --> PersistentDisk

PersistentDisk --> Snapshot

Persistent Disk Types

  • Standard HDD
  • Balanced PD
  • SSD PD
  • Extreme PD

Hyperdisk

Hyperdisk is Google's next-generation high-performance block storage.

Designed for

  • Large Databases
  • SAP
  • Oracle
  • SQL Server
  • Enterprise Applications

Benefits

  • Independent scaling
  • High IOPS
  • High Throughput
  • Low Latency

Filestore

Filestore is Google's managed file storage service.

Supports

  • NFS

Multiple Compute Engine instances can mount the same storage.


Filestore Architecture

flowchart LR

VM1 --> Filestore

VM2 --> Filestore

VM3 --> Filestore

Filestore Use Cases

  • Shared Storage
  • CMS
  • Kubernetes
  • Shared Reports
  • Analytics

Local SSD

Local SSD provides physically attached high-speed storage.

Characteristics

  • Very Low Latency
  • Extremely High IOPS
  • Temporary Storage
  • Data Lost after VM Stops

Best suited for

  • Cache
  • Temporary Processing
  • Spark
  • Hadoop

Storage Comparison

Service Storage Type Best For
Cloud Storage Object Images, Backups
Persistent Disk Block Databases
Hyperdisk High Performance Block Enterprise Workloads
Filestore File Shared Storage
Local SSD Temporary Block Cache

High Availability

Service Availability
Cloud Storage Multi Region
Persistent Disk Regional Option
Hyperdisk Regional
Filestore Regional
Local SSD VM Local

Security

Google Cloud Storage services support:

  • IAM
  • Cloud KMS
  • CMEK
  • Encryption at Rest
  • Encryption in Transit
  • Audit Logs
  • VPC Service Controls

Backup Strategy

flowchart LR

PersistentDisk --> Snapshot

Filestore --> Backup

CloudStorage --> Versioning

Production Architecture

flowchart TB

Users --> LoadBalancer

LoadBalancer --> GKE

GKE --> CloudStorage

GKE --> Filestore

GKE --> SQL

SQL --> PersistentDisk

CloudStorage --> Archive

Production Use Case

Online Banking Platform

Component GCP Storage
Customer Documents Cloud Storage
SQL Database Persistent Disk
Shared Reports Filestore
Session Cache Local SSD
Enterprise Database Hyperdisk
Long-term Archive Archive Storage

Best Practices

  • Use Cloud Storage for object data.
  • Select the appropriate storage class.
  • Use Persistent Disk for databases.
  • Use Filestore for shared storage.
  • Use Local SSD only for temporary data.
  • Enable versioning.
  • Enable encryption.
  • Configure lifecycle policies.
  • Take regular snapshots.
  • Monitor storage costs.

Interview Questions

1. What storage services are available in Google Cloud?

Answer

Google Cloud provides:

  • Cloud Storage
  • Persistent Disk
  • Hyperdisk
  • Filestore
  • Local SSD

2. What is Google Cloud Storage?

Answer

Google Cloud Storage (GCS) is an object storage service used to store unstructured data such as images, videos, backups, logs, and documents.


3. What are Google Cloud Storage classes?

Answer

  • Standard
  • Nearline
  • Coldline
  • Archive

These classes optimize cost based on data access frequency.


4. When should Standard Storage be used?

Answer

Standard Storage is ideal for frequently accessed data such as websites, mobile applications, streaming content, and active datasets.


5. What is Persistent Disk?

Answer

Persistent Disk is GCP's managed block storage service for Compute Engine virtual machines and databases.


6. What is Hyperdisk?

Answer

Hyperdisk is a high-performance block storage service that provides independent scaling of capacity, IOPS, and throughput for enterprise workloads.


7. What is Filestore?

Answer

Filestore is a managed NFS-based file storage service that allows multiple virtual machines to access the same shared file system.


8. What is Local SSD?

Answer

Local SSD is physically attached storage that provides extremely high performance but is temporary. Data is lost if the VM stops or is deleted.


9. Which GCP storage service is equivalent to Amazon S3?

Answer

Google Cloud Storage.


10. Which GCP storage service is equivalent to Amazon EBS?

Answer

Persistent Disk (and Hyperdisk for high-performance workloads).


11. Which GCP storage service is equivalent to Amazon EFS?

Answer

Google Filestore.


12. Which storage class is best for long-term archival?

Answer

Archive Storage because it provides the lowest storage cost for data that is rarely accessed.


13. How is Google Cloud Storage secured?

Answer

Google Cloud Storage supports IAM, Cloud KMS, Customer-Managed Encryption Keys (CMEK), encryption at rest, encryption in transit, audit logging, and VPC Service Controls.


14. Which storage service should be used for databases?

Answer

Persistent Disk or Hyperdisk because they provide low-latency block storage optimized for transactional workloads.


15. How do you choose the correct Google Cloud storage service?

Answer

  • Cloud Storage → Object storage, backups, media, archives.
  • Persistent Disk → Virtual machines and databases.
  • Hyperdisk → High-performance enterprise databases.
  • Filestore → Shared NFS file systems.
  • Local SSD → Temporary cache and high-speed scratch storage.

The selection depends on performance, durability, scalability, access patterns, and workload requirements.


Common Mistakes

  • Using Cloud Storage as a database disk.
  • Using Local SSD for permanent data.
  • Choosing the wrong storage class.
  • Forgetting lifecycle policies.
  • Not enabling versioning.
  • Ignoring snapshot backups.
  • Over-provisioning expensive block storage.
  • Not encrypting sensitive data.

Quick Revision

GCP Service Purpose
Cloud Storage Object Storage
Persistent Disk Block Storage
Hyperdisk High Performance Block Storage
Filestore Shared File Storage
Local SSD Temporary High-Speed Storage

Key Takeaways

  • Google Cloud offers specialized storage services for object, block, file, and temporary storage workloads.
  • Cloud Storage provides highly durable object storage with Standard, Nearline, Coldline, and Archive classes.
  • Persistent Disk is the preferred block storage option for virtual machines and databases.
  • Hyperdisk delivers high-performance block storage for enterprise and mission-critical applications.
  • Filestore enables shared NFS file storage for Compute Engine and GKE workloads.
  • Local SSD offers extremely high performance for temporary data such as caches and analytics processing.
  • Selecting the right storage service improves application performance, scalability, resilience, and cost optimization.