ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 234 - AZ-700 discussion

Report
Export

SIMULATION

Task 9

You plan to use VNET4 for an Azure API Management implementation.

You need to configure a policy that can be used by an Azure application gateway to protect against known web attack vectors. The policy must only allow requests that originate from IP addresses in Canada. You do NOT need to create the application gateway to complete this task.

A.
See the Explanation below for step by step instructions
Answers
A.
See the Explanation below for step by step instructions
Suggested answer: A

Explanation:

To configure a policy in Azure API Management that can be used by an Azure Application Gateway to protect against known web attack vectors and only allow requests from IP addresses in Canada, follow these steps:

Step-by-Step Solution

Step 1: Create or Access Your API Management Instance

Navigate to the Azure Portal.

Search for ''API Management services''and select your API Management instance.

Step 2: Configure the Policy

In the API Management instance, go to the''APIs''section.

Select the APIyou want to apply the policy to.

Go to the ''Design'' tab.

Select ''All operations''if you want to apply the policy to all operations, or select a specific operation.

Step 3: Add the Inbound Policy

In the Inbound processing section, click on''+ Add policy''.

Select ''IP filter''from the list of policies.

Add the IP address ranges for Canada. You can find the IP ranges for Canada from a reliable source or use a service that provides this information.

Here is an example of the XML configuration for the policy:

<inbound>

<ip-filter action='allow'>

<!-- Add other Canadian IP ranges as needed -->

</ip-filter>

<ip-filter action='deny'>

</ip-filter>

</inbound>

Save the policyto apply the changes.

Explanation:

IP Filter Policy: This policy allows you to filter incoming requests based on their IP addresses. By specifying the IP ranges for Canada, you ensure that only requests originating from these IPs are allowed.

Inbound Processing: Applying the policy in the inbound section ensures that the requests are filtered before they reach your API.

By following these steps, you can configure a policy in Azure API Management that restricts access to your API to only those requests originating from IP addresses in Canada, thereby enhancing security and compliance

asked 02/10/2024
Antonios Petropoulos
32 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first