GCP Associate Cloud Engineer Practice Question

Your company stores daily application logs in a Cloud Storage bucket using the Nearline storage class. Logs must be moved to Coldline exactly 30 days after they are written and automatically deleted 365 days after creation. You want to meet these requirements with the minimum number of lifecycle rules. Which lifecycle configuration should you apply?

  • Three lifecycle rules: age 30 days SetStorageClass to Coldline, age 180 days SetStorageClass to Archive, and age 365 days Delete.

  • Two lifecycle rules:

    • Rule 1: action Delete, condition matchesStorageClass = Nearline and age = 365 days.
    • Rule 2: action Delete, condition matchesStorageClass = Coldline and age = 365 days.
  • One lifecycle rule that triggers at age 365 days and contains two actions: SetStorageClass to Coldline and Delete.

  • Two lifecycle rules:

    • Rule 1: action SetStorageClass to Coldline, condition age = 30 days.
    • Rule 2: action Delete, condition age = 365 days.
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