5.2 OCI Data Science & Managed Machine Learning Services

Key Takeaways

  • OCI Data Science is a fully managed, collaborative, and serverless platform designed for data science teams to build, train, catalog, and deploy custom machine learning models at enterprise scale.
  • Notebook Sessions provide managed JupyterLab workbenches with dynamic compute shape switching (between CPU and GPU shapes) and persistent block storage attached across reboots.
  • Conda Environments provide isolated, pre-built and custom Python runtimes (supporting PyTorch, TensorFlow, Scikit-learn, and Hugging Face) that can be shared across teams via Object Storage.
  • The OCI Accelerated Data Science (ADS) SDK automates exploratory data analysis, AutoML model selection, evaluation metrics, and model interpretability using SHAP and LIME.
  • While OCI Data Science handles open-source, heterogeneous ML on arbitrary compute, Oracle Machine Learning (OML) performs in-database machine learning inside Autonomous Database, eliminating data movement.
Last updated: September 2026

5.2 OCI Data Science & Managed Machine Learning Services

[!NOTE] Exam Grounding: In the 1Z0-1122-26 examination, questions on the PaaS tier focus on the operational mechanics of OCI Data Science and its architectural comparison with Oracle Machine Learning (OML). Candidates must understand the function of Notebook Sessions, Conda Environments, the Accelerated Data Science (ADS) SDK, the Model Catalog, Model Deployments, and the fundamental distinction between open-source ML on managed compute (OCI Data Science) versus in-database ML (OML in Autonomous Database).


OCI Data Science Platform Overview

OCI Data Science is a fully managed, serverless, and collaborative platform engineered for data scientists and machine learning engineers. Building enterprise-grade machine learning models historically required teams to spend substantial time provisioning physical servers, configuring graphics driver dependencies, installing complex Python library versions, and building custom microservice wrappers for deployment.

OCI Data Science eliminates this operational friction by providing a turnkey, cloud-native workbench where data scientists can concentrate entirely on exploratory analysis, algorithm experimentation, model tuning, and business impact. The platform abstracts infrastructure management while preserving full flexibility to leverage open-source machine learning frameworks, including Scikit-learn, XGBoost, LightGBM, PyTorch, TensorFlow, and Hugging Face Transformers.

+-----------------------------------------------------------------------------------+
|                         OCI DATA SCIENCE PLATFORM WORKBENCH                       |
+-----------------------------------------------------------------------------------+
  [1. PROJECTS]         Logical collaborative workspaces organizing team assets
         │
         ▼
  [2. NOTEBOOKS]        Managed JupyterLab sessions with persistent storage & dynamic shapes
         │
         ▼
  [3. CONDA ENVS]       Curated & published isolated Python runtimes (PyTorch, TensorFlow)
         │
         ▼
  [4. ADS PYTHON SDK]   AutoML, automated EDA, model profiling, and SHAP/LIME explainability
         │
         ▼
  [5. JOBS & PIPELINES] Ephemeral unattended batch training runs & multi-step DAG workflows
         │
         ▼
  [6. MODEL CATALOG]    Central auditable repository storing weights, metadata, & schemas
         │
         ▼
  [7. MODEL DEPLOYMENT] Managed, autoscaled HTTP REST endpoints with load balancing & logs
+-----------------------------------------------------------------------------------+

Core Components of OCI Data Science

Mastering OCI Data Science for the Foundations exam requires a detailed understanding of its six primary architectural building blocks:

1. Projects & Notebook Sessions

  • Projects: The top-level organizing container in OCI Data Science. A project groups related assets—including notebook sessions, jobs, pipelines, models, and deployments—under a shared business initiative (e.g., "Customer-Churn-Prediction-2026").
  • Notebook Sessions: Interactive, browser-based JupyterLab development environments hosted on dedicated OCI compute instances. Data scientists author Python code, query databases, visualize distributions, and prototype algorithms.
  • Dynamic Compute Shape Switching: A standout architectural feature of OCI Data Science notebook sessions. A data scientist can initiate exploratory analysis on an economical, low-cost CPU shape (e.g., VM.Standard.E4.Flex with 2 OCPUs and 32 GB RAM) and subsequently modify the session compute shape to a massive GPU accelerator (e.g., VM.GPU.A10.1 or BM.GPU4.8) when model training demands intensive parallel computation. Crucially, the attached block storage volume remains persistent, preserving all project files, notebooks, Conda environments, and configurations across shape adjustments.
  • Storage Persistence: Every notebook session is backed by an elastic OCI Block Volume (configurable up to several terabytes). When a data scientist deactivates or stops a notebook session to conserve compute costs, the storage volume persists intact. Upon restarting the session, the environment restores exactly as left.

