nerdexam
CompTIA

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.

DevOps fundamentals

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)
  • A
    3% (1)
  • B
    11% (4)
  • C
    6% (2)
  • D
    80% (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.

AClone the development web servers to the test environment.

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.

BReprovision the web servers using predefined templates.

Reprovisioning from predefined templates is effective but often more drastic than simply reverting state; configuration management can correct drift on existing servers more efficiently.

CUndeploy the previous application and deploy the new version.

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.

DRevert to a previous state using configuration management tools.Correct

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

#environment consistency#configuration management#automated testing

Community Discussion

No community discussion yet for this question.

Full CV0-002 Practice