Developer Cards Flashcards
What are two cons of serverless?
- Non-persistent
2. Non-continuous execution
Which four services are automation of prosesses?
- Microsoft Power Automate
- Azure Logic App
- Azure Function
- App Service WebJobs
Which service for automation of prosesses is design-first?
- Microsoft Power Automate
2. Azure Logic Apps
Which service for automation of prosesses is code-first?
- Azure Functions
2. App Service WebJobs
What is the difference between Azure Functions and App Service WebJobs?
- Azure Functions: scales automatically
- App Service WebJobs: does not scale automatically
Which service to choose if design-first and users will develop the workflow?
Microsoft Power Automate
Which service to choose if design-first and developers will develop the workflow?
Azure Logic App
Which service to choose if code-first and part of an existing App Service app?
App Service WebJobs
Which service to choose if code-first and need to customize JobHost?
Azure Function
Which service automates, orchestrate and integrate components with designing workflows graphical or in JSON?
Azure Logic App
Which service can create workflow with almost no development or IT experience?
Azure Logic App
Which service is part of Azure App Service to run program or script automatically?
App Service WebJobs
Which service runs simple code in cloud without infrastructure?
Azure Functions
What is it called when a cloud provider manages provisioning and maintenance of infrastructure?
Serverless computing
What are some benefits of serverless computing?
- Fully managed
- Pay-for-use
- Elastic
- Stateless logic
- Event driven
- Functions can be re-used
What are drawbacks of serverless computing?
- Execution time
2. Execution frequency
What is an execution context that hosts functions?
Function app
What logically structures functions and compute resources?
Function app
What service plan runs a function continuously on a VM?
Azure App Service plan
What service plan is serverless, elastic payment and has timeout?
Consumption Service plan
How many triggers can a function have?
1
What connects data and services to functions?
Bindings
In what format are bindings written?
JSON
What objects define how Azure functions are invoked?
Triggers
What trigger executes a function at consistent level?
Timer trigger
What is a CRON expression?
{second} {minute} {hour} {day} {month} {day of the week}
Four characters: * , - /
What key has a scope that applies to all functions inside the function app?
Host key
What key has a scope that applies to only one function?
Function key
What are the authorization levels in Azure?
- Function
- Anonymous
- Admin
What authentication level demands no authentication?
Anonymous
What authentication level needs only host key?
Admin
What authentication level needs both host key and function key?
Function
What are the three blob types in Azure Blob storage?
- Block blobs
- Append blobs
- Page blobs
What blob type is good for constantly updated blobs?
Append blobs
What blob type is good for frequent random write and read operations?
Page blobs
What is a HTTP trigger?
Executes a function with HTTP request
What is Blob trigger?
Executes a function when file uploaded or updated in Azure Blob storage
What is the path for files in Azure Blob storage?
{blob-container}/{filename}
What are the two forms of bindings?
- Input bindings
2. Output bindings
What four things do we need from a binding?
- Name
- Type (data/service)
- Direction (in/out)
- Connection (optional, name of app key setting with connection string).
In what format are bindings written?
JSON
What extensions of Azure functions perform long-lasting, stateful operations?
Durable Functions
What benefits are there to Durable functions?
- Serverless
- Managed state
- Event driven code
- Chaining functions
What benefits are there to orchestration functions?
- Define workflow in code
- Functions can be called async or non-async
- Output saved locally and can be used in subsequent functions
- Can dehydrate function and save state. Rehydrate and restore state when running again.
What are the three Durable Functions?
- Client
- Orchestrator
- Activity
What Durable Function is the entry point for creating a Durable Function and can run in reponse to event?
Client
What Durable Function orchestrates functions by describing how actions are executed and in order they run?
Orchestrator
What Durable Function is the basic unit of work in orchestration and contains the actual work in an orchestration?
Activity
Does Durable Functions or Logic Apps have the most built-in bindings?
Logic Apps
Does Durable Functions or Logic Apps have the most custom written activity?
Durable Functions
What service can monitor Durable Functions?
Azure Application Insights
What services can monitor Logic Apps?
- Azure portal
- Monitor logs
Where can Logic Apps be run?
Only in cloud
Where can Durable Functions be run?
Both locally and in cloud
Where can Durable Functions be run?
Both locally and in cloud
Draw each of these workflows:
- Function chaining
- Fan out/fan in
- Async HTTP APIs
- Monitor
- Human interaction
What can we use to develop and run functions locally with CLI?
Azure Function Core Tools
What command can we use to run Azure Function Core Tools?
func
Who do all functions in Azure belong to?
Functions app
What do functions in an app share?
Common config values
What do local functions belong to?
Functions project
What folder contains code and configurations files for functions?
Functions project
What command can we create functions project with?
func init
What file in functions project stores runtime config values and used both locally and in Azure?
host.json
What file in functions project stores config values that apply to functions only locally in Core Tools?
local.settings.json
What command can we create a new function?
func new
What command can we start functions locally?
func start
What command can we use to create function app?
az functionapp create
What command can we use to publish functions app to Azure?
func azure functionapp publish
Can Core Tools validate or test functions?
No
What service can write, debug and deploy Azure functions?
Azure portal
What is a mechanism for apps to nofity other services when event occurs via HTTP endpoints?
Webhook
What is a benefit to ensure secrets with Webhooks?
Hash signatures passed in request headers
What abstraction of series of technologies allows app two-way communication with client and server?
SignalR
What are two advantages of SignalR?
- Future-proof app
2. Allows apps to gracefully degrade
What service supports transport fallback?
SignalR
Does SignalR have persistent communication between client and server?
Yes
Does SignalR handle connection management automatically or manually?
Automatically
What two services can be used to build Microservices architecture?
- Azure Functions
- Azure API Management
What service allows us to construct an API from disparate microservices?
Azure API Management
What service is fully managed cloud service to publish, secure, transform, maintain and monitor APIs?
Azure API Management
What can Azure API Management enforce?
- Consistent rules
- Consistent security requirements
What two things are a datagram?
- Messages
2. Events
What datagram is meant for raw data?
Messages
What datagram sends the data itself?
Messages
What datagram are consumed by components?
Messages
What datagram is lightweight notification?
Events
What datagram can reference data address?
Events
What datagram does the sender have no expectations?
Events
What datagrams can be sent to none or many receivers?
Events
What datagram should we use to send either data itself or payload to be processed by receiver?
Messages
What datagram should we use to neither send the data itself nor the payload?
Events
What four Azure services relate to datagrams?
- Azure Queue Storage
- Azure Event Grid
- Azure Event Hubs
- Azure Service Bus
What three Azure services relate to queues?
- Azure Queue Storage
- Azure Service Bus Queue
- Azure Service Bus Topic
What queue service is a message broker system for enterprise apps?
Azure Service Bus Queue
What queue service can have multiple subscribers and queues are processed by subscriber branches?
Azure Service Bus Topic
What queue service uses Azure Storage to store large number of queues?
Azure Queue Storage
What restricts the capacity of messages through Azure Queue Storage?
Storage capacity
What queue service to choose if multiple receivers to handle message?
Azure Service Bus Topic
What queue service to choose if delivery guarantee, not too large queues (max 80 GB), publish/consume in batches?
Azure Service Bus Queues
What queue service to choose if need audit trail of messages in queue, large queues (over 80 GB) and track progress of message in queue?
Azure Queue Storage
What fully-managed event routing service runs on top of Azure Service Fabric?
Azure Grid
What service distributes events from different sources to different handlers?
Azure Grid
What are endpoints where publishers send events?
Topics
What are built-in topics called?
System topics
What are app and third-party topics called?
Custom topics
How large can event files be?
Up to 64 Kb
What format are event files?
JSON
What are endpoint to route events?
Event subscriptions
How can we filter events?
Event subscriptions
What are the five reasons for using Azure Event Grid?
- Simplicity: connect sources to subs in EG
- Advanced filtering: subs can control events from topics
- Fan-out: can subscribe to unlimited number of endpoints to same event and topic
- Reliability: retries event delivery up to 24 hours for each sub
- Pay-per-event: pay only for transmitted events
What is Azure Event Grid not used for?
Streams
What service is an intermediate for pub-sub communication pattern?
Events Hubs
Why is Events Hubs important?
- Optimized for high throughput
- Optimized for large number of pubs
- Optimized for security
- Optimized for resiliency
Which service allows us to build big data pipeline for processing millions of events/sec with low latency?
Events Hubs
How does Events Hubs transmit communication?
Partitions
What is the default number of partitions for Events Hubs?
4
What is the maximum size of a single publisher in Events Hubs?
1 Mb
What is Events Hubs used for?
- Authenticate large number of pubs
- Save stream to Data Lake or Blob
- Aggregation or analytics on data stream
- Reliable messaging or resiliency
What service can store relational databases?
Azure SQL Database
What service can store NoSQL databases?
CosmosDB
What do we call a logical group of database operations executed together?
Transactions
What is OLTP?
Online Transaction Processing
What is OLAP?
Online Analytical Processing
What acronym is used for transactional databases?
OLTP
Is CosmosDB a OLTP or OLAP?
OLTP
What is the difference between OLTP and OLAP?
- OLTP: many users; quick response; large data; highly available; small transactions
- OLAP: few users; slow response; less available; large and complex transactions
What can Azure Storage store?
- Blob
- Files
- Queues
- Tables
What is CORS?
Cross-origin resource sharing
What storing service supports CORS?
Azure Storage
What is a Storage account?
Group of set of Azure Storage services
What is the purpose of a Storage account?
Apply rules to all storages at the same time
Where is a Storage account included?
Resource groups (can hold many)
What is LRS?
Locally redundant storage
What is GRS?
Geo-redundant storage
What is ZRS?
Zone redundant storage
What storage replicates data three times within single physical location in primary region?
LRS
What storage copies data async three times within single physical location in multiple regions?
GRS
What storage copies data async across three Azure AZ in primary region?
ZRS
How is encryption at rest handled in Azure Storage?
Encrypted by Storage Service Encryption (SSE) with 256-bits AES
What service encrypts VMs?
Azure Disk Encryption
What service can handle passwords and keys?
Azure Key Vault
How can encryption in transit be handled in Azure Storage?
- Enable transport-level security between Azure and client
- Use HTTP
What service logs all operations on Azure Storage?
Storage Analytics
What are Storage account keys?
Shared keys that give access to everything on storage account
What is SAS?
Shared access signature
What string of security token can be attached to URI in Azure Storage?
SAS
What is the SAS level called to access specific resources?
Service level
What is the SAS level called to access service-level plus more resources and abilities?
Account level
What is the default access to Azure Storage?
All connections from clients on any network is accepted
What service detects anomalies in Azure Storage account activity?
Advanced Threat Protection
How is the security of Azure Data Lake Storage?
Inherits security from Azure Storage
What is a blob?
Unstructured data
Where does a blob reside?
Container
Can containers store containers?
No, only blobs
How many types of blobs are there?
3
What type of blob is good for random access read and writes?
Page blobs
What type of blob is specialized to support only appending data (not update or delete)?
Append blobs
What type of blob is good for different sizes uploaded independently and in parallel?
Block blobs
Which service recommends optimization of costs, availability, security, performance etc.?
Azure Advisor
Which service gives insight into cost, historical breakdown of cost, budgets, scheduled reports?
Azure Cost Management
Which service predicts and analyzes spending for new or existing services?
Azure TCO Calculator
Which license lets customers use Microsoft Server licenses for VMs on Azure?
Azure Hybrid Benefit
What is a resource group?
Logical container of resources
What must all resources belong to?
Resource group
How can resource groups have lifecycle policies?
Azure Policy
What allows type of permissions can we apply to resource groups?
RBAC - role-based access control
What service offers on-demand scalable computing resources?
Azure VMs
What service is the connection between Azure VMs and Azure services?
Virtual Networks
Which services can create Virtual Networks?
- Azure Resource Manager
- Azure Powershell
- Azure CLI
- Azure REST API
- Azure Client SDK
- Azure VM Extensions
- Azure Automation Services
What addresses does Azure reserve on subnets?
First and last
What is the default security between subnets?
No boundary between subnets
What can impose security on subnets?
Network Security Groups (NSG)
What is an availability set?
Logical feature such that a group of VMs are fault tolerant and not all are upgraded at same time
What does an Azure Resource consist of?
- VM
- Storage account for disks
- Virtual network
- Network interface to communicate on network
- Network Security Group(s) to secure network traffic
- Public internet access (optional)
How does the location of VM impact performance?
Close location to user gives low latency
How is the pricing model for VMs?
Depends upon services, hardware options and pricing
Can we resize VMs?
Yes, but running VMs must be rebooted for resizing to take place
What are some workload options for VMs?
- General purpose
- Compute optimized
- Memory optimized
- Storage optimized
- GPU
- High performance
What is the compute costs for VMs?
Cost per-hour-basis billed per-minute basis
What is the storage costs for VMs?
Charged separately for storage VM users
What is Reserved Virtual Machines (RI)?
Upfront purchase for 1-3 years in specific region. Good for continuous work and predictibility
How is the storage of a VM organized?
At least two disks:
- Disk 1: OS
- Disk 2: temp storage
Data in Azure Storage as Page blobs
What type of disks does Azure Storage support?
Managed and unmanaged disks
What service offers back-up with pay-as-you-go?
Azure Backup