Correct answer: Living in Iowa for 30 days in a row
You're a resident for licensing if you register to vote, enroll a child in school, take a permanent job, live in Iowa 30 continuous days, and similar.
Source: Chapter 1: Your Driver's License β 1.1 Who Needs an Iowa Driver's License?