Test your knowledge by answering this MCQ. It is advisable to do it before and after the training to evaluate your progress. Warning: the questions are random and AI-generated.

1. Which configuration option is used to specify the number of CPUs for a Vagrant VM?





2. Which configuration option is used to specify the number of CPUs for a Vagrant VM?





3. How to use Vagrant to provision a virtual machine with Ansible?





4. Which file does Vagrant use to define the virtual machine's configuration?





5. How to configure a synced folder between the host and the virtual machine?





6. Which command is used to put a Vagrant virtual machine to sleep without destroying it?





7. How to specify a shell provisioning script in a Vagrantfile?





8. What is the main advantage of using Vagrant with Docker as a provider?





9. How to set a hostname for a Vagrant virtual machine?





10. Which Vagrant command applies updates to installed plugins?





11. What is the purpose of the `vagrant box prune` command?





12. Which command suspends a Vagrant virtual machine?





13. How to define a private network in a Vagrantfile?





14. Which Vagrant plugin is commonly used to manage multi-machine configurations?





15. Which command is used to initialize a new Vagrant project?





16. Which Vagrant command is used to start a virtual machine?





17. What is the purpose of the `vagrant suspend` command?





18. How to specify a custom box when initializing a Vagrant project?





19. How to specify a different virtualization provider in a Vagrantfile?





20. How to redirect port 8080 from the host to port 80 of the VM in Vagrant?








Testez vos connaissances avec ce QCM