Azure Services Flashcards

1
Q

App Service Plans

A

containers for the apps that you deploy in App Service. App Service plans are offered in different tiers, with more functionality provided by higher, more expensive tiers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

App Service Plan Tiers

A

Free (Windows only): Run a small number of apps for free
Shared (Windows only): Run more apps and provides support for custom domains
Basic: Run unlimited apps and scale up to three instances with built-in load balancing
Standard: The first tier recommended for production workloads. It scales up to ten (10) instances with Autoscaling support and VNet integration to access resources in your Azure virtual networks without exposing them to the internet
Premium: Scale up to 20 instances and additional storage over the standard tier
Isolated: Scale up to 100 instances, runs inside of an Azure Virtual Network isolated from other customers, and supports private access use cases

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Azure App Service

A

Azure App Service Web Apps, or simply Web Apps, are the instances of your websites and web applications hosted in Azure App Service. For most scenarios, Web Apps is the best choice for hosting websites and web applications in Azure. Each Web App is deployed into an App Service plan. Web Apps are DevOps-ready, and can be deployed using a variety of continuous deployment tools.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

App Service Advisor

A

can make recommendations based on your application’s CPU, memory, and connections history

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Deployment slots

A

allow you to have separate instances of your application that have their own hostnames. This is useful for several reasons:

You can organize your workflow by having dedicated testing and staging slots in addition to the default production slot.
Once you have vetted a new release in the staging slot, you can swap it into production to avoid having to warm up the production application.
By swapping releases into production, the previous release remains in a slot where it can easily be swapped back into production if an issue is found in the new release.
Each deployment slot maintains its own configuration and application settings. Deployment slots are available with the standard and premium App Service plans.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Facets of Web Apps in Azure

A

Metrics: Metrics are collected for Web Apps and measured by server-level information, such as the number of failed requests, average response time, and data in/out. You have seen metrics at work in the charts visible on Web Apps overview blades. Metrics is a global service that is part of Azure Monitor.

Diagnostic Logs: Collect logs from your application and/or from the web server hosting your application. The level of detail of the logs can be configured.

Resource health: Monitors your App Services for Azure service issues that may be impacting your Web Apps.

Service health: Service health is a general service that reports broad service outages, and not individual resource health. If a complete App Service outage is being experienced, Service health will report the outage, but because the outage affects the individual health of individual resources,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Application Insights

A

application performance management (APM) service. Some of the features of Application Insights include the ability to:

Find and diagnose performance issues
Find and diagnose runtime exceptions
Monitor and alert on application health
Analyze customer usage
Create custom key performance indicator (KPI) dashboards

Application Insights can collect data from applications in Azure, running on-prem, or on other clouds. The integration with Azure Web Apps makes it exceptionally easy to use in Azure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Azure Service Bus

A

cloud-based publish/subscribe messaging service from Microsoft. It’s used to facilitate communication between applications and services. By communicating with each other through a messaging service, the applications and services can be decoupled. Decoupling is desirable because it results in solutions that scale easily and are more robust against failures.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Azure Service Bus Pricing Tiers

A

Basic: Allows you to use Queues, but not Topics.

Standard: In addition to Topics, you can make use of message Deduplication and Sessions.

Premium: Similar to Standard, but includes Availability Zone support, Resource Isolation, and larger maximum message size of 1MB.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Steps of Creating Azure Service Bus

A
  1. Create globally unique namespace
  2. Create a storage account to run cloudshell
  3. Create a Topic
  4. Create a Subscription
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Azure CLI command to display list of Azure Service Bus namespaces

A

az servicebus namespace list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Topic in Azure Service Bus

A

enables one-to-many communication

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Queue in Azure Service Bus

A

only allow processing by a single consumer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Azure CLI command to create Topic in Azure Service Bus

A

az servicebus topic create \

  • -resource-group $(az group list –query ‘[0].name’ –output tsv) \
  • -namespace-name $(az servicebus namespace list –query ‘[0].name’ –output tsv) \
  • -name lab-topic

the name of the resource group and the namespace are fetched in subshells. Notice that you have specified the –output option to be tab-separated values (tsv). The default output is JSON, which would quote the string and cause errors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Azure CLI command to create Subscription to Topic in Azure Service Bus

A

RESOURCE_GROUP=$(az group list –query ‘[0].name’ –output tsv)
NAMESPACE_NAME=$(az servicebus namespace list –query ‘[0].name’ –output tsv)
TOPIC_NAME=$(az servicebus topic list –namespace-name $NAMESPACE_NAME –resource-group $RESOURCE_GROUP –query ‘[0].name’ –output tsv)

