Docsity

Azure Function Plan Types, Authentication Flows, and Blob Storage: A Comprehensive Guide, Exams of Software Development

Toggle sidebar
bg1
Az204 graded A update solution
For a CDN (Redis etc) what is the difference in caching behaviour rules:
Override and 'Set if missing' - >>>Override honours the provided cache duration instead of the origin
duration
Set if missing uses the origin duration rather than the provided cache duration.
What are the durable function types - >>>Orchestrator (Workflow)
Activity (Stateless)
Entity (Stateful)
Client (Sends messages above)
What are the durable function patterns - >>>Function Chaining
Fan-out/Fan-in
Async HTTP
Monitor
What are the azure function plan types - >>>Consumption - automatically adds compute power
Premium - Identical to Consumption + VNET connectivity
App Service - Traditional App service model (VMs)
What do all Azure function plans require - >>>Storage plan
Azure function triggers have a direction of what? - >>>In
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17

Partial preview of the text

Download Azure Function Plan Types, Authentication Flows, and Blob Storage: A Comprehensive Guide and more Exams Software Development in PDF only on Docsity!

Az204 graded A update solution

For a CDN (Redis etc) what is the difference in caching behaviour rules: Override and 'Set if missing' - >>>Override honours the provided cache duration instead of the origin duration Set if missing uses the origin duration rather than the provided cache duration. What are the durable function types - >>>Orchestrator (Workflow) Activity (Stateless) Entity (Stateful) Client (Sends messages above) What are the durable function patterns - >>>Function Chaining Fan-out/Fan-in Async HTTP Monitor What are the azure function plan types - >>>Consumption - automatically adds compute power Premium - Identical to Consumption + VNET connectivity App Service - Traditional App service model (VMs) What do all Azure function plans require - >>>Storage plan Azure function triggers have a direction of what? - >>>In

Azure function bindings have which direction? - >>>In , out or Inout What are the cosmodb consistency levels - >>>Strong - Bounded - Session - Consistent Prefix - Eventual - How do you generate a cosmosdb synthetic key? - >>>by concatenating multiple properties together What are the common azure authentication flows - >>>Interactive - On-Behalf-Of - Client-credentials Device code - Certificates - In azure authentication what are the ways to sign a shared access signature? - >>>Using the storage account key Using a user delegation key Only be used with secure HTTPS In azure authentication define a service principal - >>>Service principal is a security identity that user- created apps, services etc can use for specific resources In azure authentication what are the key features of a system assigned identity - >>>Created as part of the resource deleted when the resource is deleted,

What are the order of steps to create a WebApp - >>>Resource Group App Service Plan Web App Web App Deployment What are the CLI commands to create a webApp - >>>az group az appservice az webapp create az webapp deployment What are the powershell commands to create a WebApp - >>>New-AzResourceGroup New-AzAppServicePlan New-AzWebApp What are the ways to enable logging for a web app - >>>Logging to a file system goes to a fixed structure. az webapp log download -> to download the logs Az webapp log tail -> To view tail logs az webapp log configure ...... ->configure logging destination CLI version Azure site log download <app_name>

What is the powershell command to turn on http logging for a webapp - >>>Set-AzureWebsite -Http- LoggingEnabled 1 What is the url format for a service bus installation -

https://.servicebus.windows.net/<queue/topic? What are the steps for creating a ServiceBus - >>>Create a resource group to hold the Azure resources you will be creating. az group create --name az204-svcbus-rg --location $myLocation Create a Service Bus messaging namespace. az servicebus namespace create \ --resource-group az204-svcbus-rg \ --name $myNameSpaceName\ -- location $myLocation Create a Service Bus queue az servicebus queue create --resource-group az204-svcbus-rg \ --namespace-name $myNameSpaceName\ --name az204-queue What is the max size of a storage queue message - >>>64kb When are the recommend times for using a storage queue (servicebus) - >>>Your application must store over 80 gigabytes of messages in a queue. Your application wants to track progress for processing a message in the queue. (useful if the worker processing a message crashes. Another worker can then use that information to continue from where the prior worker left off. You require server side logs of all of the transactions executed against your queues.

What are examples of APIM Transformation policies - >>>Convert XML to JSON Convert JSON to SML Find & replace string Set query string parameter Set backend service What are the APIM Policy Scopes - >>>Global scope - all APIs within the API Management instance Product scope - manages access to the product as a single entity API scope - affects only a single API Operation scope - affects only one operation within the API When do APIM policies execute - >>>Inbound policies execute when a request is received from a client Backend policies execute before a request is forwarded to a managed API Outbound policies execute before a response is sent to a client On-Error policies execute when an exception is raised In APIM what is the difference between products and groups - >>>Products are how APIs are surfaced to developers, and have one or more APIs, title, description, and terms of use Groups are used to manage the visibility of products to developers In Azure Authentication MSAL which flow is described as 'Native and web apps securely obtain tokens in the name of the user' - >>>Authorization Code In Azure Authentication MSAL which flow is described as 'Service applications run without user interaction' - >>>Client Credentials

