Question 120
An IaC pipeline has subscription Owner credentials in plaintext. Which response correctly handles this condition?
Explanation
Correct Answer
Use federated workload identity or a protected managed identity with only the deployment permissions required; revoke the exposed subscription-Owner secret.
Incorrect Answers
Drift detection compares infrastructure configuration and cannot remove credential material from the build definition.
Security scanning can identify exposed credentials but does not replace or revoke the current broad plaintext pipeline secret.
Changing module defaults leaves the pipeline’s high-privilege exposed secret usable for unrelated resource operations.



Implementing End-to-End Security Controls for Cloud and AI Workloads (SC-500) Practice Tests