Macy's interview question

How to migrate legacy application to cloud?