Trax USA interview question

When to use CoreData vs SQLLite