Develop Azure compute solutions Flashcards

1
Q

What is Azure App Service?

A

An HTTP-based service for hosting web applications, REST APIs, and mobile back ends.

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

What are the two built in auto scale support for web apps? Which is preferred?

A

Scale up / down refers to scaling hardware. Cores, and memory. Scaling out refers to adding more machines to the process.

Azure Apps support scale out / in.

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

How can you deploy an app with Azure Web apps?

A

Through integration with Azure DevOps, GitHub, Bitbucket, or even a local repository.

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

What are Deployment slots?

A

Allow for deploying code without having to shut down production, being able to swap to the new code and back if needed.

Must be Standard, Premium, or Isolated tier

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

What pricing tiers are there for web apps?

A

Shared, Free, Standard, Premium, PremiumV2, PremiumV3, Isolated
Consumption for function apps.

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

How would you deploy an app to Azure with the Azure CLI?

A

az webapp up - app name –resource-group azResourceGroup

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

Types of authentication available to web apps?

A
You can use built in in your code, but there are a number of identity providers:
/.auth/login/aad - Azure Active Director
/.auth/login/facebook
/.auth/login/google
/.auth/login/twitter
/.aut/login/   - OpenID Connect
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the ways you can control authorization in azure web apps?

A

Allow unauthenticated requests - Allows the passing of http headers, providing flexibility in handling anonymous requests.

Require authentication - reject any unauthenticated traffic to your application.

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

What is multitenant public service?

A

This allows for apps to be accessible on internet-hosted endpoints. Available on all service plans, except for isolated in which there is single tenant sign in.

To find in azure properties: possibleOutboundAddresses

Or in azure cli: 
 az webapp show \
    --resource-group  \
    --name  \ 
    --query outboundIpAddresses \
    --output tsv
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Where are applications settings found in webapps?

A

In ASP.NET it’s either WEb.config or appsettings.json

This can house things such as connection strings.

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

How can you configure path mappings?

A

In windows you can add a “new handler” - this allows for file extension, script processor, and arguments.

Linux and containerized apps can also be configured with an azure Storage mount.

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

What type of logging can you have from app services?

A

Application logging - app service file system and / or azure storage blobs
Web server logging - App service system or Azure storage blobs
Detailed error logging - App service File
Failed request tracing - App service file
Deployment logging - App service file

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

How can you view log streams in Azure CLI?

A

az webapp log tail –name appname –resource-group myResourceGroup

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

How can you configure security certificates in azure app service?

A
  • Create a free app service managed certificate
    • Must be basic, standard, premium, or isolated tier
  • Purchase an App service certificate
  • Import a certificate from Key Vault
  • Upload a private certificate
  • Upload a public certificate
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a feature flag?

A

A binary state of on or off that you can use in code to tell which operation should happen, as an environment variable from the azure app service.

Feature manager helps to support feature flags. Managed in appsettings.json

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

What is an autoscaling rule? What plans support autoscaling?

A

A rule decision that tells you when to add or remove resources to the web app.

Not free or shared. Must be at least S1 or any P level tiers.

17
Q

What is slot swapping? What are the steps involved?

A

Swapping from maybe staging to production in deployment slots.

  1. Apply settings from the target slow
  2. Wait for every instance in source slot to restart, otherwise revert.
  3. Trigger local cache initialization
  4. If customwarm-up, trigger application initiation by making an HTTP request.
  5. Once a slot is warmed up, swap the two slots.
  6. Perform the same operation of settings on the source slot.
18
Q

Can you route traffic between deployment slots?

A

Yes, you can. By default 0% of traffic routed to new deployment slots.

19
Q

Define Azure Functions

A

Simple web serverless apis. They can support :

  • Triggers
  • bindings
  • Input data
  • Output data
20
Q

What are the differences between logic apps and azure functions?

A

Azure functions are code-first, where as logic apps are designer first.
Logic apps have a large collection of connectors, more than azure functions.
Logic apps have ready made actions.

21
Q

Functions vs Webjobs

A

Webjobs are not serverless, and unlike functions are not pay per use, or having intergration with logic apps.

22
Q

Can all tiers of Azure functions scale?

A

No - only consumption and premium tiers can. Dedicated do not scale.

23
Q

Trigger events for Azure Functions

A
Timer
Azure Storage queues and blobs
Azure service bus queues and topics
Azure Cosmos DB
Azure Event Hubs
HTTP/Webhook
Azure Event Grid
24
Q

Where are function’s trigger, bindings, and settings configured? What does it typically look like?

A

In the function.json file. Bindings have type, direction, and name.

25
Q

What is a function with stateful attributes called?

A

A durable function.

26
Q

Why would you use a durable function

A

If you need:

  • Function chaining
  • Fan-out/fan-in
  • Async HTTP apis
  • Monitor
  • Human interaction
27
Q

What is an ARM?

A

Azure Resource management template used to deploy azure resources programmatically.

28
Q

What are the IaaS solutions? What are the key areas?

A

Azure VMs.

Managed identities - how can you assign one to a virtual machine? System and user?
* Try to use powershell for getting the credential and token for the identity.

  • Backup and restore approaches
  • Accelerated Networking - things like vNets - not across region
  • When not to use an Azure VM
29
Q

What are the steps to deploying an Azure web app?

A
  1. Create an app service plan
  2. Create an app
  3. Deploy code