Skip to interview prep
Apexed

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

Type or dictate your answer. Your draft is saved on this device.

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
An assistant must fetch an account's permissions and then update one permitted record. Which work can safely run in parallel — Software engineering interview qu