There have been a couple of questions here on meta asking about changing questions to fit existing answers. However, this presupposes the existence of a question for which there exists a question/answer mismatch.
I am wondering if it is ever okay to go somewhat beyond this and contrive a question to which a known answer will be given.
For example, I was recently helping someone and although I could unit test my small piece, I could not end-to-end test the solution because I was missing some of their precursor code. They then offered to provide it. It occurred to me that since that bit of information is useful to me, and is useful to them, and seems a priori to possibly be useful to others, then as an answer to an implied question in the comment thread, namely "how to transform a square-pixel image into a hex-pixel image?", that such a question might deserve to be asked. Presumably, the other user in the comment thread would then provide an essentially ready-made answer to that question.
So, how does the meta community feel about this type of behavior? Are there any psychological pitfalls I might fall into by practicing this sort of thing? Are there any sociological pitfalls that might emerge by encouraging this sort of thing?