[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-382":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":46,"readmeContent":47,"aiSummary":48,"trendingCount":16,"starSnapshotCount":16,"syncStatus":49,"lastSyncTime":50,"discoverSource":51},382,"devops-exercises","bregman-arie\u002Fdevops-exercises","bregman-arie","Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansible, Git, Kubernetes, Terraform, OpenStack, SQL, NoSQL, Azure, GCP, DNS, Elastic, Network, Virtualization. DevOps Interview Questions","",null,"Python",82779,19548,1308,34,0,7,109,401,46,104,"Other",false,"master",true,[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"ansible","aws","azure","coding","containers","devops","docker","git","interview","interview-questions","kubernetes","linux","openstack","production-engineer","prometheus","python","sql","sre","terraform","2026-06-17 04:00:03","\u003Cp align=\"center\">\u003Cimg src=\"images\u002Fdevops_exercises.png\"\u002F>\u003C\u002Fp>\n\n:information_source: &nbsp;This repo contains questions and exercises on various technical topics, sometimes related to DevOps and SRE\n\n:bar_chart: &nbsp;There are currently **2624** exercises and questions\n\n:warning: &nbsp;You can use these for preparing for an interview but most of the questions and exercises don't represent an actual interview. Please read [FAQ page](faq.md) for more details\n\n:stop_sign: &nbsp;If you are interested in pursuing a career as DevOps engineer, learning some of the concepts mentioned here would be useful, but you should know it's not about learning all the topics and technologies mentioned in this repository\n\n:pencil: &nbsp;You can add more exercises by submitting pull requests :) Read about contribution guidelines [here](CONTRIBUTING.md)\n\n****\n\n\u003C!-- ALL-TOPICS-LIST:START -->\n\u003C!-- prettier-ignore-start -->\n\u003C!-- markdownlint-disable -->\n\u003Ccenter>\n\u003Ctable>\n  \u003Ctr>\n    \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fdevops\u002FREADME.md\">\u003Cimg src=\"images\u002Fdevops.png\" width=\"75px;\" height=\"75px;\" alt=\"DevOps\" \u002F>\u003Cbr \u002F>\u003Cb>DevOps\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n    \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fgit\u002FREADME.md\">\u003Cimg src=\"images\u002Fgit.png\" width=\"75px;\" height=\"75px;\" alt=\"Git\"\u002F>\u003Cbr \u002F>\u003Cb>Git\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n    \u003Ctd align=\"center\">\u003Ca href=\"#network\">\u003Cimg src=\"images\u002Fnetwork.png\" width=\"75px;\" height=\"75px;\" alt=\"Network\"\u002F>\u003Cbr \u002F>\u003Cb>Network\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n    \u003Ctd align=\"center\">\u003Ca href=\"#hardware\">\u003Cimg src=\"images\u002Fhardware.png\" width=\"75px;\" height=\"75px;\" alt=\"Hardware\"\u002F>\u003Cbr \u002F>\u003Cb>Hardware\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n    \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fkubernetes\u002FREADME.md\">\u003Cimg src=\"images\u002Fkubernetes.png\" width=\"75px;\" height=\"75px;\" alt=\"kubernetes\"\u002F>\u003Cbr \u002F>\u003Cb>Kubernetes\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n  \u003C\u002Ftr>\n\n  \u003Ctr>\n    \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fsoftware_development\u002FREADME.md\">\u003Cimg src=\"images\u002Fprogramming.png\" width=\"75px;\" height=\"75px;\" alt=\"programming\"\u002F>\u003Cbr \u002F>\u003Cb>Software Development\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n    \u003Ctd align=\"center\">\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fbregman-arie\u002Fpython-exercises\">\u003Cimg src=\"images\u002Fpython.png\" width=\"75px;\" height=\"75px;\" alt=\"Python\"\u002F>\u003Cbr \u002F>\u003Cb>Python\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n    \u003Ctd align=\"center\">\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fbregman-arie\u002Fgo-exercises\">\u003Cimg src=\"images\u002FGo.png\" width=\"75px;\" height=\"75px;\" alt=\"go\"\u002F>\u003Cbr \u002F>\u003Cb>Go\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n    \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fperl\u002FREADME.md\">\u003Cimg src=\"images\u002Fperl.png\" width=\"75px;\" height=\"75px;\" alt=\"perl\"\u002F>\u003Cbr \u002F>\u003Cb>Perl\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n    \u003Ctd align=\"center\">\u003Ca href=\"#regex\">\u003Cimg src=\"images\u002Fregex.png\" width=\"75px;\" height=\"75px;\" alt=\"RegEx\"\u002F>\u003Cbr \u002F>\u003Cb>Regex\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n  \u003C\u002Ftr>\n\n  \u003Ctr>\n      \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fcloud\u002FREADME.md\">\u003Cimg src=\"images\u002Fcloud.png\" width=\"75px;\" height=\"75px;\" alt=\"Cloud\"\u002F>\u003Cbr \u002F>\u003Cb>Cloud\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Faws\u002FREADME.md\">\u003Cimg src=\"images\u002Faws.png\" width=\"100px;\" height=\"75px;\" alt=\"aws\"\u002F>\u003Cbr \u002F>\u003Cb>AWS\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fazure\u002FREADME.md\">\u003Cimg src=\"images\u002Fazure.png\" width=\"75px;\" height=\"75px;\" alt=\"azure\"\u002F>\u003Cbr \u002F>\u003Cb>Azure\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fgcp\u002FREADME.md\">\u003Cimg src=\"images\u002Fgooglecloud.png\" width=\"70px;\" height=\"70px;\" alt=\"Google Cloud Platform\"\u002F>\u003Cbr \u002F>\u003Cb>Google Cloud Platform\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"#openstack\u002FREADME.md\">\u003Cimg src=\"images\u002Fopenstack.png\" width=\"75px;\" height=\"75px;\" alt=\"openstack\"\u002F>\u003Cbr \u002F>\u003Cb>OpenStack\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n  \u003C\u002Ftr>\n\n  \u003Ctr>\n      \u003Ctd align=\"center\">\u003Ca href=\"#operating-system\">\u003Cimg src=\"images\u002Fos.png\" width=\"75px;\" height=\"75px;\" alt=\"Operating System\"\u002F>\u003Cbr \u002F>\u003Cb>Operating System\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Flinux\u002FREADME.md\">\u003Cimg src=\"images\u002Flogos\u002Flinux.png\" width=\"75px;\" height=\"75px;\" alt=\"Linux\"\u002F>\u003Cbr \u002F>\u003Cb>Linux\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"#virtualization\">\u003Cimg src=\"images\u002Fvirtualization.png\" width=\"75px;\" height=\"75px;\" alt=\"Virtualization\"\u002F>\u003Cbr \u002F>\u003Cb>Virtualization\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fdns\u002FREADME.md\">\u003Cimg src=\"images\u002Fdns.png\" width=\"75px;\" height=\"75px;\" alt=\"DNS\"\u002F>\u003Cbr \u002F>\u003Cb>DNS\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fshell\u002FREADME.md\">\u003Cimg src=\"images\u002Fbash.png\" width=\"75px;\" height=\"75px;\" alt=\"Bash\"\u002F>\u003Cbr \u002F>\u003Cb>Shell Scripting\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n  \u003C\u002Ftr>\n\n  \u003Ctr>\n      \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fdatabases\u002FREADME.md\">\u003Cimg src=\"images\u002Fdatabases.png\" width=\"75px;\" height=\"75px;\" alt=\"Databases\"\u002F>\u003Cbr \u002F>\u003Cb>Databases\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"#sql\">\u003Cimg src=\"images\u002Fsql.png\" width=\"75px;\" height=\"75px;\" alt=\"sql\"\u002F>\u003Cbr \u002F>\u003Cb>SQL\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"#mongo\">\u003Cimg src=\"images\u002Fmongo.png\" width=\"75px;\" height=\"75px;\" alt=\"Mongo\"\u002F>\u003Cbr \u002F>\u003Cb>Mongo\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"#testing\">\u003Cimg src=\"images\u002Ftesting.png\" width=\"75px;\" height=\"75px;\" alt=\"Testing\"\u002F>\u003Cbr \u002F>\u003Cb>Testing\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"#big-data\">\u003Cimg src=\"images\u002Fbig-data.png\" width=\"75px;\" height=\"75px;\" alt=\"Big Data\"\u002F>\u003Cbr \u002F>\u003Cb>Big Data\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n\n  \u003C\u002Ftr>\n\n  \u003Ctr>\n      \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fcicd\u002FREADME.md\">\u003Cimg src=\"images\u002Fcicd.png\" width=\"75px;\" height=\"75px;\" alt=\"cicd\"\u002F>\u003Cbr \u002F>\u003Cb>CI\u002FCD\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"#certificates\">\u003Cimg src=\"images\u002Fcertificates.png\" width=\"75px;\" height=\"75px;\" alt=\"Certificates\"\u002F>\u003Cbr \u002F>\u003Cb>Certificates\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fcontainers\u002FREADME.md\">\u003Cimg src=\"images\u002Fcontainers.png\" width=\"75px;\" height=\"75px;\" alt=\"Containers\"\u002F>\u003Cbr \u002F>\u003Cb>Containers\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fopenshift\u002FREADME.md\">\u003Cimg src=\"images\u002Fopenshift.png\" width=\"75px;\" height=\"75px;\" alt=\"OpenShift\"\u002F>\u003Cbr \u002F>\u003Cb>OpenShift\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"#storage\">\u003Cimg src=\"images\u002Fstorage.png\" width=\"75px;\" height=\"75px;\" alt=\"Storage\"\u002F>\u003Cbr \u002F>\u003Cb>Storage\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n  \u003C\u002Ftr>\n\n  \u003Ctr>\n      \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fterraform\u002FREADME.md\">\u003Cimg src=\"images\u002Fterraform.png\" width=\"75px;\" height=\"75px;\" alt=\"Terraform\"\u002F>\u003Cbr \u002F>\u003Cb>Terraform\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"#puppet\">\u003Cimg src=\"images\u002Fpuppet.png\" width=\"75px;\" height=\"75px;\" alt=\"puppet\"\u002F>\u003Cbr \u002F>\u003Cb>Puppet\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"#distributed\">\u003Cimg src=\"images\u002Fdistributed.png\" width=\"75px;\" height=\"75px;\" alt=\"Distributed\"\u002F>\u003Cbr \u002F>\u003Cb>Distributed\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"#questions-you-ask\">\u003Cimg src=\"images\u002Fyou.png\" width=\"75px;\" height=\"75px;\" alt=\"you\"\u002F>\u003Cbr \u002F>\u003Cb>Questions you can ask\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fansible\u002FREADME.md\">\u003Cimg src=\"images\u002Fansible.png\" width=\"75px;\" height=\"75px;\" alt=\"ansible\"\u002F>\u003Cbr \u002F>\u003Cb>Ansible\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n  \u003C\u002Ftr>\n\n  \u003Ctr>\n      \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fobservability\u002FREADME.md\">\u003Cimg src=\"images\u002Fobservability.png\" width=\"75px;\" height=\"75px;\" alt=\"observability\"\u002F>\u003Cbr \u002F>\u003Cb>Observability\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"#prometheus\">\u003Cimg src=\"images\u002Fprometheus.png\" width=\"75px;\" height=\"75px;\" alt=\"Prometheus\"\u002F>\u003Cbr \u002F>\u003Cb>Prometheus\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fcircleci\u002FREADME.md\">\u003Cimg src=\"images\u002Flogos\u002Fcircleci.png\" width=\"70px;\" height=\"70px;\" alt=\"Circle CI\"\u002F>\u003Cbr \u002F>\u003Cb>Circle CI\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fdatadog\u002FREADME.md\">\u003Cimg src=\"images\u002Flogos\u002Fdatadog.png\" width=\"80px;\" height=\"80px;\" alt=\"DataDog\"\u002F>\u003Cbr \u002F>\u003Cb>\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n      \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fgrafana\u002FREADME.md\">\u003Cimg src=\"images\u002Flogos\u002Fgrafana.png\" width=\"80px;\" height=\"80px;\" alt=\"Grafana\"\u002F>\u003Cbr \u002F>\u003Cb>Grafana\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n  \u003C\u002Ftr>\n\n  \u003Ctr>\n    \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fargo\u002FREADME.md\">\u003Cimg src=\"images\u002Flogos\u002Fargo.png\" width=\"80px;\" height=\"80px;\" alt=\"Argo\"\u002F>\u003Cbr \u002F>\u003Cb>Argo\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n    \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fsoft_skills\u002FREADME.md\">\u003Cimg src=\"images\u002FHR.png\" width=\"75px;\" height=\"75px;\" alt=\"HR\"\u002F>\u003Cbr \u002F>\u003Cb>Soft Skills\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n    \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fsecurity\u002FREADME.md\">\u003Cimg src=\"images\u002Fsecurity.png\" width=\"75px;\" height=\"75px;\" alt=\"security\"\u002F>\u003Cbr \u002F>\u003Cb>Security\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n    \u003Ctd align=\"center\">\u003Ca href=\"#system-design\">\u003Cimg src=\"images\u002Fdesign.png\" width=\"75px;\" height=\"75px;\" alt=\"Design\"\u002F>\u003Cbr \u002F>\u003Cb>System Design\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n   \u003C\u002Ftr>\n\n   \u003Ctr>\n    \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fchaos_engineering\u002FREADME.md\">\u003Cimg src=\"images\u002Flogos\u002Fchaos_engineering.png\" width=\"75px;\" height=\"75px;\" alt=\"Chaos Engineering\"\u002F>\u003Cbr \u002F>\u003Cb>Chaos Engineering\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n    \u003Ctd align=\"center\">\u003Ca href=\"#Misc\">\u003Cimg src=\"images\u002Fgeneral.png\" width=\"75px;\" height=\"75px;\" alt=\"Misc\"\u002F>\u003Cbr \u002F>\u003Cb>Misc\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n    \u003Ctd align=\"center\">\u003Ca href=\"#elastic\">\u003Cimg src=\"images\u002Felastic.png\" width=\"75px;\" height=\"75px;\" alt=\"Elastic\"\u002F>\u003Cbr \u002F>\u003Cb>Elastic\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n    \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fkafka\u002FREADME.md\">\u003Cimg src=\"images\u002Flogos\u002Fkafka.png\" width=\"85px;\" height=\"80px;\" alt=\"Kafka\"\u002F>\u003Cbr \u002F>\u003Cb>Kafka\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n    \u003Ctd align=\"center\">\u003Ca href=\"topics\u002Fnode\u002Fnode_questions_basic.md\">\u003Cimg src=\"images\u002Fnodejs.png\" width=\"85px;\" height=\"80px;\" alt=\"NodeJs\"\u002F>\u003Cbr \u002F>\u003Cb>NodeJs\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n   \u003C\u002Ftr>\n   \n\u003C\u002Ftable>\n\u003C\u002Fcenter>\n\u003C!-- markdownlint-enable -->\n\u003C!-- prettier-ignore-end -->\n\u003C!-- ALL-TOPICS-LIST:END -->\n\n## DevOps Applications\n\n\u003Ctable>\n\u003Ctr>\n  \u003Ctd align=\"center\">\u003Ca href=\"https:\u002F\u002Fplay.google.com\u002Fstore\u002Fapps\u002Fdetails?id=com.codingshell.kubeprep\">\u003Cimg src=\"images\u002Fapps\u002Fkubeprep.png\" width=\"200px;\" height=\"300px;\" alt=\"KubePrep\"\u002F>\u003Cbr \u002F>\u003Cb>KubePrep\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n  \u003Ctd align=\"center\">\u003Ca href=\"https:\u002F\u002Fplay.google.com\u002Fstore\u002Fapps\u002Fdetails?id=com.codingshell.linuxmaster\">\u003Cimg src=\"images\u002Fapps\u002Flinux_master.png\" width=\"200px;\" height=\"300px;\" alt=\"Linux Master\"\u002F>\u003Cbr \u002F>\u003Cb>Linux Master\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n  \u003Ctd align=\"center\">\u003Ca href=\"https:\u002F\u002Fplay.google.com\u002Fstore\u002Fapps\u002Fdetails?id=com.codingshell.system_design_hero\">\u003Cimg src=\"images\u002Fapps\u002Fsystem_design_hero.png\" width=\"200px;\" height=\"300px;\" alt=\"Sytem Design Hero\"\u002F>\u003Cbr \u002F>\u003Cb>System Design Hero\u003C\u002Fb>\u003C\u002Fa>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftable>\n\n\n## Network\n\n\u003Cdetails>\n\u003Csummary>In general, what do you need in order to communicate?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\n  - A common language (for the two ends to understand)\n  - A way to address who you want to communicate with\n  - A Connection (so the content of the communication can reach the recipients)\n\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is TCP\u002FIP?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nA set of protocols that define how two or more devices can communicate with each other.\n\nTo learn more about TCP\u002FIP, read [here](http:\u002F\u002Fwww.penguintutor.com\u002Flinux\u002Fbasic-network-reference)\n\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is Ethernet?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nEthernet simply refers to the most common type of Local Area Network (LAN) used today. A LAN—in contrast to a WAN (Wide Area Network), which spans a larger geographical area—is a connected network of computers in a small area, like your office, college campus, or even home.\n\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is a MAC address? What is it used for?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nA MAC address is a unique identification number or code used to identify individual devices on the network.\n\nPackets that are sent on the ethernet are always coming from a MAC address and sent to a MAC address. If a network adapter is receiving a packet, it is comparing the packet’s destination MAC address to the adapter’s own MAC address.\n\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>When is this MAC address used?: ff:ff:ff:ff:ff:ff\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nWhen a device sends a packet to the broadcast MAC address (FF:FF:FF:FF:FF:FF​), it is delivered to all stations on the local network. Ethernet broadcasts are used to resolve IP addresses to MAC addresses (by ARP) at the data link layer.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is an IP address?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nAn Internet Protocol address (IP address) is a numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication.An IP address serves two main functions: host or network interface identification and location addressing.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Explain the subnet mask and give an example\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nA Subnet mask is a 32-bit number that masks an IP address and divides the IP addresses into network addresses and host addresses. Subnet Mask is made by setting network bits to all \"1\"s and setting host bits to all \"0\"s. Within a given network, out of the total usable host addresses, two are always reserved for specific purposes and cannot be allocated to any host. These are the first address, which is reserved as a network address (a.k.a network ID), and the last address used for network broadcast.\n\n[Example](https:\u002F\u002Fgithub.com\u002Fphilemonnwanne\u002Fprojects\u002Ftree\u002Fmain\u002Fexercises\u002Fexe-09)\n\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is a private IP address? In which scenarios\u002Fsystem designs, one should use it?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\nPrivate IP addresses are assigned to the hosts in the same network to communicate with one another. As the name \"private\" suggests, the devices having the private IP addresses assigned can't be reached by the devices from any external network. For example, if I am living in a hostel and I want my hostel mates to join the game server I have hosted, I will ask them to join via my server's private IP address, since the network is local to the hostel.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is a public IP address? In which scenarios\u002Fsystem designs, one should use it?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\nA public IP address is a public-facing IP address. In the event that you were hosting a game server that you want your friends to join, you will give your friends your public IP address to allow their computers to identify and locate your network and server in order for the connection to take place. One time that you would not need to use a public-facing IP address is in the event that you were playing with friends who were connected to the same network as you, in that case, you would use a private IP address. In order for someone to be able to connect to your server that is located internally, you will have to set up a port forward to tell your router to allow traffic from the public domain into your network and vice versa.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Explain the OSI model. What layers there are? What each layer is responsible for?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\n- Application: user end (HTTP is here)\n- Presentation: establishes context between application-layer entities (Encryption is here)\n- Session: establishes, manages, and terminates the connections\n- Transport: transfers variable-length data sequences from a source to a destination host (TCP & UDP are here)\n- Network: transfers datagrams from one network to another (IP is here)\n- Data link: provides a link between two directly connected nodes (MAC is here)\n- Physical: the electrical and physical spec of the data connection (Bits are here)\n\nYou can read more about the OSI model in [penguintutor.com](http:\u002F\u002Fwww.penguintutor.com\u002Flinux\u002Fbasic-network-reference)\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>For each of the following determines to which OSI layer it belongs:\n\n  * Error correction\n  * Packets routing\n  * Cables and electrical signals\n  * MAC address\n  * IP address\n  * Terminate connections\n  * 3 way handshake\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n  * Error correction - Data link\n  * Packets routing - Network\n  * Cables and electrical signals - Physical\n  * MAC address - Data link\n  * IP address - Network\n  * Terminate connections - Session\n  * 3-way handshake - Transport\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What delivery schemes are you familiar with?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nUnicast: One-to-one communication where there is one sender and one receiver.\n\nBroadcast: Sending a message to everyone in the network. The address ff:ff:ff:ff:ff:ff is used for broadcasting.\n           Two common protocols which use broadcast are ARP and DHCP.\n\nMulticast: Sending a message to a group of subscribers. It can be one-to-many or many-to-many.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is CSMA\u002FCD? Is it used in modern ethernet networks?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nCSMA\u002FCD stands for Carrier Sense Multiple Access \u002F Collision Detection.\nIts primary focus is to manage access to a shared medium\u002Fbus where only one host can transmit at a given point in time.\n\nCSMA\u002FCD algorithm:\n\n1. Before sending a frame, it checks whether another host is already transmitting a frame.\n2. If no one is transmitting, it starts transmitting the frame.\n3. If two hosts transmit at the same time, we have a collision.\n4. Both hosts stop sending the frame and they send everyone a 'jam signal' notifying everyone that a collision occurred\n5. They are waiting for a random time before sending it again\n6. Once each host waited for a random time, they try to send the frame again and so the cycle starts again\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Describe the following network devices and the difference between them:\n\n  * router\n  * switch\n  * hub\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nA router, switch, and hub are all network devices used to connect devices in a local area network (LAN). However, each device operates differently and has its specific use cases. Here is a brief description of each device and the differences between them:\n\n1. Router: a network device that connects multiple network segments together. It operates at the network layer (Layer 3) of the OSI model and uses routing protocols to direct data between networks. Routers use IP addresses to identify devices and route data packets to the correct destination.\n2. Switch: a network device that connects multiple devices on a LAN. It operates at the data link layer (Layer 2) of the OSI model and uses MAC addresses to identify devices and direct data packets to the correct destination. Switches allow devices on the same network to communicate with each other more efficiently and can prevent data collisions that can occur when multiple devices send data simultaneously.\n3. Hub: a network device that connects multiple devices through a single cable and is used to connect multiple devices without segmenting a network. However, unlike a switch, it operates at the physical layer (Layer 1) of the OSI model and simply broadcasts data packets to all devices connected to it, regardless of whether the device is the intended recipient or not. This means that data collisions can occur, and the network's efficiency can suffer as a result. Hubs are generally not used in modern network setups, as switches are more efficient and provide better network performance.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is a \"Collision Domain\"?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\nA collision domain is a network segment in which devices can potentially interfere with each other by attempting to transmit data at the same time. When two devices transmit data at the same time, it can cause a collision, resulting in lost or corrupted data. In a collision domain, all devices share the same bandwidth, and any device can potentially interfere with the transmission of data by other devices.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is a \"Broadcast Domain\"?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\nA broadcast domain is a network segment in which all devices can communicate with each other by sending broadcast messages. A broadcast message is a message that is sent to all devices in a network rather than a specific device. In a broadcast domain, all devices can receive and process broadcast messages, regardless of whether the message was intended for them or not.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>three computers connected to a switch. How many collision domains are there? How many broadcast domains?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nThree collision domains and one broadcast domain\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>How does a router work?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nA router is a physical or virtual appliance that passes information between two or more packet-switched computer networks. A router inspects a given data packet's destination Internet Protocol address (IP address), calculates the best way for it to reach its destination, and then forwards it accordingly.\n\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is NAT?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\n Network Address Translation (NAT) is a process in which one or more local IP addresses are translated into one or more Global IP address and vice versa in order to provide Internet access to the local hosts.\n\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is a proxy? How does it work? What do we need it for?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nA proxy server acts as a gateway between you and the internet. It’s an intermediary server separating end users from the websites they browse.\n\nIf you’re using a proxy server, internet traffic flows through the proxy server on its way to the address you requested. The request then comes back through that same proxy server (there are exceptions to this rule), and then the proxy server forwards the data received from the website to you.\n\nProxy servers provide varying levels of functionality, security, and privacy depending on your use case, needs, or company policy.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is TCP? How does it work? What is the 3-way handshake?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nTCP 3-way handshake or three-way handshake is a process that is used in a TCP\u002FIP network to make a connection between server and client.\n\nA three-way handshake is primarily used to create a TCP socket connection. It works when:\n\n- A client node sends an SYN data packet over an IP network to a server on the same or an external network. The objective of this packet is to ask\u002Finfer if the server is open for new connections.\n- The target server must have open ports that can accept and initiate new connections. When the server receives the SYN packet from the client node, it responds and returns a confirmation receipt – the ACK packet or SYN\u002FACK packet.\n- The client node receives the SYN\u002FACK from the server and responds with an ACK packet.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is round-trip delay or round-trip time?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nFrom [wikipedia](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FRound-trip_delay): \"the length of time it takes for a signal to be sent plus the length of time it takes for an acknowledgment of that signal to be received\"\n\nBonus question: what is the RTT of LAN?\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>How does an SSL handshake work?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\nSSL handshake is a process that establishes a secure connection between a client and a server.\n\n1. The client sends a Client Hello message to the server, which includes the client's version of the SSL\u002FTLS protocol, a list of the cryptographic algorithms supported by the client, and a random value.\n2. The server responds with a Server Hello message, which includes the server's version of the SSL\u002FTLS protocol, a random value, and a session ID.\n3. The server sends a Certificate message, which contains the server's certificate.\n4. The server sends a Server Hello Done message, which indicates that the server is done sending messages for the Server Hello phase.\n5. The client sends a Client Key Exchange message, which contains the client's public key.\n6. The client sends a Change Cipher Spec message, which notifies the server that the client is about to send a message encrypted with the new cipher spec.\n7. The client sends an Encrypted Handshake Message, which contains the pre-master secret encrypted with the server's public key.\n8. The server sends a Change Cipher Spec message, which notifies the client that the server is about to send a message encrypted with the new cipher spec.\n9. The server sends an Encrypted Handshake Message, which contains the pre-master secret encrypted with the client's public key.\n10. The client and server can now exchange application data.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is the difference between TCP and UDP?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nTCP establishes a connection between the client and the server to guarantee the order of the packages, on the other hand, UDP does not establish a connection between the client and server and doesn't handle package orders. This makes UDP more lightweight than TCP and a perfect candidate for services like streaming.\n\n[Penguintutor.com](http:\u002F\u002Fwww.penguintutor.com\u002Flinux\u002Fbasic-network-reference) provides a good explanation.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What TCP\u002FIP protocols are you familiar with?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Explain the \"default gateway\"\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nA default gateway serves as an access point or IP router that a networked computer uses to send information to a computer in another network or the internet.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is ARP? How does it work?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nARP stands for Address Resolution Protocol. When you try to ping an IP address on your local network, say 192.168.1.1, your system has to turn the IP address 192.168.1.1 into a MAC address. This involves using ARP to resolve the address, hence its name.\n\nSystems keep an ARP look-up table where they store information about what IP addresses are associated with what MAC addresses. When trying to send a packet to an IP address, the system will first consult this table to see if it already knows the MAC address. If there is a value cached, ARP is not used.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is TTL? What does it help to prevent?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\n- TTL (Time to Live) is a value in an IP (Internet Protocol) packet that determines how many hops or routers a packet can travel before it is discarded. Each time a packet is forwarded by a router, the TTL value is decreased by one. When the TTL value reaches zero, the packet is dropped, and an ICMP (Internet Control Message Protocol) message is sent back to the sender indicating that the packet has expired.\n- TTL is used to prevent packets from circulating indefinitely in the network, which can cause congestion and degrade network performance.\n- It also helps to prevent packets from being trapped in routing loops, where packets continuously travel between the same set of routers without ever reaching their destination.\n- In addition, TTL can be used to help detect and prevent IP spoofing attacks, where an attacker attempts to impersonate another device on the network by using a false or fake IP address. By limiting the number of hops that a packet can travel, TTL can help prevent packets from being routed to destinations that are not legitimate.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is DHCP? How does it work?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nIt stands for Dynamic Host Configuration Protocol and allocates IP addresses, subnet masks, and gateways to hosts. This is how it works:\n\n* A host upon entering a network broadcasts a message in search of a DHCP server (DHCP DISCOVER)\n* An offer message is sent back by the DHCP server as a packet containing lease time, subnet mask, IP addresses, etc (DHCP OFFER)\n* Depending on which offer is accepted, the client sends back a reply broadcast letting all DHCP servers know (DHCP REQUEST)\n* The server sends an acknowledgment (DHCP ACK)\n\nRead more [here](https:\u002F\u002Flinuxjourney.com\u002Flesson\u002Fdhcp-overview)\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Can you have two DHCP servers on the same network? How does it work?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nIt is possible to have two DHCP servers on the same network, however, it is not recommended, and it is important to configure them carefully to prevent conflicts and configuration problems.\n- When two DHCP servers are configured on the same network, there is a risk that both servers will assign IP addresses and other network configuration settings to the same device, which can cause conflicts and connectivity issues. Additionally, if the DHCP servers are configured with different network settings or options, devices on the network may receive conflicting or inconsistent configuration settings.\n- However, in some cases, it may be necessary to have two DHCP servers on the same network, such as in large networks where one DHCP server may not be able to handle all the requests. In such cases, DHCP servers can be configured to serve different IP address ranges or different subnets, so they do not interfere with each other.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is SSL tunneling? How does it work?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\n- SSL (Secure Sockets Layer) tunneling is a technique used to establish a secure, encrypted connection between two endpoints over an insecure network, such as the Internet. The SSL tunnel is created by encapsulating the traffic within an SSL connection, which provides confidentiality, integrity, and authentication.\n\nHere's how SSL tunneling works:\n\n1. A client initiates an SSL connection to a server, which involves a handshake process to establish the SSL session.\n2. Once the SSL session is established, the client and server negotiate encryption parameters, such as the encryption algorithm and key length, then exchange digital certificates to authenticate each other.\n3. The client then sends traffic through the SSL tunnel to the server, which decrypts the traffic and forwards it to its destination.\n4. The server sends traffic back through the SSL tunnel to the client, which decrypts the traffic and forwards it to the application.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is a socket? Where can you see the list of sockets in your system?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\n- A socket is a software endpoint that enables two-way communication between processes over a network. Sockets provide a standardized interface for network communication, allowing applications to send and receive data across a network. To view the list of open sockets on a Linux system: \n***netstat -an***\n- This command displays a list of all open sockets, along with their protocol, local address, foreign address, and state.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is IPv6? Why should we consider using it if we have IPv4?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\n- IPv6 (Internet Protocol version 6) is the latest version of the Internet Protocol (IP), which is used to identify and communicate with devices on a network. IPv6 addresses are 128-bit addresses and are expressed in hexadecimal notation, such as 2001:0db8:85a3:0000:0000:8a2e:0370:7334.\n\nThere are several reasons why we should consider using IPv6 over IPv4:\n\n1. Address space: IPv4 has a limited address space, which has been exhausted in many parts of the world. IPv6 provides a much larger address space, allowing for trillions of unique IP addresses.\n2. Security: IPv6 includes built-in support for IPsec, which provides end-to-end encryption and authentication for network traffic.\n3. Performance: IPv6 includes features that can help to improve network performance, such as multicast routing, which allows a single packet to be sent to multiple destinations simultaneously.\n4. Simplified network configuration: IPv6 includes features that can simplify network configuration, such as stateless autoconfiguration, which allows devices to automatically configure their own IPv6 addresses without the need for a DHCP server.\n5. Better mobility support: IPv6 includes features that can improve mobility support, such as Mobile IPv6, which allows devices to maintain their IPv6 addresses as they move between different networks.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is VLAN?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\n- A VLAN (Virtual Local Area Network) is a logical network that groups together a set of devices on a physical network, regardless of their physical location. VLANs are created by configuring network switches to assign a specific VLAN ID to frames sent by devices connected to a specific port or group of ports on the switch.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is MTU?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\t\nMTU stands for Maximum Transmission Unit. It's the size of the largest PDU (protocol Data Unit) that can be sent in a single transaction.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What happens if you send a packet that is bigger than the MTU?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\t\nWith the IPv4 protocol, the router can fragment the PDU and then send all the fragmented PDU through the transaction.\n\t\nWith IPv6 protocol, it issues an error to the user's computer.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>True or False? Ping is using UDP because it doesn't care about reliable connection\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nFalse. Ping is actually using ICMP (Internet Control Message Protocol) which is a network protocol used to send diagnostic messages and control messages related to network communication.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is SDN?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\n- SDN stands for Software-Defined Networking. It is an approach to network management that emphasizes the centralization of network control, enabling administrators to manage network behavior through a software abstraction.\n- In a traditional network, network devices such as routers, switches, and firewalls are configured and managed individually, using specialized software or command-line interfaces. In contrast, SDN separates the network control plane from the data plane, allowing administrators to manage network behavior through a centralized software controller.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is ICMP? What is it used for?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\n- ICMP stands for Internet Control Message Protocol. It is a protocol used for diagnostic and control purposes in IP networks. It is a part of the Internet Protocol suite, operating at the network layer.\n\nICMP messages are used for a variety of purposes, including:\n1. Error reporting: ICMP messages are used to report errors that occur in the network, such as a packet that could not be delivered to its destination.\n2. Ping: ICMP is used to send ping messages, which are used to test whether a host or network is reachable and to measure the round-trip time for packets.\n3. Path MTU discovery: ICMP is used to discover the Maximum Transmission Unit (MTU) of a path, which is the largest packet size that can be transmitted without fragmentation.\n4. Traceroute: ICMP is used by the traceroute utility to trace the path that packets take through the network.\n5. Router discovery: ICMP is used to discover the routers in a network.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is NAT? How does it work?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nNAT stands for Network Address Translation. It’s a way to map multiple local private addresses to a public one before transferring the information. Organizations that want multiple devices to employ a single IP address use NAT, as do most home routers.\nFor example, your computer's private IP could be 192.168.1.100, but your router maps the traffic to its public IP (e.g. 1.1.1.1). Any device on the internet would see the traffic coming from your public IP (1.1.1.1) instead of your private IP (192.168.1.100).\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Which port number is used in each of the following protocols?:\n\n  * SSH\n  * SMTP\n  * HTTP\n  * DNS\n  * HTTPS\n  * FTP\n  * SFTP\n\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\n  * SSH - 22\n  * SMTP - 25\n  * HTTP - 80\n  * DNS - 53\n  * HTTPS - 443\n  * FTP - 21\n  * SFTP - 22\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Which factors affect network performance?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nSeveral factors can affect network performance, including:\n\n1. Bandwidth: The available bandwidth of a network connection can significantly impact its performance. Networks with limited bandwidth can experience slow data transfer rates, high latency, and poor responsiveness.\n2. Latency: Latency refers to the delay that occurs when data is transmitted from one point in a network to another. High latency can result in slow network performance, especially for real-time applications like video conferencing and online gaming.\n3. Network congestion: When too many devices are using a network at the same time, network congestion can occur, leading to slow data transfer rates and poor network performance.\n4. Packet loss: Packet loss occurs when packets of data are dropped during transmission. This can result in slower network speeds and lower overall network performance.\n5. Network topology: The physical layout of a network, including the placement of switches, routers, and other network devices, can impact network performance.\n6. Network protocol: Different network protocols have different performance characteristics, which can impact network performance. For example, TCP is a reliable protocol that can guarantee the delivery of data, but it can also result in slower performance due to the overhead required for error checking and retransmission.\n7. Network security: Security measures such as firewalls and encryption can impact network performance, especially if they require significant processing power or introduce additional latency.\n8. Distance: The physical distance between devices on a network can impact network performance, especially for wireless networks where signal strength and interference can affect connectivity and data transfer rates.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is APIPA?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nAPIPA is a set of IP addresses that devices are allocated\nwhen the main DHCP server is not reachable\n\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What IP range does APIPA use?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nAPIPA uses the IP range: 169.254.0.1 - 169.254.255.254.\n\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n#### Control Plane and Data Plane\n\n\u003Cdetails>\n\u003Csummary>What does \"control plane\" refer to?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nThe control plane is a part of the network that decides how to route and forward packets to a different location.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What does \"data plane\" refer to?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nThe data plane is a part of the network that actually forwards the data\u002Fpackets.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What does \"management plane\" refer to?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nIt refers to monitoring and management functions.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>To which plane (data, control, ...) does creating routing tables belong to?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nControl Plane.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Explain Spanning Tree Protocol (STP).\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is link aggregation? Why is it used?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is Asymmetric Routing? How to deal with it?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What overlay (tunnel) protocols are you familiar with?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is GRE? How does it work?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is VXLAN? How does it work?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is SNAT?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Explain OSPF.\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\n\nOSPF (Open Shortest Path First) is a routing protocol that can be implemented on various types of routers. In general, OSPF is supported on most modern routers, including those from vendors such as Cisco, Juniper, and Huawei. The protocol is designed to work with IP-based networks, including both IPv4 and IPv6. Also, it uses a hierarchical network design, where routers are grouped into areas, with each area having its own topology map and routing table. This design helps to reduce the amount of routing information that needs to be exchanged between routers and improve network scalability.\n\nThe OSPF 4 Types of routers are:\n  * Internal Router\n  * Area Border Routers\n  * Autonomous Systems Boundary Routers\n  * Backbone Routers\n\n  Learn more about OSPF router types: https:\u002F\u002Fwww.educba.com\u002Fospf-router-types\u002F\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is latency?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\t\nLatency is the time taken for information to reach its destination from the source.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is bandwidth?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\t\nBandwidth is the capacity of a communication channel to measure how much data the latter can handle over a specific time period. More bandwidth would imply more traffic handling and thus more data transfer.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is throughput?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\t\nThroughput refers to the measurement of the real amount of data transferred over a certain period of time across any transmission channel.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>When performing a search query, what is more important, latency or throughput? And how to ensure that we manage global infrastructure?\n\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nLatency. To have good latency, a search query should be forwarded to the closest data center.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>When uploading a video, what is more important, latency or throughput? And how to assure that?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nThroughput. To have good throughput, the upload stream should be routed to an underutilized link.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What other considerations (except latency and throughput) are there when forwarding requests?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\n* Keep caches updated (which means the request could be forwarded not to the closest data center)\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Explain Spine & Leaf\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\"Spine & Leaf\" is a networking topology commonly used in data center environments to connect multiple switches and manage network traffic efficiently. It is also known as \"spine-leaf\" architecture or \"leaf-spine\" topology. This design provides high bandwidth, low latency, and scalability, making it ideal for modern data centers handling large volumes of data and traffic.\n\nWithin a Spine & Leaf network there are two main tipology of switches:\n\n* Spine Switches: Spine switches are high-performance switches arranged in a spine layer. These switches act as the core of the network and are typically interconnected with each leaf switch. Each spine switch is connected to all the leaf switches in the data center.\n* Leaf Switches: Leaf switches are connected to end devices like servers, storage arrays, and other networking equipment. Each leaf switch is connected to every spine switch in the data center. This creates a non-blocking, full-mesh connectivity between leaf and spine switches, ensuring any leaf switch can communicate with any other leaf switch with maximum throughput.\n\nThe Spine & Leaf architecture has become increasingly popular in data centers due to its ability to handle the demands of modern cloud computing, virtualization, and big data applications, providing a scalable, high-performance, and reliable network infrastructure\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is Network Congestion? What can cause it?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nNetwork congestion occurs when there is too much data to transmit on a network and it doesn't have enough capacity to handle the demand. \u003C\u002Fbr>\nThis can lead to increased latency and packet loss. The causes can be multiple, such as high network usage, large file transfers, malware, hardware issues, or network design problems. \u003C\u002Fbr>\nTo prevent network congestion, it's important to monitor your network usage and implement strategies to limit or manage the demand.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What can you tell me about the UDP packet format? What about the TCP packet format? How is it different?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is the exponential backoff algorithm? Where is it used?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Using Hamming code, what would be the code word for the following data word 100111010001101?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\n00110011110100011101\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Give examples of protocols found in the application layer\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\n* Hypertext Transfer Protocol (HTTP) - used for the webpages on the internet\n* Simple Mail Transfer Protocol (SMTP) - email transmission\n* Telecommunications Network - (TELNET) - terminal emulation to allow a client access to a telnet server\n* File Transfer Protocol (FTP) - facilitates the transfer of files between any two machines\n* Domain Name System (DNS) - domain name translation\n* Dynamic Host Configuration Protocol (DHCP) - allocates IP addresses, subnet masks, and gateways to hosts\n* Simple Network Management Protocol (SNMP) - gathers data on devices on the network\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Give examples of protocols found in the Network Layer\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\n* Internet Protocol (IP) - assists in routing packets from one machine to another\n* Internet Control Message Protocol (ICMP) - lets one know what is going such as error messages and debugging information\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is HSTS?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\nHTTP Strict Transport Security is a web server directive that informs user agents and web browsers how to handle its connection through a response header sent at the very beginning and back to the browser. This forces connections over HTTPS encryption, disregarding any script's call to load any resource in that domain over HTTP.\n\nRead more [here](https:\u002F\u002Fwww.globalsign.com\u002Fen\u002Fblog\u002Fwhat-is-hsts-and-how-do-i-use-it#:~:text=HTTP%20Strict%20Transport%20Security%20(HSTS,and%20back%20to%20the%20browser.)\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n#### Network - Misc\n\n\u003Cdetails>\n\u003Csummary>What is the Internet? Is it the same as the World Wide Web?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nThe internet refers to a network of networks, transferring huge amounts of data around the globe.\u003Cbr>\nThe World Wide Web is an application running on millions of servers, on top of the internet, accessed through what is known as the web browser\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is the ISP?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nISP (Internet Service Provider) is the local internet company provider.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n## Operating System\n\n### Operating System Exercises\n\n|Name|Topic|Objective & Instructions|Solution|Comments|\n|--------|--------|------|----|----|\n|Fork 101|Fork|[Link](topics\u002Fos\u002Ffork_101.md)|[Link](topics\u002Fos\u002Fsolutions\u002Ffork_101_solution.md)\n|Fork 102|Fork|[Link](topics\u002Fos\u002Ffork_102.md)|[Link](topics\u002Fos\u002Fsolutions\u002Ffork_102_solution.md)\n\n### Operating System - Self Assessment\n\n\u003Cdetails>\n\u003Csummary>What is an operating system?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nFrom the book \"Operating Systems: Three Easy Pieces\":\n\n\"responsible for making it easy to run programs (even allowing you to seemingly run many at the same time), allowing programs to share memory, enabling programs to interact with devices, and other fun stuff like that\".\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n#### Operating System - Process\n\n\u003Cdetails>\n\u003Csummary>Can you explain what is a process?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nA process is a running program. A program is one or more instructions and the program (or process) is executed by the operating system.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>If you had to design an API for processes in an operating system, what would this API look like?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nIt would support the following:\n\n* Create - allow to create new processes\n* Delete - allow to remove\u002Fdestroy processes\n* State - allow to check the state of the process, whether it's running, stopped, waiting, etc.\n* Stop - allow to stop a running process\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>How a process is created?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\n* The OS is reading program's code and any additional relevant data\n* Program's code is loaded into the memory or more specifically, into the address space of the process.\n* Memory is allocated for program's stack (aka run-time stack). The stack also initialized by the OS with data like argv, argc and parameters to main()\n* Memory is allocated for program's heap which is required for dynamically allocated data like the data structures linked lists and hash tables\n* I\u002FO initialization tasks are performed, like in Unix\u002FLinux based systems, where each process has 3 file descriptors (input, output and error)\n* OS is running the program, starting from main()\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>True or False? The loading of the program into the memory is done eagerly (all at once)\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nFalse. It was true in the past but today's operating systems perform lazy loading, which means only the relevant pieces required for the process to run are loaded first.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What are different states of a process?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\n* Running - it's executing instructions\n* Ready - it's ready to run, but for different reasons it's on hold\n* Blocked - it's waiting for some operation to complete, for example I\u002FO disk request\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What are some reasons for a process to become blocked?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\n  - I\u002FO operations (e.g. Reading from a disk)\n  - Waiting for a packet from a network\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is Inter Process Communication (IPC)?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nInter-process communication (IPC) refers to the mechanisms provided by an operating system that allow processes to manage shared data.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is \"time sharing\"?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nEven when using a system with one physical CPU, it's possible to allow multiple users to work on it and run programs. This is possible with time sharing, where computing resources are shared in a way it seems to the user, the system has multiple CPUs, but in fact it's simply one CPU shared by applying multiprogramming and multi-tasking.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is \"space sharing\"?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nSomewhat the opposite of time sharing. While in time sharing a resource is used for a while by one entity and then the same resource can be used by another resource, in space sharing the space is shared by multiple entities but in a way where it's not being transferred between them.\u003Cbr>\nIt's used by one entity, until this entity decides to get rid of it. Take for example storage. In storage, a file is yours, until you decide to delete it.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What component determines which process runs at a given moment in time?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nCPU scheduler\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n#### Operating System - Memory\n\n\u003Cdetails>\n\u003Csummary>What is \"virtual memory\" and what purpose does serve?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nVirtual memory combines your computer's RAM with temporary space on your hard disk. When RAM runs low, virtual memory helps to move data from RAM to a space called a paging file. Moving data to paging file can free up the RAM, so your computer can complete its work. In general, the more RAM your computer has, the faster the programs run.\nhttps:\u002F\u002Fwww.minitool.com\u002Flib\u002Fvirtual-memory.html\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is demand paging?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nDemand paging is a memory management technique where pages are loaded into physical memory only when accessed by a process. It optimizes memory usage by loading pages on demand, reducing startup latency and space overhead. However, it introduces some latency when accessing pages for the first time. Overall, it’s a cost-effective approach for managing memory resources in operating systems. \n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is copy-on-write?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\nCopy-on-write (COW) is a resource management concept, with the goal to reduce unnecessary copying of information. It is a concept, which is implemented for instance within the POSIX fork syscall, which creates a duplicate process of the calling process.\n\nThe idea:\n1. If resources are shared between 2 or more entities (for example shared memory segments between 2 processes), the resources don't need to be copied for every entity, but rather every entity has a READ operation access permission on the shared resource. (the shared segments are marked as read-only) \n(Think of every entity having a pointer to the location of the shared resource, which can be dereferenced to read its value)\n2. If one entity would perform a WRITE operation on a shared resource, a problem would arise, since the resource also would be permanently changed for ALL other entities sharing it.\n(Think of a process modifying some variables on the stack, or allocatingy some data dynamically on the heap, these changes to the shared resource would also apply for ALL other processes, this is definitely an undesirable behaviour)\n3. As a solution only, if a WRITE operation is about to be performed on a shared resource, this resource gets COPIED first and then the changes are applied.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is a kernel, and what does it do?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nThe kernel is part of the operating system and is responsible for tasks like:\n\n  * Allocating memory\n  * Schedule processes\n  * Control CPU\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>True or False? Some pieces of the code in the kernel are loaded into protected areas of the memory so applications can't overwrite them.\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nTrue\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is POSIX?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nPOSIX (Portable Operating System Interface) is a set of standards that define the interface between a Unix-like operating system and application programs.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Explain what Semaphore is and what its role in operating systems.\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nA semaphore is a synchronization primitive used in operating systems and concurrent programming to control access to shared resources. It's a variable or abstract data type that acts as a counter or a signaling mechanism for managing access to resources by multiple processes or threads.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is cache? What is buffer?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nCache: Cache is usually used when processes are reading and writing to the disk to make the process faster, by making similar data used by different programs easily accessible.\nBuffer: Reserved place in RAM, which is used to hold data for temporary purposes.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n## Virtualization\n\n\u003Cdetails>\n\u003Csummary>What is Virtualization?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nVirtualization uses software to create an abstraction layer over computer hardware, that allows the hardware elements of a single computer - processors, memory, storage and more - to be divided into multiple virtual computers, commonly called virtual machines (VMs).\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is a hypervisor?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nRed Hat: \"A hypervisor is software that creates and runs virtual machines (VMs). A hypervisor, sometimes called a virtual machine monitor (VMM), isolates the hypervisor operating system and resources from the virtual machines and enables the creation and management of those VMs.\"\n\nRead more [here](https:\u002F\u002Fwww.redhat.com\u002Fen\u002Ftopics\u002Fvirtualization\u002Fwhat-is-a-hypervisor)\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What types of hypervisors are there?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nHosted hypervisors and bare-metal hypervisors.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What are the advantages and disadvantages of bare-metal hypervisor over a hosted hypervisor?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nDue to having its own drivers and a direct access to hardware components, a baremetal hypervisor will often have better performances along with stability and scalability.\n\nOn the other hand, there will probably be some limitation regarding loading (any) drivers so a hosted hypervisor will usually benefit from having a better hardware compatibility.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What types of virtualization are there?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nOperating system virtualization\nNetwork functions virtualization\nDesktop virtualization\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Is containerization a type of Virtualization?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nYes, it's a operating-system-level virtualization, where the kernel is shared and allows to use multiple isolated user-spaces instances.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>How the introduction of virtual machines changed the industry and the way applications were deployed?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nThe introduction of virtual machines allowed companies to deploy multiple business applications on the same hardware, while each application is separated from each other in secured way, where each is running on its own separate operating system.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n#### Virtual Machines\n\n\u003Cdetails>\n\u003Csummary>Do we need virtual machines in the age of containers? Are they still relevant?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nYes, virtual machines are still relevant even in the age of containers. While containers provide a lightweight and portable alternative to virtual machines, they do have certain limitations. Virtual machines still matter because they offer isolation and security, can run different operating systems, and are good for legacy apps. Containers limitations for example are sharing the host kernel.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n## Prometheus\n\n\u003Cdetails>\n\u003Csummary>What is Prometheus? What are some of Prometheus's main features?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nPrometheus is a popular open-source systems monitoring and alerting toolkit, originally developed at SoundCloud. It is designed to collect and store time-series data, and to allow for querying and analysis of that data using a powerful query language called PromQL. Prometheus is frequently used to monitor cloud-native applications, microservices, and other modern infrastructure.\n\nSome of the main features of Prometheus include:\n\n    1. Data model: Prometheus uses a flexible data model that allows users to organize and label their time-series data in a way that makes sense for their particular use case. Labels are used to identify different dimensions of the data, such as the source of the data or the environment in which it was collected.\n\n    2. Pull-based architecture: Prometheus uses a pull-based model to collect data from targets, meaning that the Prometheus server actively queries its targets for metrics data at regular intervals. This architecture is more scalable and reliable than a push-based model, which would require every target to push data to the server.\n\n    3. Time-series database: Prometheus stores all of its data in a time-series database, which allows users to perform queries over time ranges and to aggregate and analyze their data in various ways. The database is optimized for write-heavy workloads, and can handle a high volume of data with low latency.\n\n    4. Alerting: Prometheus includes a powerful alerting system that allows users to define rules based on their metrics data and to send alerts when certain conditions are met. Alerts can be sent via email, chat, or other channels, and can be customized to include specific details about the problem.\n\n    5. Visualization: Prometheus has a built-in graphing and visualization tool, called PromDash, which allows users to create custom dashboards to monitor their systems and applications. PromDash supports a variety of graph types and visualization options, and can be customized using CSS and JavaScript.\n\nOverall, Prometheus is a powerful and flexible tool for monitoring and analyzing systems and applications, and is widely used in the industry for cloud-native monitoring and observability.\n\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>In what scenarios it might be better to NOT use Prometheus?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nFrom Prometheus documentation: \"if you need 100% accuracy, such as for per-request billing\".\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Describe Prometheus architecture and components\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nThe Prometheus architecture consists of four major components:\n\n    1. Prometheus Server: The Prometheus server is responsible for collecting and storing metrics data. It has a simple built-in storage layer that allows it to store time-series data in a time-ordered database.\n\n    2. Client Libraries: Prometheus provides a range of client libraries that enable applications to expose their metrics data in a format that can be ingested by the Prometheus server. These libraries are available for a range of programming languages, including Java, Python, and Go.\n\n    3. Exporters: Exporters are software components that expose existing metrics from third-party systems and make them available for ingestion by the Prometheus server. Prometheus provides exporters for a range of popular technologies, including MySQL, PostgreSQL, and Apache.\n\n    4. Alertmanager: The Alertmanager component is responsible for processing alerts generated by the Prometheus server. It can handle alerts from multiple sources and provides a range of features for deduplicating, grouping, and routing alerts to appropriate channels.\n\nOverall, the Prometheus architecture is designed to be highly scalable and resilient. The server and client libraries can be deployed in a distributed fashion to support monitoring across large-scale, highly dynamic environments\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Can you compare Prometheus to other solutions like InfluxDB for example?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nCompared to other monitoring solutions, such as InfluxDB, Prometheus is known for its high performance and scalability. It can handle large volumes of data and can easily be integrated with other tools in the monitoring ecosystem. InfluxDB, on the other hand, is known for its ease of use and simplicity. It has a user-friendly interface and provides easy-to-use APIs for collecting and querying data.\n\nAnother popular solution, Nagios, is a more traditional monitoring system that relies on a push-based model for collecting data. Nagios has been around for a long time and is known for its stability and reliability. However, compared to Prometheus, Nagios lacks some of the more advanced features, such as multi-dimensional data model and powerful query language.\n\nOverall, the choice of a monitoring solution depends on the specific needs and requirements of the organization. While Prometheus is a great choice for large-scale monitoring and alerting, InfluxDB may be a better fit for smaller environments that require ease of use and simplicity. Nagios remains a solid choice for organizations that prioritize stability and reliability over advanced features.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is an Alert?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\nIn Prometheus, an alert is a notification triggered when a specific condition or threshold is met. Alerts can be configured to trigger when certain metrics cross a certain threshold or when specific events occur. Once an alert is triggered, it can be routed to various channels, such as email, pager, or chat, to notify relevant teams or individuals to take appropriate action. Alerts are a critical component of any monitoring system, as they allow teams to proactively detect and respond to issues before they impact users or cause system downtime.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is an Instance? What is a Job?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\n\nIn Prometheus, an instance refers to a single target that is being monitored. For example, a single server or service. A job is a set of instances that perform the same function, such as a set of web servers serving the same application. Jobs allow you to define and manage a group of targets together.\n\nIn essence, an instance is an individual target that Prometheus collects metrics from, while a job is a collection of similar instances that can be managed as a group.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What core metrics types Prometheus supports?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\nPrometheus supports several types of metrics, including:\n\n    1. Counter: A monotonically increasing value used for tracking counts of events or samples. Examples include the number of requests processed or the total number of errors encountered.\n\n    2. Gauge: A value that can go up or down, such as CPU usage or memory usage. Unlike counters, gauge values can be arbitrary, meaning they can go up and down based on changes in the system being monitored.\n\n    3. Histogram: A set of observations or events that are divided into buckets based on their value. Histograms help in analyzing the distribution of a metric, such as request latencies or response sizes.\n\n    4. Summary: A summary is similar to a histogram, but instead of buckets, it provides a set of quantiles for the observed values. Summaries are useful for monitoring the distribution of request latencies or response sizes over time.\n\nPrometheus also supports various functions and operators for aggregating and manipulating metrics, such as sum, max, min, and rate. These features make it a powerful tool for monitoring and alerting on system metrics.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>What is an exporter? What is it used for?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\nThe exporter serves as a bridge between the third-party system or application and Prometheus, making it possible for Prometheus to monitor and collect data from that system or application.\n\nThe exporter acts as a server, listening on a specific network port for requests from Prometheus to scrape metrics. It collects metrics from the third-party system or application and transforms them into a format that can be understood by Prometheus. The exporter then exposes these metrics to Prometheus via an HTTP endpoint, making them available for collection and analysis.\n\nExporters are commonly used to monitor various types of infrastructure components such as databases, web servers, and storage systems. For example, there are exporters available for monitoring popular databases such as MySQL and PostgreSQL, as well as web servers like Apache and Nginx.\n\nOverall, exporters are a critical component of the Prometheus ecosystem, allowing for the monitoring of a wide range of systems and applications, and providing a high degree of flexibility and extensibility to the platform.\n\u003C\u002Fb>\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Which Prometheus best practices?\u003C\u002Fsummary>\u003Cbr>\u003Cb>\nHere are three of them:\n\n    1. Label carefully: Careful and consistent labeling of metrics is crucial for effective querying and alerting. Labels should be clear, concise, and include all relevant information about the metric.\n\n    2. Keep metrics simple: The metrics exposed by exporters should be simple and focus on a single aspect of the system being monitored. This helps avoid confusion and ensures that the metrics are easily understandable by all members of the team.\n\n    3. Use alerting sparingly: While alerting is a powerful feature of Prometheus, it should be used sparingly and only for the most critical issues. Setting up too many alerts can lead to alert fatigue and result in important alerts being ignored. It is recommended to set up o","该项目是一个包含大量技术问题和练习的资源库，涵盖了从Linux、Jenkins到Kubernetes等广泛的DevOps及SRE相关主题。其核心功能在于提供超过2600个实践题目与理论问答，旨在帮助开发者准备面试或提升技能。技术特点包括使用Python语言构建，并支持通过提交pull request的方式贡献新内容。适合希望成为DevOps工程师的人士学习基础知识，或是任何想要扩展自己在云服务、自动化运维等领域知识的技术爱好者参考。",2,"2026-06-17 02:34:57","top_all"]