Store per-user directories in Cloud Storage and ensure an empty subdirectory exists when a user is created. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a zero-byte object whose name is the desired subdirectory path ending with a trailing slash ('/')..
Why this is the answer
Cloud Storage does not have true directories; it uses a flat namespace. However, it simulates directories by treating object names that contain a trailing slash ('/') as folder-like objects. Creating a zero-byte object with a name like users/user123/ effectively creates an empty "folder" for user123. This is the standard and recommended way to represent empty directories in Cloud Storage. The other options are incorrect because: Deleting an object inside a subdirectory doesn't create the subdirectory itself. Granting WRITER ACL permission is about access control, not directory creation. Setting Content-Type to CLOUDSTORAGEFOLDER is not a valid or recognized method for creating a virtual folder; Cloud Storage handles this internally based on the trailing slash.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed