nerdexam
LPI

305-300 · Question #86

305-300 Question #86: Real Exam Question with Answer & Explanation

The correct answer is E. Packer creates an instance based on a source image, prepares the instance through a network. Packer is a tool that automates the creation of identical machine images for multiple platforms from a single source configuration. Packer works by creating an instance based on a source image, which is a pre-existing image that serves as a starting point. Packer then connects to

Question

How does Packer interact with system images?

Options

  • APacker has to be installed within the target image and is executed during the image's first boot in
  • BPacker installs a client within the image which has to be run periodically via cron in order to
  • CPacker periodically connects through the network to the Packer daemons of all running Packer
  • DPacker downloads and extracts an image in order to make changes to the image's file system,
  • EPacker creates an instance based on a source image, prepares the instance through a network

Explanation

Packer is a tool that automates the creation of identical machine images for multiple platforms from a single source configuration. Packer works by creating an instance based on a source image, which is a pre-existing image that serves as a starting point. Packer then connects to the instance through a network connection, such as SSH or WinRM, and runs various commands and scripts to install and configure software within the instance. Packer then shuts down the instance and creates a new system image from it, which can be used to launch new instances. Packer supports many platforms, such as AWS, Azure, VMware, Docker, and others. Packer does not install any software or run any daemon within the target image, nor does it periodically connect to the running instances to re-apply the template. Packer also does not modify the source image directly, but creates a new image from the modified instance.

Community Discussion

No community discussion yet for this question.

Full 305-300 Practice