Complete the code to create a Google Cloud Storage bucket with the Standard storage class.
resource "google_storage_bucket" "my_bucket" { name = "my-standard-bucket" location = "US" storage_class = "[1]" }
The Standard storage class is used for frequently accessed data and offers low latency and high availability.
Complete the code to set the storage class to Nearline for infrequently accessed data.
resource "google_storage_bucket" "my_bucket" { name = "my-nearline-bucket" location = "US" storage_class = "[1]" }
Nearline storage class is designed for data accessed less than once a month, offering lower cost than Standard but with slightly higher access costs.
Fix the error in the storage class assignment for cold data storage.
resource "google_storage_bucket" "cold_bucket" { name = "my-cold-bucket" location = "US" storage_class = "[1]" }
Coldline storage class is optimized for data accessed less than once a quarter, suitable for cold data with low storage cost and higher access cost.
Fill both blanks to create a bucket with Archive storage class in the ASIA location.
resource "google_storage_bucket" "archive_bucket" { name = "my-archive-bucket" location = "[1]" storage_class = "[2]" }
The Archive storage class is for data accessed less than once a year, with the lowest storage cost but highest retrieval latency. The location ASIA specifies the bucket region.
Fill all three blanks to create a bucket named 'backup-bucket' in EU with Coldline storage class.
resource "google_storage_bucket" "backup_bucket" { name = "[1]" location = "[2]" storage_class = "[3]" }
This configuration creates a bucket named backup-bucket in the EU region using the Coldline storage class, ideal for cold data backups.