← 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?
- A.Delete the commit and continue
- B.Rotate (revoke and replace) the key
- C.Make the repository private
- 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 →