Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

Kubernetes Operators Advanced Quiz Answers

Get Kubernetes Operators Advanced Quiz Answers

This course covers advanced operator topics including reconciliation, use of Operator Lifecycle Manager to deploy and upgrade operators, and use of Scorecard to test operators.

Enroll on Cognitive Class

Module 1 – Reconciliation Loops

Question: What are the results that can be returned from a single iteration of a reconcile loop?

  • Requeue, Exit without requeuing
  • Return and requeue, Return an error and requeue, Exit without requeuing
  • Exit, Exit with error
  • Return and requeue, Return an error, Exit without requeuing

Question: The reconciliation loop is where the actual behavior of an operator is defined.

  • True
  • False

Question: Why is it a good idea to build a reconciliation loop out of small, iterative steps?

  • The desired state of the cluster can change during reconciliation
  • The actual state of the cluster can change during reconciliation
  • The reconciliation request might be picked up by multiple controllers
  • All of the above

Question: What do the Kubebuilder markers we put above the Reconcile method declaration do?

  • The reconciliation request might be picked up by multiple controllers
  • Create the RBAC for the controller to access the specified resources
  • Scaffold the custom resource types for the operator
  • Scaffold the reconcile loops for the specified resources

Question: It is possible for the object you are reconciling to no longer exist by the time the request is being processed.

  • True
  • False

Module 2 – Operator Lifecycle Manager

Question: What are the three main components of a bundle?

  • Sample, Config, and Image
  • Manifests, Metadata, and a Dockerfile
  • Config, an Operator image, and a bundle image
  • Data, Metadata, and a Dockerfile

Question: A conversion webhook is a special kind of admission webhook.

  • True
  • False

Question: Why is it important to include a conversion webhook when upgrading the API version of an operator?

  • To convert running instances to the new version of Memcached
  • To migrate requests from users and controllers to the new version
  • To migrate the database records to the new version
  • To convert pre-existing instances of the resource to the new version

Question: Kubernetes conversion logic is based on what kind of model?

  • Many to Many
  • Hub and Spoke
  • Up and Down
  • Wheel and Deal

Question: Although the underlying custom resources that OLM uses may change, the format of an operator bundle should stay the same moving forward.

  • True
  • False

Module 3 – Scorecard

Question: In the config file, each Scorecard test consists of what three components?

  • Operator image, Test image, Test command
  • Image, Entrypoint, Labels
  • Test file, Commands, Bundle
  • Dockerfile, Entrypoint, Name

Question: Scorecard tests execute from your local machine targeting the cluster.

  • True
  • False

Question: Why did we have to cross compile our Scorecard test?

  • To include our Scorecard config
  • It’s executed in a container on the cluter, which is a 64-bit Linux environment
  • To include our operator’s bundle
  • To ensure all the dependencies were included

Question: Why did we run our Scorecard test with our operator’s Service Account?

  • To give Scorecard the RBAC permissions to run the test container
  • To give it the RBAC permissions needed to manipulate the Memcached and dependant types
  • To give it the RBAC permissions to manipulate our operator’s controller
  • To tell it which operator to test

Question: The Scorecard config is part of your operator’s bundle.

  • True
  • False

Final Exam

Question: Your Scorecard config is automatically generated as part of your operator’s bundle.

  • True
  • False

Question: Why is it important to include a conversion webhook when upgrading the API version of an operator?

  • To convert running instances to the new version of Memcached
  • To migrate requests from users and controllers to the new version
  • To migrate the database records to the new version
  • To convert pre-existing instances of the resource to the new version

Question: Your bundle starts with some automatically generated Scorecard tests that test what features of your operator?

  • Regression tests to test upgrading your operator
  • Basic best practices like descriptors and validators for your custom resource types
  • Benchmarks to stress-test your operator
  • Basic unit tests that test your custom resource types

Question: What are the results that can be returned from a single iteration of a reconcile loop?

  • Requeue, Exit without requeuing
  • Return and requeue, Return an error and requeue, Exit without requeuing
  • Exit, Exit with error
  • Return and requeue, Return an error, Exit without requeuing

Question: Conversion between different API versions of the same resource is based on a Hub-and-Spoke model.

  • True
  • False

Question: Why should you start a reconciliation loop by fetching the object you’re reconciling?

  • To get the most recent API version of the object
  • The object may have been deleted, updated, or otherwise invalidated in the meantime
  • To fetch the object’s schema
  • The object object isn’t included in the reconciliation request

Question: A conversion webhook is a special type of which kind of default Kubernetes resource?

  • Controller webhook
  • Mutating webhook
  • Upgrade webhook
  • Admission webhook

Question: Why is it a good idea to build a reconciliation loop out of small, iterative steps?

  • The desired state of the cluster can change during reconciliation
  • The actual state of the cluster can change during reconciliation
  • The reconciliation request might be picked up by multiple controllers
  • All of the above

Question: What are the three main components of a bundle?

  • Sample, Config, and Image
  • Manifests, Metadata, and a Dockerfile
  • Config, an Operator image, and a bundle image
  • Data, Metadata, and a Dockerfile

Question: A Scorecard test requires a Service Account with permissions to access your custom resource types.

  • True
  • False

Conclusion:

We hope you know the correct answers to Kubernetes Operators Advanced 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

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 *