QuestionQ260Verified/Cloud Native Application DeliveryCopy linkReport a problemAsk AstroTutorSave questionWhich choice reflects best practices for building container images?AUse multi-stage builds, pin the base image version to a specific digest, and only install necessary packages.BUse multi stage builds, pin the base image version to a specific digest, and install extra packages just in case.CAvoid multi-stage builds, use the latest tag for image version, and install extra packages just in case.DUse multi stage builds, use the latest tag for image version, and only install necessary packages.Show AnswerAnswerExplanationMulti-stage builds keep compilers, build dependencies, and intermediate artifacts out of the final runtime image. Pinning the base image to a specific digest provides an immutable, reproducible base, while installing only necessary packages reduces image size and attack surface.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion