Bird
Raised Fist0
GCPcloud~20 mins

Storage classes (Standard, Nearline, Coldline, Archive) in GCP - Practice Problems & Coding Challenges

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Challenge - 5 Problems
🎖️
Storage Class Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Storage Class Costs
Which Google Cloud Storage class is the most cost-effective for data accessed less than once a year but requires quick retrieval when needed?
AStandard Storage
BColdline Storage
CArchive Storage
DNearline Storage
Attempts:
2 left
💡 Hint
Consider classes with millisecond retrieval for infrequent access.
service_behavior
intermediate
2:00remaining
Data Retrieval Time Differences
Which storage class typically has the fastest data retrieval time in Google Cloud Storage?
AColdline Storage
BNearline Storage
CStandard Storage
DArchive Storage
Attempts:
2 left
💡 Hint
Consider which class is optimized for frequent access.
Architecture
advanced
2:00remaining
Choosing Storage Classes for Backup Strategy
A company wants to store backups that are accessed monthly but must be retained for 7 years. Which combination of storage classes balances cost and access requirements best?
AUse Coldline Storage for monthly backups and Standard Storage for older backups
BUse Standard Storage for all backups
CUse Archive Storage for all backups regardless of access frequency
DUse Nearline Storage for monthly backups and Archive Storage for older backups after 1 year
Attempts:
2 left
💡 Hint
Think about cost savings by moving older backups to cheaper storage classes.
security
advanced
2:00remaining
Data Durability and Availability Guarantees
Which Google Cloud Storage class provides the highest availability SLA suitable for mission-critical applications?
AStandard Storage with 99.95% availability
BColdline Storage with 99.9% availability
CArchive Storage with 99.9% availability
DNearline Storage with 99.9% availability
Attempts:
2 left
💡 Hint
Mission-critical apps need the highest availability.
Best Practice
expert
3:00remaining
Optimizing Cost with Lifecycle Management
A company wants to automatically move objects from Standard Storage to Nearline Storage after 30 days, then to Coldline Storage after 180 days, and finally to Archive Storage after 365 days. Which lifecycle rule configuration achieves this?
ASet lifecycle rules with conditions: age=365 to Archive, age=180 to Coldline, age=30 to Nearline (in this order)
BSet lifecycle rules with conditions: age=30 to Nearline, age=180 to Coldline, age=365 to Archive
CSet lifecycle rules with conditions: createdBefore=30 days to Nearline, createdBefore=180 days to Coldline, createdBefore=365 days to Archive
DSet lifecycle rules with conditions: age=30 to Archive, age=180 to Coldline, age=365 to Nearline
Attempts:
2 left
💡 Hint
Lifecycle rules are processed in the order listed; order rules from highest to lowest age threshold.

Practice

(1/5)
1. Which Google Cloud Storage class is best for data you need to access frequently and quickly?
easy
A. Standard
B. Nearline
C. Coldline
D. Archive

Solution

  1. Step 1: Understand access frequency for each storage class

    Standard is designed for frequent access, Nearline for monthly, Coldline for quarterly, and Archive for rare access.
  2. Step 2: Match frequent access requirement

    Since the question asks for frequent and quick access, Standard is the best fit.
  3. Final Answer:

    Standard -> Option A
  4. Quick Check:

    Frequent access = Standard [OK]
Hint: Frequent access? Choose Standard storage class [OK]
Common Mistakes:
  • Choosing Archive for frequent access
  • Confusing Nearline with Standard
  • Thinking Coldline is for frequent data
2. Which storage class should you specify in the bucket creation command to store data accessed about once a month?
easy
A. gsutil mb -c coldline gs://my-bucket
B. gsutil mb -c nearline gs://my-bucket
C. gsutil mb -c archive gs://my-bucket
D. gsutil mb -c standard gs://my-bucket

