v1 Flashcards

1
Q

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?

A

Yes

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

Send a HTTP request that specifies an image size on an existing blob.

A

PUT https://whatever/home/image.png?comp=metadata

x-ms-meta-imagesize : Large

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

Which API management access restriction policy will ensure secure support for AD authentication based on a value passed as a request query parameter?

A

Validate JWT

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

What command will generate a docker container image?

A

az acr build

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

What would give an API client a 403 Forbidden without anything changing in permissions or request? (Which Azure API Management Policy)

A

Set usage quota by key

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

Is shared data caching faster than private data caching?

A

No. Private is faster.

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

Does private data caching guarantee that all application instances see the same view of cached data?

A

No.

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

What is the command string to grant access for an application to Azure Key Vault?

A

Set-AzKeyVaultAccessPolicy -VaultName -ServicePrincipalName (client id from Azure) - PermissionsToSecrets get

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

Filesystem and blob storage are supported for both Linux and Windows apps.

A

False. Linux apps support only filestorage.

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

When using blob storage, the storage account must be in the same region as the app service.

A

True.

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

Filesystem storage is designed for short-term logging and turns itself off after 12 hours.

A

Yes.

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

What Service Bus filter should be used to filter based on a set of conditions matched against one or more properties?

A

CorrelationFilter

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

What service bus filter should be used to for conditional expressions to filter messages?

A

SqlFilter

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

What three actions should be performed to encrypt a, on premises VHD and create a virtual machine on Azure?

A
  1. Encrypt on-premises VHD using BitLocker withoiut a TPM module. Upload to Azure storage.
  2. Run the Set-AzVMOSDick cmdlet
  3. Run New-AzVM cmdlet
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is an API revision?

A

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.

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

What parameter is required by SendAsync to send events to a Service Bus queue?

A

new Message(Encoding.UTF8.GetBytes( string ) )

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

What does the command “az webapp cors add” do in an API app?

A

This adds a CORS rule, which allows requests to the API to run without a CORS error.

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

What API management policy will require OpenID Connect and prevent anonymous usage?

A

validate-jwt

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

In Docker, what three actions should be performed to publish an app container image to a Container Registry?

A
  1. Build the dockerfile with docker build
  2. Tag the image
  3. Login in the registry with az acr login and push the image to the registry
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What consistency level with guarantee the highest availability and lowest latency for data reads from a SQL Cosmos db?

A

Eventual.

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

SendMessageAsync to a Service Bus requires what parameter type?

A

new ServiceBusMessage( string )

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

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.

A

Gremlin! It is designed for fully-managed data-based solutions for graph data.

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

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?

A
  1. FROM microsoft/dotnet:2.2-aspnetcore-runtime-stretch-slim AS baseWORKDIR /appEXPOSE 4453
  2. FROM microsoft/dotnet:2.2-sdk-stretch AS build WORKDIR /appDir RUN dotnet build “App.csproj”
  3. FROM build as publish RUN dotnet publish “App.csproj”
  4. FROM base as final WORKDIR /app COPY –from-publish /app .
  5. ENTRYPOINT [“dotnet”, “App,dll”]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Can you write triggers, stored procedures, or UDFs in a CosmosDB running Table API?

A

No! You can only write custom code in JS using the SQL API.

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

Can you write stored procedures in CosmosDB using C#?

A

No! CosmosDB only supports procs, triggers, and UDFs in JS to be executed by the db engine.

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

What is the data limit for Azure Service Bus?

A

80GB of messages.

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

What is the data limit for Azure Queue storage?

A

500TB of messages.

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

What does blob leasing do?

A

Prevent a blob from being overwritten.

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

Is table aliasing required when querying Azure Cosmos DB in SQL when referencing column names?

A

Yes!

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

What is an API header version?

A

Header versioning allows API consumers to add an HTTP header and access new API features.

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

What are the fields in an NCRONTAB expression?

A

second minute hour day month day-of-week

32
Q

When should a Confidential Client Application be used?

A

When the application is not interacting with users.

33
Q

What is a/the benefit of the Premium plan when using Azure functions?

A

The premium plans provides a pre-warmed instance of the function runtime. This ensures that the runtime environment is always processing incoming messages.

34
Q

What is the trigger of a Function?

A

Triggers are what cause a function to run. A trigger defines how a function is invoked and a function must have exactly one trigger. Triggers have associated data, which is often provided as the payload of the function.

35
Q

When would you authenticate with managed identity for an API?

A

This is used to authenticate with a backend service using the managed identity of the API Management service. This policy uses the managed identity to obtain an access token from AD for accessing a resource. It cannot be used for user control.

36
Q

What are the features of the data consistency level ‘Bounded staleness’?

