How would you answer Python, SQL, and Kafka questions under a multiple-choice and coding format?
Treat this as a mixed interview prompt with short-answer coding responses. For Python, write a function that solves the stated task. For SQL, provide the query against the given table schema. For Kafka, explain the behavior or write the code/configuration snippet requested.
def answer_questions(prompts):