Free PL-400 Exam Braindumps (page: 23)

Page 22 of 100
View Related Case Study

You need to reduce the number of Azure consumption API calls for User2. Which markup segment should you use?





Answer(s): C

Explanation:

Scenario: User2 reports that Azure consumption for API calls has increased significantly to 100 calls per minute in the last month.

Example:
In the following example, the rate limit of 10 calls per 60 seconds is keyed by the caller IP address. After each policy execution, the remaining calls allowed in the time period are stored in the variable remainingCallsPerIP.

<policies>
<inbound>
<base />
<rate-limit-by-key calls="10"
renewal-period="60"
increment-condition="@(context.Response.StatusCode == 200)"
counter-key="@(context.Request.IpAddress)"
remaining-calls-variable-name="remainingCallsPerIP"/>
</inbound>
<outbound>
<base />
</outbound>
</policies>

Note: The rate-limit-by-key policy prevents API usage spikes on a per key basis by limiting the call rate to a specified number per a specified time period. The key can have an arbitrary string value and is typically provided using a policy expression. Optional increment condition can be added to specify which requests should be counted towards the limit. When this call rate is exceeded, the caller receives a 429 Too Many Requests response status code.

Incorrect Answers:
A: With renewal-period="30" 200 calls/minute would be allowed. B: This would increase the calls/minute limit to 1000.


Reference:

https://docs.microsoft.com/en-us/azure/api-management/api-management-access-restriction-policies



View Related Case Study

HOTSPOT (Drag and Drop is not supported)
You need to correct the portal query issues.

Which code should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Scenario: The query for all registered users must return the data categorized by division. Queries must return only the Name and Sport fields. Queries return all fields. The query is as follows:


Box 1: GET ..$select=name, sport
Use select to return only the Name and Sport fields.

Box 2: $apply(groupby(sport ne null) Categorize by division, that is to sports.



A client requires that the system send an email from a button on their customer contact form.
You need to call the action from JavaScript.

Which two functions achieve this result? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

  1. Xrm.WebApi.online.executeMultiple()
  2. Xrm.WebApi.online.updateRecord()
  3. Xrm.WebApi.online.createRecord()
  4. Xrm.WebApi.online.execute()

Answer(s): A,D

Explanation:

Xrm.WebApi.online.executeMultiple executes a collection of action, function, or CRUD operations. Xrm.WebApi.online.execute executes a single action, function, or CRUD operation.


Reference:

https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-webapi/online/executemultiple
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-webapi/online/execute



A company has two development instances, two test instances, two staging instances, and one production instance.
The test team reports connection issues with the test and staging instances.
You need to identify which of the instances the testing team currently has access.
Which two URLs can you use? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

  1. https://globaldisco.crm.dynamics.com/api/discovery/v9.1/instances
  2. https://myorg.api.crm.dynamics.com/api/data/v9.1/
  3. https://dev.crm.dynamics.com/api/discovery/v9.1/instances
  4. https://disco.crm.dynamics.com/api/discovery/v9.1/
  5. https://dev.crm.dynamics.com/api/discovery/v9.1/instances(UniqueName=’myorg’)

Answer(s): C,E

Explanation:

Organization information is stored in the Instance entity of the Discovery service. To see the kind of information contained in that entity, send an HTTP GET request to the service for one of your instances.

GET https://dev.{servername}/api/discovery/v9.0/Instances(UniqueName='myorg')

Example: Get the details of a specific instance. If you leave out the GUID, all instances that the authenticated user has access to are returned.
GET https://dev.{servername}/api/discovery/v9.0/Instances(<guid>)


Reference:

https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/webapi/discover-url-organization-web-api






Post your Comments and Discuss Microsoft PL-400 exam with other Community members:

PL-400 Exam Discussions & Posts