Chef MCQ Questions And Answers - DevOps
Chef MCQs : This section focuses on "basics" of Chef. These Multiple Choice Questions (MCQ) should be practiced to improve the Chef skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. Which of the following is a powerful automation platform that provides a way to transforms infrastructure into code?
A. Consul
B. Chef
C. Docker
D. Gerrit
View Answer
Ans : B
Explanation: It is a powerful automation platform that provides a way to transforms infrastructure into code. Chef is a tool for which you write scripts that are used to automate processes.
2. Which of the following is true about Chef Server?
A. The Chef Server is the central store of your infrastructure’s configuration data.
B. The Chef Server stores the data necessary to configure your nodes & provides search.
C. It is a powerful tool that allows you to dynamically drive node configuration based on data.
D. All of the above
View Answer
Ans : D
Explanation: All of the aboveare is true about Chef Server.
3. ___________ are sometimes referred as clients as they are machines that run the Chef-client software.
A. Server
B. Workstation
C. Nodes
D. Client
View Answer
Ans : C
Explanation: A Node is any host that is configured using Chef-client.Chef-client runs on nodes & contacts the Chef Server for the information necessary to configure node. Nodes are sometimes referred as “clients” as they are machines that run the Chef-client software.
4. A Resource represents a piece of infrastructure and its desired state, such as a package that should be installed.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, A Resource represents a piece of infrastructure and its desired state, such as a package that should be installed, a service that should be running, or a file that should be generated. A block of Resource can be considered as a Recipe.
5. A __________ is a collection of Resources that describes a particular configuration or policy.
A. Resource
B. Cookbook
C. Action
D. Recipe
View Answer
Ans : D
Explanation: A Recipe is a collection of Resources that describes a particular configuration or policy. A Recipe describes everything that is required to configure part of a system.
6. What Is The Command You Use To Upload A Cookbook To The Chef Server?
A. Chef cookbook upload
B. Knife cookbook Chef
C. Knife cookbook upload
D. Knife cookbook
View Answer
Ans : C
Explanation: Knife cookbook upload Is The Command You Use To Upload A Cookbook To The Chef Server.
7. How many ways to set up a chef server?
A. 1
B. 2
C. 3
D. 4
View Answer
Ans : B
Explanation: The Two Ways To Set Up A Chef Server : Install an instance on your own infrastructure and Use hosted Chef.
8. The ____________ provides certificates that enable you to securely communicate with the Chef server.
A. End Kit
B. Med Kit
C. Starter Kit
D. None of the above
View Answer
Ans : C
Explanation: The Starter Kit provides certificates and other files that enable you to securely communicate with the Chef server.
9. Chef Initial release?
A. 2008
B. 2009
C. 2010
D. 2011
View Answer
Ans : B
Explanation: Initial release in January 2009
10. A Chef Workstation is the host you use to modify your cookbooks and other configuration data.
A. Yes
B. No
C. Can be yes or no
D. Can not say
View Answer
Ans : A
Explanation: Yes, A Chef Workstation is the host you use to modify your cookbooks and other configuration data. All the configurations are first tested in the Chef Workstation. Further, it is forwarded to the Chef Server.
Discussion