Architecture Flashcards
OSI Layers
7 Application (HTTP,FTP) 6 Presentation (ASCII,JPEG) 5 Session (sockets) 4 Transportation (TCP,UDP, IPSec,ICMP) 3 Network (IPv4, IPv6) 2 Data Link (Ethernet, MPLS) 1 Physical layer
DNS Record
A record CNAME NS MX SRV TXT PRT SOA
How DNS works?
- Browser enter example.com
- check browser’s cache
- check OS cache
- get DNS Recursive resolver from ISP
5 RV check cache
6 RV queries Root name server
7 RV gets TLD from Root NS
8 RV queries TLD
9 RV gets Authoritative NS
10 RV queries Authoritative and gets information back to OS
How SAML works?
Authenticate users
SSO
Markup language (XML) via browser sessions
1. User wants to enter into Service Provider
2. User redirected to Identity Provider with SAML request in browser session
3. User authenticates
4. User redirected to Service Provider with authorised token
How OAuth works?
Authorise users/services
JSON based , works with API
Service Provider = Facebook
Consumer = App
1. User wants grant post permission to an App on Facebook
2. App gets Request token and Secret (to sign future requests) from Facebook and redirect user to facebook
3 User authorise Access with Request token
4 User tells App, access is authorised
5 App gets Access token and make the posts
What is OpenID
Open standard to authenticate users
User can have an OpenID and uses on all service providers that supports OpenID (google)
it uses OAuth 2.0
what are TCP/IP layers and their mapping to OSI?
7,6,5 –> Application
4 –> Transport
3 –> Network
2,1 —> Network interface
What is CIDR?
IP address scheme / bits
What is DDOS?
distributed denial of service attack - flood of TCP and UDP packets
AWS Shield
what is CDN?
Content delivery network - reduce latency - CloudFront
What is a NoSQL DB?
Unstructured item Index base search primary unique key (partition Key) Sort key ( Eventually consistent Read Simple horizontal scaling
What is a SQL DB?
Tables and rows
A = atomicity - multiple statements single transaction
C = consistency - no data curruption
I = isolation - parallel transactions are isoleted
D = durability -one committed , data is not lost
3 type of storage?
Object storage
File storage
Block storage
What is Asymmetric encryption?
Public and private keys
PGP
TLS
What is symmetric encryption?
single key encrypt/decrypt
AES-256
Three tier architecture?
Presentation tier
Application tier
Data tier
Some DB ports ?
MySQL = 3306 DynamoDB = 8000 Postgres = 5432