The Iron Rod and the Escalator of God

When faced with sola fide, Latter-day Saints often ask what role obedience plays. Can sin undo God’s covenant?