az servicebus topic subscription create \

  • -resource-group $RESOURCE_GROUP \
  • -namespace-name $NAMESPACE_NAME \
  • -topic-name $TOPIC_NAME \
  • -name lab-subscription

This command is making use of variables in Bash. The resource group, namespace name, and topic name are fetched and stored in variables prior to creating the Subscription. This has two benefits, it makes the command easier to read, and it means that the resource group and namespace name are only fetched once, making the command faster to execute.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Azure Functions

A

Microsoft’s primary serverless compute service. With Azure Functions you gain development agility by focusing on your code and not worrying about maintaining servers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Steps of creating Azure Function

A
  1. Create Azure Function App
  2. Create a Azure Function (may need to create other resources before doing this, eg: Blob Storage Container before using BlobTrigger)
  3. Go to “Code + Test” to do the actual coding
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Remote Desktop Protocol (RDP)

A

protocol developed by Microsoft that enables a remote connection to a Windows host. Remote Desktop uses a client/server model, whereby the initiating computer runs Remote Desktop client software to connect to the remote computer, which must run Remote Desktop server software. Remote Desktop server software is built into the Windows operating system. Windows also ships with a Remote Desktop client. Many free Remote Desktop clients exist for Linux and macOS, including those from Microsoft and Apple

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Azure Resource Manager (ARM) templates

A

allow you to specify groups of resources to be deployed together. ARM templates provide infrastructure as code allowing for quick and reproducible deployments.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Log Azure session to Azure from PowerShell

A

Add-AzAccount

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

View the storage account that contains your VMs virtual hard drive

A

Get-AzStorageAccount

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Make a storage account the default for current powershell session

A

Set-AzCurrentStorageAccount -ResourceGroupName -StorageAccountName

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Azure Blob storage

A

store unstructured data in Microsoft’s Azure cloud. Blobs can be any sort of data. Containers are used to organize blobs within a Storage Account. You can store up to 500TB of data in a single container.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Block blobs

A

made up of individual blocks that can be up to 100MB in size. A block blob can include up to 50,000 blocks, giving a maximum blob size of 4.75TB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Powershell command to create a container called images in Storage account

A

New-AzStorageContainer -Name images -Permission Off

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Powershell command to upload an image

A

