Study guide

7.2 OCI Events, Event Rules & OCI Notifications Fan-Out

OCI 2026 Architect Professional 1Z0-997-26

Track your progress as you read

Finished sections get a check mark.

1 Chapter 1: Exam Overview & Architecture Foundations

1.1 Exam Logistics, the 2026 Blueprint & How to Use This Guide 1.2 The OCI Well-Architected Framework & Architectural Tradeoffs

2 Chapter 2: High Availability & Resilient Design

2.1 Availability Domains, Fault Domains, Instance Pools & Load Balancers 2.2 OCI DNS Traffic Steering, Geolocation & Health Checks 2.3 Block Volume Replication, Volume Groups & Backup Policies 2.4 Object Storage Replication, Versioning & Retention Rules (WORM)

3 Chapter 3: Full Stack Disaster Recovery

3.1 Full Stack Disaster Recovery: Protection Groups, Members & Permissions 3.2 DR Plans: Switchover, Failover, Prechecks & Plan Execution 3.3 DR Drills, Plan Customization & Operational Readiness

4 Chapter 4: Container Instances, OCIR & OCI DevOps

4.1 Containerization, Microservices & OCI Container Instances 4.2 OCI Container Registry: Repositories, Push & Pull, and Image Management 4.3 OCI DevOps: Code Repositories, Build Pipelines & Deployment Strategies

5 Chapter 5: OCI Kubernetes Engine (OKE)

5.1 OKE Cluster Types, Node Options & Cluster Creation 5.2 OKE Networking: VCN-Native Pod Networking vs. Flannel, Subnet Sizing & Load Balancers 5.3 OKE Workload Identity, Secrets & Persistent Storage

6 Chapter 6: Serverless Functions & API Gateway

6.1 OCI Functions: Concepts, Invocation Modes, Integrations & Image Security 6.2 API Gateway: Authentication, JWT Validation, Rate Limiting & Usage Plans

7 Chapter 7: Messaging & Event-Driven Design

7.1 OCI Streaming, OCI Queue & Messaging Patterns for Microservices 7.2 OCI Events, Event Rules & OCI Notifications Fan-Out

8 Chapter 8: Infrastructure as Code with Terraform & Resource Manager

8.1 Infrastructure as Code with Terraform and the OCI Provider 8.2 OCI Resource Manager: Stacks, Jobs, Drift Detection & Private Endpoints

9 Chapter 9: Identity & Multi-Tenancy Governance

9.1 IAM Policy Design: Verbs, Conditions, Dynamic Groups & Principals 9.2 Organizations Management, Governance Rules & Compartment Quotas

10 Chapter 10: Security Posture with Cloud Guard & Security Zones

10.1 Cloud Guard: Detector Recipes, Problems, Scores & Responders 10.2 Security Zones & Vulnerability Scanning

11 Chapter 11: Secure Access & Network Protection

11.1 Layered Network Security: Security Lists, NSGs & Private Access to Services 11.2 OCI Bastion: Managed SSH, Port Forwarding & SOCKS5 Sessions 11.3 Zero Trust Packet Routing (ZPR): Security Attributes & Intent-Based Policy 11.4 OCI Network Firewall: Policies, Inspection Routing, Tunnel Inspection & Private NAT

12 Chapter 12: Application & Data Protection: WAF, Certificates & Vault

12.1 OCI Web Application Firewall: Policies, Modules, Actions & Enforcement Points 12.2 OCI Certificates: Private CAs, TLS Certificates, Renewal & Integrations 12.3 OCI Vault Key Management: Vault Types, Protection Modes, Dedicated KMS & External KMS 12.4 Vault Secrets: Versions, Rotation States, Automatic Generation & Rotation

13 Chapter 13: Base Database Service & Autonomous AI Database

13.1 Base Database Service: DB Systems, RAC, Data Guard, Cloning & Maintenance 13.2 Autonomous AI Database: Workload Types, Deployment Options, Services & Connectivity 13.3 Operating Autonomous AI Database: Scaling, Cloning, Backups, Patching & Self-Tuning 13.4 Autonomous Data Guard & Backup-Based Disaster Recovery for Autonomous AI Database

14 Chapter 14: Recovery Service, Global Distribution & OCI Cache

14.1 Autonomous Recovery Service: Protection Policies, Real-Time Protection & Retention Lock 14.2 Globally Distributed Autonomous AI Database: Sharding, Data Placement & Replication 14.3 OCI Cache: Valkey and Redis Clusters, Sharding, Security & Cross-Region Replication

15 Chapter 15: Monitoring, Alarms & Notifications

15.1 OCI Monitoring: Metrics, Namespaces, Custom Metrics & Monitoring Query Language 15.2 Alarms & Notifications: Trigger Rules, Absence Alarms, Split Messages, Suppression & Delivery

16 Chapter 16: Logging, Audit, Connector Hub & Search

