Nutanix | MTS | Pune | 09-Feb-21 [Reject]
Anonymous User
1803

Status: Developer at SAP Labs
Position: MTS
Experience: 7 years
Location: Pune, India
Date: Feb 09, 2021
First round (1 hour):
Asked below design questions :

  1. Design system which generate random UUID for each files in directory-> Told him about Key Generation Service, also mentioned Used/Available tables, Used table contain used UUIDs and other table contain available UUIDs.When file is deleted then service will move it's UUID to available UUID table.and when new file created then service will move UUID to used UUID table and in response give same UUID. Also told him above rename file scenario.
  2. There is one thread reading many files from directory, and want to gracefully close this thread How to do this?
    -> Mentioned him that we can specify global variable, and thread can check global variable , if it is set then start reading new file, and when you want to close thread then unset global variable. This will close thread. Also mentioned that when we want to close thread that time we can rename directory name, so that it fails to read, but of course thread should handle IOExceptions and return from exception.
    ->I don't know if there are any other alternatives are available, These interview lasted for 40 mins, then immediatly got rejection mail.
Comments (2)