Google Cloud Associate Cloud Engineer — Question 266
You are the Organization Administrator for your company's Google Cloud resources. Your company has strict compliance rules that require you to be notified about any modifications to files and documents hosted on Cloud Storage. In a recent incident, one of your team members was able to modify files and you did not receive any notifications, causing other production jobs to fail. You must ensure that you receive notifications for all changes to files and documents in Cloud Storage while minimizing management overhead. What should you do?
Answer options
- A. View Cloud Audit logs for all Cloud Storage files in Logs Explorer. Filter by Admin Activity logs.
- B. Enable Cloud Storage object versioning on your bucket. Configure Pub/Sub notifications for your Cloud Storage buckets.
- C. Enable versioning on the Cloud Storage bucket. Set up a custom script that scans versions of Cloud Storage objects being modified and alert the admin by using the script.
- D. Configure Object change notifications on the Cloud Storage buckets. Send the events to Pub/Sub.
Correct answer: D
Explanation
The correct answer is D because configuring Object change notifications allows you to receive real-time alerts for any modifications made to files in Cloud Storage, which meets your compliance needs. Options A and C do not provide proactive notifications, while option B focuses on versioning which does not directly notify about changes.