1.Question 1How do you create a ReplicaSet from scratch?1 pointApply a YAML file with the ‘kind’ attribute set to ‘ReplicaSet’.Use the ‘get pods’ command.Use the ‘scale’ command to scale the deployment.Apply a JSON file that includes the number of desired replicas.2.Question 2What Kubernetes object adds or deletes pods for scaling and redundancy?1 pointA Config MapA ReplicaSetA DaemonSetA Secret3.Question 3Which Kubernetes autoscaler type scales the Cluster?1 pointHorizontal Pod Autoscaler (HPA)Cluster Autoscaler (CA)You cannot autoscale a Kubernetes Cluster.Vertical Pod Autoscaler (VPA)4.Question 4How do you prepare your application to enable rolling updates?1 pointSet the maxSurge to 100%.Use autoscaling.Set the maxSurge to 50%.Add liveness and readiness probes to deployments.5.Question 5Which rolling update types ensure 100% app availability?1 pointBoth all-at-once and one-at-a-time updates and rollbacks ensure 100% app availability.All-at-once updates and rollbacks ensure 100% app availability.No rolling update types can ensure 100% app availability.One-at-a-time updates and rollbacks ensure 100% app availability.6.Question 6What does a ConfigMap do?1 pointProvides variables for your applicationVerifies that a Secret was createdMounts a file using the volumes plugin Provides sensitive information to your application7.Question 7What are three ways to create a ConfigMap? 1 pointBy using string literalsBy using an existing property or ‘key’ = ‘value’ fileBy adding another environment to the deployment descriptorBy providing a ConfigMap YAML descriptor file8.Question 8What are three ways to create a Secret?1 pointBy providing a ConfigMap YAML descriptor fileBy using a string literal By using volume mountsBy using environment variables 9.Question 9What does Service binding do? 1 pointManages configuration and credentials for back-end Services while protecting sensitive dataMakes Service credentials hidden.Calls the service without using binding credentials.Provides variables for your application10.Question 10What are the three required steps to bind the IBM Cloud Service to your Cluster? 1 pointErase the credential configuration file after credential setup.Provision an instance of the Service.Configure your app to access the credentials.Bind the Service to your Cluster to create credentials.
Question
1.Question 1How do you create a ReplicaSet from scratch?1 pointApply a YAML file with the ‘kind’ attribute set to ‘ReplicaSet’.Use the ‘get pods’ command.Use the ‘scale’ command to scale the deployment.Apply a JSON file that includes the number of desired replicas.2.Question 2What Kubernetes object adds or deletes pods for scaling and redundancy?1 pointA Config MapA ReplicaSetA DaemonSetA Secret3.Question 3Which Kubernetes autoscaler type scales the Cluster?1 pointHorizontal Pod Autoscaler (HPA)Cluster Autoscaler (CA)You cannot autoscale a Kubernetes Cluster.Vertical Pod Autoscaler (VPA)4.Question 4How do you prepare your application to enable rolling updates?1 pointSet the maxSurge to 100%.Use autoscaling.Set the maxSurge to 50%.Add liveness and readiness probes to deployments.5.Question 5Which rolling update types ensure 100% app availability?1 pointBoth all-at-once and one-at-a-time updates and rollbacks ensure 100% app availability.All-at-once updates and rollbacks ensure 100% app availability.No rolling update types can ensure 100% app availability.One-at-a-time updates and rollbacks ensure 100% app availability.6.Question 6What does a ConfigMap do?1 pointProvides variables for your applicationVerifies that a Secret was createdMounts a file using the volumes plugin Provides sensitive information to your application7.Question 7What are three ways to create a ConfigMap? 1 pointBy using string literalsBy using an existing property or ‘key’ = ‘value’ fileBy adding another environment to the deployment descriptorBy providing a ConfigMap YAML descriptor file8.Question 8What are three ways to create a Secret?1 pointBy providing a ConfigMap YAML descriptor fileBy using a string literal By using volume mountsBy using environment variables 9.Question 9What does Service binding do? 1 pointManages configuration and credentials for back-end Services while protecting sensitive dataMakes Service credentials hidden.Calls the service without using binding credentials.Provides variables for your application10.Question 10What are the three required steps to bind the IBM Cloud Service to your Cluster? 1 pointErase the credential configuration file after credential setup.Provision an instance of the Service.Configure your app to access the credentials.Bind the Service to your Cluster to create credentials.
Solution
-
To create a ReplicaSet from scratch, you apply a YAML file with the ‘kind’ attribute set to ‘ReplicaSet’.
-
A ReplicaSet is the Kubernetes object that adds or deletes pods for scaling and redundancy.
-
The Cluster Autoscaler (CA) is the Kubernetes autoscaler type that scales the Cluster.
-
To prepare your application to enable rolling updates, you add liveness and readiness probes to deployments.
-
One-at-a-time updates and rollbacks ensure 100% app availability.
-
A ConfigMap provides variables for your application.
-
Three ways to create a ConfigMap are by using string literals, by using an existing property or ‘key’ = ‘value’ file, and by providing a ConfigMap YAML descriptor file.
-
Three ways to create a Secret are by using a string literal, by using volume mounts, and by using environment variables.
-
Service binding manages configuration and credentials for back-end Services while protecting sensitive data.
-
The three required steps to bind the IBM Cloud Service to your Cluster are to provision an instance of the Service, configure your app to access the credentials, and bind the Service to your Cluster to create credentials.
Similar Questions
1.Question 1What does Kubernetes provide for containerized applications?1 pointA standardized packaging formatStorage, networking, and deployment toolsHosting of container registriesOrchestration features like scaling and availability2.Question 2How are nodes implemented in a Kubernetes cluster?1 pointAs virtual networksAs logical hostsAs physical or virtual machinesAs operating system processes3.Question 3What component of Kubernetes enables automatic scaling?1 pointThe API serverThe horizontal pod autoscalerThe etcd storeIngress controllers4.Question 4What does a pod represent in Kubernetes?1 pointA physical serverA group of containersA network interfaceAn operating system5.Question 5How do services provide loose coupling between pods in Kubernetes?1 pointWith remote procedure callsBy providing networking between podsUsing virtual private cloudsWith inter-process communication6.Question 6Where can a Kubernetes cluster run?1 pointOn virtual networksOn physical or virtual machinesAs operating system processesInside application containers7.Question 7How do containers differ from virtual machines?1 pointContainers provide a guest operating systemContainers are faster and more lightweightContainers offer better portabilityContainers require less host resources8.Question 8What is Docker Desktop typically used for?1 pointHosting containers in the cloudConnecting containers across networksOrchestrating containers in productionLocal container development and testing9.Question 9Where are Docker images stored?1 pointIn external file systemsInside running containersWithin Docker DesktopIn container registries10.Question 10Why use AWS spot instances?1 pointTo bid on unused capacity for cost savingsFor persistent workloads requiring availabilityTo provision virtual machines fasterFor automatic scaling of capacity
Which Kubernetes object is used to run a set of replicas for a pod on each node in the cluster?DeploymentReplicaSetStatefulSetDaemonSet
What is a Kubernetes Ingress?A group of related Pods and their configurationsAn API object that manages external access to services in a clusterA mechanism for scaling applications horizontallyA storage volume for persisting data
Write a Kubernetes YAML file that deploys a simple Nginx web server with the followingspecifications:a. The deployment should consist of 3 replicas.b. The container should use the official Nginx Docker image with the tag "latest".c. The container should expose port 80.d. The deployment should use a Kubernetes service to expose the web serveroutside the cluster. The service should use a NodePort type and expose port30080 on each node.e. Your YAML file should be named "nginx-deployment.yaml". You can assume thatthe cluster is already set up and running
In Kubernetes, what is a `StatefulSet`?A higher-level abstraction over pods that provides guarantees about the ordering and uniqueness of podsA configuration object for storage volumesA mechanism for scaling applications horizontallyAn API object that manages external access to services in a cluster
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.