問題文
A team must place a configuration file on a new instance and then restart a service so the file takes effect. Which pair of cloud-config directives does this in a single pass?
選択肢
- Put the file body under runcmd and put the restart under write_files so the service reads the file during the earliest stage of the boot sequence on that host.
- Put the file body under packages and put the restart under runcmd so the package manager writes the file as part of its own work.
- Put the file body under users and put the restart under bootcmd so the new account owns the file from the beginning.
- Put the file body under write_files and put the restart under runcmd so the file already exists on disk by the time the command is executed.