Question 480
While diagnosing a reported campus or branch issue for api input and auditing safeguards, the following requirement is recorded: An API error response includes sensitive internal credential information in debug logs. What is the most appropriate action?
Explanation
Correct Answer
Restrict and sanitize error logging to nonsecret diagnostic data. Troubleshooting detail should not disclose passwords or bearer tokens.
Incorrect Answers
Enable identifiable service accounts and API audit records is not the precise answer here. It addresses: A bulk API write changes dozens of routers and the operator cannot attribute who initiated it.
This alternative, Use appropriate idempotency controls or state checks before retrying, fits: A client keeps retrying a non-idempotent create request after timeouts and duplicate objects appear. Repeated POST-like creates may duplicate effects unless the API provides protection.
Reduce token role scope and access duration belongs to a different case: A token grants broad device-management rights beyond an integration need. Credential compromise impact grows with unnecessary privilege.