def rule(event):
    if all(
        [
            event.deep_get("operationName", default="").startswith("MICROSOFT.NETWORK/DNSZONES"),
            any(
                [
                    event.deep_get("operationName", default="").endswith("/WRITE"),
                    event.deep_get("operationName", default="").endswith("/DELETE"),
                ]
            ),
        ]
    ):
        return True
    return False
