Timedora
Free Practice Quiz Question List

5 Configuration Management and Reusable Automation Online Quiz Questions

Use this free practice quiz with 20 questions to review 5 Configuration Management and Reusable Automation, test your knowledge, and prepare for your next test or exam.

20 questions
01
True or false
1 point

True or false: If a template is syntactically valid, the service configuration it generates must also be valid.

  1. A

    True

  2. B

    False

02
Written response
1 point

What version-control system is given as an example for storing configuration files, templates, and automation code?

03
Fill in the blank
1 point

In the Ansible example, the nginx service is configured with state: .

04
Choose one
1 point

A team needs to generate similar configuration files for several environments while allowing values such as host names and ports to differ. Which approach best fits this need?

  1. A

    A fixed sequence of commands that must be run manually for every host

  2. B

    A reusable text pattern that generates similar configuration files using variable values

  3. C

    A record of who changed a setting and when

  4. D

    A collection of installed packages that cannot vary by environment

05
Written response
1 point

What property describes automation that can be applied repeatedly while leaving a system in the same desired state without unnecessary changes?

06
True or false
1 point

True or false: Every automation task or module is automatically idempotent, so testing before production use is unnecessary.

  1. A

    True

  2. B

    False

07
Fill in the blank
1 point

The term for a system's actual settings diverging from its documented desired state is .

08
Choose one
1 point

A team needs to manage installed packages and services on servers, and also describe and provision infrastructure. Which tool-role pairing best matches the material?

  1. A

    Use Terraform for system configuration and Ansible for infrastructure provisioning in every case

  2. B

    Use Puppet only to define infrastructure and Terraform only to manage installed packages

  3. C

    Use Ansible or Puppet for system configuration; Terraform commonly describes and provisions infrastructure

  4. D

    Use Git as the tool that applies packages and starts services

09
Choose one
1 point

A team wants to compare configuration revisions and restore an earlier version if needed. Which benefit of version control directly supports these goals?

  1. A

    It automatically prevents every unsafe configuration change from being deployed

  2. B

    It records changes over time so revisions can be compared and earlier versions restored

  3. C

    It replaces the need to test configuration changes

  4. D

    It guarantees that every manual system change is captured in the repository

10
Choose one
1 point

A configuration change requires an access credential. Which practice best protects that sensitive value?

  1. A

    Commit credentials alongside the configuration so every team member can use them

  2. B

    Store credentials in generated configuration files without access restrictions

  3. C

    Keep credentials out of ordinary repositories and use an appropriate secrets-management mechanism with restricted access

  4. D

    Place credentials in a public repository but rotate them after each deployment

11
Choose all
1 point

Select all practices that help make reusable roles or modules predictable for their consumers.

  1. A

    A reusable component should have clear inputs and outputs.

  2. B

    All consumers should be forced to use identical environment-specific values.

  3. C

    Documentation helps consumers understand the component's interface.

  4. D

    Versioning can help prevent a change from unexpectedly affecting every consumer.

  5. E

    A shared component should have no documented interface.

12
Choose one
1 point

An automation file states that a web service should be running, leaving the tool to determine the actions needed to reach that condition. What approach does this describe?

  1. A

    An imperative script, because it states the target service condition

  2. B

    A declarative configuration, because it states the desired result rather than prescribing every command

  3. C

    A version-control record, because it lists commands in execution order

  4. D

    A template, because it necessarily installs and starts the service

13
Choose all
1 point

Select all actions that belong in the material's practical configuration-change workflow.

  1. A

    Edit configuration on a branch and explain the intent of the change.

  2. B

    Review the diff for unintended changes or unsafe values.

  3. C

    Run syntax checks and tests, and render or plan changes where supported.

  4. D

    Merge an approved change and deploy it in a controlled way.

  5. E

    Skip checks and tests to avoid delaying deployment.

  6. F

    Check results after deployment and update configuration if observed state differs from intended state.

14
Open ended
1 point

An emergency manual change is made to a system, but the configuration repository is not updated. What should the team do afterward, and why?

15
Written response
1 point

Name one tool used to manage system configuration, rather than primarily to describe and provision infrastructure.

16
Choose one
1 point

A team wants its automation to express that a web service must be running without prescribing each command to achieve that result. Which approach best fits this goal?

  1. A

    Declare that the web service should be running and let the tool determine the needed actions.

  2. B

    Write a fixed sequence of commands to install, enable, and start the service.

  3. C

    Record the service settings only after an administrator changes them manually.

  4. D

    Create a separate hand-edited configuration file for every host.

17
True or false
1 point

If a package is already installed, an idempotent task that declares it should be present reports no change.

  1. A

    True

  2. B

    False

18
Choose one
1 point

A team needs similar configuration files for several environments, with values such as the port and site name varying by environment. Which approach best supports this reuse?

  1. A

    Use one reusable text pattern and supply host- or environment-specific variable values.

  2. B

    Keep a separate manually edited copy for every host, with no shared pattern.

  3. C

    Store only the final generated files and discard the pattern used to create them.

  4. D

    Put all host-specific values directly into a fixed sequence of shell commands.

19
Written response
1 point

What is the term for a system's actual settings diverging from its documented desired state, such as after an unreviewed manual edit?

20
Choose one
1 point

An Ansible template contains expressions that are filled with variable values when a configuration file is generated. Which language does Ansible use for these template expressions?

  1. A

    Jinja2

  2. B

    Terraform

  3. C

    Git

  4. D

    Puppet