nerdexam
Docker

DCA · Question #32

An application image runs in multiple environments, and each environment uses different certificates and ports, what is the best practice to deploy the containers?

Sign in or unlock DCA to reveal the answer and full explanation for question #32. The question stem and answer options stay visible for context.

Submitted by suresh_in· Apr 18, 2026Image Creation, Management, and Registry

Question

An application image runs in multiple environments, and each environment uses different certificates and ports, what is the best practice to deploy the containers?

Options

  • ACreate a Dockerfile for each environment, specifying ports and ENV variables for certificates.
  • BCreate a Dockerfile for each environment, specifying ports and Docker secrets for certificates.
  • CCreate images that contain the specific configuration for every environment.
  • DCreate a config file for each environment.

Unlock DCA to see the answer

You've previewed enough free DCA questions. Unlock DCA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Configuration Management#Container Deployment#Best Practices#Environment Management
Full DCA Practice