As a side note, I just tried to install Compass inside the Amazon Linux 2 Docker image and Compass installed with no issues even without the --nogpgcheck flag. I wonder if you have some stricter security policies.
Thank you very much for your help on this. I appreciate your quick response. I was able to successfully install MongoDB Compass on my Amazon Linux 2 Workspace. The MongoDB community and customer support has always been extremely knowledgeable, helping a new web developer like me to build cool things with MongoDb.