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

DevOps 1 and 2 Marks Answers

Uploaded by

dare04857
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)
45 views8 pages

DevOps 1 and 2 Marks Answers

Uploaded by

dare04857
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

DevOps – 1 & 2 Marks Questions and Answers

Q: What is DevOps?
A: DevOps is a culture and practice that combines software development and IT operations to
deliver applications faster and more reliably.

Q: Differentiate between Containers and VMs.


A: Containers share the host OS kernel, while VMs run their own OS, making containers lightweight
and faster.

Q: What is Google Cloud Platform?


A: Google Cloud Platform (GCP) is a suite of cloud services by Google for computing, storage, and
machine learning.

Q: What does terraform plan do?


A: It shows the execution plan of changes Terraform will make without applying them.

Q: What are Ansible Roles?


A: Roles organize Ansible code into reusable components like tasks, files, and templates.

Q: What is Docker?
A: Docker is a containerization platform that packages applications with dependencies for
consistent deployment.

Q: What is Version Control?


A: Version control manages changes to source code over time, enabling collaboration and tracking.

Q: What is Git Merge?


A: Git merge combines changes from one branch into another.

Q: What is Jenkins Authentication?


A: It verifies user identity using username/password or external methods like LDAP.

Q: What is Kubernetes?
A: Kubernetes is an open-source system for automating deployment and management of
containerized applications.

Q: State two main objectives of DevOps.


A: To increase deployment speed and improve software quality.

Q: Define Configuration Management in DevOps.


A: It is managing configuration files and environments to ensure consistency across systems.
Q: Mention advantages of Cloud in DevOps.
A: Cloud provides scalability, automation, and flexibility for CI/CD pipelines.

Q: What is terraform apply?


A: It executes the planned changes to build or modify infrastructure.

Q: What are Host Variables in Ansible?


A: They define values specific to individual hosts in inventory files.

Q: What is a Docker Image?


A: A Docker image is a read-only template used to create containers.

Q: What is Git?
A: Git is a distributed version control system for tracking code changes.

Q: What is Git Rebase?


A: Rebase applies commits from one branch onto another to maintain a linear history.

Q: What is Jenkins Authorization?


A: It controls user access and permissions for Jenkins resources.

Q: What is a Kubernetes Pod?


A: A pod is the smallest deployable unit in Kubernetes that runs one or more containers.

Q: Explain the history of DevOps.


A: DevOps evolved from Agile and system administration practices around 2009 to enhance
collaboration.

Q: What is Ansible?
A: Ansible is an open-source automation tool for configuration management, provisioning, and
deployment.

Q: What is Continuous Monitoring?


A: Continuous monitoring tracks system performance and security in real time.

Q: What is terraform destroy?


A: It deletes all infrastructure managed by Terraform.

Q: What are Group Variables in Ansible?


A: They define shared variables for a group of hosts in inventory.

Q: What is a Docker Container?


A: A running instance of a Docker image.
Q: What is GitHub?
A: GitHub is a cloud platform for hosting and collaborating on Git repositories.

Q: What is Git Stash?


A: It temporarily saves uncommitted changes without committing them.

Q: What are Sequential Builds in Jenkins?


A: Builds that run one after another in order.

Q: What is a Kubernetes Node?


A: A node is a machine that runs Kubernetes pods.

Q: What is the role of DevOps in SDLC?


A: DevOps automates and integrates development and operations for faster delivery.

Q: What is Cloud Computing?


A: Cloud computing delivers computing services over the internet on demand.

Q: Name two Configuration Management tools.


A: Ansible and Puppet.

Q: What is Infrastructure as Code (IaC)?


A: Managing infrastructure using code instead of manual processes.

Q: What are Ansible Modules?


A: Reusable scripts that perform specific tasks in Ansible.

Q: Difference between Docker Image and Container?


A: Image is a template; container is its running instance.

Q: What does git init do?


A: Initializes a new Git repository.

Q: Difference between Git Fetch and Git Pull?


A: Fetch downloads changes; pull downloads and merges them.

Q: What are Parallel Builds in Jenkins?


A: Running multiple builds simultaneously.

Q: What is a Kubernetes Cluster?


A: A group of nodes managed by a Kubernetes control plane.
Q: Difference between Agile and DevOps?
A: Agile focuses on development; DevOps bridges development and operations.

Q: Differentiate between IaaS, PaaS, SaaS.


A: IaaS provides infrastructure, PaaS provides platforms, SaaS delivers software.

Q: What is Vagrant in DevOps?


A: A tool for creating and managing virtualized development environments.

Q: Difference between Terraform and Ansible?


A: Terraform manages infrastructure; Ansible manages configuration.