Set-AzStorageBlobContent -Container images -File C:\Users\student\Desktop\image.png`

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

Powershell command to get the details of an image

A

Get-AzStorageBlob -Container images -Blob image.png

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

Powershell command to get the URI of a blob

A

$blob = Get-AzStorageBlob -Container images -Blob image.png

$blob.ICloudBlob.StorageUri

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

Powershell command to generate a SAS token

A

New-AzStorageBlobSASToken -CloudBlob $blob.ICloudBlob -Permission r

30
Q

Powershell command to Get a list of blobs in the container and filter out only those with Type set to Wallpaper

A

$Wallpaper = Get-AzStorageBlob -Container images | Where-Object {$_.ICloudBlob.Metadata[“Type”] -eq “Wallpaper”}
Get-AzStorageBlobContent -CloudBlob $Wallpaper.ICloudBlob

31
Q

Powershell command to Create a new container called Wallpapers with anonymous read and list permissions

A

New-AzStorageContainer -Name wallpapers -Permission Container

32
Q

Powershell command to copy a blob from one container to another

A

Start-AzStorageBlobCopy -CloudBlob $Wallpaper.ICloudBlob -DestContainer wallpapers

33
Q

Powershell command to delete a blob

A

Remove-AzStorageBlob -CloudBlob $Wallpaper.ICloudBlob

34
Q

Azure Table Storage

A

used for storing unstructured data in a NoSQL datastore. Azure Tables is made up of tables that store entities. Entities must contain three properties:

PartitionKey: A string to determine the table partition an entity belongs to
RowKey: A string to uniquely identify an entity in a partition
Timestamp: A timestamp automatically generated by the Azure Table Service to indicate the last time an entity was modified

Each partition is stored on a single server. If you have a lot of entities but a small number of PartitionKey values, the table will not scale well since the partitions cannot be divided across servers. That is why it is important to plan how you will partition your table entities. Within a partition, the entities are indexed by the RowKey. If you plan to make use of range queries or queries that return more than one entity, careful selection of the RowKey can provide significant performance benefits. Each entity can have up to 252 additional properties.

35
Q

Powershell command to create a new Azure table called blobFiles:

A

$TblName = “blobFiles”

New-AzStorageTable -Name $TblName

36
Q

Powershell command to get the table you just created and store it in a variable:

A

$Tbl = Get-AzStorageTable -Name $TblName

37
Q

Power shell command to query to list all of the entities in the table

A

$Query = New-Object Microsoft.Azure.Cosmos.Table.TableQuery

$Tbl.CloudTable.ExecuteQuery($Query)

38
Q

Powershell command to execute a query that finds all entities with a Type of wallpaper

A

$Query.FilterString = “Type eq ‘wallpaper’”
$Entity = $Tbl.CloudTable.ExecuteQuery($Query)
$Entity

39
Q

Powershell command to Print the entity Type value:

A

$Entity.Current.Item(“Type”)

40
Q

Powershell command to Specify to return only the StorageUri property and not the Type property:

A

$Columns = New-Object System.Collections.Generic.List[string]
$Columns.Add(“StorageUri”)
$Query.SelectColumns = $Columns
$Entity = $Tbl.CloudTable.ExecuteQuery($Query)
$Entity

Using the SelectColumns query property is especially useful when dealing with large entities. If you don’t require all of the entity data this can be a significant bandwidth savings. The PartitionKey, RowKey, and Timestamp are always returned, regardless of the selected columns.

41
Q

Azure Queue storage

A

process messages asynchronously using a highly available and durable queue. Queues are great for decoupling application components and building scalable systems. The message content can be up to 64KB.

42
Q

Powershell command to create a new queue named thumbnail-queue

A
$QueueName = "thumbnail-queue" 
$Queue = New-AzStorageQueue –Name $QueueName
43
Q

Powershell command to Add a message to the queue for each blob

A

Add-Message -Queue $Queue -Blob $Logo
$Wallpaper = Get-AzStorageBlob -Container wallpapers
Add-Message -Queue $Queue -Blob $Wallpaper

44
Q

Powershell command to confirm queue has messages

A

$Queue = Get-AzStorageQueue -Name $QueueName

$Queue.ApproximateMessageCount

45
Q

Powershell command to List the two storage account access keys by entering

A

Get-AzStorageAccountKey -ResourceGroupName -Name

46
Q

Powershell command to Regenerate key1 by entering

A

New-AzStorageAccountKey -ResourceGroupName -Name -KeyName key1

47
Q

Azure Cosmos DB

A

fully-managed, globally-distributed, multi-model database. The different types of models supported by Cosmos DB are:

Key-value
Graph
Column-family
Document

Databases in Cosmos DB are highly-available and offer up to 99.999% SLA. Latency, throughput, and consistency are also guaranteed with SLAs. Cosmos DB offers you a variety of consistency models to choose from to satisfy a variety of application requirements.

SQL
MongoDB (document)
Gremlin (graph)
Cassandra (column-family)
Azure Table Storage (key-value)
48
Q

Steps to create Azure Cosmos DB

A
  1. Create Azure Cosmos DB Account

2. Create Container/Database

49
Q

What are Cosmos DB levels of consistency?

A

Azure Cosmos DB offers five well-defined levels. From strongest to weakest, the levels are:

Strong
Bounded staleness
Session
Consistent prefix
Eventual

https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levels

50
Q

What is write and read regions in Cosmos DB?

A

Write regions are regions containing data centers that will accept write operations to your database. Read regions contain read-only Cosmos DB instances for your database. Write vs. read regions effect your consistency and latency as well

51
Q

Multi-master replication

A

having more than one Cosmos DB write location, which is a great option if low latency is your priority. You can’t have strong consistency with it.

52
Q

Azure Resource Manager

A

deployment and management service for Azure. It allows you to manage resources using JSON code. One of the benefits of using JSON code to represent Azure resources is that it makes your deployments much more easily replicable than if you were to use the Azure Portal to deploy the same resources. Additionally, because you can include things like parameters, variables, and functions in your template, you have the ability to deploy multiple resources using the same template and have them resemble one another or retain different features if necessary. Finally, ARM templates allow you to use declarative syntax, meaning you are only declaring your desired end state. It is up to Azure to make the changes for you.

53
Q

Azure CLI Command to deploy resources from ARM Template`

A

az deployment group create –resource-group $resource_group –template-file template.json –parameters @template.parameters.json

54
Q

