LPIC-3 Exam 305 (Virtualization and Containerization) — Question 1
What is the purpose of the command vagrant init?
Answer options
- A. It executes a provisioning tool in a running box.
- B. It starts a Vagrant box.
- C. It creates a Vagrant configuration file.
- D. It installs Vagrant on a Linux host.
- E. It downloads a Vagrant box.
Correct answer: C
Explanation
The correct answer is C because the command vagrant init is specifically designed to create a Vagrantfile, which contains the configuration for a Vagrant environment. Options A, B, D, and E describe actions that are not performed by vagrant init; they refer to running tools, starting boxes, installing software, or downloading boxes, respectively.