AK is a good starting hand, but you need to re-evaluate your form at all times, depending on both the cards on the table and the attitude of your opponents.
You start betting hard, and if you are seconding a made hand, you will have a better chance of winning, the final positions are better to play, stay out of position, and failing to complete the hand leaves us in a fragile situation.
When in doubt about how to behave with this hand the best option is to save chips, leave it to invest where you have the best conditions to win, where you will play your best game.
Take a look here
https://www.cardschat.com/poker-hands/ will help you to choose better some starting hands.
If I am playing AK I will go Cbet on the flop practice every time, and if I am in late position, or playing against certain players I can bet on the turn and river, even without a made hand.