I think most of the time when you attempt something, you have an idea how difficult it is. The visible DC reflects that.
What needs to be absolutely hidden however, are the Perception checks. Revealing secrets on a failed Perception check is an incomprehensible design choice.