2. Conda Environments

Managing Python package dependencies across a team of data scientists is notoriously difficult due to library version conflicts and operating system incompatibilities. OCI Data Science resolves this through Conda Environments:

  • Pre-Built Data Science Environments: Oracle provides dozens of curated, pre-tested Conda environments optimized for specific ML tasks (e.g., General Machine Learning, Computer Vision with PyTorch, Deep Learning with TensorFlow, Natural Language Processing with Hugging Face). These environments include all necessary drivers (CUDA, cuDNN) and foundational libraries.
  • Custom & Published Conda Environments: Data scientists can clone an existing environment, install proprietary internal libraries or specific package versions via pip or conda, and publish the customized environment as an archive to OCI Object Storage. Once published, any team member or automated training job can instantiate an identical, reproducible runtime environment with a single configuration flag.

3. OCI Accelerated Data Science (ADS) SDK

The OCI Accelerated Data Science (ADS) SDK is a specialized, open-source Python library developed by Oracle and pre-installed in all OCI Data Science environments. ADS accelerates every stage of the machine learning workflow through high-level abstractions:

  • Automated Exploratory Data Analysis (EDA): ADS provides automated data profiling methods that analyze raw DataFrames, generating rich visualizations of statistical distributions, missing values, skewness, and pairwise correlations with a single line of code.
  • Automated Machine Learning (AutoML): ADS AutoML automates the laborious tasks of feature selection, algorithm candidate evaluation, hyperparameter tuning, and model selection. It intelligently tests multiple algorithm families and recommends the optimal model based on a chosen evaluation metric (such as AUC-ROC or F1-score).
  • Model Explainability & Interpretability (MLX): Modern regulatory standards demand that machine learning decisions be interpretable. ADS integrates model-agnostic explainability frameworks—including SHAP (Shapley Additive exPlanations) and LIME (Local Interpretable Model-agnostic Explanations)—allowing practitioners to quantify global feature importance and evaluate local explanations for individual predictions.
  • Model Serialization & Artifact Preparation: ADS automatically generates the standardized deployment artifacts required by the Model Catalog, including boilerplate scoring scripts (score.py) and runtime dependency manifests (runtime.yaml).

4. The Model Catalog

The Model Catalog serves as an enterprise-grade, centralized repository for storing, versioning, auditing, and sharing trained machine learning models across an organization:

  • Model Artifact: A model is saved to the catalog as a compressed zip archive containing:
    1. The serialized model weights (e.g., a .joblib, .pkl, .onnx, or .pt file).
    2. score.py: A Python script containing two mandatory functions: load_model() (which loads the weights into memory upon container initialization) and predict() (which accepts incoming JSON payloads, executes inference, and formats the output response).
    3. runtime.yaml: Specifies the precise Conda environment and runtime architecture required to execute inference.
  • Input & Output Schema Definitions: The catalog records strict schema metadata (schema.json), documenting the expected feature names, data types, and output formats to prevent production data mismatch errors.
  • Model Provenance & Auditing: The Model Catalog captures the complete lineage of the model, recording the originating Git repository, commit hash, training script, user identity, and parent notebook session or pipeline run. This provenance tracking is critical for enterprise governance and compliance audits.

5. Model Deployments

Once a model is registered in the Model Catalog, transitioning it to production is accomplished via OCI Data Science Model Deployments:

  • Managed Real-Time HTTP Endpoints: Model Deployments package the model artifact into a fully managed container running behind a high-availability OCI Load Balancer exposed via a synchronous HTTP REST API endpoint.
  • Autoscaling & Zero Downtime: Administrators configure minimum and maximum compute instance counts. OCI automatically scales the serving fleet up or down based on incoming request velocity or CPU/memory saturation thresholds. Rolling zero-downtime updates allow teams to update model versions without dropping active client connections.
  • Logging & Monitoring: Model Deployments integrate natively with OCI Logging Service, emitting dedicated Access Logs (tracking latency, status codes, and traffic volume) and Predict Logs (capturing stdout/stderr outputs, inference payloads, and runtime exceptions).

6. Jobs & ML Pipelines

  • OCI Data Science Jobs: Allows data scientists to run repeatable, unattended machine learning tasks (such as large-scale data cleansing, model training, or batch scoring) on ephemeral compute shapes. The user defines an executable script (Python, Bash) or custom container image; OCI automatically spins up the target compute shape (CPU or GPU), executes the job, saves output artifacts to Object Storage, and immediately terminates the compute instances upon completion to eliminate idle costs.
  • ML Pipelines: A managed workflow orchestration engine that coordinates multi-step machine learning workflows structured as a Directed Acyclic Graph (DAG). A pipeline can chain sequential or parallel steps—for example, Step 1: Data Ingestion -> Step 2: Feature Validation -> Step 3: Model Training -> Step 4: Model Evaluation -> Step 5: Conditional Deployment to Model Catalog.

