Bookmark this page

Quiz: Managing and Customizing API Gateways

    Choose the correct answers to the following questions:

  1. 1.

    What is an APIcast gateway? (Choose one.)

    A

    The component that holds the information about routing policies.

    B

    The UI component where you can manage your APIs.

    C

    The database that 3scale uses for storing data.

    D

    An NGINX-based gateway that is responsible for receiving and managing the incoming traffic from your APIs.

  2. 2.

    Which two of the following statements about the APIcast gateway are correct? (Choose two.)

    A

    You can only deploy an APIcast gateway by using the official operator.

    B

    When you deploy a self-managed gateway, it is automatically applied to all products.

    C

    By default, two APIcast gateways are provided: staging and production.

    D

    You can deploy an APIcast gateway in your own machine. Then, you can replace any of the default gateways by your self-managed gateway.

  3. 3.

    Consider the following manifest. Which two of the following statements are correct? (Choose two.)

    apiVersion: apps.3scale.net/v1alpha1
    kind: APIcast
    metadata:
      name: custom-apicast
    spec:
      adminPortalCredentialsRef:
        name: apicast-auth
      deploymentEnvironment: staging
      exposedHost:
        host: custom-apicast.example.com
        tls:
        - {}
    A

    The self-managed APIcast gateway replaces the production default gateway.

    B

    The self-managed APIcast authenticates against the APIManager by using the apicast-auth secret.

    C

    The self-managed APIcast is accessible at the custom-apicast.example.com host.

    D

    The manifest is not correct.

  4. 4.

    Which two of the following statements about policies are correct? (Choose two.)

    A

    A policy might conditionally alter how the request is handled.

    B

    You can not manage policies by using the 3scale Toolbox CLI.

    C

    The 3scale APIcast policy is not required.

    D

    Each policy within a chain can alter or add information to the request before it is sent to the next policy.

  5. 5.

    Which two of the following statements about policies are correct? (Choose two.)

    A

    The IP Check policy configures allowlists and blocklists by using a list of IP addresses or blocks of addresses.

    B

    The OAuth 2.0 Token Introspection policy integrates with RH-SSO to verify realm roles as a request allowlist or blocklist.

    C

    The Maintenance Mode policy responds to all requests with a preconfigured status code and message.

    D

    The JWT Claim Check removes the user_key parameter requirement from all requests to the product.

  6. 6.

    Consider that you have exported the policies of a product by using the 3scale policies export command. Consider also that the following YAML is the result of the export command. Which one of the following statements about the YAML is correct? (Choose one.)

    ---
    - name: custom_metrics
      version: builtin
      configuration:
        rules:
        - metric: status-203
          increment: '1'
          condition:
            combine_op: and
            operations:
            - left_type: liquid
              right_type: plain
              left: "{{status}}"
              right: '203'
              op: matches
      enabled: true
    - name: apicast
      version: builtin
      configuration: {}
      enabled: true
    A

    The product contains two policies: custom-metrics and apicast.

    B

    One of the policies is not enabled.

    C

    The product contains three policies: custom-metrics, apicast and default.

    D

    The apicast policy has higher a priority than the custom-metrics policy.

Revision: do240-2.11-40390f6