0% found this document useful (0 votes)
426 views61 pages

DevOps Quiz

Uploaded by

Mouloud HAOUAS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
426 views61 pages

DevOps Quiz

Uploaded by

Mouloud HAOUAS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 61

DevOps Quiz

Which of the following describes the term DevOps?

● A technology followed in many small organizations for software development

● A tool which is used to create software in a frequent manner

● A non-continuous process for the development of a product in an organization

● A never-ending process of continuous improvement

Correct Answer : a never-ending process of continuous improvement


Which of the following is not a task of operations?

1. Maintain uptime of the production environment

2. Diagnose and provide feedback on the product

3. Work on old, pending, and new code

4. Monitoring servers

Correct answer: work on old, pending, and new code


Which of the following statement holds TRUE for Agile methodology?

1. design, code, test, and deployment are continuous

2. deployment is at the end stage and is done once

3. It is good for those organization which want their products in very less time

4. Development and operation team works together and looks very closely into the work of one

another

Correct answer: deployment is at the end stage and is done once


Which of these tools is not associated with DevOps?

1. chef
2. puppet
3. docker
4. nicira

Correct Answer : nicira


The DevOps movement has evolved to solve which of the
following problems?
1. increasingly complex, virtualized IT environments

2. the need for multiple software releases, sometimes in one day

3. the traditional siloed approach to app development

4. All of the above

Correct Answer : all of the above


Which of the following describes Continuous Deployment?

I. the final deployment of a product on the production server

II. the deployment of a product after final build, test and packaging

III.the process where the code changes are automatically built, tested, and prepared for a

release to production and all the processes remains to execute in a continuous manner.

IV.None of the above

Correct Answer : the process where the code changes are automatically built,
tested, and prepared for a release to production and all the
processes remains to execute in a continuous manner.
Which of the mentioned tools are used in the Continuous
Deployment stage?
1. docker

2. puppet

3. ansible

4. All of the above

Correct Answer : All of the above


DevOps automation tools have seen limited adoption
because of their reliance on coding skills.

1. TRUE

2. FALSE

Correct Answer :FALSE


Which of these is not a skill of a DevOps engineer?

1. numeracy skill

2. people skill

3. process skill

4. networking Skill

Correct Answer : numeracy Skill


Which of the following statement describes what Continuous
Monitoring is?

1. provides a container-centric management environment


2. reduces organization downtime by increasing the visibility into the infrastructure
3. manages and maintains development and deployment of software systems and
servers in any computational environment
4. requires developers to integrate code into a shared repository several times a day

Correct Answer : reduces organization downtime by increasing the visibility into the
infrastructure.
Which of the following statement holds TRUE for version
control?
1. changes saved in a file can not be reverted back

2. changes saved in a file can be reverted back

3. changes made are permanent

4. None of the above

Correct Answer : changes saved in a file can be reverted back


What is the command to create and switch to a branch?

1. git checkin -b <branchname>

2. git checkout -b <branchname>

3. git check -b <branchname>

4. git branch <branchname>

Correct Answer : git checkout -b <branchname>


The git-log command is used to find:

1. specific commits by author

2. specific commits by date

3. specific commits by content

4. All of the above

Correct Answer : All of the above


What is the use of -m option in git commit?

1. modify access times for files

2. modify created time for files

3. show error messages

4. pass message to git during commit

Correct Answer : pass message to git during commit


A git repository is initialized with:

1. git add .

2. git init

3. git commit

4. None of the above

Correct Answer : git init


Which of the following is true about the capability of maven?

1. our software project can not be modelled by it

2. data about the software project is gathered and then built manually

3. deployable artifacts can be generated from source code

4. reports can be created, but generating website for the project is very difficult

Correct Answer : deployable artifacts can be generated from source code


Which of the following statement is NOT TRUE for the POM file?

1. there is a pom file for every project

2. Pom file includes configuration details to build the project

3. It includes dependencies of the project

4. It is an XML file located at the root of the project

Correct Answer : there is a pom file for every project


Which of the following describes the functions of CI?

1. compilation, test execution, database integration, code inspection, deployment, and document

generation

2. compilation, test execution, database integration, code inspection, and document generation

3. compilation, test execution, database integration, and code inspection

4. compilation, test execution, and document generation

Correct Answer : compilation, test execution, database integration, code inspection,


and document generation
Which of the following statement holds true about Jenkins?

1. recommends not using own user database for production level instances

2. supports single authentication and authorization strategy

3. has inbuilt group support

4. None of the above

Correct Answer : recommends not using own user database for production level instances.
By Default Jenkins has:

