AZ-204 Flashcards
What are ARM templates?
Preconfigured scripts, written in JSON, used to deploy resources (i.e. VMs) or entire environments, which makes it easy to deploy and duplicate.
What are modulized ARM templates?
Templates that are connected, i.e. modules.
What interfaces can deploy ARM templates? (6)
Azure Portal, Azure CLI, PowerShell, REST API, GitHub, CloudShell
ARM templates consist of 8 elements, which?
- Schema
- Content version
- API profile
- Parameters
- Variables
- Functions
- Resources
- Outputs
Only three elements are needed to deploy an ARM template, which?
Schema, Content version, and resources
What do the Schema element do in an ARM template?
It defines the version of the template language, which is set depending on the editor used (VS Code, VS Pro) and how deployment is made (subscriptions, management groups, or tenants).
What do the Content Version element do in an ARM template?
It defines the version of the template and the script, and is decided by the user.
What do the API Profile element do in an ARM template?
It is used to maintain consistency between Azure and any Azure stack location.
What do the Parameters element do in an ARM template?
It is used for building rules and static responses. Useful för source controlled environments, since it defines parameters used for deployment constraints.
What do the Variables element do in an ARM template?
Defines the variables (name and default value), can be updated during deployment if needed.
What do the Functions element do in an ARM template?
Defines where the expressions (processes that generate names, subnets, or manipulates values) used in the script are located.
What do the Resources element do in an ARM template?
It defines what to deploy or update.
What do the Outputs element do in an ARM template?
It is where one can pull values from returned from a deployment, and store data.
What is the Azure Container Registry?
It works like an inventory manager for container images. When a container image is uploaded to the registry, it’s able to run in Azure Container Instances.
There are three price tiers for the Azure Container Registry, what are they?
- BASIC: cost-optimized, focused on developers (in terms of adjusted throughput and storage) and is not suitable for production.
- STANDARD: same as basic, but more performance, storage, and throughput. Has SLAs. Is the default option for production workloads.
- PREMIUM: Most expensive, highest performance, has features like geo-replication, content trust, is compatible with Private Link (used for securing resources). Is the best option for high-volume scenarios.
What is an Service Level Agreement (SLA)?
It describes the commitment for uptime and connectivity for the provided services, meaning that the cloud provider “promises” that resources are available and working correctly according to the agreement.
There are different tiers, such as “99%” and “99.9%” which sets the expected availability, and cost accordingly.
What are the steps to publish a container image?
- Create a Container Registry in a resource group
- Log into the registry
- Pull the image from source
- Tag the image with the login server
- Push the image to the registry
- Deploy the image as a container instance
What are containers?
A container is a self-contained entity that can hold services, dependencies, and libraries, and can be used to run web servers etc.
Container images can be created using three interfaces, which?
- Azure CLI
- PowerShell
- Azure Console
What is a container group?
A collection of all the containers that run on the same host machine
What are microservices?
An architecture where instead of having a single application, the solution is divided into smaller, independently deployed core functions, or services.
Azure Microservices is a serverless offering, and two serverless services are Azure App Service and Azure Functions.
What is Azure App Service?
A method for running application code like web apps or application APIs without any underlying server or container.
What is Azure Functions?
A true serverless architecture, that allows for processes in or between services where everything but the code and triggers are handled by Azure.
Azure Functions has three parts, what are they?
- Trigger (IF this DO that)
- Input (data to use for outputs, not always required)
- Output (the result of a function)
What are Durable Functions?
An extension that allows for the creation of stateful functions.
What is the difference between stateless and statefull?
While a stateless architecture or application doesn’t store any states from previous transactions, a stateful one allows users to store, record and return to already established information and processes from previous.
All processes of a stateful application run on the same server, while the stateless can be divided to multiple, since the processes aren’t interlinked.
What are Custom Handlers?
Small web servers that retrieve events from a Functions host, that allow implementing function apps using languages or runtimes that aren’t supported by Azure.
To implement a custom handler you need to have
- a host.json file at the app root
- a local.settings.json file at the app root
- a function.json file for each function inside a folder for each function named
- a command, script, or executable that runs the web server
What is a virtual machine?
A virtualized server that runs in the cloud, and run workloads or operating environments. Is a IaaS
What interfaces can you use to deploy a virtual machine?
- Azure Console
- Azure CLI
- PowerShell (cmdlets)
- ARM Templates (JSON scripts)
- Third-party tools like Terraform or Ansible