You need triggers that fire only when a specific file is updated in a Cloud Storage bucket; triggers may change and should be easy for team members to update. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Create an Eventarc trigger that watches the Cloud Storage bucket for a specific filename and target Cloud Run..
Why this is the answer
Eventarc is the best solution because it allows you to filter events based on specific attributes, including the filename in Cloud Storage. This directly addresses the requirement for triggers that fire only on specific file updates. Eventarc triggers are also declarative and can be easily managed and updated, fulfilling the need for easy team updates. Targeting Cloud Run is suitable for running your application. Sending Cloud Storage events to Pub/Sub and then triggering Cloud Build would add unnecessary complexity and latency, and Cloud Build is typically used for CI/CD, not for general application execution in response to file changes. Deploying a Cloud Function or Firebase Function triggered on object updates would require custom code within the function to filter for the specific filename, making it less declarative and potentially harder to maintain than an Eventarc trigger.
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