フリー問題

Automation and DevOps, Specialist (JNCIS-DevOps) のフリー問題 14 / 20 問目

問題文

One repository holds the plays for a test fleet of Junos devices and for a production fleet, and one operator has already reached the production devices with a play that was meant for the test ones. Which arrangement of the inventory does the documentation put forward for that?

選択肢

  1. Define the hosts of one environment in each inventory file, so that a run against one of those files is unable to reach the devices of the other.
  2. Define every host in one inventory file and tell the two fleets apart by group, so that a play is unable to run until its pattern names one group.
  3. Define every host in one inventory file and give the production hosts a second alias, so that a run reaches them only while both of the aliases have been named.
  4. Define every host in one inventory file and set a variable on each of them that names its environment, so that a task is skipped until that variable has been read.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。