About this exam
An associate-level Google Cloud certification for engineers who deploy applications, monitor operations and manage projects and resources on Google Cloud. It covers setting up projects with the Google Cloud console and the gcloud CLI, deploying and operating Compute Engine, GKE, storage and networking, and managing access with IAM.
Try a sample question
This is an original sample question written by itmoshi based on the exam objectives.
A department stores security camera recordings in a Cloud Storage bucket using the Standard class. The requirements are: (1) objects older than 90 days must become eligible to move to Coldline whether or not they are accessed; (2) objects older than 3 years (1,095 days) must become eligible for deletion; (3) no code should be written and operational effort must be minimal. What should you do?
- AEnable Autoclass on the bucket so that storage classes switch automatically based on access frequency
- BAdd two lifecycle rules to the bucket (SetStorageClass: COLDLINE at age 90, Delete at age 1095)
- CSet a 1,095-day retention policy on the bucket so that objects disappear automatically after the period
- DUse Cloud Scheduler to trigger Cloud Run functions daily to change classes and delete objects by age
Show answer and explanation
Answer:B Age-based class changes and deletions are what Object Lifecycle Management (lifecycle rules) automates.
Why it is correct
Lifecycle rules let Cloud Storage itself apply SetStorageClass or Delete to objects that meet conditions such as age (days since creation). The actions run asynchronously, so they happen some time after an object becomes eligible rather than at that exact moment. The age-90 rule targets objects for Coldline regardless of access, meeting requirement 1, and the age-1095 Delete rule meets requirement 2. It is just bucket configuration with no code or runtime to maintain, so requirement 3 is met as well. If the bucket has a soft delete policy, deleted objects remain recoverable for its retention period.
The other options
- ✗ A Autoclass moves objects based on how they are accessed, so it cannot enforce a fixed "Coldline at 90 days regardless of access" schedule, and Autoclass itself never deletes objects. It suits data with unpredictable access patterns where you want costs optimized automatically.
- ✗ C A retention policy prevents deletion or overwriting until the period has passed; it does not delete anything when the period ends, and it cannot change storage classes. Use it when regulations require data to be kept undeletable for a set time.
- ✗ D This would work, but you would have to maintain the function code, schedule, permissions and retries yourself, which violates requirement 3. It is useful when built-in rules cannot express the required conditions.
Key takeaway
Pick the Cloud Storage feature by goal: change class or delete by age → lifecycle rules; optimize automatically by access → Autoclass; forbid deletion for a period → retention policy (Bucket Lock); recover from accidental deletion or overwrites → object versioning or the soft delete policy.
Try 34 questions like this for free
itmoshi is an unofficial study service and is not affiliated with Google Cloud or any exam provider.