No, it is not necessary. You can take the exam and not use fastify or express but that would be crazy. You can use one or the other. I recommend that you do not get lost to study them. With fastify or Express you can finish the exam faster than start creating everything from scratch.
Good response @canelacho - I agree entirely.