If you completed German to the year 5 course, then that may be “enough” for most colleges. (As an aside, saying that you took two years without mentioning the level gives everyone the impression that you completed only up to the year 2 course.)
However, AP CS principles is not a particularly high value course to take if you have already taken AP CS A. Some of the overview knowledge may be helpful, but you can get that by just reading the course materials of
https://cs10.org
which is one of the courses that AP CS principles was modeled on. You may want to consider other academic electives of interest if you do not want to take German 6.