SpinTheMic
Pro

Interview practice question

API key exposed in Lambda environment variables

Data Engineering · AWS Lambda · Beginner

During a review you see an API key stored in plain text in Lambda environment variables, visible in the console. What do you change?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Rotate the exposed key.
  • Move it to Secrets Manager or Parameter Store SecureString.
  • Grant the function permission to read only that secret.
  • Cache the secret at init to reduce calls.
  • Restrict console access to function configuration.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics