Getting Unexpected Apple ID Sign In Prompts?

Every so often I get a prompt to sign in to my Apple ID in iOS and iPadOS. Most of the time I know what the sign in is for. Occasionally, it seems to pop up at the weirdest times. I have been just automatically completing the sign in, a terrible practice. There is a better way to check if an Apple ID sign in request is legitimate. This article describes how to do that.