16.1 OCI Logging: Log Groups, Service Logs, Custom Logs & the Unified Monitoring Agent 16.2 Logging Search, the Logging Query Language & OCI Audit 16.3 Connector Hub: Moving Logs, Metrics, Queue Messages & Streams Between Services 16.4 OCI Search with OpenSearch & Resource Search for Observability

7.2 OCI Events, Event Rules & OCI Notifications Fan-Out

Key Takeaways Explain This Topic AI

OCI event messages follow the CNCF CloudEvents format, and the envelope's cloudEventsVersion field is 0.1.

Event Rules filter control-plane and data-plane activity by service name, event type, and JSON attribute criteria, matching resource parameters such as compartment ID or resource OCID.

The service routes matched events directly to three target types: OCI Notifications (ONS) for fan-out alerting, OCI Functions for serverless remediation, and OCI Streaming for real-time log ingestion.

OCI Notifications provides high-throughput pub/sub delivery across diverse endpoints including Email, HTTPS webhooks, Slack, PagerDuty, and OCI Functions, establishing the foundation for automated ChatOps and incident response.

Last updated: October 2026

  • 5.4 OCI Events, Event Rules & OCI Notifications Fan-Out
  • OCI Events Service Architecture & Principles

Enterprise cloud governance and modern Site Reliability Engineering (SRE) require near real-time awareness of operational state changes across the cloud estate. Rather than running inefficient polling daemons that query OCI APIs periodically, modern cloud architectures rely on the OCI Events Service .

OCI Events Service is a fully managed, decentralized event backbone that tracks operational lifecycle transitions, resource state modifications, and system alerts generated by OCI services. It operates entirely without compute agents, sidecars, or manual instrumentation: whenever an administrator provisions an Autonomous Database, an Object Storage object is uploaded, a compute instance unexpectedly stops, or OCI Cloud Guard detects a security posture drift, the underlying service control plane automatically publishes a structured event record to the Events Service.

Key architectural characteristics include:

Agentless : services emit events themselves; you only write rules.

Broad coverage : events can represent create, update, and delete operations, lifecycle state changes, or system events such as a backup completing or failing.

Object events are opt-in per bucket : Object Storage emits object-level events (such as object created) only when Emit Object Events is enabled on the bucket.

The CloudEvents Schema Anatomy

OCI events follow the Cloud Native Computing Foundation (CNCF) CloudEvents format. The envelope identifies the specification version in the cloudEventsVersion field, which is 0.1 for OCI events, and the event schema version in eventTypeVersion . The following is Oracle's example event emitted when a bucket is deleted:

Every event emitted in OCI contains a standardized JSON envelope encapsulating metadata and a resource-specific data payload: {

  • "cloudEventsVersion": "0.1",
  • "eventID": "<unique_ID>",
  • "eventType": "com.oraclecloud.objectstorage.deletebucket",
  • "source": "objectstorage",
  • "eventTypeVersion": "1.0",
  • "eventTime": "2019-01-10T21:19:24Z",
  • "contentType": "application/json",
  • "extensions": { "compartmentId": "ocid1.compartment.oc1..<unique_ID>" },
  • "data": {
  • "compartmentId": "ocid1.compartment.oc1..<unique_ID>",
  • "compartmentName": "example_name",
  • "resourceName": "my_bucket",
  • "resourceId": "ocid1.bucket.oc1..<unique_ID>",
  • "freeformTags": { "Department": "Finance" },
  • "additionalDetails": { "namespace": "example_namespace", "publicAccessType": "NoPublicAccess" }
  • }
  • }
  • Core Envelope Attributes

eventType : A reverse-domain string that identifies the action, such as com.oraclecloud.objectstorage.createobject or com.oraclecloud.objectstorage.deletebucket .

source : The service that emitted the event, such as objectstorage .

eventTime : The exact UTC ISO-8601 timestamp when the state transition occurred.

data : A rich JSON object providing the tenancy OCID, compartment OCID, resource OCID, friendly resource name, and additionalDetails containing service-specific contextual metadata.

Event Rules & Filtering Engine

Architects define Event Rules to capture specific operational occurrences within a tenancy or compartment hierarchy. When an event is emitted, the Events engine matches the event against active rules:

Compartment Boundary : Rules can be scoped to a single compartment or configured to evaluate all sub-compartments recursively down the tenancy tree.

Filtering Conditions :

Service Name : Filters by service provider (e.g., Compute, Storage, Database, IAM).

Event Type : Multi-select filtering on specific actions (e.g., Instance - Launch End , Instance - Terminate End ).

Attribute Filters : Exact key-value matching on fields within the data payload, such as resourceId , compartmentId , or nested additionalDetails attributes (e.g., matching a specific bucket name: data.additionalDetails.bucketName = 'financial-audits' ).

Advanced Pattern Matching : Custom JSON filter expressions enabling complex boolean logic ( AND , OR , wildcard prefixes).

Target Action Dispatch

