Compute Flashcards
What is Azure Key Vault?
A service that safeguards encryption keys and secrets
What does an access policy in an Azure Key Vault define?
What operations can be done on the secrets and who can perform these operations
What is best practice for storing passwords in ARM templates?
Using Azure Key Vault with an access policy, so it is not stored in plaintext
What does a custom script extension do?
- Downloads and executes scripts on Azure VMs
- Useful for configuration/management tasks like software installation
How would you apply a custom script extension in an ARM template?
Modify the extension Profile portion of the template
What are the steps involved in setting up Azure Automation State Configuration to manage VM configs?
Step 1: Create and upload a configuration to Azure Automation
Step 2: Compile a configuration into a node configuration
Step 3: Register a VM to be managed by State Configuration
Step 4: Specify configuration mode settings
Step 5: Assign a node configuration to a managed node
Step 6: Check the compliance status of a managed node
Why and when would you use a spot VM instance?
Ideal for workloads that can be interrupted, providing scalability while reducing costs
What is SKU?
- Stock Keeping Unit
- A specific version or offering of a resource that is available in Azure
What is the Compute Gallery used for?
Enabled versioning and replication of images and apps
What’s the difference between uniform and flexible VMSS?
- In uniform and flexible VMSS, you define a template and capacity
- Flexible VMSS additionally supports auto-scale, adding other VMs, and full control over VMs
What is a benefit of using a container over a VM?
Less resources consumed
Smaller size
Faster startup
In Azure CLI, what command would you use to apply your YAML manifests in an AKS cluster?
kubectl apply -f <filename>.yaml</filename>
In Azure CLI, what command is used for AKS cluster configuration?
az aks
How would you move a VM to another network?
- Delete VM
- Recreate VM and add network interface
What OS can ASP.NET apps run on?
Windows only
What OS can ASP.NET Core apps run on?
Windows and Linux
To run an App, what must be true about the associated App Service plan?
Must be in same region the app is running in
Must have a compatible OS
Why might you be unable to create a staging slot?
- Your app may be running in too low a tier
- Scale up to Standard, Premium, or Isolated to enable multiple deployment slots
During Azure planned maintenance, what is the maximum percentage of machines in a VMSS that will upgrade at any time?
20%
What could you do if you wanted to move your VM so it wouldn’t be affected by a planned maintenance?
Redeploy the VM so it moves to a new node
How many OS can you have per app service plan?
1
How would you add a custom domain name to a web app?
Create a DNS record
Can you change the VNet of a VM after creation?
No, you can only change the subnet
What is required in order to access applications on Kubernetes?
An application Load Balancer created by Azure with a public IP
What is the best way to deploy 10 Azure web apps?
App Service plan (Standard supports 10 web apps)
What changes to a VM would cause downtime?
Resizing
What steps are needed to deploy a web app update after testing?
- Deploy the update to the staging deployment slot
- Test
- Swap to the production deployment slot
What is a quicker way to deploy multiple VMs
Use ARM template
VMSS
What are the prerequisites for creating a recovery services vault to protect virtual machines?
The vault must be in the same region as the VM
What is the difference between a container and a VM?
- VMs virtualize an entire machine (hardware)
- Containers only virtualize software layers above the OS level (software)
How would you configure cluster autoscaler for AKS nodes?
az aks
Scale the nodes in the Azure portal
How would you configure Horizontal pod autoscaling?
kubectl