The sentence that is capitalized correctly is
Malia noted, “My class traveled to Barcelona to study architecture.”
Regardless of the placement within the sentence, the first word of a quote within a complete sentence should be capitalized. However, this is not the case when the quoted words are only partial sentences. Since "My class traveled to Barcelona to study architecture" is a complete sentence, "my" should be capitalized.