BitLocker Encryption Key (BEK)

A

secret used to encrypt a VM disk

55
Q

Key Encryption Key (KEK)

A

wraps the BitLocker encryption key in yet another passphrase in order to protect it

56
Q

Azure virtual machine extensions

A

small applications that provide post-deployment configuration and automation on Azure VMs. The Azure platform hosts many extensions covering VM configuration, monitoring, security, and utility applications. Publishers take an application, wrap it into an extension, and simplify the installation. All you need to do is provide mandatory parameters.

57
Q

Log Analytics workspaces

A

unique environments used to collect and interact with several Azure Monitor data sources in Azure. Companies use Log Analytics workspaces in part because it allows them to import data from a variety of sources and query it using a robust query language that you’ll cover in another lab step. You can also manage alerts, view the health of your resources and more from your workspace.

58
Q

Kusto Query Language (KQL)

A

powerful query language used in Log Analytics. KQL is a pipeline-driven, read-only query language that will look very familiar if you’ve ever worked with a structured query language (SQL)

59
Q

API Management (APIM)

A

Azure’s API gateway service allowing you to create consistent, modern APIs for a variety of backend services. APIM provides powerful capabilities, such as rate-limiting, quotas, and security. These capabilities can be applied to existing backend services without requiring any additional code.

60
Q

Policies in API Management

A

allow you to change the behavior of APIs using configuration. Policies can be used to achieve a wide variety of objectives including rate-limiting and data transformation. Policies can be applied at different scopes to simplify configuration. The following scopes are supported:

Global
Product
API
Operation
Policies are inherited from containing scopes by default. As an example, if you want a policy for all operations in an API, it is most convenient and manageable to apply that policy at the API scope.
61
Q

Azure Kubernetes Service (AKS)

A

offers serverless Kubernetes, an integrated continuous integration and continuous delivery (CI/CD) experience, and enterprise-grade security and governance. AKS is free; you only pay for the agent nodes within your clusters, not for the masters.

62
Q

Azure Service Fabric

A

distributed systems platform that makes it easy to package, deploy, and manage scalable and reliable microservices and containers. Service Fabric also addresses the significant challenges in developing and managing cloud native applications.

A key differentiator of Service Fabric is its strong focus on building stateful services. You can use the Service Fabric programming model or run containerized stateful services written in any language or code. You can create Service Fabric clusters anywhere, including Windows Server and Linux on premises and other public clouds, in addition to Azure.

63
Q

Dockerfile patterns

A
  1. Builder Pattern (old and inefficient)
  2. Multi-stage build
    - Multiple From
    - Aliases are used
    - Only a build stage can be build
64
Q

Dockerfile Multistage Best practices

A
  1. Adopting container modularity
  2. Avoiding unnecessary packages
  3. Choosing an appropriate base
  4. Avoiding inclusion of app data
65
Q

Azure Databrics

A
  • Analytical platform
  • Spark based
  • Environments: 1. Databricks SQL 2. Databricks Data Science & Engineering and 3. Databricks Machine Learing
66
Q

Databricks SQL

A

easy-to-use platform for analysts who want to run SQL queries on their data lake, create multiple visualization types to explore query results from different perspectives, and build and share dashboards.

67
Q

Databricks Data Science & Engineering

A

interactive workspace that enables collaboration between data engineers, data scientists, and machine learning engineers. For a big data pipeline, the data (raw or structured) is ingested into Azure through Azure Data Factory in batches, or streamed near real-time using Apache Kafka, Event Hub, or IoT Hub. This data lands in a data lake for long term persisted storage, in Azure Blob Storage or Azure Data Lake Storage.

68
Q

Databricks Machine Learning

A

integrated end-to-end machine learning environment incorporating managed services for experiment tracking, model training, feature development and management, and feature and model serving.

69
Q

Azure Bot Services

A
  • Chatbots

- serverless

70
Q

Azure Search

A

Search-as-a-service

71
Q

stored access policies

A

provides an additional level of control over service-level shared access signatures (SAS) on the server side. Establishing a stored access policy serves to group shared access signatures and to provide additional restrictions for signatures that are bound by the policy. You can use a stored access policy to change the start time, expiry time, or permissions for a signature, or to revoke it after it has been issued.

72
Q

shared access signatures (SAS)

A

a URI that grants restricted access rights to Azure Storage resources. You can provide a shared access signature to clients who should not be trusted with your storage account key but to whom you wish to delegate access to certain storage account resources