wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

DevOps-1 [Git, CICD and Configuration Management]

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

Which DevOps practice prioritizes keeping software deployable over working on new features?

a)

Continuous deployment

b)

Continuous delivery

c)

Continuous Improvement

d)

Continuous Integration

2.

What are the goals of DevOps?

a)

Improve communication and collaboration

b)

Improve the quality of software deployments

c)

Faster time to Market

d)

Making sure the software is bug free

e)

All of the above

3.

Git is a _________________ Version Control System.

a)

Centralized

b)

File-based

c)

Distributed

d)

Modern

4.

Which file is used to define dependency for a java project being built using Maven?

a)

build.xml

b)

requirements.txt

c)

pom.xml

d)

buildspec.yml

5.

Which of the following are good examples of Continuous Integration tools / services?

a)

Jenkins

b)

Code Pipeline

c)

GitLab

d)

BitBucket

e)

Maven

6.

I have a tomcat app and Jenkins on the same server. I would need Jenkins server to listen on a port other than 8080. How can I achieve it?

a)

Jenkins default port is 8080 and cannot be changed. Configure Tomcat application to listen on a different port

b)

Change the value for "--httpPort" to the desired port in jenkins.xml file

c)

Change the value for default port in the Jenkins job where you want to listen on a different port

d)

Use application binding to bind the port of your choice for Jenkins server to listen on

7.

____________ command is useful for getting a high-level overview of the project history

a)

git reset --hard

b)

git log --author="<pattern>"

c)

git log --oneline

d)

git rebase <base>

8.

_____________ command renames the current branch to <branch>

a)

git remote rm <name>

b)

git branch -m <branch>

c)

git branch -D <branch> (CAPS)

d)

git rebase <base>

9.

What statement correctly describes the Ohai tool in the Chef Development Kit?

a)

Ohai is a dependency management tool

b)

Ohai is used to interact with the Chef Server, including uploading code from a workstation or setting global variables

c)

Ohai gathers attributes about a node which are then accessible to you in code.

d)

Ohai generates different code templates and installs gems into the development kit environment.

10.

When running an Ansible playbook on a remote target host you receive a Python error similar to “[Errno 13] Permission denied: ‘/home/user/.ansible/tmp’. What would be the most likely cause of this problem?

a)

The specified user does not exist on the remote system

b)

The user running ‘ansible-playbook’ must run it from their own home directory

c)

The user’s home or ‘.ansible’ directory on the Ansible system is not writeable by the user running the play

d)

The user’s home or ‘.ansible’ directory on the Ansible remote host is not writeable by the user running the play