Oracle Cloud Infrastructure Developer - Exam Study Notes
Oracle Cloud Infrastructure Developer - Exam Study Notes
Study Notes
17 Jul 2020
Table Of Contents
Preparation
Compartment
Developing Serverless Application with Oracle Functions
OCI Events
Service Communication Patterns
Deployments
Container Engine for Kubernetes
Object Storage
API Gateway
Resource Manager
Key Management
Streaming Service
Preparation
Compartment
You can invoke a function that you’ve deployed to Oracle Functions in different ways:
Making a signed HTTP request to the function’s invoke endpoint. Every function has
an invoke endpoint.
With Oracle Functions, you can write code in Java, Python, Node, Go, and Ruby
If you encounter an unexpected error when using an Fn Project CLI command, you can
find out more about the problem by starting the command with the string DEBUG=1 and
running the command again.
You have to specify a policy statement to give the Oracle Functions service access to the
network resources in the compartment: Allow service FaaS to use virtual-network-
family in compartment <compartment-name>
OCI Events
Buy me a coffee
Circuit breaker pattern prevents the service from performing an operation that is likely to
fail. For example, a client service can use a circuit breaker to prevent further remote calls
over the network when a downstream service is not functioning properly
Deployments
Blue-green deployment is a technique that reduces downtime and risk by running two
identical production environments called Blue and Green. At any time, only one of the
environments is live, with the live environment serving all production traffic. For this
example, Blue is currently live and Green is idle.
Canary deployments are a pattern for rolling out releases to a subset of users or servers.
The idea is to first deploy the change to a small subset of servers, test it, and then roll the
change out to the rest of the servers.
OCI Service Broker for Kubernetes is an implementation of the Open Service Broker API.
OCI Service Broker for Kubernetes is specifically for interacting with Oracle Cloud
Infrastructure services from Kubernetes clusters.
OCI File Services and OCI Block Volume can be used as persistent volumes.
kubectl explain command is used to list the fields for supported resources
If you provided a public SSH key when creating the node pool in a cluster, the public key
is installed on all worker nodes in the cluster. On UNIX and UNIX-like platforms (including
Solaris and Linux), you can then connect through SSH to the worker nodes using the ssh
utility (an SSH client) to perform administrative tasks.
To create an internal load balancer hosted on a public subnet, add the following
annotation in the metadata section of the manifest file:
service.beta.kubernetes.io/oci-load-balancer-internal: "true"
To create an internal load balancer hosted on a private subnet, add both following
annotations in the metadata section of the manifest file:
service.beta.kubernetes.io/oci-load-balancer-internal: "true" and
service.beta.kubernetes.io/oci-load-balancer-subnet1:
"ocid1.subnet.oc1..aaaaaa....vdfw"
Buy me a coffee
Object Storage
storage tier → standard/archive
API Gateway
Having created an API gateway and deployed one or more APIs on it, you’ll typically want to
limit the rate at which front-end clients can make requests to back-end services. For example,
to:
maintain high availability and fair use of resources by protecting back ends from being
overwhelmed by too many requests
"type": "STOCK_RESPONSE_BACKEND" indicates that the API gateway itself will act as the back
end and return the stock response you define
Resource Manager
JOB - Instructions to perform the actions defined in your configuration. Only one job at a
time can run on a given stack
Plan - Parses your Terraform configuration and creates an execution plan for the
associated stack. The execution plan lists the sequence of specific actions planned to
provision your Oracle Cloud Infrastructure resources.
Apply - Applies the execution plan to the associated stack to create (or modify) your
Oracle Cloud Infrastructure resources.
Destroy - Releases resources associated with a stack. Released resources are not deleted.
Import State - Sets the provided Terraform state file as the current state of the stack. Use
this job to migrate local Terraform environments to Resource Manager.
Buy me a coffee
Key Management
Streaming Service
Retention → 7 days
Partition → 5 read/s and 1000 emit per/s , read rate 2 MB/s write rate 1 MB/s
A consumer can read messages from one or more streams. Each message within a stream
is marked with an offset value, so a consumer can pick up where it left off if it is
interrupted.
Buy me a coffee