Azure Devops Flashcards
What is blue-green deployment?
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
What are deployment slots ?
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
What are feature flags
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
What are feature toggles ?
Feature toggles or feature flags are alternative to barnching in VCS.
What are feature toggles ?
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
What is canary release?
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
What is Azure Traffic Manager?
It is a dns-based traffic load balancer that enables you to distribute traffic optimally to services across global azure regions
What is dark launching
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
What is A/B Testing?
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
What is progressive exposure deployment ?
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
What is SAML ?
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)
What is SCIM?
SCIM is a standard designed for simplifying the management of user identities and their associated attributes across different systems and domains
What are upstream sources
Using upstream sources , you can conveniently store packages from various sources like nuget.org , npmjs.com in a single feed
What are feeds?
Feeds are organizational constructs that allow you to store, manage and group your packages and control who to share it with
What are public feeds?
Public feeds are used to share your packages with anyone on the internet
What is environment?
Environment allows you to manage resources (VMs) and approvals and checks (manual approval) for a given environment like dev , stage
What are four roles associated with environment?
Creator , Reader , User and administrator
What is deployment pool?
Set of target servers available to organization
What is task?
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
What are different types of tasks?
Build tasks, deploy tasks, package tasks , test tasks, tool tasks, utility tasks
What is a PR pipeline?
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 scripting has advantage over UI to create resources in Azure?
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
Why linux is better compared to windows?
Free-open source, secure, multiple distributions are available like ubuntu , Fast
What does kernel do?
Kernel is the heart of operating system. It establishes communication between hardware and software. It does memory, device, process management and handles system
What does system library do?
It is responsible for performing a task.the request comes to system libraries and then kernel
ls
List
pwd
Present Working Directory
cd
Change directory
cd ../..
Move two directories back
cd folder1/folder2
Make folder2 as pwd
vi
Create and Open file in edit mode
wq!
Save contents of file
cat
Print contents of file
mkdir
Create Folder
rm -r filename
Remove a file
free -g
Memory of laptop/ server
nproc
No of cpus
df -h
Disk size in percentage %
ls -ltr
View files with created timestamp
Why do you need devops?
For infrastructure maintenance, code of your organization using git, configuration management using ansible
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
nproc
To find CPU on a machine
top
Processes running on machine
Does shell scripting include conditional and iteration statements?
Yes. Shell scripting includes for loop , if else etc
What is configuration management?
Configuration management of infrastructure
Puppet vs ansible
Pull vs push, agents vs agentless