Book Image

Google Cloud for DevOps Engineers

By : Sandeep Madamanchi
Book Image

Google Cloud for DevOps Engineers

By: Sandeep Madamanchi

Overview of this book

DevOps is a set of practices that help remove barriers between developers and system administrators, and is implemented by Google through site reliability engineering (SRE). With the help of this book, you'll explore the evolution of DevOps and SRE, before delving into SRE technical practices such as SLA, SLO, SLI, and error budgets that are critical to building reliable software faster and balance new feature deployment with system reliability. You'll then explore SRE cultural practices such as incident management and being on-call, and learn the building blocks to form SRE teams. The second part of the book focuses on Google Cloud services to implement DevOps via continuous integration and continuous delivery (CI/CD). You'll learn how to add source code via Cloud Source Repositories, build code to create deployment artifacts via Cloud Build, and push it to Container Registry. Moving on, you'll understand the need for container orchestration via Kubernetes, comprehend Kubernetes essentials, apply via Google Kubernetes Engine (GKE), and secure the GKE cluster. Finally, you'll explore Cloud Operations to monitor, alert, debug, trace, and profile deployed applications. By the end of this SRE book, you'll be well-versed with the key concepts necessary for gaining Professional Cloud DevOps Engineer certification with the help of mock tests.
Table of Contents (17 chapters)
1
Section 1: Site Reliability Engineering – A Prescriptive Way to Implement DevOps
6
Section 2: Google Cloud Services to Implement DevOps via CI/CD
Appendix: Getting Ready for Professional Cloud DevOps Engineer Certification

Practice test

Answer the following questions:

  1. How do you create control plane components in GKE?

    a) Create worker nodes and then create control plane components on the worker nodes.

    b) A GKE cluster does not mandate the creation of control plane components.

    c) Create control plane components on a node group called master and the worker nodes are placed in a node group called worker.

    d) The control plane components are automatically created and managed by GKE on behalf of the user.

  2. Pod p1 has three containers – c1, c2, and c3. The user wants to view the logs of container c2. Select the option that represents the appropriate CLI command to view the logs:

    a) kubectl logs -p p1 -c c2

    b) kubectl logs p1 -c c2

    c) kubectl logs pod=p1 container=c2

    d) kubectl logs p1 container=c2

  3. The company Alpha is about to launch a stateless web application to offer a new e-commerce Service. The web application will have steady traffic with occasional peaks, especially when special offers...