I got the same question described in other interview reports. The difference was that I had to use Go because this was an infrastructure role, so it is worth preparing how to use net/http and encoding/json. The interviewer was super nice and kept helping me with syntax. I finished all four parts. He said most people do not get to the fourth one, lol. The interesting thing about the second part was that it asked me to try every serial number from 1001 through 1010 and print all the scenarios. It was basically testing different HTTP failure scenarios. For a non-200 status code, for example, I had to print failure and the reason. I also had to add an HTTP client with a timeout because one serial number would time out. Another produced an unexpected EOF in JSON; for that, I just needed to output the error when decoding. The third part tested concurrency, which was straightforward with a WaitGroup. The fourth asked how I would refactor the method to make it easier to test. Changing the return value from just an error to a struct was enough.
Coreweave Software Engineer Interview Experience — Four Go HTTP Parts in an Infra Screen
Technical Screeneasy
Published
Curated and edited by PracHub
Discussion
Loading comments…