Google Professional Cloud Security Engineer exam dumps

Google Professional Cloud Security Engineer practice question 348 of 501

Professional Cloud Security Engineer. Expert level, Google Cloud. Free question with the correct answer and a full explanation.

Google Professional Cloud Security Engineer Question 348

Select 2Google Cloud Platform

Your organization has a Google Cloud Storage bucket that stores archived logs which must be retained for 180 days before being deleted. You are tasked with configuring an object lifecycle policy to automatically delete these objects after the retention period. Which components must you include in the lifecycle policy configuration to meet this requirement?

  1. A

    A condition specifying the 'age' of the object in days.

  2. B

    A condition specifying the 'storage class' of the object to be 'NEARLINE'.

  3. C

    An action specifying 'Delete' for objects matching the condition.

  4. D

    An action specifying 'SetStorageClass' to move objects to 'COLDLINE'.

  5. E

    A condition specifying the 'createdBefore' date of the objects.

Show answer and explanation

Correct answers: A, C

Explanation

To configure a lifecycle policy for automatically deleting objects after they have been retained for 180 days, you need to specify a condition for the object's 'age' (e.g., 180 days) and an action to 'Delete' objects that match this condition. Other conditions or actions, such as specifying storage class or using 'createdBefore', do not align with the requirements of this scenario.

  • A. Correct.

    Correct: To delete objects after a specific retention period, you must specify a condition based on the 'age' of the objects in days, such as 180 days.

  • B. Incorrect.

    Incorrect: Specifying the storage class, such as 'NEARLINE', is not necessary for this use case as the requirement is based on age, not storage class.

  • C. Correct.

    Correct: The 'Delete' action is required to remove objects that match the specified condition (e.g., objects older than 180 days).

  • D. Incorrect.

    Incorrect: The 'SetStorageClass' action changes the storage class of objects but does not delete them. This action is unrelated to the task of deleting objects after 180 days.

  • E. Incorrect.

    Incorrect: While 'createdBefore' can be used as a condition, it requires a specific date and is less suitable for a recurring retention policy based on object age.

Timed practice exam

Take a Google Professional Cloud Security Engineer practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam