WorksheetsDevOps-1 [Git, CICD and Configuration Management]
Total questions: 10
Worksheet time: 6mins
Which DevOps practice prioritizes keeping software deployable over working on new features?
Continuous deployment
Continuous delivery
Continuous Improvement
Continuous Integration
What are the goals of DevOps?
Improve communication and collaboration
Improve the quality of software deployments
Faster time to Market
Making sure the software is bug free
All of the above
Git is a _________________ Version Control System.
Centralized
File-based
Distributed
Modern
Which file is used to define dependency for a java project being built using Maven?
build.xml
requirements.txt
pom.xml
buildspec.yml
Which of the following are good examples of Continuous Integration tools / services?
Jenkins
Code Pipeline
GitLab
BitBucket
Maven
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?
Jenkins default port is 8080 and cannot be changed. Configure Tomcat application to listen on a different port
Change the value for "--httpPort" to the desired port in jenkins.xml file
Change the value for default port in the Jenkins job where you want to listen on a different port
Use application binding to bind the port of your choice for Jenkins server to listen on
____________ command is useful for getting a high-level overview of the project history
git reset --hard
git log --author="<pattern>"
git log --oneline
git rebase <base>
_____________ command renames the current branch to <branch>
git remote rm <name>
git branch -m <branch>
git branch -D <branch> (CAPS)
git rebase <base>
What statement correctly describes the Ohai tool in the Chef Development Kit?
Ohai is a dependency management tool
Ohai is used to interact with the Chef Server, including uploading code from a workstation or setting global variables
Ohai gathers attributes about a node which are then accessible to you in code.
Ohai generates different code templates and installs gems into the development kit environment.
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?
The specified user does not exist on the remote system
The user running ‘ansible-playbook’ must run it from their own home directory
The user’s home or ‘.ansible’ directory on the Ansible system is not writeable by the user running the play
The user’s home or ‘.ansible’ directory on the Ansible remote host is not writeable by the user running the play
