AZ-204 Flashcards
What is deployment slots in Azure App Service?
Deployment slots are live apps with their own host names.
Why would one use deployment slots?
When you need 0 downtime and test your application in a deployed stage
What is the limitations of azure app services when it comes to storage?
When deployed to built-in images, your code and content are allocated a storage volume for web content, backed by Azure Storage. The disk latency of this volume is higher and more variable than the latency of the container filesystem. Apps that require heavy read-only access to content files may benefit from the custom container option, which places files in the container filesystem instead of on the content volume.
What does an Azure App Service Plan include?
- Operating System
- Region
- Number of VM instances
- Size of VM instances
- Pricing Tier
What are the categories of the Azure App Service Plan and what plans do they include?
- Shared compute (Free, Shared)
- Dedicated compute (Basic, Standard, Premium, PremiumV2, PremiumV3)
- Isolated (Isolated, IsolatedV2)
How does authentication and authorization work in Azure App Service?
When enables it acts as a middleware intercepting all http requests to your app. It does the following:
- Authenticates users and clients with the specified identity provider(s)
- Validates, stores, and refreshes OAuth tokens issued by the configured identity provider(s)
- Manages the authenticated session
- Injects identity information into HTTP request headers
What is the two different ways one can do authentication in Azure App Service?
- With provider SDK
- Without provider SDK
What is the different between authentication with and without provider SDK in Azure App Services
Without SDK:
- The application delegates federated sign-in to App Service. This is typically the case with browser apps, which can present the provider’s login page to the user. The server code manages the sign-in process, so it’s also called server-directed flow or server flow.
With SDK:
-The application signs users in to the provider manually and then submits the authentication token to App Service for validation. This is typically the case with browser-less apps, which can’t present the provider’s sign-in page to the user. The application code manages the sign-in process, so it’s also called client-directed flow or client flow. This applies to REST APIs, Azure Functions, JavaScript browser clients, and native mobile apps that sign users in using the provider’s SDK.
What is the inbound network features in Azure App Service
- App assigned address
- Access restriction
- Service endpoints
- Private endpoints
What is the outbound features in Azure App Service
- Hybrid Connections
- Gateway required virtual network integration
- Virtual network integration
Which of the App Service plan categories provides the maximum scale-out capabilities?
Isolated
What are the options of certificates in Azure App Service?
- Create a free App Service managed certificate
- Purchase an App Service certificate
- Import a certificate from Key Vault
- Upload a private certificate
- Upload a public certificate
What is autoscaling?
Autoscaling is a cloud system or process that adjusts available resources based on the current demand. Autoscaling performs scaling in and out, as opposed to scaling up and down.
When should we consider using autoscaling?
When you need higher elasticity, availability and fault tolerance. Autoscaling has an overhead associated with monitoring resources and determining whether to trigger a scaling event. In this scenario, if you can anticipate the rate of growth, manually scaling the system over time may be a more cost effective approach.
What is some of the autoscaling conditions?
- Scale based on a metric (HTTP, disk queue, etc)
- Scale to a specific instance count according to a schedule
What is autoscaling rules?
An autoscale rule specifies a metric to monitor, and how autoscaling should respond when this metric crosses a defined threshold
What autoscaling rules metric can we monitor?
- CPU Percentage
- Memory Percentage
- Disk Queue length
- Http Queue length
- Data in
- Data out
What is Azure Functions?
Azure Functions is a serverless solution that allows you to write less code, maintain less infrastructure, and save on costs.
What is Azure Logic Apps?
Azure Logic Apps is a serverless workflow integration platform
What is the difference between Azure Web jobs and Azure Functions?
Azure Functions is built on the WebJobs SDK, so it shares many of the same event triggers and connections to other Azure services. But some main differences is that you do not pay per use as with Azure functions. It is also not a serverless app model with automatic scaling.
What are the different hosting plans for Azure Functions and what are the differences?
Consumption Plan:
- Default hosting plan
- Scales automatically and you only pay for compute resources when your functions are running
- Event driven. Scale out automatically, even during periods of high load
Premium Plan:
- Automatically scales based on demand using pre-warmed workers, which run applications with no delay after being idle
- Runs on more powerful instances
- Connects to virtual networks.
- Event driven. Scale out automatically, even during periods of high load
Dedicated Plan:
- Run your functions within an App Service plan at regular App Service plan rates. Best for long-running scenarios where Durable Functions can’t be used.
- Manual/auto scale
Which two componewnts is needed to create an Azure Function (Development)?
A function contains two important pieces - your code, which can be written in various languages, and some config, the function.json file.
What determines wether an Azure Function is to scale-out / scale-in?
Azure Functions uses a component called the scale controller to monitor the rate of events and determine whether to scale out or scale in. The scale controller uses heuristics for each trigger type.
What does the bindings property in the Azure Functions config file do?
The bindings property is where you configure both triggers and bindings.