nerdexam
CompTIA

CV0-003 · 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. Configuration management tools can revert an environment to an exact known-good state, ensuring all configuration parameters match the previous night's test baseline.

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

(25 responses)
  • A
    8% (2)
  • B
    4% (1)
  • C
    16% (4)
  • D
    72% (18)

Why each option

Configuration management tools can revert an environment to an exact known-good state, ensuring all configuration parameters match the previous night's test baseline.

AClone the development web servers to the test environment.

Cloning development servers copies the current live state of development machines, which may have drifted from the previous night's test environment and introduces development-specific changes.

BReprovision the web servers using predefined templates.

Predefined templates provision a standard starting point but do not capture or restore the specific runtime state that existed during the previous night's test run.

CUndeploy the previous application and deploy the new version.

Undeploying and redeploying the application only addresses the application layer and does not restore OS-level, middleware, or other environment configurations that may have changed.

DRevert to a previous state using configuration management tools.Correct

Configuration management tools such as Ansible, Puppet, or Chef apply idempotent declarative configurations that restore the environment to a precisely defined prior state, not just the application layer. This ensures OS settings, middleware, and all environment parameters are consistent and reproducible between nightly test runs, matching the previous night's configuration exactly.

Concept tested: Configuration management for environment state consistency

Source: https://learn.microsoft.com/en-us/azure/architecture/framework/devops/automation-configuration

Topics

#configuration management#test environment#deployment consistency#idempotency

Community Discussion

No community discussion yet for this question.

Full CV0-003 Practice