Configure Event Grid for Secure and Time-Limited Event Subscriptions | Microsoft AZ-300 Exam

Secure and Time-Limited Event Subscriptions

Question

HOTSPOT -

You are creating an app that uses Event Grid to connect with other services. Your app's event data will be sent to a serverless function that checks compliance.

This function is maintained by your company.

You write a new event subscription at the scope of your resource. The event must be invalidated after a specific period of time.

You need to configure Event Grid to ensure security.

What should you implement? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Hot Area:

Explanations

Explanation

https://docs.microsoft.com/en-us/azure/event-grid/security-authentication

To configure Event Grid for security in the given scenario, you should implement the following options:

  1. Enable the ValidationCode property for the event subscription.
  2. Set the ValidationInterval to the required time period.

These options will ensure that the events sent to the serverless function are secure and validated.

Explanation:

Event Grid is a fully-managed event routing service in Azure that enables the creation of event-driven workflows. It can be used to react to events from various sources and take actions such as triggering a serverless function or sending a notification. In this scenario, the app uses Event Grid to connect with other services, and the event data is sent to a serverless function that checks compliance.

To ensure security, you need to configure Event Grid to validate the events sent to the serverless function. This can be done by enabling the ValidationCode property for the event subscription. ValidationCode is a property of the event subscription that specifies a validation code that Event Grid uses to validate the endpoint that the event is sent to. When an event is sent to the endpoint, Event Grid includes the validation code in the request. The endpoint must respond with the same validation code to confirm that it is a valid endpoint.

In addition, you should set the ValidationInterval to the required time period. ValidationInterval is a property of the event subscription that specifies the time period for which the validation code is valid. After this time period, the event subscription is invalidated, and a new validation code is required.

By enabling the ValidationCode property and setting the ValidationInterval, you can ensure that the events sent to the serverless function are validated and secure.