Have an Ace Up One’s Sleeve

What does the idiom “Have an Ace Up One’s Sleeve” mean?


To have a hidden advantage

For example:

“Right now it seems as though Susan will get the job, but that could change. Maria has an ace up her sleeve—she’s friends with the boss’s wife, but nobody knows it.”