0% found this document useful (0 votes)
87 views8 pages

Interview Questions

Uploaded by

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

Interview Questions

Uploaded by

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

A1.

Introduce about yourself

I have overall 4+ years of experience in deveops I have very gud


experience in git,svn as source code management tools.
I have experience with AWS for cloud in which I worked for different
services like VPC, SUBNETS,EC2,IAM,RDS LIKE MYSQL
For build management I worked on maven I used Jenkins for continuous
integration and pipeline vth groovy scripting for continuous delivery and
continuous
deployment.
I have experience to deploying the artifacts on various environments
like testing,pre-production.
And production l have very gud experience in shell scripting I used to deploying
the artifacts on tomcat and web sphere application servers and
I am working on ansible for configuration management for installing and deploying
on
various nodes I worked on docker for containerization this is about myself

-----------------------------------------------------------------------------------
------------------------------
A2.Day to day activities

Once I login to office, I will check for any Handover tasks nd pending tasks
from previous shift that is from onshore team ,
then I will check emails for any pending tasks nd any open issues ,
we are using service-now as a ticketing tool ,
so I will check pending tasks nd incidents assigned to my team nd will
start working by assigning to my self based upon priority,then I will
co-ordinate vth my team members nd
developers for any issues nd fix them according,usually we get issues
from committing code to git nd application server side issues ,
these r my major day to day activities
-----------------------------------------------------------------------------------
------------------------------

A3.Devops Roles and responsibilities

My roles are as devops engineer, I am responsible for SCM like git and supporting
developers

Git: Creating & maintain the repositories & branches according to the requirement.
we are not allowing developers to merge directly into master because we want to
maintain the consistency in master branch, asking developers to push there code to
starting branch create a pull request, then me & my TL will review &
approve it then it will merge to the master.

Jenkins: Configuring the CI Jobs (Like mavin jobs & generating code analysis
reports by using sonar cube)
coming to plugin management i used some plugins like deploy to container,maven
integration, safe restart,
next build number, email extensions, audit trial, scheduled build artifactory
plugin, blue ocean, thin backup,
convert to pipeline & role base authorization etc.
coming to Jenkin security i am providing access to Jenkin users by using project
based matrics authorization stratezy.

Dockers.: we are using docker container for test deployments that too from pipeline
jobs.
we are mentioning the deploy to docker stage.
I was writing docker files to create custom images for deployments.
Regularly am running docker system prune command for removing unused n\w's dangling
images & stopped containers.
I involved in writing & modifying docker compose yaml file.
I will creating infrastructure for all environments in AWS.
-----------------------------------------------------------------------------------
---------------------------

A4.what Devops technologies you have experience

I have worked on different technologies like

git and subversion for source code management

Maven for build management

Aws for cloud computing

Jenkins for continuous integration

Jenkins pipeline for continuous delivery and deployment

Shell scripting for automation

Tomcat and websphere for middle tier

Docker for containerization

Ansible for configuration management

-----------------------------------------------------------------------------------
---------------------------------
A5..Tell about cloud experience

Sure I will explain

I have very good experience in AWS for cloud computing in which I worked

on different services like creating infrastructure and maintaining like creating


vpc,
subnets, internet gateway, route table
And creating ec2 instances and setting required software packages in them and
creating ami from the ec2 instances

I created loadbalancer and autoscaling group

Created rds services like mysql

-----------------------------------------------------------------------------------
-----------------------------------

A6.What is VCS?

Version control systems are a kind of software tool which reports the changes in
the code and
integrates these changes with the existing code.
As the developer makes changes in the code frequently,
these types of tools are helpful in integrating the new code smoothly without
disturbing
the work of other team members. Along with integration.

-----------------------------------------------------------------------------------
-------

A7.What are the types of Version Control Systems?

Local Version Control Systems


Centralized Version Control Systems
Distributed Version Control Systems

-----------------------------------------------------------------------------------
-----------

A8.What is Git?

Git is a distributed version control system particularly used for recording the
changes in the source code during software development.
It manages a set of files or a project that change over time. It stores the
information in a data structure called the repository.

-----------------------------------------------------------------------------------
-----------
A9.How to create a backup and copy files in Jenkins?
The following steps will help you understand how to create a backup and copy files
in Jenkins:

Periodically backup your JENKINS_HOME directory, which contains job configurations,


slave node configurations, and all your build history.
To create a backup of your Jenkins setup, just copy this directory.
You can also copy a job directory to clone or replicate a job or rename the
directory.
-----------------------------------------------------------------------------------
------------

A10.How to move or copy Jenkins from one server to another?


There are multiple ways to copy or move Jenkins from one server to another:

Move a job from one installation of Jenkins to another by simply copying the
corresponding job directory.
Make a copy of an existing job by making a clone of a job directory by a different
name.
Rename an existing job by renaming a directory. Note that if you change a job name
you will need to change any other job that tries to call the renamed job.

-----------------------------------------------------------------------------------
--------------------
A11.How to create a new build job in Jenkins?
The following steps will help you understand how to create a Jenkins job:

Step1: Logon to the Jenkins dashboard and click on the new item at the top left
side of the dashboard.
Step2: Enter the item name and click on the freestyle project.
Step3: Enter the details of the project you want to test.
Step4: Enter your repository URL under source code management.
Step5: Under the build, click on add build step, and click on execute Windows batch
command.
Step6: After entering the data, click on apply and save the project.
Step7: Click on Build now button to build the source code.
Step8: To see the status of the build you run, click on the build number and click
on the console output.

-----------------------------------------------------------------------------------
-----------------

A12.How to launch the Browser using WebDriver?

For Firefox:
WebDriver driver = new FirefoxDriver();

For Chrome:
WebDriver driver = new ChromeDriver();

For Internet Explorer (IE):


WebDriver driver = new InternetExplorerDriver();
-----------------------------------------------------------------------------------
----------------------

A13.What is Puppet?

Puppet is an open-source configuration management tool used for deploying,


configuring, and managing servers.
It follows a client-server architecture, in which the client is an agent, and the
server is known as the master.

-----------------------------------------------------------------------------------
------------------------

A14.How can you configure systems with Puppet?

You can configure systems with Puppet in two ways:

In client or server architecture, you should use the Puppet Agent and Puppet
Master.
In stand-alone architecture, you should use the Puppet application.

-----------------------------------------------------------------------------------
----------------------------------

A15.What is a Docker Container and how do you create it?

A Docker container is an open-source software development platform that stores the


code and all of its dependencies
and runs the application quickly and reliably from one computing environment to
the other.
Docker containers are not specified to any particular infrastructure; they can run
on any infrastructure,
on any computer, and in any cloud.
A Docker container image is a standalone, lightweight, and executable package of
software that has everything
to run the application such as code, system tools, runtime, system libraries, and
settings.
Docker Containers can be created with the Docker image using the following command:

docker run -t -i <image name> <command name>


-----------------------------------------------------------------------------------
------------------

A16.Tell me few git commands?

* git init ( intializing empty repo)


* git add file_name ( adding files in staging area)
* git status
* git commit -m "messsage" (commit the files into local repo)

* git log(to see commits)


* git push origin master(push files from local to central)

-----------------------------------------------------------------------------------
--------------------------------------
A17.What is Docker?
Docker is a tool by using which we create containers in less time.
Docker uses light weight OS in the form of Docker images that we
will get from docker hub.
We can use docker in both windows & Linux Machines.
Docker is a open source now.It became so popular because of its unique
virtualization
concept called containerization which is not there in other tool.

-----------------------------------------------------------------------------------
------------------------------------
A18. What is the process for stopping and restarting a Docker container?

To stop a Docker container,


docker stop CONTAINER_ID

To restart a Docker container


docker restart CONTAINER_ID
-----------------------------------------------------------------------------------
-----------------------------------------

A19.List of docker components?


Docker image
Docker container
Docker file
Docker hub/registry
Docker daemon
These five components we call as docker components
-----------------------------------------------------------------------------------
-----------------------------------------
A20. What is the importance of volume in Docker?

Volume is a directory inside your container.


First declare directory as a volume and then share volume
Even if we stop container, still we can acess volume.
volume will be created in one container.
you can share one volume across any number of containers.
Volume will not be included when you update an image.
map volumes in two ways
1.share host -Container
2.share container - container

-----------------------------------------------------------------------------------
-----------------------------------------
A21. Ansible components?
Server-It is the place where we create play books & write coding YML format
Node-It is the place where we apply code to create infrastructure server pushes
code to nodes.
SSH-It is an agent through ansible server pushes codes to nodes.
Setup-It is a module in ansible which gathers nods information.
Inventory file-In this file we keep IP/DNS of nodes.

-----------------------------------------------------------------------------------
---------------------------------------
A22. Explain a sample playbook insatll any package?
_hosts: Ipaddress
user : ansible
Become:Yes
Connection:SSH
tasks:
-name:install HTTPD on centos 7
action:yum name =httpd state=installed

-----------------------------------------------------------------------------------
--------------------------------------

A23. Why are we using loops concepts in Ansible?


Sometimes we might need to deal with multiple task.
For instance, installing multiple packages, Creating many users, creation many
groups..etc.
In this case, mentioning module for every task is complex process.
So, to address this issue, we have a concept of loops.
We have to use variable in combination with loops.

-----------------------------------------------------------------------------------
--------------------------------------
A24. What is CI & CD?

CI Means continous integration & CD Means continous delivery/deploy.


whenever developers write code we integrate all that code of all developers at that
point of time &
we build tests & deliver/deploy to the client.This process we call CI & CD.

-----------------------------------------------------------------------------------
----------------------------------------
A25.What are the ways through which we can do CI?

There are total 3 ways through which we can do CI.


1.Manually-Manually write code, then do build manually and then test manually by
writing test
cases and deploy manually into clients machine.
2.Scripts-Can do above process by writing scripts so that these scripts do CI & CD
automatically but here complexicity
is, writing script is not so easy.
3.Tool-using tools like Jenkins is very handy.Everyting is preconfigured in these
type of tools.
so less manual interventions.This is the most preferred way.

-----------------------------------------------------------------------------------
--------------------------------------

A26. How to change the ownership in Linux?


Command is Chown [Options] users : Group files
-----------------------------------------------------------------------------------
--------------------------------------------------------
A27. How to kill process ID?

Command is kill process ID


This is going to kill the process ID

-----------------------------------------------------------------------------------
-------------------------------
A28 What is container?

The container is like a virtual machine in which we can deploy any


type of applications,softwares and libraries.It is a light weight virtual machine
which uses OS in the form of image which is having less in size compare to
traditional VM ware & ORACLE virtual box OS images.
It has everything to run an application.

-----------------------------------------------------------------------------------
-------------------------------
A29. How many types of configurations in jenkins.

There are three types of configuration in jenkins

* GLOBAL :here,what ever the configurations changes we do,


that will be applicable to whole jenkins including jobs aswell as nodes.
this congiration as high priority

*JOBS: this configuration applicable to only jobs

*node : this configuration applicable to only nodes,also we call slaves

-----------------------------------------------------------------------------------
-------------------------------------
A30. Does jenkins Open Sourse?
There are two editions in Jenkins
1. Open source edition
2.Enterprise edition
Open source edition we call Jenkins.
Here we get support from community If we need it.
Enterprise edition we call hudson. Here jenkins company will provide support.

-----------------------------------------------------------------------------------
---------------------------------
A31. How to create Maven project?

Select new item


Copy the Git hub maven project link & paste in git section in Jenkins
Select build
Click on clean package
Select save
Click on build now
verify work space contents with Git hub side see console out put
-----------------------------------------------------------------------------------
-------------------------------------
A32. What is Nagios?
Nagios is one of the monitoring tools.
By using nagios we can monitor and give alert.
whenever you install nagios that becomes nagios server.
Monitoring is important, because we need to make sure that our server should never
go down.
so for this purpose we use nagios.
-----------------------------------------------------------------------------------
-------------------------------------------------
A33. How to provide file permission?

Ch mod 777 file name


7 means(read, wrire & execute)
----------------------------------

You might also like