SecurityX CAS-005 practice question 8: Engineering
A service in a containerized environment needs to call a database. Which approach best avoids hardcoded credentials in the image?
The options
- A. Store the password in the source repository's README.
- B. Bake the password into the container image for convenience.
- C. Use short-lived credentials from a secrets manager, delivered at runtime and tied to the workload's identity.
- D. Email the password to each developer.
Answer and why
The correct answer is C: Use short-lived credentials from a secrets manager, delivered at runtime and tied to the workload's identity.
A. Repositories are widely readable and keep history forever.
B. Anyone who can pull the image can read the secret.
C. Runtime injection of short-lived secrets keeps them out of images and limits exposure.
D. Email spreads the secret to inboxes and has no rotation.
What Engineering tests
Security engineering is the heaviest domain at 31%. It covers identity, cryptography, endpoint and workload hardening and secure automation. Expect a design with one flaw and a question about which change fixes it.
Security engineering is 31% of the CAS-005 exam. The exam has 90 questions in 165 minutes, so this question is a slice of the real mix, not a prediction of your result.
Try these next
Each one is a free question from the same practice test, with the answer and the reason for every option on its own page.
- A signing service must prove that a software release came from the company and was not altered. Which design provides this?
- An organization wants to authenticate users to many cloud applications with one sign-in and have the identity provider assert attributes. Which pair of standards fits a modern web and mobile environment?
- A security engineer must ensure endpoint disk encryption keys survive a lost employee password but remain recoverable only by authorized staff. Which control meets this?
- A CI pipeline builds software from many open source packages. Which control best reduces the chance a poisoned dependency reaches production?
Keep going
This is question 8 of 15 in the free SecurityX CAS-005 practice test. If you missed it, say why in one sentence before you read on: the reason is what transfers to a differently worded question.