JetBrains Interview Question

Got asked which operations in Spark trigger shuffle, as well as when would I develop streaming vs batching pipelines.