nerdexam
Google

PROFESSIONAL-CLOUD-DEVELOPER · Question #181

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 cor

Sign in or unlock PROFESSIONAL-CLOUD-DEVELOPER to reveal the answer and full explanation for question #181. The question stem and answer options stay visible for context.

Building and testing applications

Question

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?

Options

  • ACreate an object with the name of the subdirectory ending with a trailing slash ('/') that is zero
  • BCreate an object with the name of the subdirectory, and then immediately delete the object within
  • CCreate an object with the name of the subdirectory that is zero bytes in length and has WRITER
  • DCreate an object with the name of the subdirectory that is zero bytes in length. Set the Content-

Unlock PROFESSIONAL-CLOUD-DEVELOPER to see the answer

You've previewed enough free PROFESSIONAL-CLOUD-DEVELOPER questions. Unlock PROFESSIONAL-CLOUD-DEVELOPER for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Cloud Storage#Object Storage#Simulated Directories#Application Development
Full PROFESSIONAL-CLOUD-DEVELOPER Practice