AZ-204 Flashcards
What are the different VM types and there use cases?
General Purpose - Balanced CPU-to-memory ratio. Ideal for testing and development, small to medium databases, and low to medium traffic web servers.
Compute Optimized - High CPU-to-memory ratio. Good for medium traffic web servers, network appliances, batch processes, and application servers
Memory Optimized - High memory-to-CPU ratio. Great for relational database servers, medium to large caches, and in-memory analytics.
Storage Optimized - High disk throughput and IO ideal for Big Data, SQL, NoSQL databases, data warehousing and large transactional databases.
GPU - Specialized virtual machines targeted for heavy graphic rendering and video editing, as well as model training and inferencing (ND) with deep learning. Available with single or multiple GPUs.
High Performance Compute - Fastest and most powerful CPU virtual machines with optional high-throughput network interfaces (RDMA).
What is the CLI command to create a resource group?
az group create –name rgname –location myLocation
What is the CLI command to create a VM?
az vm create \
–resource-group az204-vm-rg \
–name az204vm \
–image UbuntuLTS \
–generate-ssh-keys \
–admin-username azureuser \
–public-ip-sku Standard
What is the CLI command to open a VM port?
az vm open-port –port 80 \
–resource-group az204-vm-rg \
–name az204vm
What is the CLI command to start/stop/deallocate/restart/redeploy/delete a VM?
az vm start/stop/deallocate/restart/redeploy/delete –resource-group myResourceGroup –name myVM
What are the CLI commands for information about VMs?
List VMs: az vm list
Get information about a VM: az vm show –resource-group myResourceGroup –name myVM
Get usage of VM resources: az vm list-usage –location eastus
Get all available VM sizes: az vm list-sizes –location eastus
What are the CLI commands for VM disks and images?
Add a data disk to a VM: az vm disk attach –resource-group myResourceGroup –vm-name myVM –disk myDataDisk –size-gb 128 –new
Remove a data disk from a VM: az vm disk detach –resource-group myResourceGroup –vm-name myVM –disk myDataDisk
Resize a disk: az disk update –resource-group myResourceGroup –name myDataDisk –size-gb 256
Snapshot a disk: az snapshot create –resource-group myResourceGroup –name mySnapshot –source myDataDisk
Create image of a VM: az image create –resource-group myResourceGroup –source myVM –name myImage
Create VM from image: az vm create –resource-group myResourceGroup –name myNewVM –image myImage
What are the benefits of ARM templates?
- Declarative Syntax - Deployment of all resource types
- Repeatable Results - Consistent deployments
- Orchestration - orders actions and deploys resources in parallel when possible
What are the use cases for Azure Container Registry?
Pull images to Scalable orchestration systems and other Azure services,
Push to a container registry as part of a container development workflow.
Configure ACR Tasks to automatically rebuild application images when their base images are updated, or automate image builds when your team commits code to a Git repository. Create multi-step tasks to automate building, testing, and patching multiple container images in parallel in the cloud.
What are the tiers of Azure Container Registry?
Basic: Same capabilities as standard/premium(such as Azure Active Directory authentication integration, image deletion, and webhooks) but lowest image and storage throughput.
Standard: 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.
Premium: Premium registries provide the highest amount of included storage and concurrent operations. Premium adds 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 storage features of ACR?
Encryption at rest, geo replication, zone redundancy, scalable storage.
What are the task scenarios of ACR?
Quick: Build and push a single container image to a container registry on-demand, in Azure, without needing a local Docker Engine installation.
Automatically triggered tasks - Enable one or more triggers to build an image:
- Trigger on source code update
- Trigger on base image update
- Trigger on a schedule
Multi-step task - Multi-step, multi-container-based workflows.
What is a container group in ACI?
A container group is a collection of containers that get scheduled on the same host machine. The containers in a container group share a lifecycle, resources, local network, and storage volumes. It’s similar in concept to a pod in Kubernetes.
What are the container restart policy settings?
Always: Restarted after the end of every execution
Never: Container is only ran once at most
Onfailure: If the container crashes it is restarted
How do you overcome statelessness in ACI?
mount volume from an external store.
- You can 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 limited to CIFS support.
What are the different app service plan tiers?
Shared compute: Both Free and Shared share the resource pools of your apps with the apps of other customers. These tiers allocate CPU quotas to each app that runs on the shared resources, and the resources can’t scale out.
Dedicated compute: The Basic, Standard, Premium, PremiumV2, and PremiumV3 tiers run apps on dedicated Azure VMs. Only apps in the same App Service plan share the same compute resources. The higher the tier, the more VM instances are available to you for scale-out.
Isolated: This tier runs dedicated Azure VMs on dedicated Azure Virtual Networks. It provides network isolation on top of compute isolation to your apps. It provides the maximum scale-out capabilities.
Consumption: This tier is only available to function apps. It scales the functions dynamically depending on workload.