Q: What is ansible-galaxy?
A: A tool for downloading and sharing Ansible roles.

Q: What is the Docker Engine?


A: Core component that builds and runs Docker containers.

Q: What does git clone do?


A: Copies a remote repository to local system.

Q: What is a GitHub Pull Request?


A: A request to merge code changes into another branch.

Q: What is Jenkins Workspace?


A: Directory where Jenkins stores project files during builds.

Q: What is the Kubernetes Control Plane?


A: It manages Kubernetes cluster operations and scheduling.

Q: What is Continuous Integration?


A: Practice of merging code frequently to detect issues early.

Q: What is a Public Cloud?


A: A cloud infrastructure available to the public over the internet.

Q: What is the architecture of Terraform?


A: Includes Core, Providers, and State files.

Q: What is Ansible?
A: An automation tool for configuration, deployment, and orchestration.

Q: What is the difference between Playbook and Ad-hoc commands?


A: Playbook defines tasks declaratively; ad-hoc commands run one-time tasks.

Q: Command to list running containers?


A: docker ps

Q: What does git add do?


A: Stages files for commit.

Q: What is Jenkins?
A: An open-source CI/CD automation server.

Q: What is Jenkins SCM plugin?


A: Integrates source code management tools with Jenkins.

Q: What is a Kubernetes Deployment?


A: Manages the rollout and scaling of pods.

Q: Define Continuous Deployment.


A: Automatically releasing code changes after testing.

Q: What is a Private Cloud?


A: A cloud infrastructure dedicated to one organization.

Q: What is a Terraform provider?


A: Plugin that manages resources of a specific platform.

Q: What language does Ansible use for automation?


A: YAML (Yet Another Markup Language).

Q: What is Ansible Tower?


A: A web-based GUI for managing Ansible automation.

Q: Command to stop a container?


A: docker stop

Q: What does git commit do?


A: Saves staged changes to the repository.

Q: What is a Jenkins Job?


A: A task or build process defined in Jenkins.

Q: What is Maven Build in Jenkins?


A: A build process using Apache Maven for Java projects.
Q: What is a Kubernetes Service?
A: Exposes pods to enable network access.

Q: What is Jenkins?
A: An automation server for building, testing, and deploying applications.

Q: Define Hybrid Cloud.


A: A combination of private and public cloud environments.

Q: What is a Terraform module?


A: A reusable group of Terraform configurations.

Q: What is an Ansible Playbook?


A: A YAML file defining tasks for automation.

Q: What are Ansible Conditionals?


A: Used to execute tasks only when conditions are met.

Q: Command to remove a Docker image?


A: docker rmi

Q: What does git push do?


A: Uploads local commits to a remote repository.

Q: What is a Jenkins Pipeline?


A: A script defining automated stages in CI/CD.

Q: What is Jenkins Scheduling?


A: Automating job execution using cron syntax.

Q: What is a Kubernetes Ingress?


A: Manages external access to services in a cluster.

Q: What is a Container?
A: A lightweight, isolated unit for running applications.

Q: What is AWS?
A: Amazon Web Services, a leading cloud platform.

Q: What is a Terraform state file?


A: Stores information about infrastructure managed by Terraform.
Q: What is an Ansible Inventory?
A: A list of managed hosts used in automation.

Q: What are Ansible Loops?


A: Used to repeat tasks multiple times with different inputs.

Q: What is Docker Compose?


A: A tool to define and run multi-container Docker applications.

Q: What does git pull do?


A: Fetches and merges updates from a remote repository.

Q: What are Jenkins Plugins?


A: Extensions that add features to Jenkins.

Q: What is a Jenkins Build Trigger?


A: An event that starts a Jenkins job automatically.

Q: What is a Kubernetes ConfigMap?


A: Stores non-confidential configuration data for pods.

Q: What is Virtualization?
A: Creating virtual versions of computing resources like servers.

Q: What is Microsoft Azure?


A: Microsoft’s cloud computing platform.

Q: What is Terraform?
A: An IaC tool for provisioning and managing cloud infrastructure.

Q: What is terraform init command?


A: Initializes a Terraform working directory and downloads providers.

Q: What are Ansible Handlers?


A: Tasks triggered when changes occur in other tasks.

Q: What is a Dockerfile?
A: A script containing instructions to build a Docker image.

Q: What is git branch?


A: A pointer to a commit used for parallel development.

Q: What is Jenkins Master-Slave Architecture?


A: Master coordinates jobs; slaves execute them.

Q: How do you secure Jenkins?


A: By enabling authentication, role-based access, and HTTPS.

Q: What is a Kubernetes Secret?


A: Stores sensitive information like passwords securely.

You might also like