Question 470
A serverless function's environment variables contain long-lived database passwords. Which method should the assessment team select for this precise requirement?
Explanation
Correct Answer
Use managed identity or approved secrets references with lifecycle controls. This answer directly addresses the described constraint. Serverless deployment does not make plaintext configuration secrets safe. Successful validation requires: A function operates without exposing reusable passwords in its configuration.
Incorrect Answers
This action applies to a different case: A test account can invoke a cloud API because identity policies allow access but an organization policy should deny it. Cloud authorization layers may impose boundaries beyond principal permissions. It does not establish the present requirement, where a function operates without exposing reusable passwords in its configuration. The appropriate action is: Use managed identity or approved secrets references with lifecycle controls.
That approach concerns a different situation: a public artifact repository accepts uploads under a shared build identity with no review process. Unsigned or unauthorized artifacts can contaminate downstream releases. The required result is that a function operates without exposing reusable passwords in its configuration. The appropriate action is: Use managed identity or approved secrets references with lifecycle controls.
That relates to a different issue: A workload pod mounts the host filesystem and runs privileged with no operational need. Weak container isolation increases opportunities for host-level impact. That is not a direct remedy for the requested outcome: A function operates without exposing reusable passwords in its configuration. The appropriate action is: Use managed identity or approved secrets references with lifecycle controls.