OCI Data Science vs. In-Database ML (Oracle Machine Learning - OML)

A frequent source of exam questions on 1Z0-1122-26 is comparing OCI Data Science with Oracle Machine Learning (OML). Both reside in the PaaS tier, but they embody fundamentally different architectural philosophies:

+-----------------------------------------------------------------------------------+
|              DATA MOVEMENT PARADIGM: OCI DATA SCIENCE VS OML                      |
+-----------------------------------------------------------------------------------+

  OCI DATA SCIENCE (Compute-Centric / External ML):
  [Autonomous Database]  ══════> Network Extract (ETL) ══════> [OCI Data Science]
  (Data Lake / Storage)                                        (Managed CPU/GPU Nodes)
  * Strength: Arbitrary open-source packages (PyTorch, Hugging Face, Scikit-learn)
  * Trade-off: Data must be extracted and moved across the network into memory

  ORACLE MACHINE LEARNING (Data-Centric / In-Database ML):
  [Autonomous Database (ADW / ATP)]
  ┌─────────────────────────────────────────────────────────────────┐
  │  Database Storage <────── Zero Movement ──────> Database Kernel │
  │                                                 (In-DB ML Engine)│
  └─────────────────────────────────────────────────────────────────┘
  * Strength: ZERO data movement; runs directly inside the database engine
  * Trade-off: Limited to built-in in-database algorithms & SQL/Python interfaces
+-----------------------------------------------------------------------------------+

Detailed Service Comparison

Feature DimensionOCI Data ScienceOracle Machine Learning (OML)
Primary Host EnvironmentManaged compute instances running JupyterLabOracle Autonomous Database (ADW / ATP)
Data Movement ArchitectureData is extracted from storage/databases and loaded into notebook/job memoryZero Data Movement: Algorithms execute directly inside the database kernel
Algorithm EcosystemComplete open-source ecosystem: PyTorch, TensorFlow, Scikit-learn, XGBoost, Hugging FaceOver 30 specialized in-database algorithms (Classification, Regression, Clustering, Association)
Supported LanguagesPython, Bash (custom containers support any language)SQL, PL/SQL, Python (OML4Py), R (OML4R)
Hardware AccelerationFlexible CPU shapes and high-end NVIDIA GPU shapes (A100, H100, A10)Uses database compute resources (Exadata Database Machine scale)
Deployment FormatContainerized HTTP REST endpoints via Model DeploymentsIn-database scoring via SQL queries, or REST endpoints via OML Services
Ideal Enterprise Use CaseDeep learning, computer vision, natural language processing, complex custom pipelinesMassive relational data warehouses, real-time SQL scoring, data that cannot leave the database

Strategic Architectural Decision Rules for the Exam

  • Choose Oracle Machine Learning (OML) when: Enterprise data already resides inside Oracle Autonomous Database, data governance policies strictly forbid exporting data over the network, or the organization wants business analysts to run predictive queries directly via standard SQL statements.
  • Choose OCI Data Science when: The machine learning workflow requires cutting-edge open-source frameworks (e.g., PyTorch deep neural networks, transformer LLMs), involves unstructured media (images, audio, video), requires custom Conda runtime environments, or needs dynamic GPU acceleration.
Loading diagram...
End-to-End Machine Learning Workflow in OCI Data Science
Test Your Knowledge

A data scientist begins working on a fraud detection initiative using an OCI Data Science notebook session. During the initial exploratory data analysis phase, the scientist utilizes a cost-effective 2-core CPU compute shape. When moving to deep neural network training, the workload requires a powerful NVIDIA GPU shape. What capability of OCI Data Science enables this transition without losing files or environment configurations?

A
B
C
D
Test Your Knowledge

An enterprise machine learning team must ensure that every production model is accompanied by an audit trail linking it to its source training code, input/output data schemas, and runtime environment dependencies. Which component of OCI Data Science acts as the central auditable repository for storing and managing these model artifacts?

A
B
C
D
Test Your Knowledge

A financial institution maintains 15 terabytes of highly sensitive credit transactions stored in an Oracle Autonomous Data Warehouse. Internal data security policies strictly prohibit transferring or extracting transactional records out of the database network perimeter to external compute virtual machines. Which machine learning solution should the architecture team select?

A
B
C
D