I'll also add that even when assigning the final form (essentially) of the Tanakh to the late Persian/Greek period, Thompson et al. recognize the compilers had commandeered blocks of tradition, some of which dates much earlier. He made some comment, describing this compiler as both ideological but at the same time something of a librarian/antiquarian. There is just no way around the observations of the framers of the original Documentary Hypothesis. The concern is assuming too much in way of chronological order and original intent for these sources. The diverse legends could easily have been laid in an artificial row to create a fresh patchwork, a new view of history.
IMO the traditions (coming from a larger ethnic grab bag of returnees and indigenous people) were in tension in important ways, the view of the monarchy, the origin of the people in Palestine, the forms of worship of Yahweh as examples. The compiler/s (stages seem likely) created a new idealized yet poignant mashup that was never previously conceived of but explained the present and offered hope.