1. For the question → Be verb comes first
Am / Is / Are + subject + complement?
Example:
He → Is he from Canada?
2. For the answer → Subject (I, you, we, they, he, she, It) comes first
Yes, + subject + be verb (am / is / are) + complement.
Example:
Yes, he is from Canada.
Simple reminder:
Singular subject
I → am
He / She / It → is
Plural subject
You / We / They → are