exam questions

Exam Associate Cloud Engineer All Questions

View all questions & answers for the Associate Cloud Engineer exam

Exam Associate Cloud Engineer topic 1 question 18 discussion

Actual exam question from Google's Associate Cloud Engineer
Question #: 18
Topic #: 1
[All Associate Cloud Engineer Questions]

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.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Sammigbo
Highly Voted 4 years, 10 months ago
Answer is B. There should be no reason to recalculate the time needed to delete after a year.
upvoted 59 times
JKRowlings
4 years, 4 months ago
The correct ans is A.
upvoted 6 times
yvinisiupacuando
3 years, 11 months ago
Right answer is clearly B, "A" does not make any sense.
upvoted 13 times
...
...
...
cloudenthu01
Highly Voted 4 years, 10 months ago
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.
upvoted 44 times
T_T_M
4 years, 7 months ago
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
upvoted 16 times
...
...
vaclavbenes1
Most Recent 2 months, 2 weeks ago
Selected Answer: B
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
upvoted 2 times
...
devanshgoyal12
3 months, 1 week ago
Selected Answer: D
Why answer is not D
upvoted 1 times
...
peddyua
3 months, 1 week ago
Selected Answer: B
{ "rule": [ { "action": { "type": "SetStorageClass", "storageClass": "COLDLINE" }, "condition": { "age": 90 } }, { "action": { "type": "Delete" }, "condition": { "age": 365 } } ] }
upvoted 1 times
...
narop
3 months, 3 weeks ago
Selected Answer: A
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.
upvoted 1 times
...
user263263
4 months, 4 weeks ago
Selected Answer: B
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.
upvoted 2 times
...
nubelukita45852
7 months, 1 week ago
Selected Answer: B
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.
upvoted 1 times
...
JackSkeletonCoder
7 months, 1 week ago
Selected Answer: B
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
upvoted 3 times
...
sh00001
9 months, 4 weeks ago
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.
upvoted 1 times
...
torresbytea
1 year, 1 month ago
Selected Answer: B
A is wrong cause there is no need of re-calculating. B is the right choice
upvoted 1 times
...
Rahaf99
1 year, 5 months ago
Answer is B
upvoted 1 times
...
gsmasad
1 year, 5 months ago
Selected Answer: B
Time of creation is the reference NOT the time of movement
upvoted 2 times
...
Evan7557
1 year, 6 months ago
Answer B
upvoted 1 times
...
YourCloudGuru
1 year, 7 months ago
Selected Answer: B
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
upvoted 8 times
...
CarlosMarin
1 year, 7 months ago
Selected Answer: A
"... and then deleted after one year FROM THEIR CREATION". I vote for A.
upvoted 1 times
...
ExamsFR
1 year, 9 months ago
Selected Answer: B
Answer is B
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago