score:7
PEK-J268-GYD-J263 TXL has a layover of 1 hour 45 minutes in GYD. This is above minimum connection time and should be fine. However, Azerbaijan airlines (J2) only has one flight per day from GYD to TXL so if you do miss it, they would most likely rebook on you on the next day and you would have to stay overnight. It is possible that they could also rebook you via another route and occasionally might rebook you to another airline, but I would doubt that.
Airlines rarely wait for connecting passengers these days, but might if there are a considerable number arriving from a connecting flight.
Your bag should be checked through to your destination and you shouldn't have to pick it up in Baku.
Enter your citizenship and travel details in Timatic and it will tell you whether you need a visa. Timatic is the system the airlines use to determine whether you require a visa and thus won't carry you without it.