1Z0-1067 · Question #51
You have been asked to update the lifecycle policy for object storage using the Oracle Cloud Infrastructure (OCI) Command Line Interface (CLI). Which command can successfully update the policy?
The correct answer is B. oci os object-lifecycle-policy put -ns <object_storage_namespace> -bn <bucket_name> -Items. To create or replace a lifecycle policy for a bucket Open a command prompt and run oci os object-lifecycle-policy put to create or replace the object lifecycle policy for a bucket. To edit individual rules, replace the bucket's existing policy with a new version of the policy…
Question
You have been asked to update the lifecycle policy for object storage using the Oracle Cloud Infrastructure (OCI) Command Line Interface (CLI). Which command can successfully update the policy?
Options
- Aoci os object-lifecycle-policy delete -ns <object_storage_namespace> -bn <bucket_name>
- Boci os object-lifecycle-policy put -ns <object_storage_namespace> -bn <bucket_name> -Items
- Coci os object-lifecycle-policy put -ns <object_storage_namespace> -bn <bucket_name>
How the community answered
(45 responses)- A18% (8)
- B73% (33)
- C9% (4)
Explanation
To create or replace a lifecycle policy for a bucket Open a command prompt and run oci os object-lifecycle-policy put to create or replace the object lifecycle policy for a bucket. To edit individual rules, replace the bucket's existing policy with a new version of the policy that includes the changes to your rules. oci os object-lifecycle-policy put -ns <object_storage_namespace> -bn <bucket_name> --items <json_formatted_lifecycle_policy> The --items option requires that you provide key-value pair input as valid formatted JSON https://docs.cloud.oracle.com/en-us/iaas/Content/Object/Tasks/usinglifecyclepolicies.htm
Topics
Community Discussion
No community discussion yet for this question.