0
0
GCPcloud~20 mins

Buckets and objects concept in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Buckets and Objects Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Bucket Naming Rules
Which of the following bucket names is valid according to Google Cloud Storage naming rules?
Amy.bucket.name
BMyBucketName
Cmy_bucket_name_123
Dmy-bucket-name
Attempts:
2 left
💡 Hint
Bucket names must be globally unique, lowercase, and follow DNS naming conventions.
service_behavior
intermediate
2:00remaining
Object Versioning Behavior
If object versioning is enabled on a bucket, what happens when you upload a new object with the same name as an existing object?
AThe bucket automatically deletes the old object before saving the new one.
BThe new object is rejected with an error because the name already exists.
CThe new object is saved as a new version, and the old version is retained.
DThe new object overwrites the old one and the old version is lost.
Attempts:
2 left
💡 Hint
Think about how versioning helps keep old copies.
Architecture
advanced
2:30remaining
Designing for Data Residency Compliance
You need to store sensitive data in Google Cloud Storage and ensure it never leaves the European Union. Which bucket configuration meets this requirement?
ACreate a bucket in a multi-region location in the US.
BCreate a bucket in a region located in Europe.
CCreate a bucket in a dual-region with one region in Europe and one in Asia.
DCreate a bucket in a multi-region location in Asia.
Attempts:
2 left
💡 Hint
Data residency depends on the physical location of the bucket.
security
advanced
2:30remaining
Bucket Access Control Best Practice
Which of the following is the safest way to grant a user read access to objects in a bucket?
AGrant the user the 'Storage Object Viewer' role on the bucket.
BMake the bucket publicly readable.
CGrant the user 'Storage Admin' role on the project.
DShare the bucket's URL with the user.
Attempts:
2 left
💡 Hint
Least privilege principle is key for security.
Best Practice
expert
3:00remaining
Optimizing Object Lifecycle Management
You want to automatically delete objects older than 365 days and archive objects older than 180 days in Google Cloud Storage. Which lifecycle rule configuration achieves this?
ASet a lifecycle rule to delete objects with age > 365 days and another to set storage class to ARCHIVE for age > 180 days.
BSet a lifecycle rule to delete objects with age > 180 days and another to set storage class to ARCHIVE for age > 365 days.
CSet a single lifecycle rule to delete objects with age > 365 days only.
DSet a lifecycle rule to archive objects with age > 365 days and delete objects with age > 180 days.
Attempts:
2 left
💡 Hint
Think about the order of archiving before deletion.