Amazon interview question

Describe when/why would you use NoSQL over SQL, CDN caching, WAF, ML