Квиз по 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.

Средний 10 вопроса ~6 минуты Проходной балл: 80%

Выберите режим

Вы играете как гость: войдите, чтобы сохранить XP и серию.

Пример вопроса

Вопрос 1 из 10

What is prompt injection?

Показать ответ

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.

Что проверяет этот квиз

  • 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

Частые вопросы

Нужен ли аккаунт?

Нет. Играть может любой. Войдите, чтобы сохранять XP, серию, значки и историю.

Можно пройти ещё раз?

Да. Лучший результат сохраняется, а вопросы и ответы каждый раз перемешиваются.