1. What is Devops?
Devops is a process of improving the application delivery by ensuring
proper automation, quality,contunious monitoring and continuous
testing.
2. What is ci Cd?
CI cd is the combined delivery or less of ten continuous deployment
Continuous integration is a perquisite for CI/CD
Developrs to merge their change to the main and requires code branch
many times per day
Each code merge to trigger an automated code build and test
sequence.
Continuous integration:
Build -> test ->Acceptance test->deploy to staging ->deploy to
production->smoke test
3. What is Container?
Container are a form of operating systemvisstualization, a single
container might be used to run anything from small microservics or
software process to a largest applications.
4. What is difference between git pull and git fetch?
Git pull automatically merges the fetched changes into the current
branch while git fetch does not
5. Which Containers are supportedly Azure develops ?
Linux or Windows containers
Ubuntu for linux containers
6. Different phases in devops ?
System Integration
Continuous development /deployment/monitoring integcate test,
deploy, lode. Operate releases
7. 1. What is a Static IP and a Public IP? • Static IP: A fixed IP address
assigned to a resource that does not change over time. • Public IP: An
IP that allows your resource to be accessible over the internet. Can be
dynamic (changes on restart) or static (Elastic IP in AWS).
8. Difference between Security Group and Network ACL (NACL)? Security
Groups act like a firewall for EC2 instances. They are stateful, so if you
allow inbound traffic, the return traffic is automatically allowed. They
only support allow rules. For example, you can allow inbound SSH on
port 22 to your instance. Network ACLs, or NACLs, act at the subnet
level and are stateless, meaning you must explicitly allow both inbound
and outbound traffic. They support allow and deny rules. For instance,
you can deny all traffic except HTTP and HTTPS for a subnet.
9. What are policies in AWS, and types of policies? • Policies: JSON
documents that define permissions (who can do what on which
resources). • Types: o Managed Policies (AWS-managed /
Customermanaged) o Inline Policies (attached to single IAM
user/group/role)
10. What is Virtualization?
• Running multiple virtual machines (VMs) on a single physical server
using a hypervisor. • Example: VMware ESXi, KVM.
11. What is Containerization?
• Packaging application + dependencies into a lightweight container
that can run anywhere. • Example: Docker, Podman.
[Link] is a Dockerfile?
• A text file that contains instructions to build a Docker image.
[Link] you write a Dockerfile?
FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install COPY . .
EXPOSE 3000
CMD ["node", "[Link]"]
14. How do you run a Dockerfile?
docker build -t my-image .
docker run -d --name my-container my-image
15. What is a Deployment in Kubernetes?
• A Kubernetes object that manages replicas of Pods, ensures desired state,
and supports rolling updates.
[Link] of Deployments in Kubernetes
• Rolling Update: Gradual update of Pods. • Recreate: Deletes old Pods,
creates new Pods. • Canary / Blue-Green: Partial traffic routing for testing
new versions (advanced).
17. Can you write a Terraform script for EC2 and S3?
provider "aws" {
region = "us-east-1"
# S3 bucket resource "aws_s3_bucket"
"my_bucket" { bucket = "my-bucket-terraform-demo"
acl = "private" }
# EC2 instance
resource "aws_instance" "my_ec2" {
ami = "ami-0c02fb55956c7d316"
instance_type = "[Link]"
tags = { Name = "TerraformDemo"
18. Briefly explain the Terraform script
• Provider sets AWS region. • aws_s3_bucket creates a private S3 bucket. •
aws_instance launches a [Link] EC2 instance with a given AMI and tags.