QuizzesDocker Registry & Image Management — Concept Check
intermediate
docker

Docker Registry & Image Management — Concept Check

Questions on Docker Registry & Image Management. A registry stores and distributes Docker images. Understanding image tagging strategies, pushing to Docker Hub or cloud registries (ECR, GCR, ACR), and image scanning is essential for CI/CD pipelines.

7 minutes 7 questions Pass at 70%
Time Limit
7 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

7 questions on Docker Registry & Image Management — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.You are deploying a Docker image tagged as 'latest' in production. What potential issue might you encounter?

    • A'Latest' guarantees the image is the most stable version.
    • BThe image may change unexpectedly if 'latest' is updated.
    • CThe 'latest' tag ensures the image is always up-to-date.
    • DUsing 'latest' automatically locks the image to its current state.
  2. 2.A team uses Git SHA for tagging Docker images in their CI/CD pipeline. What is the primary advantage of this approach?

    • AIt provides traceability to the specific code commit.
    • BIt reduces the image size significantly.
    • CIt ensures the image is always the latest version.
    • DIt automatically updates the image with new commits.
  3. 3.While scanning a Docker image with Trivy, several critical CVEs are found. What should be your next step?

    • ADeploy the image since CVEs are common.
    • BIgnore them if the application runs fine.
    • CFail the pipeline and address the vulnerabilities.
    • DUse a different scanner to verify the results.
  4. 4.A developer tags an image with 'myapp:v1.2.3' but wants to push it to AWS ECR. What command should they use?

    • Adocker push myapp:v1.2.3
    • Bdocker login && docker push myapp:v1.2.3
    • Cdocker push 123456789.dkr.ecr.us-east-1.amazonaws.com/myapp:v1.2.3
    • Ddocker tag myapp:v1.2.3 123456789.dkr.ecr.us-east-1.amazonaws.com/myapp:v1.2.3
  5. 5.You notice a Docker image's 'latest' tag points to different digests over time. What does this indicate?

    • AThe image is corrupted and needs rebuilding.
    • BThe registry is malfunctioning.
    • CThe 'latest' tag is mutable and can change.
    • DThe image is locked to a specific version.
  6. 6.During a CI/CD process, an image fails to push to Docker Hub. What could be a likely cause?

    • AThe user is not authenticated with Docker Hub.
    • BThe image is too large to push.
    • CThe Dockerfile has syntax errors.
    • DDocker Hub is incompatible with CI/CD pipelines.
  7. 7.What is the role of image scanning tools like Trivy in a CI/CD pipeline?

    • AThey ensure the image is the latest version.
    • BThey reduce the image size for faster deployment.
    • CThey check for known vulnerabilities before deployment.
    • DThey automatically update dependencies in the image.