Azure Devops Flashcards

1
Q

What is blue-green deployment?

A

Two identical environments are available called blue and green . Only one is live serving all traffic .
Let blue is live , green is idle
Once the code is tested in green , switch router or load balancer so all traffic goes to green . Now green is live , blue is idle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are deployment slots ?

A

Deployment slots are live apps with their hostnames . Production slot is where live app stays . When ready , swap production environment with new staging environment . This is done by internal swapping of IP addresses of both slots

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are feature flags

A

When you want to release a feature to only a section of users you can set this flag to that group . Using this you can switch between the unmodified version and modified version

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are feature toggles ?

A

Feature toggles or feature flags are alternative to barnching in VCS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are feature toggles ?

A

Feature toggles or feature flags are alternative to barnching in VCS. In purest form , a feature toggle is an IF statement. With feature toggles, you build new features behind a toggle. Your feature is off when a release occurs and shouldn’t be exposed to or impact the production software

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is canary release?

A

A canary release is a way to identify potential problems without exposing all end users to the issue at once. Idea is that you tell a new feature only to a minimal subset of users. They can be implemented by a combination of feature toggles , traffic routing and deployment slots

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Azure Traffic Manager?

A

It is a dns-based traffic load balancer that enables you to distribute traffic optimally to services across global azure regions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is dark launching

A

The end users doesn’t know about the new feature . You run all data and calculations theough your new feature but it isn’t ‘exposed’ yet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is A/B Testing?

A

It compares two versions of web app or app against each other to determine which one does better . It is mainly an experiment where two or more page variants are shown to users at random

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is progressive exposure deployment ?

A

A progressive exposure deployment or ring based deployment is one where you first deploy your changes to risk tolerant customers abd progressively roll out to a more extensive set of customers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is SAML ?

A

SAML is primarily used for enabling single sign-on (SSO) and exchanging authentication and authorization data between parties, such as an Identity Provider(IdP) and a service Provider(SP)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is SCIM?

A

SCIM is a standard designed for simplifying the management of user identities and their associated attributes across different systems and domains

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are upstream sources

A

Using upstream sources , you can conveniently store packages from various sources like nuget.org , npmjs.com in a single feed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are feeds?

A

Feeds are organizational constructs that allow you to store, manage and group your packages and control who to share it with

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are public feeds?

A

Public feeds are used to share your packages with anyone on the internet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is environment?

A

Environment allows you to manage resources (VMs) and approvals and checks (manual approval) for a given environment like dev , stage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What are four roles associated with environment?

A

Creator , Reader , User and administrator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is deployment pool?

A

Set of target servers available to organization

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What is task?

A

A task performs an action in a pipeline. For example a task can build an app, interact with azure resources , install a tool or run a test

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What are different types of tasks?

A

Build tasks, deploy tasks, package tasks , test tasks, tool tasks, utility tasks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What is a PR pipeline?

A

A pull request to Azure Repos Git triggers a PR pipeline. These pipeline runs fast quality checks that include :
Building code involving pulling dependencies
Unit Tests , analyze code using tools like linting , security scanning

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

How scripting has advantage over UI to create resources in Azure?

A

Using script you can create multiple instances with different specifications all at once whereas in UI , you’ll have to create each instance one by one

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Why linux is better compared to windows?

A

Free-open source, secure, multiple distributions are available like ubuntu , Fast

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What does kernel do?

A

