nerdexam
Cisco

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.

Containerization

Question

What are two reasons a Docker golden image should be updated? (Choose two.)

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)
  • A
    3% (1)
  • C
    90% (26)
  • D
    7% (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.

Awhen there is a change to a username or password in the Docker secrets

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.

Bwhen the application has a new release

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.

Cwhen a fix for a security vulnerability is releasedCorrect

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.

Dwhen a change is needed to an environment variable in the Dockerfile

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.

Ewhen the base image is nearing the end of lifeCorrect

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

#Docker#Container Images#Image Lifecycle#Security Updates

Community Discussion

No community discussion yet for this question.

Full 300-910 Practice