Connect and consume Azure services and third party services Flashcards

1
Q

What is Azure API Management? What are the key systems?

A

A cloud offering for helping organizations publish APIs to external, partner, and internal developers.

The API Gateway
The Azure Portal
The Developer Portal
Products

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

What is the API gateway?

A

It is the endpoint that:

  • Accepts API calls and routes them to your backends
  • Verifies API keys, JWT tokens, certificates, and other credentials
  • Enforces usage quotas and rate limits
  • Transforms your API on the fly without code modifications
  • Logs call metadata
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the Azure portal?

A

The administrative interface where you set up your API program:

  • Define or import API schema
  • Package APis into products
  • Setup policies
  • Manage users
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the developer portal?

A

A place were developers can:

  • Read api documentation
  • Try out an API via the interactive console
  • Get an account and subscribe to get API keys
  • Access analytics on their usage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are products in API management?

A

Groupings of APIs that developers subscribe to in order to access those APIs. They can be Open or Protected

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

Discuss Groups in Product management

A

Groups come in three forms:

  • Administrators - Azure subscription administrators.
  • Developers - Authenticated developer portals that build applications using the APIs.
  • Guests - Unauthenticated developer portal users, such as prospective customers. View don’t call.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are policies for APIm?

A

Policies allow the azure portal to change the behavior of the API through configuration. Generally XML / JSON formating.

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

How are policies configured?

A

They have four parts - inboud, backend, outbound, and on-error

Generally:

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

What is an Advanced Policy?

A

Advance policies can:

  • Control flow
  • Forward requests
  • Limit concurrency
  • Log to Event Hub
  • Mock response
  • Retry
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Show examples of the various advanced policies:

A

Control flow:

Forward request:

Limit concurrency:

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

What is a subscription key?

A

A way to secure the APIs to only those that have a validly generated key. They are auto-generated anc can be passed through in the headers of a client request.

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

What are the two types of queue mechanisms in Azure? What are the differences?

A

Service Bus queues - Part of broader messaging infrastructure. Integrate with applications or components. Span lots of protocols, contracts, domains, networks.
Storage queues - Part of Azure Storage infrastructure - allow you to store large number of messages.

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

When would you consider using service bus queues?

A
  • You solution needs to receive messages without having to poll the queue
  • You solution requires to provide a guaranteed FIFO
  • You solution needs to support automatic duplicate detection
  • You want your application to process messages as parallel long-running streams
  • Your solution requires transactional behavior
  • Your application handles messages that can exceed 64 KB but won’t approach 256KB limit
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

When would you consider using storage queues?

A
  • Your application must store over 80 GB of messages
  • Your application wants to track progress for processing a message in the Queue
  • You require server side logs of all the transactions executed against your queues.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are some advanced features of Service buses?

A
  • Message sessions
  • Autoforwarding
  • Dead-letter queue
  • Scheduled delivery
  • Message deferral
  • Batching
  • Transactions
  • Filtering and actions
  • Autodelete on idle
  • Duplicate detection
  • Geo-disaster recovery
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is Azure Event Grid?

A

Azure event grid is an eventing backplane that enables event-driver, reactive programming. It uses the publish-subscripe model.

17
Q

What are the five concepts in event grid?

A

Events - what happened
Event sources - Where it took place
Topics - Where the event gets published
Event subscriptions - Who needs to see the topics
Event handlers - The app or service reacting to the event

18
Q

What is an event schema? What does it look like?

A

4 sets of string properties:

[
  {
    "topic": string,
    "subject": string,
    "id": string,
    "eventType": string,
    "eventTime": string,
    "data":{
      object-unique-to-each-publisher
    },
    "dataVersion": string,
    "metadataVersion": string
  }
]
19
Q

What is event delivery durability? How does it work?

A

Even delivery durability means that event grid tries to deliver each event at least once.

It is configured by a retry schedule and retry policy

Retry policy is configures by:

  • max-delivery-attempt
  • event-time-to-live
20
Q

How can you control access to events?

A

Through RBAC - built in roles include:

  • Event Grid Subscription Reader
  • Event Grid Subscription Contributor
  • Event Grid Contributor
  • Event Grid Data Sender
21
Q

How can you use azure services to consume event grid events?

A
  • Azure logic apps with event grid connector
  • Azure automation via webhook
  • Azure functions with event grid trigger
22
Q

What type of filtering can you do on events?

A
  • Event type
  • Subject begins with or ends with
  • Advanced fields and operators
23
Q

What is Azure Event Hubs? What are some key features?

A

It is a big data streaming platform and event ingestion service. It can receive and process millions of events per second.

Fully managed PaaS
Real-time and batch processing
Scalable
Rich ecosystem

24
Q

What are the key features of event hubs?

A
  • Event hub client - the primary interface
  • Event hub produce - type of client that serves as a source of telemetry data, diagnostics information, usage, etc.
  • Event hub consumer - Type of client that reads information from the Even hub
  • Partition - ordered sequence of events that is held in an event hub
  • Consumer group - a view of the entire event hub
  • Event receivers - any entity that reads event data
  • Throughput units or processing unit - prepurchased units of capacity
25
Q

How does event hubs capture work?

A

It is a time-retention durable buffer. Each partition is an independent segment of data and is consumed independently, given retention periods.

Capture enables you to specify your own azure blob storage account and container, or Azure data lake store, which are used to store the captured data.