Passage
the son of Amariah, the son of Azariah, the son of Meraioth,
the son of Amariah, the son of Azariah, the son of Meraioth,
Ezra 7:1 Now after these things, in the reign of Artaxerxes king of Persia, Ezra the son of Seraiah, the son of Azariah, the son of Hilkiah,
Ezra 7:2 the son of Shallum, the son of Zadok, the son of Ahitub,
Ezra 7:3 the son of Amariah, the son of Azariah, the son of Meraioth,
Ezra 7:4 the son of Zerahiah, the son of Uzzi, the son of Bukki,
Ezra 7:5 the son of Abishua, the son of Phinehas, the son of Eleazar, the son of Aaron the chief priest—
The verse centers on "amariah", "azariah", and "meraioth". It is saying that the verse draws attention to "amariah" and "azariah", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 2's "the son of Shallum the son of..." into verse 4's "the son of Zerahiah the son of...", so "amariah" and "azariah" belong inside that flow. In Ezra context, the local focus is covenant, worship, and faithfulness.
A plain takeaway is to answer the verse's own emphasis on "amariah" and "azariah" with trust shaped by these words, not by a vague optimism outside the passage.