Quiz di AI & Machine Learning: Using AI APIs Safely

Building on an AI API brings new risks, from prompt injection to leaked keys and unsafe output. This quiz checks the practical security habits developers need, including handling secrets and personal data, rate limits, and treating model output as untrusted input.

Medio 10 domande ~6 minuti Superato con il 80%

Scegli una modalità

Stai giocando come ospite: accedi per salvare XP e serie.

Domanda di esempio

Domanda 1 di 10

What is prompt injection?

Mostra la risposta

B. Untrusted text (from a user, web page, email or file) containing instructions that try to override the app's own instructions Models read instructions and data as one stream of text, so text like "ignore previous instructions" can hijack behaviour. When it hides inside content the model processes, like a web page, it is called indirect prompt injection.

Cosa copre questo quiz

  • Direct and indirect prompt injection, and limiting what tools can do
  • Keeping API keys on the server and rotating leaked keys
  • Minimizing personal data (PII) sent to providers
  • Handling rate limits and controlling cost
  • Validating and escaping model output before using it

Domande frequenti

Serve un account?

No. Chiunque può giocare. Accedi per salvare XP, serie, badge e cronologia.

Posso rifarlo?

Sì. Il tuo miglior punteggio resta salvato, e domande e risposte vengono mescolate ogni volta.