0
0
GCPcloud~10 mins

Storage classes (Standard, Nearline, Coldline, Archive) in GCP - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a Google Cloud Storage bucket with the Standard storage class.

GCP
resource "google_storage_bucket" "my_bucket" {
  name          = "my-standard-bucket"
  location      = "US"
  storage_class = "[1]"
}
Drag options to blanks, or click blank then click option'
ANEARLINE
BARCHIVE
CCOLDLINE
DSTANDARD
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a colder storage class like Coldline or Archive for frequently accessed data.
Using Nearline which is for infrequent access but not the hottest data.
2fill in blank
medium

Complete the code to set the storage class to Nearline for infrequently accessed data.

GCP
resource "google_storage_bucket" "my_bucket" {
  name          = "my-nearline-bucket"
  location      = "US"
  storage_class = "[1]"
}
Drag options to blanks, or click blank then click option'
ANEARLINE
BCOLDLINE
CSTANDARD
DARCHIVE
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing Nearline with Coldline or Archive which are for even colder data.
Using Standard which is more expensive for infrequent access.
3fill in blank
hard

Fix the error in the storage class assignment for cold data storage.

GCP
resource "google_storage_bucket" "cold_bucket" {
  name          = "my-cold-bucket"
  location      = "US"
  storage_class = "[1]"
}
Drag options to blanks, or click blank then click option'
ANEARLINE
BCOLDLINE
CSTANDARD
DARCHIVE
Attempts:
3 left
💡 Hint
Common Mistakes
Using Archive which is for data accessed very rarely and has long retrieval times.
Using Standard or Nearline which are more expensive for cold data.
4fill in blank
hard

Fill both blanks to create a bucket with Archive storage class in the ASIA location.

GCP
resource "google_storage_bucket" "archive_bucket" {
  name          = "my-archive-bucket"
  location      = "[1]"
  storage_class = "[2]"
}
Drag options to blanks, or click blank then click option'
AASIA
BUS
CARCHIVE
DSTANDARD
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up location regions like US instead of ASIA.
Using Standard or Nearline for Archive use cases.
5fill in blank
hard

Fill all three blanks to create a bucket named 'backup-bucket' in EU with Coldline storage class.

GCP
resource "google_storage_bucket" "backup_bucket" {
  name          = "[1]"
  location      = "[2]"
  storage_class = "[3]"
}
Drag options to blanks, or click blank then click option'
Abackup-bucket
BUS
CCOLDLINE
DEU
Attempts:
3 left
💡 Hint
Common Mistakes
Using US instead of EU for location.
Choosing Standard or Archive instead of Coldline for cold backups.