Oracle Cloud Infrastructure 2021 Multicloud Architect Associate — Question 31

Your application is using an Object Storage bucket named app-data in the namespace vision, to store both persistent and temporary data. Every week all the temporary data should be deleted to limit the storage consumption.
Currently you need to navigate to the Object Storage page using the web console, select the appropriate bucket to view all the objects and delete the temporary ones.
To simplify the task you have configured the application to save all the temporary data with /temp prefix. You have also decided to use the Command Line
Interface (CLI) to perform this operation.
What is the command you should use to speed up the data cleanup? (Choose the best answer.)

Answer options

Correct answer: B

Explanation

The correct answer is B because the 'oci os object bulk-delete' command is specifically designed for deleting multiple objects based on a specified prefix efficiently. Option A incorrectly uses the 'delete' command which is meant for single objects, while Option C has the wrong command format ('objectstorage' instead of 'os'). Option D is not a valid CLI command structure for this operation.