Kernel is the heart of operating system. It establishes communication between hardware and software. It does memory, device, process management and handles system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What does system library do?
It is responsible for performing a task.the request comes to system libraries and then kernel
26
ls
List
27
pwd
Present Working Directory
28
cd
Change directory
29
cd ../..
Move two directories back
30
cd folder1/folder2
Make folder2 as pwd
31
vi
Create and Open file in edit mode
32
wq!
Save contents of file
33
cat
Print contents of file
34
mkdir
Create Folder
35
rm -r filename
Remove a file
36
free -g
Memory of laptop/ server
37
nproc
No of cpus
38
df -h
Disk size in percentage %
39
ls -ltr
View files with created timestamp
40
Why do you need devops?
For infrastructure maintenance, code of your organization using git, configuration management using ansible
41
Give example of how shell scrpting helps?
Imagine there are 10,000 nodes and you want to check health - cpu , memory of a specific node . We can write a shell script that scans a specific node and pulls all the information for processes running etc - this is especially for Linux
42
nproc
To find CPU on a machine
43
top
Processes running on machine
44
Does shell scripting include conditional and iteration statements?
Yes. Shell scripting includes for loop , if else etc
45
What is configuration management?
Configuration management of infrastructure
46
Puppet vs ansible
Pull vs push, agents vs agentless
47
Puppet vs ansible
Pull vs push, agents vs agentless
48
Apt install ansible
Cmd to install ansible on EC2- linux
49
What does ansible require to access and modify target machine
It requires passwordless authentication on the target machine
50
What does ssh command do?
It is used to securely connect to a remote computer or server over a network. It establishes a secure, encrypted communication between local system and the remote system (server), allowing you to execute commands, manage files or access resources on the remote machine
51
What does ssh-keygen do?
It generates public key, private key in a folder on the current machine. Need to do it on both client and server
52
How to configure target machine to be accessible by host running ansible
By pasting the host key(of ansible) in authorized keys folder of target machine
53
Shell scripts in ansible called what?
Ansible playbooks
54
How to run ansible on host?
You can directly run ansible commands or script on the host from the terminal
55
What is inventory file?
It stores the addresses of the target servers
56
What does DevOps stand for?
Development and Operations
57
True or False: DevOps is a cultural and professional movement.
True
58
Fill in the blank: The primary goal of DevOps is to shorten the _____ of software development.
development cycle
59
What are the three main components of DevOps?
People, Process, and Technology
60
Which practice emphasizes collaboration between software developers and IT operations?
DevOps
61
What is Continuous Integration (CI)?
A practice where developers frequently integrate their code changes into a shared repository.
62
What is Continuous Delivery (CD)?
A software development practice where code changes are automatically prepared for release to production.
63
Name one tool commonly used in DevOps for version control.
Git
64
What does the term 'Infrastructure as Code' (IaC) mean?
Managing and provisioning computing infrastructure through code instead of manual processes.
65
True or False: DevOps eliminates the need for testing.
False
66
Which methodology does DevOps closely relate to?
Agile
67
What is a common benefit of implementing DevOps?
Increased deployment frequency
68
What does the term 'DevSecOps' refer to?
Integrating security practices within the DevOps process.
69
Multiple Choice: Which of the following is a key practice in DevOps? A) Waterfall B) Continuous Testing C) Traditional Management
B) Continuous Testing
70
What is the role of a DevOps engineer?
To facilitate collaboration between development and operations teams and automate the software delivery process.
71
Fill in the blank: DevOps aims to improve the speed and quality of _____ delivery.
software
72
True or False: DevOps practices can only be applied to large organizations.
False
73
What is a 'pipeline' in the context of DevOps?
A set of automated processes that allow code changes to be built, tested, and deployed.
74
Which metric is often used to measure DevOps performance?
Deployment frequency
75
What is the purpose of monitoring in a DevOps environment?
To ensure application performance and reliability in production.
76
Name one cloud service provider that supports DevOps practices.
AWS (Amazon Web Services)
77
What is a 'microservices architecture'?
An architectural style that structures an application as a collection of loosely coupled services.
78
Fill in the blank: Continuous _____ is the practice of automatically testing and validating code changes.
Testing
79
True or False: Containerization is a key technology in DevOps.
True
80
What is a 'rollback' in DevOps?
Reverting an application to a previous version after a failed deployment.
81
Multiple Choice: Which of the following tools is used for configuration management? A) Docker B) Jenkins C) Ansible
C) Ansible
82
What is the main purpose of a 'kanban board' in DevOps?
To visualize workflow and manage work in progress.
83
What is Ansible?
Ansible is an open-source automation tool used for configuration management, application deployment, task automation, and orchestration.
84
True or False: Ansible uses agent-based architecture.
False: Ansible uses an agentless architecture.
85
Fill in the blank: Ansible playbooks are written in ______.
YAML
86
What is a playbook in Ansible?
A playbook is a file that contains a series of tasks to be executed on managed hosts.
87
Which command is used to run an Ansible playbook?
ansible-playbook
88
What does the 'hosts' directive specify in an Ansible playbook?
It specifies the target hosts on which the tasks will be executed.
89
What is an inventory file in Ansible?
An inventory file is a file that contains a list of managed nodes and their details.
90
True or False: Ansible modules are standalone scripts that can be executed on the managed hosts.
True
91
What is the default location of the Ansible inventory file?
/etc/ansible/hosts
92
Which of the following is NOT a valid Ansible module: a) yum b) apt c) run c) command?
c) run
93
What does the 'ansible-galaxy' command do?
It is used to manage Ansible roles and collections from Ansible Galaxy.
94
What is a role in Ansible?
A role is a way to group related tasks, handlers, variables, files, and templates in a structured manner.
95
Fill in the blank: Ansible uses ______ to manage the configuration of systems.
idempotency
96
What is the purpose of Ansible facts?
Facts are variables that store information about the managed hosts, gathered by Ansible.
97
True or False: Ansible can be used to manage both Linux and Windows systems.
True
98
What is the command to check the connectivity of hosts in Ansible?
ansible all -m ping
99
What is a handler in Ansible?
A handler is a special task that is triggered by other tasks when they change the state of a resource.
100
Fill in the blank: Ansible uses ______ to connect to managed nodes.
SSH
101
What is the purpose of variables in Ansible?
Variables in Ansible are used to store values that can be reused throughout playbooks and roles.
102
Which syntax is used to reference a variable in Ansible?
{{ variable_name }}
103
What does the 'when' clause do in an Ansible task?
It allows conditional execution of a task based on a specific condition.
104
True or False: Ansible supports loops to repeat tasks.
True
105
What is the purpose of the 'notify' directive in Ansible?
It is used to trigger a handler when a task changes a resource.
106
What is Ansible Vault used for?
Ansible Vault is used to encrypt sensitive data, such as passwords and secrets, within Ansible playbooks.
107
What is the command to create a new Ansible Vault file?
ansible-vault create filename.yml
108
Fill in the blank: Ansible's configuration file is called ______.
ansible.cfg
109
What is the purpose of the 'tags' feature in Ansible?
Tags allow users to run a subset of tasks in a playbook by specifying which tasks to include or exclude.
110
How to run ansible commands on specific servers from a list ?
By using tags, like [dbservers] or [webservers] you can specify these tags in commands while running
111
What does “- - -“ indicate?
Indicates an YAML file
112
Can you write multiple playbooks in a file?
Yes
113
Command to run ansible playbooks?
Ansible-playbook
114
How to know what ansible file/command doing on target machine?
Use -vvv command to see what ansible does on target machine. It prints all the commands step by step executed on target machine
115
What is ansible role?
Standard way of organizing and reusing ansible configuration code. It provides a standardized framework to seperate tasks, variables, templates, and pther configuration files, making it easier to manage complex playbooks and automate reusable components
116
How to write complex ansible playbooks?
You can use ansible galaxy commands to create roles that provide templates to write ansible code