1. Home
  2. Computer Science MCQs
  3. Cloud Computing
  4. Declarative infrastructure-as-code tools are described as…

Added 30 Nov -0001

Declarative infrastructure-as-code tools are described as idempotent. What does that mean in practice?

  1. Resources are created only in the first apply of each day, and later runs are silently skipped
  2. The tool rolls back every change made by a failed run, restoring the previous state automatically and safely
  3. Applying the same template repeatedly converges to the same state instead of creating duplicate resources Correct answer
  4. Each apply must be run exactly once, since repeated runs change resource identifiers every time

Correct answer

C. Applying the same template repeatedly converges to the same state instead of creating duplicate resources

14 views

MCQSEXAM

Explanation

Idempotency means the result of applying a configuration depends only on the desired state, not on how many times it has been applied, so a re-run converges rather than duplicating. Declarative tools compute a plan by diffing desired against actual state before acting. Imperative scripts lack this property and often create duplicates when re-run.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Cloud Computing MCQs

Practise all Cloud Computing MCQs

Similar MCQs