Azure Compute solutions Flashcards
ACR, Azure Functions, Azure App Service web apps
What’s an Azure Container Registry (ACR)
is a managed, private Docker registry service based on the open-source Docker Registry 2.0.
What are the Azure Container Registry service tiers?
Basic, Standard and Premium
Explain the Basic tier of ACR service
A cost-optimized entry point for developers learning about Azure Container Registry. Basic registries have the same programmatic capabilities as Standard and Premium (such as Azure Active Directory authentication integration, image deletion, and webhooks). However, the included storage and image throughput are most appropriate for lower usage scenarios.
Explain the Standard tier of ACR service?
Standard registries offer the same capabilities as Basic, with increased included storage and image throughput. Standard registries should satisfy the needs of most production scenarios.
Explain the Premium tier of ACR service?
provide the highest amount of included storage and concurrent operations, enabling high-volume scenarios.
higher image throughput
Premium adds features such as geo-replication for managing a single registry across multiple regions, content trust for image tag signing, and private link with private endpoints to restrict access to the registry.
What are the different Azure storage features?
Encryption-at-rest, Regional storage, zone redudnancy, scalable storage.
Explain encryption-at-rest feature in Azure storage.
All container images in your registry are encrypted at rest. Azure automatically encrypts an image before storing it, and decrypts it on-the-fly when you or your applications and services pull the image.
Explain regional storage feature in Azure Storage
Azure Container Registry stores data in the region where the registry is created, to help customers meet data residency and compliance requirements. In all regions except Brazil South and Southeast Asia, Azure may also store registry data in a paired region in the same geography. In the Brazil South and Southeast Asia regions, registry data is always confined to the region, to accommodate data residency requirements for those regions.
Explain zone redundancy feature in Azure Storage
A feature of the Premium service tier, zone redundancy uses Azure availability zones to replicate your registry to a minimum of three separate zones in each enabled region.
Explain scalable storage feature in Azure Storage
allow you to create as many repos, images, layers, or tags as you need, up to the registry storage limit
What are the different scenarious for ACR Tasks?
Quick task, Automatically triggered tasks, multi-step task
What’s Quick task?
Build and push a single container image to a container registry on-demand, in Azure, without needing a local Docker Engine installation. It provides an integrated development experience by offloading your container image builds to Azure.
Benefit; you can verify your automated build definitions and catch potential problems prior to committing your code.
What’s multi-step task?
it’s defined in a YAML file specifying individual build/ push operations for container images or other artifacts. Also define execution of one or more containers.
What’s a Dockerfile?
a script that contains a series of instructions that are used to build a Docker image
What does a dockerfile include?
The base or parent image we use to create the new image. Commands to update the base OS and install other software. Build artifacts to include, such as a developed application.Services to expose, such a storage and network configuration. Command to run when the container is launched.
What can you use ACR Task for?
Create an Azure Container Registry. Build and push image from a Dockerfile. Run the image in the ACR.
What is ACR Tasks?
a set of features within ACR
What is Azure Container Instances (CI)?
a service that let developer easily to deploy container on Azure cloud platform
What’s container group in CI?
collection of containers that get scheduled on the same host machine
What does container in a container group?
container in a container group share lifecycle, local network and storage volume (similar to pods in Kubernetes)
What are the two ways of deploying container group?
Resource Manager template and YAML file
When to use Resource Manager template to deploy container group?
when deploy additional Azure service resources (eg. Azure Files share) when u deploy CI
When to use YAML file to deploy container group?
when your deployment includes only container instances
Give a scenario to use multi-container groups
useful where u want to divide a single functional task into a few container images
What does it mean that Azure CI is stateless?
if container crash/stops, all of its state is lost
What are the limitations of mounting Azure file share in Azure CI?
- only mount Azure Files shares to Linux containers
- Azure file share volume mount requires the Linux container run as root
- Azure File share volume mounts are limits to CIFS support
What are the restarts policies for running containerized tasks?
Always = default setting when no restart policy
Never
OnFailure
What’s Azure Container Apps (CA)?
a fully managed environment that enables you to run containerized applications and microservices on a serverless platform
What is Azure CA common used for?
- Deploy API endpoints
- Host background processing applications
- Handle event-driven processing
- Run microservices
What are the limitations of Azure CA?
- can’t run priviliged container. can’t process root access.
- Linux-based (linux/amd64) container images are required
What can Azure CA handle for you with its built-in authentication and authorization features?
- Authenticates users/clients
- manages the authenticated session
- inject identity info into HTTP request headers
What happens when Authen/author feature is enabled in Azure CA?
when the middleware is enabled, every incoming HTTP request passes through the security layer before being handled by your app.
What is revision in Azure CA?
Revision is an unchangeable/immutable snapshot of a container app version.
How are secrets updated/ deleted in Azure CA?
Updated or deleted secrets doesn’t automatically affect existing revisions in your app. To do it you can:
1. Deploy a new revision
2. Restart an existing revision
What’s Azure App Service?
an HTTP-based service (PaaS) for hosting web apps, REST APIs, mobile back ends.
Develop in any languages/framework
Benefit with Azure App Service?
- Built-in auto scale support
- Continuous integration/deployment support
- Deployment slots
What are the limitations of Azure App Service?
- App service on Linux are NOT supported on Shared pricing tier
- The Azure portal shows only features that currently work for Linux apps.
- Disk latency is higher and variable than latency of the container filesystem.
What does the plans in Azure App Service define?
defines a set of compute resources for a web app to run
1. Operating system (Windows, Linux)
2. Region (West US)
3. Number of VM instances
4. Size of VM instances (small, medium, large)
5. Pricing tier
What are the different pricing tiers on Azure App Service?
- Shared compute: Free, Shared
- Dedicated compute: Basic, Standard, Premium, PremiumV2, PremiumV3
- Isolated:
Isolated, IsolatedV2
What’s the shared compute pricing tier?
Base tier. Runs app on same Azure VM as other App Service apps. Intended to use for dev and testing purposes
Fixed CPU to each app that runs on the shared resources.
Resources can’t scale out
What’s the dedicated compute pricing tier?
Run apps on dedicated Azure VMs.
Only apps in same App Service plan share same compute resource.
The higher tier, the more VM instances available for scale-out.