300-910 · Question #3
What are two reasons a Docker golden image should be updated? (Choose two.)
The correct answer is C. when a fix for a security vulnerability is released E. when the base image is nearing the end of life. A Docker golden image should be updated to incorporate critical security fixes and when its underlying base image approaches end-of-life, ensuring the image remains secure and supported.
Question
Options
- Awhen there is a change to a username or password in the Docker secrets
- Bwhen the application has a new release
- Cwhen a fix for a security vulnerability is released
- Dwhen a change is needed to an environment variable in the Dockerfile
- Ewhen the base image is nearing the end of life
How the community answered
(29 responses)- A3% (1)
- C90% (26)
- D7% (2)
Why each option
A Docker golden image should be updated to incorporate critical security fixes and when its underlying base image approaches end-of-life, ensuring the image remains secure and supported.
Changes to Docker secrets (usernames/passwords) are typically managed outside the image itself, often mounted as files or environment variables at runtime, and do not necessitate a rebuild of the golden image.
While a new application release often requires an update, 'security vulnerability fix' and 'base image end of life' are more fundamental reasons for updating a foundational or golden image.
Security vulnerabilities can compromise the container and the host system, so incorporating fixes as soon as they are available by updating the golden image is a critical security practice.
Changes to environment variables in a Dockerfile would trigger an image rebuild, but this is a specific configuration change rather than a fundamental driver for updating a 'golden image' like security or underlying support.
When a base image is nearing its end of life, it will no longer receive security updates or support, making it essential to update the golden image to use a newer, supported base image to maintain security and stability.
Concept tested: Docker image lifecycle and maintenance
Source: https://docs.docker.com/develop/devbestpractices/#images
Topics
Community Discussion
No community discussion yet for this question.