All quizzes
Free quiz · 21 questions in the bank

Vagrant quiz

Test your Vagrant knowledge with a free interactive quiz — 21 questions with answers and explanations. No signup needed to play.

Question 1/12Score 0

What is Vagrant?

In this round
  1. What is Vagrant?
  2. What is a reasonable reason a development team might choose Vagrant over simply documenting manual setup steps in a README?
  3. What is the purpose of `vagrant provision` (run standalone, without `up`)?
  4. What is a `Vagrantfile`?
  5. How does specifying resource allocation (like memory or CPU count) for a Vagrant VM typically work, e.g. via the VirtualBox provider?
  6. What is a Vagrant "box"?
  7. What is the purpose of `config.vm.network` settings in a Vagrantfile, e.g. `config.vm.network "forwarded_port", guest: 3000, host: 3000`?
  8. Why might a team choose Vagrant to standardize development environments, particularly for a project with complex or OS-specific setup requirements?
  9. What is the significance of a Vagrantfile being checked into a project's version control (e.g. committed to Git) alongside the application code?
  10. How does Vagrant typically handle sharing files between the host machine and the guest VM?
  11. How does Vagrant handle multiple VMs defined within a single Vagrantfile, for a project needing more than one machine (e.g. a separate app server and database server)?
  12. What is a reasonable use case for provisioning a Vagrant VM with a configuration management tool like Ansible, rather than a plain shell script?
Gaps to close?
Read the curated Vagrant notes — core concepts, patterns, interview prep.
Vagrant notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web