ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 134 - Professional Cloud Developer discussion

Report
Export

You are developing an application that needs to store files belonging to users in Cloud Storage. You want each user to have their own subdirectory in Cloud Storage. When a new user is created, the corresponding empty subdirectory should also be created. What should you do?

A.
Create an object with the name of the subdirectory ending with a trailing slash ('/') that is zero bytes in length.
Answers
A.
Create an object with the name of the subdirectory ending with a trailing slash ('/') that is zero bytes in length.
B.
Create an object with the name of the subdirectory, and then immediately delete the object within that subdirectory.
Answers
B.
Create an object with the name of the subdirectory, and then immediately delete the object within that subdirectory.
C.
Create an object with the name of the subdirectory that is zero bytes in length and has WRITER access control list permission.
Answers
C.
Create an object with the name of the subdirectory that is zero bytes in length and has WRITER access control list permission.
D.
Create an object with the name of the subdirectory that is zero bytes in length. Set the Content-Type metadata to CLOUDSTORAGE_FOLDER.
Answers
D.
Create an object with the name of the subdirectory that is zero bytes in length. Set the Content-Type metadata to CLOUDSTORAGE_FOLDER.
Suggested answer: A

Explanation:

https://cloud.google.com/storage/docs/folders

If you create an empty folder using the Google Cloud console, Cloud Storage creates a zero-byte object as a placeholder. For example, if you create a folder called folder in a bucket called my-bucket, a zero- byte object called gs://my-bucket/folder/ is created. This placeholder is discoverable by other tools when listing the objects in the bucket, for example when using the gsutil ls command.

asked 18/09/2024
German Lopez
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first