Question 290
At Timberline Foods, the supply-chain applications team is managing a factory inventory cluster with requirements for operational resilience and accurate stock changes. The team claims a correction and requests independent validation for: A build author places database passwords in a Dockerfile environment instruction that is retained in image layers. Which observed result BEST confirms the intended correction?
Explanation
Correct Answer
Inspecting the built image and layer metadata reveals no usable credentials, while authorized Pods obtain runtime secrets. This demonstrates that the originally documented problem was resolved: A build author places database passwords in a Dockerfile environment instruction that is retained in image layers. The corresponding corrective approach is: Provide secrets at runtime through secured mechanisms rather than embedding them in image instructions or layers. For Timberline Foods, this observed outcome is more meaningful than a completed ticket or configuration claim.
Incorrect Answers
The registry retains the release artifact and running nodes continue using their pulled image after a local cache cleanup. That observed result would support another specific correction: Distinguish local image caches, registry artifacts, and per-node pulled images when managing image lifecycle. The other scenario concerns: An operator expects deleting a local developer image cache to remove deployed images from every Kubernetes worker. The current Timberline Foods problem is: A build author places database passwords in a Dockerfile environment instruction that is retained in image layers. The evidence required here is: Inspecting the built image and layer metadata reveals no usable credentials, while authorized Pods obtain runtime secrets.
The resulting production image contains fewer unnecessary tools and still passes its functional startup test. That observed result would support another specific correction: Use a multistage or minimal runtime image that retains only the required application binaries and runtime libraries. The other scenario concerns: A large container image includes a package manager, compilers, and development tools that are unnecessary for production. The current Timberline Foods problem is: A build author places database passwords in a Dockerfile environment instruction that is retained in image layers. The evidence required here is: Inspecting the built image and layer metadata reveals no usable credentials, while authorized Pods obtain runtime secrets.
The container starts successfully in a restricted network where external dependency repositories are unreachable. That observed result would support another specific correction: Package predictable application runtime dependencies into the approved image and make startup independent of arbitrary downloads. The other scenario concerns: A project fetches dependencies during startup because its image contains only a minimal launcher and fails when the repository is offline. The current Timberline Foods problem is: A build author places database passwords in a Dockerfile environment instruction that is retained in image layers. The evidence required here is: Inspecting the built image and layer metadata reveals no usable credentials, while authorized Pods obtain runtime secrets.