public static boolean isRequestResourceQuotaManaged(RestRequest restRequest) {
    RequestPath requestPath = (RequestPath) restRequest.getArgs().get(REQUEST_PATH);
    return !(restRequest.getRestMethod() == RestMethod.OPTIONS || requestPath.matchesOperation(Operations.GET_PEERS)
        || requestPath.matchesOperation(Operations.GET_CLUSTER_MAP_SNAPSHOT) || requestPath.matchesOperation(
        Operations.ACCOUNTS) || requestPath.matchesOperation(Operations.STATS_REPORT) || requestPath.matchesOperation(
        Operations.ACCOUNTS_CONTAINERS) || requestPath.matchesOperation(Operations.RESOURCE_INFO));
  }
Returns checks if user request quota should be applied to the request.
Request quota should not be applied to Admin requests and OPTIONS requests.
@param restRequest {@link RestRequest} object.
@return {@code true} if user request quota should be applied to the request. {@code false} otherwise.
ambry-quota/src/main/java/com/github/ambry/quota/QuotaUtils.java