15 March 2025 Interview Questions

At the end of May 2024, a recruiter contacted me for a job. For this particular job, the company wanted me to answer 5 questions alongside receiving my CV. Having to jump through these kinds of hoops (albeit sounding quite small), has always been a terrible experience for me.

I never heard back from them.

Maybe my answers are lacking and can be improved. I’ll be sharing each question separately, but I’m open to feedback. Roast me!

Questions

  1. How would you ensure data integrity across multiple threads/workers? See answer
  2. What steps would you take to avoid system failure or degraded performance? See answer
  3. What is your opinion on The Rails Way? See answer
  4. What do you use to optimise database performance in a Ruby on Rails application? See answer
  5. When do you decide to refactor code? See answer