Do you not know the interrogative here is meant as an affirmative that God knows all that is in the heaven and the earth? Truly that which has been mentioned is recorded in a Book namely the Preserved Tablet al-lawh al-mahfūz. Indeed that namely the knowledge of what has been mentioned is easy for God.