How are data stored on a hard disk drive (HDD)?

What are the advantages of using an SSD over an HDD in terms of data storage?
How do building structures and engineering practices contribute to earthquake resilience?