Connect to and consume Azure services and third-party services (15–20%) Flashcards
Your company uses APIM policies to conrol access to APIs.
A client receives the following status response code when attempting to access the API:
403 Forbidden
The client was previously able to access the API. Subsequent attempts made after waiting receive the same response. APIM policies have not been recently modified.
You need to configure APIM policies to allow access. Which policy should oyu check?
Set usage quota by key
When the quota is exceeded, a 403 Forbidden status response code is returned.
You create an Azure Event Hub and you want to create a console application to retrieve all events from a specific partition.
You need to write code to accomplish the goal.
What should you do?
Implement the IEventProcessor interface
This interface defines a method named ProcessEventAsync that passes a collection of EventData instances representing the messages in the Event Hub You should not inherit the EventHbClient class. This class allows you to send messages to an EventHub You should not implement the IEvent interface. This interface reps a Windows Management Instrumentation (WMI) event, not an Azure Event Hubs event. You should not inherit the PartitionSender class. This class allows you to send messages to a specific partion in a Event Hub.
You are developing an order processing solution. Users can use a sales application that publishes orders to a topic in an Azure Service Bus queue. The topic is configured with the following label properties:
- Correlationld: a priority indicator for the order.
- ShipDestination: the country where the order will be shipped.
The solution needs to implement the following subscriptions:
- HighPriorityOrders: Handles all high priority orders.
- InternationalOrders: Handles orders in which the country is not the United States.
- AuditOrders: Receives all orders and stores a copy in a Blob Storage for auditing purposes.
You need to implement the best filter type for each subscription to maximize messages throughput.
Which filter type should you implement? To answer, select the appropriate options from the drop-down menus.
Choose the correct options
HighPriorityOrders :
Select your answer
InternationalOrders :
Select your answer
AuditOrders :
Select your answer
HighPriorityOrders: CorrelationFilter
InternationalOrders: SqlFilter
AuditOrders: No filter