Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Oracle · OCI Foundations

Containers and functions

OCI Foundations · Lesson 9 of 15 · 1:01:49

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the Oracle Cloud Infrastructure Foundations Associate exam (1Z0-1085-26). In this lesson: Kubernetes Engine (OKE), Container Registry, Container Instances, and OCI Functions for serverless code. Includes three original practice questions, with Kettlebrook Fitness, a fictional gym chain, as the example.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Containers and code

Kettlebrook's developers now package the booking website as containers. They also have a small nightly job that sends class reminders, and a piece of code that resizes each photo that a member uploads. This lesson covers Kubernetes Engine, Container Registry, Container Instances, and OCI Functions.

Containers and Kubernetes

A container packages an application with everything it needs to run, so it runs the same way everywhere. Containers start fast and share the operating system of their host, which makes them lighter than virtual machines. Kubernetes is the open source platform that runs containers at scale: it places them on worker nodes, restarts them when they fail, and scales them. But running Kubernetes yourself means managing its control plane, its upgrades, and its nodes.

Kubernetes Engine

OCI Kubernetes Engine, or OKE, formerly Container Engine for Kubernetes, is a managed Kubernetes service, certified as conformant by the Cloud Native Computing Foundation. Oracle manages the control plane, and you choose the worker nodes: managed nodes are compute instances in your tenancy that you partly manage, and self-managed nodes are for advanced customization, like special GPU shapes. Virtual nodes give a serverless Kubernetes experience: Oracle manages them fully, and you set the CPU and memory of each pod rather than each node. Virtual nodes need an enhanced cluster, while managed nodes work in both basic and enhanced clusters. And you work with your clusters through standard Kubernetes tools, like kubectl.

Container Registry

Container Registry, also called OCIR, is a registry managed by Oracle, to store and share container images, like Docker images. A repository can be private, for internal use, or public, so that anyone with its address can pull the images. Developers push images with the standard Docker command line, and services like OKE pull them to run the containers. And through a service gateway, resources in a private subnet reach the registry without going through the internet.

Container Instances

Container Instances runs containers with no server to manage, and without Kubernetes. You give the container images and a few settings, and choose the OCPUs and memory, since container instances run on flexible shapes. Each container instance gets the same isolation as a virtual machine. It fits workloads that need no orchestration: an API, a web application, a build job, or a nightly task like Kettlebrook's class reminders.

OCI Functions

OCI Functions, formerly Oracle Functions, is a serverless platform: you write small blocks of code, and Oracle runs and scales them, with no instance to provision. It is built on the Fn Project, an open source engine that you can also run anywhere, to develop and test a function on your own computer. You deploy a function as a container image, kept in Container Registry, or, for supported languages like Python or Java, as a simple archive of code. A function runs when it is invoked: from the CLI, with a signed HTTP request, or in response to an event, like a new photo in a bucket. And you pay only for the resources consumed while the function runs.

Recap

Let's recap. Containers package an application with all that it needs, and Kubernetes runs them at scale. OKE is managed Kubernetes: Oracle runs the control plane, and you choose managed, self-managed, or virtual nodes. Container Registry stores your container images, in private or public repositories. Container Instances runs containers with no servers and no orchestrator to manage. And OCI Functions runs small blocks of code when they are invoked, on the open source Fn Project.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. Kettlebrook wants to run its containers on Kubernetes, without managing any worker nodes or their capacity. What should it choose?

    • OKE with virtual nodes
    • OKE with self-managed nodes
    • Kubernetes on its own instances
    • A dedicated virtual machine host
    Show the answer

    OKE with virtual nodes

    Virtual nodes are fully managed by Oracle, for a serverless Kubernetes experience. “OKE with self-managed nodes” would leave the nodes to Kettlebrook, for advanced customization. “Kubernetes on its own instances” would also make the team run the control plane. And “A dedicated virtual machine host” would only isolate virtual machines, with no Kubernetes at all.

  2. Kettlebrook’s nightly reminder job runs in one container, needs no orchestration, and the team wants no server to manage. What fits best?

    • An OKE cluster with managed nodes
    • A bare metal instance
    • Container Registry alone
    • A container instance
    Show the answer

    A container instance

    Container Instances runs containers with no server to manage, and without an orchestrator. “An OKE cluster with managed nodes” would bring Kubernetes, and nodes to look after, for one container. “A bare metal instance” would give a whole physical server, with everything to manage. And “Container Registry alone” would only store the image, without running it.

  3. Each time a member uploads a profile photo, Kettlebrook wants a short piece of code to resize it, with no server running between uploads. What fits?

    • A virtual machine that runs all the time
    • An OKE cluster with managed nodes
    • A function invoked by an event
    • A container instance that never stops
    Show the answer

    A function invoked by an event

    OCI Functions runs the code only when an event invokes it, and charges only for that time. “A virtual machine that runs all the time” would keep a server running between uploads. “An OKE cluster with managed nodes” would add a cluster and its nodes, for a few seconds of work. And “A container instance that never stops” would keep a container running all the time, for nothing.