v1 Flashcards
A service uploads files to blob storage. You need to design a system to process the files and then resave them on upload. You configure a Blob storage trigger that is triggered from Blob upload - does that meet the goal?
Yes
Send a HTTP request that specifies an image size on an existing blob.
PUT https://whatever/home/image.png?comp=metadata
x-ms-meta-imagesize : Large
Which API management access restriction policy will ensure secure support for AD authentication based on a value passed as a request query parameter?
Validate JWT
What command will generate a docker container image?
az acr build
What would give an API client a 403 Forbidden without anything changing in permissions or request? (Which Azure API Management Policy)
Set usage quota by key
Is shared data caching faster than private data caching?
No. Private is faster.
Does private data caching guarantee that all application instances see the same view of cached data?
No.
What is the command string to grant access for an application to Azure Key Vault?
Set-AzKeyVaultAccessPolicy -VaultName -ServicePrincipalName (client id from Azure) - PermissionsToSecrets get
Filesystem and blob storage are supported for both Linux and Windows apps.
False. Linux apps support only filestorage.
When using blob storage, the storage account must be in the same region as the app service.
True.
Filesystem storage is designed for short-term logging and turns itself off after 12 hours.
Yes.
What Service Bus filter should be used to filter based on a set of conditions matched against one or more properties?
CorrelationFilter
What service bus filter should be used to for conditional expressions to filter messages?
SqlFilter
What three actions should be performed to encrypt a, on premises VHD and create a virtual machine on Azure?
- Encrypt on-premises VHD using BitLocker withoiut a TPM module. Upload to Azure storage.
- Run the Set-AzVMOSDick cmdlet
- Run New-AzVM cmdlet
What is an API revision?
A revision allows you to add non-breaking changes to a web API, such as the addition of operations. Users can access the revision by using a different query string at the same endpoint.
What parameter is required by SendAsync to send events to a Service Bus queue?
new Message(Encoding.UTF8.GetBytes( string ) )
What does the command “az webapp cors add” do in an API app?
This adds a CORS rule, which allows requests to the API to run without a CORS error.
What API management policy will require OpenID Connect and prevent anonymous usage?
validate-jwt
In Docker, what three actions should be performed to publish an app container image to a Container Registry?
- Build the dockerfile with docker build
- Tag the image
- Login in the registry with az acr login and push the image to the registry
What consistency level with guarantee the highest availability and lowest latency for data reads from a SQL Cosmos db?
Eventual.
SendMessageAsync to a Service Bus requires what parameter type?
new ServiceBusMessage( string )
What is the most appropriate Cosmos DB API for an application that with gather large amounts of data and use graph database algorithms for analysis.
Gremlin! It is designed for fully-managed data-based solutions for graph data.
What 5 commands should a Dockerfile contain to build an application, then deploy the app to be accessible over port 443, then execute the .dll when the container starts?
- FROM microsoft/dotnet:2.2-aspnetcore-runtime-stretch-slim AS baseWORKDIR /appEXPOSE 4453
- FROM microsoft/dotnet:2.2-sdk-stretch AS build WORKDIR /appDir RUN dotnet build “App.csproj”
- FROM build as publish RUN dotnet publish “App.csproj”
- FROM base as final WORKDIR /app COPY –from-publish /app .
- ENTRYPOINT [“dotnet”, “App,dll”]
Can you write triggers, stored procedures, or UDFs in a CosmosDB running Table API?
No! You can only write custom code in JS using the SQL API.
Can you write stored procedures in CosmosDB using C#?
No! CosmosDB only supports procs, triggers, and UDFs in JS to be executed by the db engine.
What is the data limit for Azure Service Bus?
80GB of messages.
What is the data limit for Azure Queue storage?
500TB of messages.
What does blob leasing do?
Prevent a blob from being overwritten.
Is table aliasing required when querying Azure Cosmos DB in SQL when referencing column names?
Yes!
What is an API header version?
Header versioning allows API consumers to add an HTTP header and access new API features.