Cloud VMs are created and deleted hourly, so a static host list in the automation tool is always out of date. What should the engineer implement so playbooks always target the current devices?
Show the answer
Correct answerC. A dynamic inventory that queries the platform for current hosts
AWhy not this: A branch holding a daily copy is still a static snapshot that cannot keep up with hourly changes.
BWhy not this: A repository stores and shares files, but a stored host list still has to be edited manually and goes stale.
CWhy this is right: A dynamic inventory builds the target list at run time from the platform, so it tracks changing hosts.
DWhy not this: A compliance scan checks configurations of known hosts; it does not build the list of targets.
A dynamic inventory queries the cloud or controller at run time, so the target list reflects the devices that exist right now. A central repository stores a file but would still need someone to update it, so it stays stale like the static list.