Question 51
Security Architecture and EngineeringAn attacker exploits an injection flaw in a serverless function that processes uploaded files, then uses the function's credentials to read unrelated storage buckets. Which action BEST limits the impact of a similar flaw?
Show the answer
Correct answerB. Give each function its own narrowly scoped execution role
AWhy not this: Customers cannot install agents on the provider-managed host that runs the function.
BWhy this is right: Narrow permissions per function limit what injected code can read or change.
CWhy not this: The provider patches the host in serverless, and a code injection flaw is not an OS flaw.
DWhy not this: Customers do not control the hosts, and segmentation would not limit the role's permissions.
The flaw is in the customer's function code, and the damage comes from what its execution role may access. A least-privilege role per function caps that damage. Host patching and agents are not available to the customer, because the provider manages the underlying host.