A developer reports that rotating an API key “didn’t help” because traffic continues using the old key from a serverless workflow. The team wants to prevent future use of deprecated secrets. Which control is most appropriate?

Answer

Purge the old secret from secret stores, revoke it immediately, and enforce infrastructure-as-code references to only the current secret

Explanation

If workflows still reference the old secret, revocation plus removing it from the secret store stops continued use. Enforcing references via IaC reduces recurrence by ensuring deployments bind to the current secret.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error

Related questions

A SOC is reviewing an alert where multiple employees report 'sign-in blocked' events from the same IP range, but the IP is within an expected corporate VPN. Authentication logs show failures, yet the user’s mailbox shows no compromise. What is the most likely explanation consistent with least-privilege and fraud risk mitigation?

View question →

You must decide where to place a security control for defense in depth: blocking malicious inbound traffic, limiting lateral movement, and auditing privileged operations. Which mapping is most accurate across the CIA-adjacent controls?

View question →

A threat actor establishes persistence by altering a startup task that launches a benign-sounding script. The SOC finds the task was modified outside approved change windows, but the script itself is unsigned and references a network share. Which response best addresses both integrity and containment?

View question →

Which statement best describes how security teams should interpret 'risk acceptance' when residual risk is driven by compensating controls rather than elimination?

View question →

A SOC analyst observes a spike in failed logins, then a brief successful login, then rapid privilege escalation attempts. The attacker’s IP is new and not geolocated to the user’s typical region. Which next investigative step best prioritizes understanding attacker intent and likely next actions?

View question →

During a malware analysis, a process injects code into another process and then clears in-memory indicators. The SOC wants the fastest high-confidence detection without relying on signatures alone. Which approach is best?

View question →

QuestionBack to list