When an event satisfies a rule's conditions, the Events Service immediately dispatches the event payload to up to three native target action types:

OCI Notifications (ONS) : Publishes the event JSON to an ONS Topic for multi-channel fan-out.

OCI Functions : Invokes an OCI Function directly, passing the full CloudEvent JSON payload to the function's container runtime for automated programmatic remediation.

OCI Streaming : Writes the event record to an OCI Stream partition, buffering high-volume audit logs for ingestion into external Kafka clusters, SIEM platforms, or data lakes.

OCI Notifications (ONS) Architecture & Multi-Channel Fan-Out

OCI Notifications (ONS) is a fully managed, publish/subscribe messaging engine designed for high-throughput, low-latency broadcast delivery. In an enterprise event-driven architecture, ONS acts as the fan-out distribution hub: OCI Events Service (Rule Matched)

  • │
  • ▼
  • ONS Topic: SecurityAlerts
  • ├── Protocol 1: Email ───────────────> CISO & SOC Distribution Lists
  • ├── Protocol 2: PagerDuty ───────────> Automated On-Call Escalation
  • ├── Protocol 3: Slack ───────────────> DevOps ChatOps Channel
  • ├── Protocol 4: HTTPS Webhook ───────> ServiceNow Incident Automation
  • └── Protocol 5: OCI Functions ───────> Auto-Quarantine Serverless Script
  • ONS Subscriptions & Protocol Endpoints

An ONS Topic is a communication channel to which publishers send messages. Consumers subscribe to topics using one or more supported protocols:

HTTPS (Custom Webhook) : Delivers messages via HTTP POST with JSON payloads to external incident management platforms (e.g., ServiceNow, Jira, custom webhooks). Supports basic authentication and custom verification headers.

PagerDuty : Native integration for operational incidents; automatically pages on-call engineers when critical production alarms fire.

Slack : Sends the message to a Slack channel. Other chat tools, such as Microsoft Teams, are reached through the HTTPS (Custom URL) protocol or a function.

Email : Sends human-readable operational alerts and metric summaries to engineering teams.

OCI Functions : Triggers a serverless function, allowing notification messages to drive secondary automated workflows.

SMS : Sends text messages to phone numbers in supported countries.

Notifications delivers each message at least once per subscription . If an endpoint does not acknowledge a message, the service retries immediately and then with exponential backoff until the subscription's retry duration ends ( two hours by default ), after which the message is discarded. Design receivers to be idempotent and to acknowledge quickly.

Enterprise Incident Response & Automation Patterns

By combining OCI Events and OCI Notifications, enterprise architects replace brittle cron jobs and manual runbooks with automated, event-driven remediation pipelines:

Pattern 1: Automated Security Posture Remediation

When a developer inadvertently modifies a Network Security Group to allow unrestricted ingress ( 0.0.0.0/0 on port 22):

OCI Cloud Guard detects the compliance violation and emits com.oraclecloud.cloudguard.problemdetected .

An Event Rule matches the event type and dispatches to two targets simultaneously:

An ONS Topic that sends a high-priority PagerDuty incident alert and posts an incident card to the #secops-alerts Slack channel.

An OCI Function that parses the resourceId and immediately removes the non-compliant CIDR rule using Resource Principals.

Pattern 2: Alarm-Driven Notification and Remediation

A Monitoring alarm on a production metric moves to the FIRING state.

The alarm publishes to an ONS topic.

The topic fans out to an email list, a PagerDuty service, and a function that collects diagnostic information or scales the affected resource.

When the alarm returns to OK, a second message tells the on-call team the incident has cleared.

Pattern 3: Serverless Document Processing Pipeline

A customer uploads an invoice PDF to an Object Storage bucket.

Object Storage emits com.oraclecloud.objectstorage.createobject .

An Event Rule filters on the bucket name invoices-inbound (the bucket has Emit Object Events enabled) and invokes an OCI Function.

The function reads the object, triggers OCI Document Understanding AI to extract invoice line items, and persists the structured records to Autonomous Database.

Target Action Comparison

Evaluation Dimension OCI Notifications (ONS) OCI Functions OCI Streaming

Primary Architectural Role Multi-channel broadcast & fan-out Programmable serverless remediation High-throughput log buffering & ingest

Delivery Model Push (pub/sub to endpoints) Push (direct container invocation) Pull (consumers read partition offsets)

Supported Destinations Email, PagerDuty, Slack, Webhooks, Fn Custom code (Java, Python, Go, etc.) Kafka clients, SIEM, Service Connectors

Execution Logic Message routing & formatting Full programmatic logic & API calls Append-only raw data persistence

Throughput Capacity Subject to Notifications service limits Scales up to the Functions concurrency limits 1 MB/s write per partition

Error & Retry Handling Retries with exponential backoff for up to 2 hours by default Function code must handle its own errors Messages retained 24 hours to 7 days for replay

Loading diagram... OCI Events Collection, Filtering Engine & Multi-Target Fan-Out Architecture