Generative AI · Advanced level

Advanced level · Module 12: Deployment, Monitoring and Optimization · Lesson 2 of 3

Securing, Monitoring and Responding

Learners apply security controls (authentication, rate limits, key management, upload handling, retention) and set up monitoring, alerts and an incident procedure.

In this lesson you will

  • Apply deployment security controls
  • Monitor and respond to incidents

Key concepts

authenticationrate limits and budgetssecret managementretention and deletionincident procedure

The lesson

Require authentication, rate-limit users, enforce token and cost budgets, keep secrets out of code, validate uploads, and delete stored inputs and outputs on a retention schedule.

Monitor error rates, latency, cost, safety-filter triggers and user feedback; alert on sudden changes. Provider model updates can change behaviour without notice, so re-run evaluations regularly.

An incident procedure covers how to disable features quickly, investigate with traces, fix, retest and inform users.

Step by step

  1. Add authentication, rate limits and budgets.
  2. Set retention and deletion rules.
  3. Configure alerts on two metrics.
  4. Rehearse an incident.

Practice activity

Secure the capstone deployment and write its incident procedure.

Expected result: Working controls, alerts and a rehearsed procedure.

Check your understanding

  1. Why re-run evaluations regularly after deployment?

    Show answer

    Provider model updates and new data can change behaviour.

  2. Name two deployment security controls.

    Show answer

    For example authentication, rate limits, budgets, secret management or upload validation.

Further learning

Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.