A question can be formed from most sentences, and it is the same with present perfect tenses.
A question in the present perfect tense must follow a pattern, which is the auxiliary verb coming first, followed by the subject, and lastly, the verb’s past participle. The rule is simple: HAVE/HAS + SUBJECT + PAST PARTICIPLE.