Solution

  1. Step 1: Identify the storage class for monthly access

    Nearline is designed for data accessed about once a month.
  2. Step 2: Match the correct gsutil command syntax

    The command to create a bucket with Nearline storage class is 'gsutil mb -c nearline gs://my-bucket'.
  3. Final Answer:

    gsutil mb -c nearline gs://my-bucket -> Option B
  4. Quick Check:

    Monthly access = Nearline [OK]
Hint: Nearline = monthly access, use '-c nearline' in command [OK]
Common Mistakes:
  • Using '-c coldline' for monthly access
  • Using '-c archive' for monthly access
  • Confusing command syntax with bucket name
3. You have a bucket with Coldline storage class. You upload a 10 GB file and access it immediately. What is true about the cost and access speed?
medium
A. Low storage cost, slower access speed with retrieval fee
B. High storage cost, slow access speed
C. Low storage cost, fast access speed
D. High storage cost, fast access speed

Solution

  1. Step 1: Understand Coldline storage characteristics

    Coldline offers low storage cost but is designed for infrequent access, so access speed is slower and retrieval fees apply.
  2. Step 2: Analyze immediate access impact

    Accessing data immediately in Coldline means paying retrieval fees and experiencing slower access compared to Standard.
  3. Final Answer:

    Low storage cost, slower access speed with retrieval fee -> Option A
  4. Quick Check:

    Coldline = low cost + slower access + retrieval fee [OK]
Hint: Coldline is cheap storage but slow and costly to access [OK]
Common Mistakes:
  • Assuming Coldline has fast access speed
  • Thinking Coldline has no retrieval fees
  • Confusing Coldline with Standard class
4. A user created a bucket with the command gsutil mb -c standard gs://archive-data but wants to store rarely accessed data. What is the best fix?
medium
A. Delete and recreate bucket with -c archive option
B. Change storage class to Coldline using gsutil setclass coldline
C. Use gsutil rewrite -s archive gs://archive-data/** to change storage class
D. No fix needed; Standard is best for rare access

Solution

  1. Step 1: Identify the problem with initial bucket creation

    The bucket was created with Standard class, which is costly for rarely accessed data.
  2. Step 2: Find the correct method to change storage class without deleting bucket

    Using gsutil rewrite -s archive gs://archive-data/** changes storage class of existing objects to Archive without bucket recreation.
  3. Final Answer:

    Use gsutil rewrite -s archive gs://archive-data/** to change storage class -> Option C
  4. Quick Check:

    Change storage class with gsutil rewrite [OK]
Hint: Use gsutil rewrite to change storage class without bucket deletion [OK]
Common Mistakes:
  • Deleting bucket unnecessarily
  • Using non-existent gsutil setclass command
  • Thinking Standard is best for rare access
5. A company wants to archive 100 TB of data that is accessed less than once a year but must be retrievable within hours if needed. Which storage class should they choose and why?
hard
A. Standard, because it offers fastest access
B. Nearline, because it balances cost and monthly access
C. Coldline, because it is cheaper and supports quarterly access
D. Archive, because it is lowest cost and retrieval is within hours

Solution

  1. Step 1: Analyze access frequency and retrieval time needs

    Data is accessed less than once a year, so very rare access. Retrieval must be within hours.
  2. Step 2: Match storage class to access pattern and retrieval speed

    Archive class is designed for rare access with lowest cost and retrieval times within hours, fitting the requirement.
  3. Step 3: Compare with other classes

    Standard is costly, Nearline is for monthly access, Coldline is for quarterly access, so Archive is best.
  4. Final Answer:

    Archive, because it is lowest cost and retrieval is within hours -> Option D
  5. Quick Check:

    Rare yearly access + hours retrieval = Archive [OK]
Hint: Rare yearly access + hours retrieval? Choose Archive [OK]
Common Mistakes:
  • Choosing Coldline for yearly access
  • Assuming Archive retrieval takes days
  • Picking Standard for cost savings