This is true; however, there are additional correct answers!
God's judgment of death results from the sin of disobeying the only prohibition God had for the Garden of Eden.
"Then to Adam He said, 'Because you have listened to the voice of your wife, and have eaten from the tree about which I commanded you, saying, ‘You shall not eat from it’;.... '" (Gen 3:17)