🔥 40% Off Crucial Exams Memberships — Deal ends today!

1 hour, 53 minutes remaining!

GCP Associate Cloud Engineer Practice Question

Your security team asks you to configure a lifecycle rule for a Cloud Storage bucket that receives thousands of objects every day under the path prefix "logs/". Compliance requires that these log objects be removed automatically 30 days after they are created, while any other objects stored in the bucket must remain untouched. Which lifecycle configuration will satisfy this requirement?

  • Create a lifecycle rule with action Delete and condition: age = 30, matchesStorageClass = ["STANDARD"]

  • Create two lifecycle rules: (1) SetStorageClass to Nearline at age 30; (2) Delete at age 365 for all objects

  • Enable Object Versioning and add a lifecycle rule that deletes noncurrent object versions after 30 days

  • Create a lifecycle rule with action Delete and condition: age = 30, matchesPrefix = ["logs/"]

GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot