Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

Kubernetes Operators Intermediate Quiz Answers

Get Kubernetes Operators Intermediate Quiz Answers

This course serves as an introduction to Kubernetes operators. Operators are a design pattern for building and deploying an application onto a Kubernetes cluster such that it can be used in the same manner as core Kubernetes resources.

It covers the internal architecture of operators and how they fit into the larger Kubernetes ecosystem, as well as how to build basic operators using Operator-sdk. Operator-sdk is a command line tool for scaffolding operators, generating the code skeleton and Kubernetes yaml needed to deploy the operator.

This course is of interest to anyone who wants to learn how to deploy and manage applications on Kubernetes using a more Kubernetes-native style, such as Kubernetes application devlopers, architects, or operators. It is also of interest to consumers of Kubernetes applications users interested in learning how some of the applications they use work internalally. It features hands-on labs that have you constructing and deploying real operators on a live Kubernetes cluster.

Enroll on Cognitive Class

Module 1 – Introduction to Operators

Question: How does a user interact with an operator?

  • By accessing the operator directly
  • By using kubectl or whatever tool they use to interact with the normal Kubernetes API
  • By using the operator-sdk CLI
  • By using an operator-specific CLI

Question: What does the command “operator-sdk init” do?

  • Initializes a new controller image for an operator
  • Initializes the basic scaffolding for a brand new operator
  • Initializes a new controller for an operator
  • Initializes the a new Custom Resouce Definition for an operator

Question: There is one architecture pattern that all operators follow.

  • True
  • False

Question: How was the Memcached operator added to the cluster?

  • By altering the core Kubernetes images to include our additional components
  • By creating normal Kubernetes resources such as Deployments and Cluster Role Bindings
  • By deploying components external to Kubernetes and connecting them to the cluster
  • By modifying the behavior of core Kubernetes components

Question: What is the controller of our memcached operator responsible for?

  • The reconciliation the desired state in the etcd store with the actual state running on the cluster
  • Creating the new memcached type on our Kubernetes cluster
  • Storing data about requested memcached objects
  • Receiving and validation incoming API requests from users

Module 2 – Helm Operators

Question: The Spec fields of our Custom Resource directly correlate to what part of the original Helm chart?

  • Values.yaml
  • The template files
  • Chart.yaml

Question: Helm operators allow a fine degree of control over the reconciliation of your operator.

  • True
  • False

Question: What sets the suffix for any API groups the Helm operator will create or use?

  • The range
  • The domain
  • The subset
  • The group

Question: In the Kubernetes API, what is an API group?

  • A collection of endpoints that contain related functionality.
  • Any resource that consists of multiple dependent resources.
  • An endpoint that contains related functionality.
  • A group of related resources.

Question: The Helm operator controller we used was an off-the-shelf image that required no additional configuration.

  • True
  • False

Module 3 – Ansible Operators

Question: What does an Ansible Role consist of?

  • A collection of Kubernetes Custom Resources
  • A collection of tasks and related scaffolding such as scripts, environment variable, etc. (correct)
  • A collection of Ansible Playbooks
  • A collection of scripts to run in order

Question: Why should you fill out the Custom Resource Definition in an Ansible operator?

  • So that Kubernetes users will be able to use the Custom Resource
  • So that Kubernetes users will be able to see what fields the Custom Resource should have
  • So that Kubernetes admins will be able to allow access to the CRD
  • So that the resulting Custom Resource will work

Question: The ansible-operator controller automatically populates the Kubernetes status of Custom Resource objects with the Ansible status of the Ansible object.

  • True
  • False

Question: What is the name of the file that configures the Ansible Role?

  • ansible.yml
  • main.yml
  • crd.yml
  • role.yml

Question: What of the following commands can be used to generate an Ansible Role?

  • operator-sdk generate bundle
  • operator-sdk create api
  • operator-sdk create role
  • operator-sdk init

Final Exam

Question: Operators always consist of a Custom Resource Definition and a controller.

  • True
  • False

Question: When creating an operator with Operator-sdk, what does setting the domain do?

  • Sets the
  • Sets the suffix for any API groups the operator resources will exist in
  • Sets the domain for any services created to access operator resources
  • Sets the prefix for any API groups the operator resources will exist in

Question: In an Ansible operator, what is the actual source of truth for the behavior of our Memcached Custom Resource?

  • The Custom Resource type itself
  • The Ansible Role
  • The Ansible Playbook
  • The Custom Resource definition

Question: Why is creating new RBAC rules is required for an operator?

  • To allow the Custom Resource access to the controller
  • To allow the controller to see and modify our Custom Resource
  • To allow the Custom Resource Definition access to the controller
  • To allow the controller to see and modify our Custom Resource Definition

Question: Which of the following initializes the basic scaffolding for a brand new operator?

  • operator-sdk start
  • operator-sdk init
  • operator-sdk generate bundle
  • operator-sdk create api

Question: For a Golang operator, in types.go, MemcachedSpec and MemcachedStatus correspond directly with the Spec and Status of the resulting memcached Custom Resource.

  • True
  • False

Question: Which component of the Golang operator is responsible for the new memcached type?

  • Controller
  • Custom Resource Definition
  • RBAC rules
  • Custom Resource

Question: What does the following operator-sdk command do: “operator-sdk create api –kind Memcached –controller=true”

  • Create the scaffolding for only the contoller for an operator
  • Create the scaffolding for the Custom Resource Definition and controller of an operator
  • Create the scaffolding for only the Custom Resource Definition for an operator
  • Create the basic scaffolding for a new operator

Question: Golang operator controllers are based on a community image maintained by the operator-sdk community.

  • True
  • False

Question: >> How were the operators in the module added to the Kubernetes cluster?

  • By altering the core Kubernetes images to include our additional components
  • By creating normal Kubernetes resources such as Deployments and Cluster Role Bindings
  • By deploying components external to Kubernetes and connecting them to the cluster
  • By modifying the behavior of core Kubernetes components

Question: When is a Helm operator a good choice over other operator types?

  • You have a preexisting Helm chart for your resource.
  • You want to get something running as quickly as possible.
  • You’re unfamiliar with reconciliation loops and want try writing an operator.
  • All of the above.

Question: In the Ansible operator, what is the name of Ansible resource that is a collection tasks and related scaffolding such as scriptts and environment variables?

  • Scenario
  • Role
  • Script
  • Playbook

Question: A Kubernetes user can only interact with resources from operators with special tools designed specifically for that operator.

  • True
  • False

Question: How can an operator be deployed to a Kubernetes cluster?

  • As a program running outside the Kubernetes cluster.
  • As a program manually deployed inside the Kubernetes cluster using Deployments, Pods, etc.
  • As a program deployed inside the Kubernetes cluster using Operator Lifecycle Manager
  • All of the above

Question: To write a Helm operator, you must create a new Helm chart.

  • True
  • False

Conclusion:

We hope you know the correct answers to Kubernetes Operators Intermediate If Queslers helped you to find out the correct answers then make sure to bookmark our site for more Course Quiz Answers.

If the options are not the same then make sure to let us know by leaving it in the comments below.

Course Review:

In our experience, we suggest you enroll in this and gain some new skills from Professionals completely free and we assure you will be worth it.

This course is available on Cognitive Class for free, if you are stuck anywhere between quiz or graded assessment quiz, just visit Queslers to get all Quiz Answers and Coding Solutions.

More Courses Quiz Answers >>

Building Cloud Native and Multicloud Applications Quiz Answers

Accelerating Deep Learning with GPUs Quiz Answers

Blockchain Essentials Cognitive Class Quiz Answers

Deep Learning Fundamentals Cognitive Class Quiz Answers

Hadoop 101 Cognitive Class Answers

Machine Learning With R Cognitive Class Answers

Machine Learning with Python Cognitive Class Answers

Leave a Reply

Your email address will not be published. Required fields are marked *