How would you upload a file to that container when usin…

You have created a container in Oracle Storage Cloud Service. How would you upload a file to that container
when using a REST API call?

You have created a container in Oracle Storage Cloud Service. How would you upload a file to that container
when using a REST API call?

A.
You cannot upload files using REST API calls.

B.
Send a PUT request to {accountURL}/{containerName}.

C.
Send a PUT request to {accountURL}/{containerName}/{objectName}.

D.
Send a POST request to {accountURL}/{containerName}/{objectName}.

E.
Send a POST request to {accountURL}.



Leave a Reply 3

Your email address will not be published. Required fields are marked *


Ken

Ken

I agree that the answer should be C.

You need the POST to create the object, but the PUT updates the new object with the file you are uploading.

In the Student Guide from the IaaS Fundamentals course, there was a quiz on chapter 14, page 17, that asked exactly this question. The instructor answered PUT.