Identify the grammatical function of the bolded noun clause in this sentence:

Shirley didn't realize that the mechanic had no idea what he was doing.
Responses
A subjectsubject
B direct objectdirect object
C predicate nominativepredicate nominative
D object of a preposition

A. subject