All jobs / AI engineer / AI Coding & Agentic Development

AI engineer interview question · 0–1 years

Your coding assistant’s solution imports a library you have never heard of. What do you do before you install it?

The strongest answer

Check the package really exists in the official registry, is the maintained one and has the functions the code calls — models invent plausible names, and an invented name can be registered by an attacker

Why it works

Exactly — hallucinated dependencies are a known failure, and installing an unknown package runs someone else’s code on your machine.

What a good answer covers

Answers that fall short

Who gets asked this

More AI Coding & Agentic Development questions