1. security enabled

2. security disabled

3. Security enabled, but anonymous has access

4. None of the above

Correct Answer : security enabled


In a build pipeline, all jobs:

1. security enabled

2. security disabled

3. Security enabled, but anonymous has access

4. None of the above

Correct Answer : security enabled


Which of the following describes a plugin?

1. unique functionality offered by Jenkins

2. sometimes overlap in functionality

3. can be manually installed

4. All of above

Correct Answer : All of above


To set up slave nodes for Jenkins master, we can use:

1. using username and password

2. using ssh keys

3. Using a and b both

4. None of them

Correct Answer : Using a and b both


Hyper-V, KVM, LXC, VMWARE ESX are examples of:

1. Platform Virtualization

2. OS Virtualization

3. Hybrid

4. None of Above

Correct Answer : Platform Virtualization


The levels of Virtualization are:

1. Full, Para, and Partial

2. Storage, Network, Security, Memory, and Data

3. None of these

4. All of these

Correct Answer : Full, Para, and Partial


Which statement is true regarding push approach of Ansible?

I. Push works in a master slave architecture which requires agents set up on all slave nodes.

II. Systems using push architecture can scale quite easily which is not the case with push model.

III.Push based systems are completely Synchronous.

IV.Push approach require agents set up on individual nodes.

Correct Answer : Push based systems are completely Synchronous.


What is the command to create a new role?

1. sudo ansible create <roleName>

2. sudo ansible-galaxy create <roleName>

3. sudo ansible init <roleName>

4. sudo ansible-galaxy init <roleName>

Correct Answer : sudo ansible-galaxy init <roleName>


Which of the followng statement is not true about inventory files?

1. Ansibles inventory lists all the platforms you want to automate across

2. It is not possible to have multiple inventory files at the same time

3. The host inventory file can contain host names either individually or in groups.

4. While writing an inventory file, host Groups can be created by giving a group name within square

brackets.

Correct Answer : It is not possible to have multiple inventory files at the same time
Which of the following statement is not true about tasks in
Playbooks?

1. All the tasks that are to be executed on remote systems are defined under the tasks section

2. A single play can consist multiple tasks.

3. Handlers are tasks which are executed multiple times

4. Tasks are executed in order

Correct Answer : Handlers are tasks which are executed multiple times
Playbooks are the _______

1. units which actually gets the work done in Ansible.

2. plugins which provide extra functionality to Ansible.

3. roles which can be used inside playbooks and even as in-line commands.

4. Ansibles way of deploying and configuring different remote servers and environments

Correct Answer : Ansibles way of deploying and configuring different remote


servers and environments
The primary use-case of containers is to -

1. Build CI/CD Pipelines

2. Package Applications

3. Install Operating Systems

4. Team Collaboration

Correct Answer : Package Applications


Which one of these is TRUE for containers?

1. Highly resource-intensive with performance overhead

2. Can interact with underlying hardware directly

3. Highly Portable and consistent

4. Slow reboot cycle

Correct Answer : Highly Portable and consistent


Which one of these is NOT a namespace?
1. MNT Namespace

2. PID Namespace

3. CLIENT namespace

4. USER namespace

Correct Answer : CLIENT namespace


What is Docker CLI?

1. It is a utility that lets you interact with the Docker engine (API) to perform actions

2. It is the Docker engine that manages the lifecycle of the containers

3. It is a utility that can be used to install and uninstall Docker on a system

4. It is a utility that can be used to manage CI/CD pipelines of an application

Correct Answer : It is a utility that lets you interact with the Docker engine (API) to perform actions.
An application works on port 3000. You need to expose it on
port 80. Which command would you use?

1. Docker run -P 80:3000 image_name

2. Docker run -p 3000:3000 image_name

3. Docker run -p 80:3000 image_name

4. Docker expose 80:3000 image_name

+ Correct Answer : Docker run -p 80:3000 image_name


What does the apiserver do in Kubernetes?

I. Downloads the API's required to communicate with web.

II. Provides API's required to run the Containers on the slave machines

III.It configures the data and authorizes the API objects including pods, services, various controllers and

so on

IV.All of the above

+ Correct Answer : It configures the data and authorizes the API objects including
pods, services, various controllers and so on
Which of the following component makes sure that containers
within a pod are running?

I. kubectl

II. kube-proxy

III.kubelet

IV.kube-scheduler

+ Correct Answer : kubelet


Which Kubernetes command is used to start a new cluster?

I. kubectl start --apiserver-adevertise-address=<masterIP> --pod-network-cidr=192.168.0.0/16