In Azure Authentication MSAL which flow is described as 'The application calls a service/web API, which in turn calls microsoft Graph' - >>>On-Behalf-of In Azure Authentication MSAL which flow is described as 'Used in Browser based applications' -

Implicit In Azure Authentication MSAL which flow is described as 'Enables sign-in to a device by using another device that has a browser' - >>>Device code In Azure Authentication MSAL which flow is described as 'Windows computers silently aquire an access token when they are domain joined' - >>>Integrated Windows In Azure Authentication MSAL which flow is described as 'Mobile and desktop applications call Microsoft Graph in the name of a user' - >>>Interactive In Azure Authentication MSAL which flow is described as 'The application signs in a user by using their username and password' - >>>Username/password What are the 2 types of permissions for an access token? - >>>Delegated permission - permission granted to a signed in user Application permission - permission granted to an application What are the 3 types of Shared Access signatures - >>>User Delegation SAS - secured with AAD credentials (blob storage only) Service SAS - secured with the storage account key Account SAS - Secured with the storage account key What are the two types of SAS - >>>Ad-Hoc SAS - Everything you need is availble in the SAS token itself

In blob storage how long must data be archived - >>>At least 180 days In blob storage how long must Cool data be stored for - >>>At least 30 days In blob storage what types of data can Block blobs store - >>>Text and binary data In blob storage what is the max size of a Block blob - >>>4.7TB In blob storage what is the ideal scenario for Append blobs - >>>logging data (e.g. from virtual machines) In blob storage what do page blobs store - >>>Random access data In blob storage what is the largest file that a page blob can store - >>>8TB In durable functions what is the Orchestrator function type - >>>workflow pattern In durable functions what is the Activity function type - >>>Stateless programing pattern In durable functions what is the Entity function type - >>>Stateful pattern In durable functions what is the client function type - >>>Sends messages above In durable functions what is the impact of Function chaining pattern - >>>Results in a sequence of events one after another

In durable functions what is the Fan-out/fan-in pattern - >>>Parallel programming pattern In durable functions what is the Async HTTP pattern - >>>Used for long running requests In durable functions what is the Monitor pattern - >>>Polling pattern e.g. human interaction In cosmosdb what does the consistency level Strong provide - >>>guarantees latest committed write In cosmosdb what does the consistency level Bounded provide - >>>guarantees reads have a max lag (versions of time) In cosmosdb what does the consistency level Session provide - >>>guarantess reads, writes (consistent prefix) are correct within a client session In cosmosdb what does the consistency level Consistent prefix provide - >>>guarantees that updates are returned in order In cosmosdb what does the consistency level Eventual provide - >>>guarantees eventual consistency In azure authentication describe the authentication flow - Interactive - >>>user authentication on the web browser In azure authentication describe the authentication flow - On-Behalf-Of - >>>Application authorisation In azure authentication describe the authentication flow - Client-credentials - >>>Application authentication without user interaction

In open ID connect what is the difference betwen an Access token and an ID Token - >>>Access Token says who you are, what you wish to do and whether you have permission to do it. ID Token is the users identity. This is intended for your application Is Event Grid an ingestion or event service - >>>Event driven Is Event hub an ingestion or event driven service - >>>Ingestion A security principal is the entity requesting permission to perform an action. What are the 4 types of security principal? - >>>User Group Service Principal Managed Identity What is a service principal - >>>A service principal represents an application within a tenant (kind of a user - for the application) What is a managed identity - >>>An identity representing a cloud application What are the Redis Cache pricing tiers - >>>Basic Standard Premium Enterprise Enterprise(flash) Which is the minimum Redis Cache tier for live deployments - >>>Standard (or Premium)

What are the processes for removing items from a Redis Cache - >>>Scheduled Deletion (TTL) Manual Deletion Eviction (e.g. by memory pressures) What are the Redis Cache Eviction policies - >>>Volatile-lru (least recently used) Allkeys-lru noeviction Volatile-random Allkeys-random Volatile-ttl (least time remaining removed) *volatile = where a TTL has been set on the item What are the docker Environment variables available for an App service -

WEBSITES_CONTAINER_START_TIME_LIMIT WEBSITES_ENABLE_APP_SERVICE_STORAGE WEBSITE_WEBDEPLOY_USE_SCM What are the Web Test Availability types - >>>URL Ping Multi-step Web Custom (using application insights) Which Service Tier do I need if I want my Azure Key Vault to have Hardware Encryption (HSM)? - Premium Tier Standard Tier only has software encryption

CLI : AZ storage blob copy start Powershell : Start-AzStorageBlobCopy In Azure Key Vaults, what are the two types of container - >>>Vaults - storing software and HSM backed keys, secrets and certificates Managed hardware security module - only HSM backed keys In Azure key vault what is the CLI command to add a new key to the vault - >>>az keyvault secret set In Azure key vault what is the CLI command to read a key - >>>az keyvault secret show what are the three types of sampling in application insights? - >>>Adaptive Ingestion Fixed rate In Event Grid what are the common types of filtering? - >>>Subject Filtering Event Types Advanced Filtering How does event grid Subject filtering apply - >>>Allows matches on anything within the event subject. E.g. the file type or the container that the event is addressed to. https://learn.microsoft.com/en-us/azure/event-grid/event-filtering How does Event grid - Event type filtering apply - >>>Allows filtering by event type. E.g updates or deletions

