Question 330
A reviewer finds a hardcoded string named API_KEY_EXAMPLE in public documentation and marks an active secret leak. What gating criterion should be added?
Explanation
Correct Answer
A string called API_KEY_EXAMPLE in public documentation might be a literal placeholder rather than a live credential. Before declaring an active secret leak, check the value's format, provenance, use in controlled test conditions and whether it authenticates to a real service. Avoid publishing or repeatedly using a suspected secret during that validation. Record uncertainty when validity cannot be established. This criterion distinguishes serious exposed credentials from harmless instructional text while preserving escalation for genuinely usable tokens.
Incorrect Answers
Automatically rotating every production token whenever documentation contains the letters key is not a proportionate incident response. It can disrupt unrelated services without evidence that any usable credential was exposed. First determine whether the observed value is a real token, which account it belongs to and what exposure occurred. If a live secret is confirmed or sufficiently plausible under policy, rotate the affected credential through an authorized process; do not assume every example name proves compromise.
Removing all instructional examples containing credential-like variable names would make documentation less useful and still fail to identify whether an actual secret was leaked elsewhere. Secure examples can use explicitly synthetic values and clear placeholder labels. The reviewer should check real credential validity and exposure context, then redact only genuinely sensitive material or improve illustrative formatting. Classification should be based on evidence, not every occurrence of a suspicious identifier.
Publishing the suspected value in an open bug report may turn a contained credential into a broadly available secret if it was live. External testing by strangers is neither controlled validation nor an authorized disclosure process. Use restricted incident channels, redact the candidate value and consult service ownership or approved secret-scanning procedures. If its usability remains uncertain, retain that uncertainty instead of inviting third parties to try authenticating with it.



Claude Certified Architect - Foundations (CCA-F) Practice Tests