Spark save as parquet,avro,json,orc with compression

I am taking cca 175 exam in the next week.
I have confusion in spark writing data in different format like parquet,avro,json,orc with compression.
If somebody created the cheat sheet please help. Thank you.