def transform_response_to_context_format(data: dict, keys: list) -> dict:
    """
    Transform API response data to suitable XSOAR context data.
    Remove 'x-ms' prefix and replace '-' to '_' for more readable and conventional variables.
    Args:
        data (dict): Data to exchange.
        keys (list): Keys to filter.

    Returns:
        dict: Processed data.

    """
    return {key.replace('x-ms-', '').replace('-', '_').lower(): value
            for key, value in data.items() if key in keys}