II. kubeadm start cluster --master-cluster-address=<masterIP> <clusterName>

III.kubectl init new cluster --apiserver-advertise-address=<masterIP> --pod-network-

cidr=<podNetworkCidr>

IV.kubeadm init --apiserver-advertise-address=<masterIP> --pod-network-cidr=<podNetworkCidr>

+ Correct Answer : kubeadm init --apiserver-advertise-address=<masterIP> --pod-


network-cidr=<podNetworkCidr>
Which command is used to create a new deployment from a
Yaml File?

1. kubectl create -f <deploymentFileName>

2. kubectl apply -f <deploymentFileName>

3. Both A & B

4. kubectl create deployment <deploymentFileName>

+ Correct Answer : Both A & B


Why do we use rolling-update?

1. To maintain least amount of application downtime by updating one instance at a time

2. To update kubernetes services within the cluster

3. To revive unhealthy or dead pods in the deployments

4. To update kubernetes to the latest version or the latest beta release if running the beta version

+ Correct Answer : To maintain least amount of application downtime by updating one


instance at a time
Which of the following is not true about a monitoring tool?

1. It detects any network or server problems

2. It monitors and troubleshoot server performance issues

3. Its not possible to determine the root cause of any issues related to remote servers

4. It maintains the security and availability of the service

Correct Answer : Its not possible to determine the root cause of any issues related t
to remote servers
What format of queries does the Prometheus server accept?

I. SQL queries

II. PL/SQL queries

III.PromQL queries

IV.XML queries

Correct Answer : PromQL queries


What types of monitoring can be done via Grafana?

1. Hardware Level Stats

2. OS Level Stats

3. Both 1 and 2

4. None of the Above

+ Correct Answer : OS Level Stats


What command can be used to check if the Grafana server is
running on your system?
1. grafana-server --system-check

2. grafana-server --sys-check

3. systemctl status grafana-server

4. systemd service grafana-server

Correct Answer :systemctl status grafana-server


The Prometheus metric that only goes up and down is _____.

1. Gauges

2. Counter

3. Histogram

4. Summary

Correct Answer :Gauges


Terraform is a ______.
1. IaaS

2. PaaS

3. IaC

4. SaaS

Correct Answer : laC


Terraform is written in which language?

1. Python

2. Go

3. JAVA

4. Ruby

Correct Answer :Go


Terraform uses plugins called ______ to interact with the
remote systems.

1. Modules

2. Nodes

3. Resources

4. Providers

Correct Answer :Providers


Terraform uses imperative configuration to describe the desired
state

1. TRUE

2. FALSE

+ Correct Answer : FALSE


Which of the following is a Terraform supported provider?

1. AWS

2. Digital Ocean

3. Oracle Cloud

4. All of the above

Correct Answer :All of the above


Which of the following is a powerful automation platform that
provides a way to transforms infrastructure into code?

1. Consul

2. Chef

3. Docker

4. Gerrit

Correct Answer : CHEF


A ___ is a collection of Resources that describes a particular
configuration or policy.

1. Resource

2. Cookbook

3. Action

4. Recipe

Correct Answer : Recipe


What Is The Command You Use To Upload A Cookbook To The
Chef Server?

I. Chef cookbook upload

II. Knife cookbook Chef

III. Knife cookbook upload

IV. Knife cookbook

+ Correct Answer : Knife cookbook upload


___________ are sometimes referred as clients as they are
machines that run the Chef-client software.
1. Server

2. Workstation

3. Nodes

4. Client

Correct Answer : Nodes


A Chef Workstation is the host you use to modify your
cookbooks and other configuration data.

1. Yes

2. No

3. Can’t Say

Correct Answer : Yes


Which of the following language is not supported by Selenium?

1. PHP

2. C#

3. ASP

4. Java

Correct Answer : ASP


Which is the incorrect statement for X-path?

1. Xpath can work with text, CSS cannot work

2. Xpath has more combination and can search by index CSS cannot search by index, but css is

working faster than Xpath

3. with Xpath, we can search elements backward or forward... while css works only in forward

direction

4. with Xpath we cannot work with text, CSS we can

Correct Answer : Mozilla Firefox


What does Selenium do?

1. Test Captcha

2. Test Mobile Apps

3. Test Barcode

4. Test Web Applications

+ Correct Answer : Test Web Applications


TestNG stands for___

1. TestNGenerations

2. TestNextGeneration

3. TestNewGeneration

4. TestiNG

Correct Answer : TestNextGeneration


Thread.sleep() speeds up selenium

1. True

2. False

+ Correct Answer : False

You might also like