85. An assistant must fetch an account's permissions and then update one permitted record. Which work can safely run in parallel?
MediumOS, networking & concurrency
Technical
Show model answer
Draw the dependency graph before scheduling. Independent reads may run concurrently, but an update that depends on a permission check must wait for that result and still enforce authorization at execution.
Define failure and cancellation behavior for each branch. Do not infer independence from two different API names: both operations may share mutable state or consume a limited resource. Test permission failure and a permission change between read and write.
What interviewers listen for
- Identify data and authorization dependencies
- Recheck permission at mutation
- Test failure and cancellation paths