Google Cloud Medium technical 1 views 1 min read

Compare the GCP Cloud Storage classes.

Peer-reviewed by HireXTech Technical Panel Updated for 2025/2026 hiring Editorial standards
Practise this track
Interviewer Expectations for this Question
01
Core Competency

Assesses fundamental understanding of Google Cloud conventions, runtime behavior, and memory/performance considerations.

02
Evaluation Criteria

Hiring managers look for precision, avoidance of ambiguous jargon, and ability to explain trade-offs under real production conditions.

Comprehensive Model Answer Verified Solution

Cloud Storage classes trade storage cost for retrieval cost and minimum storage duration.

  • Standard: frequent access, no minimum duration. Best for hot data and serving websites.
  • Nearline: accessed less than once a month, 30-day minimum.
  • Coldline: accessed less than once a quarter, 90-day minimum.
  • Archive: accessed less than once a year, 365-day minimum, and the lowest storage price.

All classes offer millisecond access and the same durability; only cost and minimum duration differ. Set the class at upload or let Autoclass move objects automatically based on access.

gcloud storage cp logs/*.gz gs://my-bucket/logs/ \
  --storage-class=NEARLINE
gcloud storage buckets update gs://my-bucket --lifecycle-file=lifecycle.json

Lifecycle rules can transition or delete objects. Beware early-deletion charges if you move data before the minimum duration elapses.

Candidate Response Strategy & Interview Tips

  1. Start with a concise one-sentence summary: Deliver a direct, confident answer first before expanding into nuances.
  2. Demonstrate real-world trade-offs: Discuss where this approach excels and when you would avoid it in production systems.
  3. Discuss complexity & edge cases: Proactively explain time/space complexity or boundary conditions (null values, scale limits).
  4. Prepare for interviewer follow-ups: Technical hiring panels frequently probe deeper into concurrency, backward compatibility, or alternative libraries.
Related Topics & Skills
Spotted an error or have an alternative solution?