200-901 · Question #466
While delivering a product, a team spends a lot of time installing dependencies to maintain the development and test environments. Both environments must be identical. Which action improves the…
The correct answer is C. Use containers to keep the environment consistent. Containers (e.g., Docker) package an application along with all its dependencies, libraries, and configuration into a single portable image. This ensures the development and test environments are identical and eliminates 'works on my machine' problems. Ansible playbooks can…
Question
While delivering a product, a team spends a lot of time installing dependencies to maintain the development and test environments. Both environments must be identical. Which action improves the delivery?
Options
- AUse an Ansible playbook to install the dependencies.
- BPack everything into the released product.
- CUse containers to keep the environment consistent.
- DPre-install the product into a virtual machine.
How the community answered
(32 responses)- A6% (2)
- B13% (4)
- C78% (25)
- D3% (1)
Explanation
Containers (e.g., Docker) package an application along with all its dependencies, libraries, and configuration into a single portable image. This ensures the development and test environments are identical and eliminates 'works on my machine' problems. Ansible playbooks can automate installation but don't guarantee identical environments across runs. Packing everything into the product is not a clean solution and adds bloat. Pre-installing into a VM is heavier and less portable than containers.
Topics
Community Discussion
No community discussion yet for this question.