For azure webapps, what additional parameter for the log tail command would filter out logging and warning info to leave only error messages in the log files - >>>--only-show-errors The Lease Blob command has 5 different modes. What are they? - >>>Aquire Renew Change Release Break What is the minimum app tier required to support autoscaling functionality - >>>Standard What are the app service plans in order from cheapest to most expensive - >>>Free Tier (F1) Shared (D1) Basic (B1 - B3) Standard (S1 - S3) Premium v2 (P1v2 - P3v2) Premium v3 (P1v3 - P3v3) Isolated Service Plan (I1 - I3) What is the minimum app service plan for Staging Environments - >>>Standard (and higher) How many staging slots are there in standard - >>>5 in standard 20 in premium What are the 2 powershell commands to create a certificate and add it into a keyvault - >>>New- AzKeyVaultCertificatePolicy

Not Actions Data Actions Not Data Actions In Azure security, what might psuedo user account for a web application be better known as -

Service Principal What is the recommended way for a Web App Service Principal to authenticate? - >>>Client certificate embedded into the application Considered more secure than a client secret authentication What are the 4 components of the change feed processor in Azure Cosmos DB - >>>The Monitor - where change is coming from store of data? The Lease - Stateful Storage and processing coordination across workers The host/compute - listens for changes The delegate - defines what to do with the changes What two indexing modes exist in Cosmos DB - >>>Consistent (set by policy on account) and none Can the blob storage change feed be used to trigger events? - >>>No the changefeed is simply a log of changes.

What is the best practice pattern for dealing with long running HTTP triggered Azure function app calls (e.g. timing out) - >>>Pass the HTTP trigger into an Azure service bus to be processed and return an immediate HTTP success response and defer the actual work in favour of immediate response. Keywork webhook What Microsoft Tool can be used to check if your ARM templates follow recommended practices? -

Azure resource manager test toolkit New- AzKeyVaultCertificatePolicy Not Actions Data Actions Not Data Actions In Azure security, what might psuedo user account for a web application be better known as - >>>Service Principal What is the recommended way for a Web App Service Principal to authenticate? - >>>Client certificate embedded into the application Considered more secure than a client secret authentication What are the 4 components of the change feed processor in Azure Cosmos DB - >>>The Monitor - where change is coming from store of data? The Lease - Stateful Storage and processing coordination across workers The host/compute - listens for changes The delegate - defines what to do with the changes What two indexing modes exist in Cosmos DB - >>>Consistent (set by policy on account) and none Can the blob storage change feed be used to trigger events? - >>>No the changefeed is simply a log of changes. What is the best practice pattern for dealing with long running HTTP triggered Azure function app calls (e.g. timing out) - >>>Pass the HTTP trigger into an Azure service bus to be processed and return an immediate HTTP success response and defer the actual work in favour of immediate response. Keywork webhook What Microsoft Tool can be used to check if your ARM templates follow recommended practices? - >>>Azure resource manager test toolkit What operation can you use to test ARM template changes without deploying the template - >>>what-if operation. This predicts the changes to existing resources if the template is deployed. If the code function AcquireLeaseAsync(null) is called on a block blob. What is the length of lease that is created - >>>Infinite lease if no parameter (or null) is passed. what c# function should be used to release an infinite lease on a block blob - >>>BreakLeaseAsync(0) The Monitor - where change is coming from store of data? The Lease - Stateful Storage and processing coordination across workers The host/compute - listens for changes The delegate - defines what to do with the changes What two indexing modes exist in Cosmos DB - >>>Consistent (set by policy on account) and none Can the blob storage change feed be used to trigger events? - >>>No the changefeed is simply a log of changes. What is the best practice pattern for dealing with long running HTTP triggered Azure function app calls (e.g. timing out) - >>>Pass the HTTP trigger into an Azure service bus to be processed and return an immediate HTTP success response and defer the actual work in favour of immediate response. Keywork webhook What Microsoft Tool can be used to check if your ARM templates follow recommended practices? - >>>Azure resource manager test toolkit What operation can you use to test ARM template changes without deploying the template - >>>what-if operation. This predicts the changes to existing resources if the template is deployed. If the code function AcquireLeaseAsync(null) is called on a block blob. What is the length of lease that is created - >>>Infinite lease if no parameter (or null) is passed. what c# function should be used to release an infinite lease on a block blob - >>>BreakLeaseAsync(0) or ReleaseLease(condition) possibly. What is the code process for updating metadata on a blob container - >>>GetPropertiesAsync Metadata.add SetMetadataAsync what is the Azure Instance Metadata Service (IMDS) endpoint? (Http) - >>>