This blog represents concepts on how does apache spark work with the help of diagrams. Following are some of the key aspects…