A
  • Guarantees that data writes are returned in order with no gaps
  • Latency and adverse impact on data availability is minimized
  • Low processing overhead
  • Data is versioned
37
Q

What does the command AzCopy do?

A
  • Moves the blog to a different storage account
  • Asynchronous
  • If the copy fails it will be possible to restart the copy at or near the point of failure
38
Q

What are user analytics used for in App Insights?

A

You can use user analytics to know how many people used your application and how many users visited the campaign page. Users are counted by using anonymous IDs stored in browser cookies.

39
Q

How are results queries from CosmosDB formatted?

A

As JSON

40
Q

What can be used in the FROM clause of a CosmosDB query?

A

Any name! Queries are executed in the container context.

41
Q

How is the connection string formatted for an Event Hubs hub?

A

Endpoint=sb://.servicebus.windows.net/;EntityPath=

42
Q

What generations of VM is Azure Disk Encryption supported for?

A

1 and 2

43
Q

What disk image type is required for uploading a VM to Azure?

A

VHD

44
Q

Is a fixed-size disk required for a VM to be uploaded to Azure?

A

Yes!

45
Q

A test API request in the Dev Portal returns: 401 Access Denied due to missing subscription key. What is the fix?

A
  1. Include Ocp-Apim-Subscription-Key header in the http request
  2. Add the API to a product in the Azure portal
46
Q

What does the caching behavior ‘override’ do?

A

Ignores the duration provided in the request header and uses the duration config setting.

47
Q

Where do ASP.NET applications support saving session state data?

A

SQL Server DBs

48
Q

Service Bus topic vs. Service Bus queue vs. Event Hub

A

A service bus topic allows multiple applications to create subscriptions for receiving messages sent by the topic. The receiving app chooses in this case how fast it will process the messages. Messages end up in the deadletter queue if something goes wrong.

A service bus queue allows only one client to retrieve a message from the queue. Once it’s retrieved, it’s removed from the queue.

An Event Hub/Grid is similar to a service bus in that events are published and consumed by subscribers, but the consumer doesn’t get to decide how fast to handle the messages.

49
Q

What command reboots the nodes of a Redis cache?

A

Reset-AzRedisCache. Premium tier only.

50
Q

Can blobs be copies from an archive?

A

Yes, but they will have to be rehydrated to a hot/cold tier.

51
Q

What are the features of change feed in cosmos db?

A
  1. Enabled by default
  2. Does not capture deletes
  3. Does not guarantee order across partition key values
52
Q

Send a Service Bus Queue message

A

await Client.SendAsync( new Message( Encoding.UTF8.GetBytes( string ) ) )

53
Q

Azure CDN optimized for: General Media Streaming

A

Live/on demand video

54
Q

Azure CDN optimized for: General web delivery

A

large, static websites

55
Q

Azure CDN optimized for: Video on demand

A

video on demand!

56
Q

Azure CDN optimized for: Dynamic site acceleration

A

changing data with no benefit from caching

57
Q

Send Service Bus Message

A

SendMessageAsync( new ServiceBusMessage( string ) )

58
Q

Azure Service Bus

A

Queueing, FIFO, duplicate detection, 80gb max

59
Q

Storage Queue

A

no ordering, no FIFO, 500tb max

60
Q

Event Hub

A

Queueing, no FIFO

61
Q

What does Blob Leasing go?

A

Prevents deletion or overwriting of a blob

62
Q

Configure a docker image

A
  1. Expose port
  2. Build app
  3. Publish app
  4. Copy
  5. Set entrypoint
63
Q

Strong Data Consistency

A

No partial or uncommitted writes are returned. Highest latency, lowest availability

64
Q

Bounded Staleness

A

reads lag behind writes. Versioned.

65
Q

Session Consistency

A

Reads honor Consistent Prefix

66
Q

Consistent Prefix

A

Writes returned in order, including partial writes

67
Q

Eventual Consistency

A

No read guarantee. Lowest latency, highest availability.

68
Q

Create a Service Bus

A
  1. create Resource Group
  2. create Namespace
  3. create service bus queue
69
Q

Create and Deploy webapp

A
  1. Create group
  2. create appservice plan
  3. create webapp
  4. webapp deployment source
70
Q

What is managed identity?

A

Secure access without passing credentials.

71
Q

How do you monitor the CPU using of an AppService?

A

Monitor the AppService Plan. This contains the CPU usage, memory %, disk usage, and queue length stats

72
Q

API Version vs. Revision

A
Version = header value
Revision = url change
73
Q

Publish an ACR instance image

A

acr import –name –source -t (for Target image name)

74
Q

Regis SETEX

A

Set value AND expiration

75
Q

ACI Container Groups

A

Hosts a set of containers on the same host machine