The correct answer is D. Germany and the Soviet Union.
Latvian culture in the 20th century was significantly influenced by both German culture, due to historical ties and the presence of German settlers, as well as Soviet influence during the period of Soviet occupation.