CV0-002 · Question #404
As part of a nightly testing process, new version of an application is deployed to the set of web servers in the development environment. Which of the following is the BEST way to ensure the test…
The correct answer is D. Revert to a previous state using configuration management tools. To ensure a consistent test environment for nightly application deployments, the best method is to revert the web servers to a previous known state using configuration management tools.
Question
As part of a nightly testing process, new version of an application is deployed to the set of web servers in the development environment. Which of the following is the BEST way to ensure the test environment is consistent with the previous night's test?
Options
- AClone the development web servers to the test environment.
- BReprovision the web servers using predefined templates.
- CUndeploy the previous application and deploy the new version.
- DRevert to a previous state using configuration management tools.
How the community answered
(35 responses)- A3% (1)
- B11% (4)
- C6% (2)
- D80% (28)
Why each option
To ensure a consistent test environment for nightly application deployments, the best method is to revert the web servers to a previous known state using configuration management tools.
Cloning servers might work initially but doesn't guarantee a clean state daily as changes could accumulate, and it's resource-intensive for nightly refreshes.
Reprovisioning from predefined templates is effective but often more drastic than simply reverting state; configuration management can correct drift on existing servers more efficiently.
Simply undeploying and deploying new application versions does not address potential configuration drift or environmental changes on the web servers themselves, only the application binary.
Reverting the environment to a previous known good state using configuration management tools ensures that each night's test starts from an identical baseline. This practice eliminates configuration drift and ensures reliable, consistent test results by enforcing the desired configuration.
Concept tested: Test environment consistency and configuration management
Source: https://learn.microsoft.com/en-us/devops/operate/what-is-configuration-management
Topics
Community Discussion
No community discussion yet for this question.