0
0
GCPcloud~20 mins

Creating buckets and uploading objects in GCP - Practice Exercises

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Cloud Storage Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
What happens when you upload an object to a non-existent bucket?

You try to upload a file to a Google Cloud Storage bucket that does not exist. What is the expected outcome?

AThe upload succeeds and the bucket is created automatically.
BThe upload succeeds but the object is stored in a default bucket.
CThe upload is queued until the bucket is created manually.
DThe upload fails with a 'Not Found' error indicating the bucket does not exist.
Attempts:
2 left
💡 Hint

Think about how cloud storage services handle resources that must exist before use.

Configuration
intermediate
2:00remaining
Which command creates a bucket with uniform access control?

You want to create a Google Cloud Storage bucket with uniform bucket-level access enabled. Which gsutil command achieves this?

Agsutil mb -l us-central1 gs://my-bucket/ && gsutil uniformbucketlevelaccess set on gs://my-bucket/
Bgsutil mb -l us-central1 -b off gs://my-bucket/
Cgsutil mb -l us-central1 -b on gs://my-bucket/
Dgsutil mb -l us-central1 -b on --uniform gs://my-bucket/
Attempts:
2 left
💡 Hint

Uniform bucket-level access must be set after bucket creation using a separate gsutil command.

Architecture
advanced
2:00remaining
Which bucket location type minimizes latency for users in multiple continents?

You are designing a storage solution for a global app with users in North America, Europe, and Asia. Which bucket location type should you choose to minimize latency?

AMulti-region bucket
BRegion bucket located in us-central1
CDual-region bucket in us-central1 and us-east1
DRegion bucket located in europe-west1
Attempts:
2 left
💡 Hint

Think about how data location affects access speed globally.

security
advanced
2:00remaining
What is the effect of enabling 'Requester Pays' on a bucket?

You enable 'Requester Pays' on a Google Cloud Storage bucket. What changes in billing behavior occur?

AThe bucket owner pays for all data access and egress costs.
BThe requester pays for data access and egress costs when accessing objects.
CAll costs are waived for both requester and owner.
DThe bucket owner pays only for storage costs, not access costs.
Attempts:
2 left
💡 Hint

Consider who is charged when data is accessed from a bucket with this feature.

Best Practice
expert
3:00remaining
What is the recommended approach to securely upload objects from a client app without exposing service account keys?

You want users of your mobile app to upload files directly to a Google Cloud Storage bucket securely, without embedding service account keys in the app. What is the best practice?

AEmbed service account keys in the app and use them to upload directly.
BMake the bucket public so anyone can upload files without authentication.
CUse signed URLs generated by a backend service to allow temporary upload access.
DRequire users to authenticate with OAuth and upload using their own credentials.
Attempts:
2 left
💡 Hint

Think about how to grant limited, temporary access without sharing sensitive keys.