The exclamation mark indicates you are connected to Wi-Fi, but the internet is unavailable. Troubleshooting steps listed in this article should help solve this issue. If the internet is not working after updating to macOS Monterey, see how to fix it.