You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: In this unit, you will answer questions based on a scenario.
7
-
ms.date: 07/12/2023
8
-
author: dlepow
9
-
ms.author: danlep
10
-
ms.topic: unit
11
-
durationInMinutes: 5
12
-
content: |
13
-
[!include[](includes/3-knowledge-check.md)]
14
-
quiz:
15
-
title: Knowledge check
16
-
questions:
17
-
- content: "Which policy would you use to ensure that the Board Pricing API sends all its responses in XML format?"
18
-
choices:
19
-
- content: "JSONP"
20
-
isCorrect: false
21
-
explanation: "This policy permits JSON with padding, which is a cross-domain request technique and has nothing to do with XML. To ensure XML output, use Convert JSON to XML."
22
-
- content: "Convert JSON to XML"
23
-
isCorrect: true
24
-
explanation: "This policy recodes any response in JSON format as XML text."
25
-
- content: "Find and replace string in body"
26
-
isCorrect: false
27
-
explanation: "This policy finds a specified string and replaces it with another. To ensure XML output, use Convert JSON to XML."
28
-
- content: 'Where would you configure your policy to ensure XML responses?'
29
-
choices:
30
-
- content: "Inbound"
31
-
isCorrect: false
32
-
explanation: "Set this policy in the Outbound tag, because you want to modify responses as they are sent to users."
33
-
- content: "Outbound"
34
-
isCorrect: true
35
-
explanation: "Set this policy in the Outbound tag, because you want to modify responses as they are sent to users."
36
-
- content: "On-error"
37
-
isCorrect: false
38
-
explanation: "Set this policy in the Outbound tag, because you want to modify responses as they are sent to users."
39
-
- content: "What scope would you use for the policy that ensures XML responses?"
40
-
choices:
41
-
- content: "Global scope for the API Management instance"
42
-
isCorrect: false
43
-
explanation: "Do not use the `<json-to-xml>` policy with global scope, because this change would force all responses from the Sales API to use XML, but the website expects JSON responses."
44
-
- content: "Product scope for the Sales product"
45
-
isCorrect: false
46
-
explanation: "Do not use the `<json-to-xml>` policy with product scope, because this change would force all responses from the Sales API to use XML, but the website expects JSON responses. Also, this scope does not apply to the Board Pricing API, which is not part of the Sales product."
47
-
- content: "API scope for the Board Pricing API"
48
-
isCorrect: true
49
-
explanation: "Use the `<json-to-xml>` policy with API scope for the Board Pricing API to ensure that all responses are sent in XML, even if developers coded them to return JSON."
description: In this unit, you answer questions based on a scenario.
7
+
ms.date: 06/09/2025
8
+
author: dlepow
9
+
ms.author: danlep
10
+
ms.topic: unit
11
+
durationInMinutes: 5
12
+
content: |
13
+
[!include[](includes/3-knowledge-check.md)]
14
+
quiz:
15
+
title: Knowledge check
16
+
questions:
17
+
- content: "Which policy would you use to ensure that the Board Pricing API sends all its responses in XML format?"
18
+
choices:
19
+
- content: "JSONP"
20
+
isCorrect: false
21
+
explanation: "This policy permits JSON with padding, which is a cross-domain request technique and has nothing to do with XML. To ensure XML output, use Convert JSON to XML."
22
+
- content: "Convert JSON to XML"
23
+
isCorrect: true
24
+
explanation: "This policy recodes any response in JSON format as XML text."
25
+
- content: "Find and replace string in body"
26
+
isCorrect: false
27
+
explanation: "This policy finds a specified string and replaces it with another. To ensure XML output, use Convert JSON to XML."
28
+
- content: 'Where would you configure your policy to ensure XML responses?'
29
+
choices:
30
+
- content: "Inbound"
31
+
isCorrect: false
32
+
explanation: "Set this policy in the Outbound tag, because you want to modify responses as they're sent to users."
33
+
- content: "Outbound"
34
+
isCorrect: true
35
+
explanation: "Set this policy in the Outbound tag, because you want to modify responses as they're sent to users."
36
+
- content: "On-error"
37
+
isCorrect: false
38
+
explanation: "Set this policy in the Outbound tag, because you want to modify responses as they're sent to users."
39
+
- content: "What scope would you use for the policy that ensures XML responses?"
40
+
choices:
41
+
- content: "Global scope for the API Management instance"
42
+
isCorrect: false
43
+
explanation: "Don't use the `<json-to-xml>` policy with global scope, because this change would force all responses from the Sales API to use XML, but the website expects JSON responses."
44
+
- content: "Product scope for the Sales product"
45
+
isCorrect: false
46
+
explanation: "Don't use the `<json-to-xml>` policy with product scope, because this change would force all responses from the Sales API to use XML, but the website expects JSON responses. Also, this scope doesn't apply to the Board Pricing API, which isn't part of the Sales product."
47
+
- content: "API scope for the Board Pricing API"
48
+
isCorrect: true
49
+
explanation: "Use the `<json-to-xml>` policy with API scope for the Board Pricing API to ensure that all responses are sent in XML, even if developers coded them to return JSON."
Copy file name to clipboardExpand all lines: learn-pr/azure/improve-api-performance-with-apim-caching-policy/includes/1-introduction.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
-
Many organizations use APIs to publish data and services. Customers and partners can call these APIs from a client: desktop applications, mobile apps, web apps, and other systems. If your API is popular, you may need to optimize its performance to guarantee service to users.
1
+
Many organizations use APIs to publish data and services. Customers and partners can call these APIs from a client: desktop applications, mobile apps, web apps, and other systems. If your API is popular, you might need to optimize its performance to guarantee service to users.
2
2
3
-
Suppose you're a developer for a board game company. A product line your company produces has recently become popular. The volume of requests from your retail partners to your inventory API is growing quickly - much faster than the rate your inventory changes. You'd like your API to respond to requests rapidly without incurring load on your API.
3
+
Suppose you're a developer for a board game company. A product line your company produces has recently become popular. The volume of requests from your retail partners to your inventory API is growing quickly - more quickly than the rate your inventory changes. You'd like your API to respond to requests rapidly without incurring load on your API.
4
4
5
-
You use Azure API Management to host your API. You're considering using an API Management policy to cache compiled responses to requests. You think that this technique will be a way to optimize performance. You want to learn how to write API Management policies and how to use them to set up and control a cache. Then you want to write policies that accelerate responses to users.
5
+
You use Azure API Management to host your API. You're considering using an API Management policy to cache compiled responses to requests. You think that this technique could be a way to optimize performance. You want to learn how to write API Management policies and how to use them to set up and control a cache. Then you want to write policies that accelerate responses to users.
6
6
7
7
## Learning objectives
8
8
9
9
In this module, you'll:
10
10
11
-
- Identify whether or not a policy exists for the desired behavior
12
-
- Choose a policy scope
13
-
- Configure and apply a caching policy in the Azure portal
11
+
- Identify whether or not a policy exists for the desired behavior.
12
+
- Choose a policy scope.
13
+
- Configure and apply a caching policy in the Azure portal.
0 commit comments