Infrastructure and automation Flashcards
What are three benefits of Infrastructure automation
Speed
Repeatability
The ability to work at scale, with reduced risk
What is an imperative procedure
an ordered sequence of commands aimed at achieving a goal. The sequence may include flow-control, conditions, functional structure, classes, and more.
What is provisioning
refers to obtaining compute, storage, and network infrastructure (real or virtual), enabling communications, putting it into service, and making it ready for use by operators and developers (e.g., by installing an operating system, machine-level metrics, ssh keys, and the lowest level of operations tooling).
What is configuration
means installing base applications and services and performing the operations, tasks, and tests required to prepare a low-level platform to deploy applications or a higher-level platform.
What does Deployment mean
involves building, arranging, integrating, and preparing multi-component applications (such as database clusters) or higher-level platforms (like Kubernetes clusters), often across multiple nodes.
What is Orchestration
may refer to several things. When meant concretely, it usually refers to user-built or platform-inherent automation aimed at managing workload lifecycles and reacting dynamically to changing conditions (e.g., by autoscaling or self-healing), particularly in container environments. When meant abstractly, it may refer simply to processes or workflows that link automation tasks to deliver business benefits, like self-service.
What is provisioning
refers to obtaining compute, storage, and network infrastructure (real or virtual), enabling communications, putting it into service, and making it ready for use by operators and developers (e.g., by installing an operating system, machine-level metrics, ssh keys, and the lowest level of operations tooling)
What is Configuration
means installing base applications and services and performing the operations, tasks, and tests required to prepare a low-level platform to deploy applications or a higher-level platform.
What is deployment
involves building, arranging, integrating, and preparing multi-component applications (such as database clusters) or higher-level platforms (like Kubernetes clusters), often across multiple nodes.
What is Orchestration
may refer to several things. When meant concretely, it usually refers to user-built or platform-inherent automation aimed at managing workload lifecycles and reacting dynamically to changing conditions (e.g., by autoscaling or self-healing), particularly in container environments. When meant abstractly, it may refer simply to processes or workflows that link automation tasks to deliver business benefits, like self-service.
Describe a stateless / No state to store application
This app requires only atomic/synchronous interactions between client and server: each request from client to server returns a result wholly independent of prior and subsequent requests. An example of this application is a public web server that returns an HTML page, image, or other data on request from a browser. The application can be scaled by duplicating servers and data behind a simple load balancer.
Describe Stateless / State stored on database app
User state is stored in a database accessible to any webserver in the middle tier. An example of this application is a web server that needs to be aware of the correspondence between a user ID and user cookie. New webservers and copies of the website can be added freely without disrupting user sessions in progress and without requiring that each request from a given user be routed to the specific server that maintains their session.
Describe Stateful /State stored on server app
A record of user state must be maintained across a series of transactions. An example of this application is a website that requires authentication: the app isn’t allowed to serve pages to a user who is not logged in. User state is typically persisted by giving the client an identifying cookie that is returned to the server with each new request and used to match an ID stored there. This application can’t be scaled just by adding servers: if a logged-in user is routed to a server that hasn’t stored an ID matching the user’s cookie, that server won’t recognize them as being logged in, and will refuse their request.
What is a playbook in Ansible
lists of tasks that automatically execute against hosts
Explain the basic workflow for Ansible using playbooks
Engineers create Ansible playbooks in YAML that describe a workflow or the configuration of infrastructure.
Ansible playbooks are deployed to an Ansible control station.
When the control station runs the Ansible playbooks, they typically copy modules written
in Python to remote hosts.
Finally, Ansible runs the modules on the remote hosts to perform the work described in playbooks