Files uploaded to a cloud storage bucket must be scanned for malware before any user can retrieve them, and the scan should run only when a file arrives. Which automation mechanism BEST meets this need?
Show the answer
Correct answerC. An event-based trigger on object creation that invokes the scanning function
AWhy not this: Polling on a fixed interval leaves a gap in which an unscanned file can be retrieved and runs with no new files.
BWhy not this: IaC defines infrastructure; redeploying it does not scan file content or react to an upload.
CWhy this is right: Fires on the upload event itself, so the scan starts immediately and only when a file arrives.
DWhy not this: A weekly vulnerability scan assesses the service's weaknesses, not uploaded file content, and is far too infrequent.
An event-based trigger runs the scan the moment an object is created, so nothing is retrievable unscanned and nothing runs when no file arrives. A five-minute cron job still leaves a window and runs when nothing has changed.