Amazon interview question

Public subnet versus Private Subnet? SQL versus NoSQL?