When I was a jr. engineer, I had a skip level meeting with the director of our department (~30 people). I asked the director -- in the snarky way that certain entitled junior employees have -- what he actually did in his job. He laughed and explained that his job was to make sure senior management understood what we were doing and were onboard with why we were doing it. Nobody gave me any talking points and I was too green to worry about the political ramifications of my snark... and there weren't any. It was just a half hour opportunity to talk to someone I didn't usually get a chance to talk to. I now realize that this company, or maybe just that department, was a particularly healthy place to work.
Especially from someone new to the field these are questions I would be expecting, especially at a tech company (so pretty equalitarian and meritocratic where the director probably started as an engineer himself). I would also expect the career path to take to get into management to be discussed as well.
It depends how it's said. I would hesitate to correct the person who actually said it about whether they said it in a snarky way unless I was actually there.
But the question itself doesn't strike me as such, at least coming from a junior engineer.
Someone more senior should know what the tasks of someone at that level are, so asking "what is your job" might be interpreted as implying he isn't doing much.
This depends entirely on org culture. I've worked at places where I had to go thru an absolute gauntlet of "prep" meetings to hone my talking points for talking with someone several skip levels above my manager.
And, I've worked in places where you are free to send a DM to the C-Suite if you feel like it's necessary to get your work done. No pre-approval required.
I say this with privilege, but you need to be asking why. And if you are dissatisfied with the answers, you are working with the wrong place. As you can see from other comments here, skip levels serve many purposes. If in your case it's because skip levels are used to bypass distrust of your manager, then you need your manager to address that with you honestly before you simply do what they say.