nerdexam
IBM

C1000-176 · Question #2

Which infrastructure as code (IaC) approach defines the desired final state of the infrastructure?

The correct answer is A. Declarative. Declarative IaC (A) describes what the final infrastructure state should look like - you declare the desired end state and the tool figures out how to get there (e.g., Terraform, CloudFormation). Imperative (B) is wrong because it defines how to build infrastructure…

Advanced Cloud Concepts and Principles

Question

Which infrastructure as code (IaC) approach defines the desired final state of the infrastructure?

Options

  • ADeclarative
  • BImperative
  • CInterrogative
  • DExclamatory

How the community answered

(44 responses)
  • A
    75% (33)
  • B
    9% (4)
  • C
    14% (6)
  • D
    2% (1)

Explanation

Declarative IaC (A) describes what the final infrastructure state should look like - you declare the desired end state and the tool figures out how to get there (e.g., Terraform, CloudFormation). Imperative (B) is wrong because it defines how to build infrastructure step-by-step, specifying the sequence of commands to execute rather than the target state (e.g., Ansible playbooks, shell scripts). Interrogative (C) and Exclamatory (D) are not real IaC categories - they are grammatical sentence types included as distractors to test whether you know the actual terminology.

Memory tip: Think of the grammar analogy - declarative sentences state facts ("the server is running with 4 cores"), while imperative sentences give commands ("start the server, add 4 cores"). In IaC, declarative = state the desired fact, imperative = command every step.

Topics

#infrastructure as code#declarative IaC#desired state configuration

Community Discussion

No community discussion yet for this question.

Full C1000-176 Practice