Case C98F79 · Cloud · L2 Practitioner
Securing Serverless Functions
- 01 Context
- 02 Mechanism
- 03 Lessons
What a strong answer covers
Try it out loud first. Then check yourself:
- The provider patches the servers; you still own the code, its dependencies, its permissions and its configuration.
- Give each function its own role with only what it needs; a shared, broad role turns one bug into account-wide access.
- Every trigger is input: queue messages, file uploads and HTTP events can all carry injection payloads.
- Keep secrets in a secrets manager, set timeouts and concurrency limits, and send logs somewhere you actually watch.
If the interviewer pushes back
- A function has a command injection bug. What can an attacker reach, and how do you limit it?