🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Secure Development and Careers: all 10 questions

Quiz: Secure Development and Careers · Question 2 of 10

A secret API key was committed to Git. What is the first thing to do?

A secret API key was committed to Git. What is the first thing to do?

  1. A.Delete the commit and continue
  2. B.Rotate (revoke and replace) the key
  3. C.Make the repository private
  4. D.Add the file to .gitignore
Answer & explanation

Correct answer: Rotate (revoke and replace) the key

The key may already be copied in clones, forks or logs. Revoke it first, then clean up history.

Can you get the rest right without peeking?

Take the timed Quiz: Secure Development and Careers quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →