You need to set up a policy so that videos stored in a specific Cloud Storage Regional bucket are moved to Coldline after 90 days, and then deleted after one year from their creation. How should you set up the policy?
A.
Use Cloud Storage Object Lifecycle Management using Age conditions with SetStorageClass and Delete actions. Set the SetStorageClass action to 90 days and the Delete action to 275 days (365 ג€" 90)
B.
Use Cloud Storage Object Lifecycle Management using Age conditions with SetStorageClass and Delete actions. Set the SetStorageClass action to 90 days and the Delete action to 365 days.
C.
Use gsutil rewrite and set the Delete action to 275 days (365-90).
D.
Use gsutil rewrite and set the Delete action to 365 days.
Correct is B.
You only re-calculate expiry date when objects are re-written using re-write option to another storage class in which case creation date is rest.
But in this case objects is moveed to Coldline class after 90 days and then we want to delete the object after 365 days.
You can change the storage class of an existing object either by rewriting the object or by using Object Lifecycle Management...Since Object Life cycle management was used there was no need to recalculate the expiration date and delete action still remains 365 days.
https://cloud.google.com/storage/docs/storage-classes
age
The age condition is satisfied when a resource reaches the specified age (in days). Age is measured from the resource's creation time.
https://cloud.google.com/storage/docs/lifecycle#age
Cloud Storage Object Lifecycle Management allows you to define conditions and actions for objects based on their age, creation time, or other attributes.
To meet the requirements:
Move to Coldline after 90 days: This is achieved by setting a SetStorageClass action with an Age condition of 90 days.
Delete after 1 year (365 days): Since the object would have been moved to Coldline after 90 days, the remaining time for deletion is 365 - 90 = 275 days. Set a Delete action with an Age condition of 275 days.
A is not correct. age is defined based on creation time. SetStorageClass only affects the modification time, not the creation time. So the 90 days are not relevant for the deletion rule.
La gestión del ciclo de vida de objetos en Google Cloud Storage permite automatizar el cambio de la clase de almacenamiento y la eliminación de los objetos en función de su antigüedad. Para este caso:
Después de 90 días, se debe cambiar la clase de almacenamiento a Coldline, lo que se hace usando la acción SetStorageClass.
Luego, después de 365 días (1 año), los objetos deben ser eliminados usando la acción Delete.
A es incorrecta porque sugiere eliminar los objetos a los 275 días, lo cual no coincide con el requisito de eliminar los videos después de un año.
C y D son incorrectas porque gsutil rewrite no es la herramienta correcta para gestionar políticas de ciclo de vida.
option A can be misguiding but you don't have to specify 275 days since the rule would be implemented based on the creation of object not after the effect of the previous rule. Hence option B
Option A
Cloud Storage Object Lifecycle Management allows you to define a set of rules that manage the lifecycle of your objects. The Age condition specifies the number of days since the object's creation.
The SetStorageClass action changes the storage class of objects within the bucket. Setting it to 90 days means that 90 days after the object's creation, it will be moved to Coldline Storage.
The Delete action specifies when the object should be deleted. Because the SetStorageClass action occurs at 90 days, you would set the Delete action at 275 days (365 total days from the creation - 90 days already passed until the class change), resulting in the object being deleted one year from its creation.
The correct answer is B.
Cloud Storage Object Lifecycle Management is a feature that allows you to automatically transition objects to different storage classes or delete them based on user-defined rules.
To set up a lifecycle management policy to move videos to Coldline after 90 days and then delete them after one year, you would create a rule with the following conditions and actions:
* Condition: Age is greater than 90 days
* Action: Set storage class to Coldline
* Condition: Age is greater than 365 days
* Action: Delete
This policy will ensure that your videos are automatically moved to Coldline after 90 days, where they will be stored at a lower cost. After one year, the videos will be automatically deleted.
Here is an example of how to create a lifecycle management policy using the gcloud command-line tool:
gcloud storage lifecycle management policies set my-bucket my-policy --action-set-storage-class coldline --condition-age-days 90 --action-delete --condition-age-days 365
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Sammigbo
Highly Voted 4 years, 10 months agoJKRowlings
4 years, 4 months agoyvinisiupacuando
3 years, 11 months agocloudenthu01
Highly Voted 4 years, 10 months agoT_T_M
4 years, 7 months agovaclavbenes1
Most Recent 2 months, 2 weeks agodevanshgoyal12
3 months, 1 week agopeddyua
3 months, 1 week agonarop
3 months, 3 weeks agouser263263
4 months, 4 weeks agonubelukita45852
7 months, 1 week agoJackSkeletonCoder
7 months, 1 week agosh00001
9 months, 4 weeks agotorresbytea
1 year, 1 month agoRahaf99
1 year, 5 months agogsmasad
1 year, 5 months agoEvan7557
1 year, 6 months agoYourCloudGuru
1 year, 7 months agoCarlosMarin
1 year, 7 months agoExamsFR
1 year, 9 months ago