What is the correct usage of the question mark when using a subsequent parenthesis?

The question mark marks the end of the question. If a trailing parenthetical is part of the question, the mark goes after the closing parenthesis:

How do we deliver it (to the learner)?

If the trailing parenthetical is not part of the question, the parenthetical follows the question mark:

How do we deliver it? (A very good question, to be sure.)