Practice Test 1 | Google Cloud Certified Associate Cloud Engineer | Dumps | Mock Test
You are working with a healthcare startup as Google Cloud Consultant on a new project which they are about to launch next week as a beta version. All the static files are stored on GCS and you have been asked to make one of the PDF named whizlabs-bucket publicly available for the customers to download. You only have access to CLI to achieve the same. Which of the following command would you use to do it?
A. gsutil acl ch -u allUsers:r gs://whizlabs-bucket/file.pdf
B. gsutil acl update -u allUsers:R gs://whizlabs-bucket/file.pdf
C. gcloud gs update-acl –public-read gs://whizlabs-bucket/file.pdf
D. gcloud storage update-acl –public-read gs://whizlabs-bucket/file.pdf
Explanation:
Correct Answer – A
A is correct: The correct command to make the file public is A. Hence it is the correct answer.
B is incorrect: gsutil acl does not have update as an option. Only supported ones are set, get, and ch
C is incorrect: gcloud does not have any group called gs
D is incorrect: gcloud does not have any group with the name of storage
Reference:
Comments are closed, but trackbacks and pingbacks are open.