
Answer-first summary for fast verification
Answer: Change the access control model for the bucket
The error occurs because log sinks do not support Cloud Storage buckets with uniform bucket-level access (UBLA) enabled. According to Google Cloud documentation and the community discussion (with comment_id '610626' receiving 11 upvotes), the solution is to change the bucket's access control model from uniform to fine-grained. This allows the use of Access Control Lists (ACLs), which are required for log sinks to function properly. Option A directly addresses this by modifying the access control model. Option B is incorrect because updating the sink destination does not resolve the UBLA incompatibility. Options C and D are also incorrect, as adding IAM roles (like roles/logging.logWriter or roles/logging.bucketWriter) does not fix the UBLA issue; the problem lies with the bucket's access model, not IAM permissions.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You are exporting application logs to Cloud Storage and receive an error that the log sinks do not support uniform bucket-level access. How do you resolve this error?
A
Change the access control model for the bucket
B
Update your sink with the correct bucket destination.
C
Add the roles/logging.logWriter Identity and Access Management (IAM) role to the bucket for the log sink identity.
D
Add the roles/logging.bucketWriter Identity and Access Management (IAM) role to the bucket for the log sink identity.