Interview Questions and Answers
Freshers / Beginner level questions & answers
Ques 1. What is Oracle Cloud Infrastructure (OCI) and how is it different from traditional cloud platforms?
Oracle Cloud Infrastructure (OCI) is Oracle’s second-generation cloud platform designed to provide high-performance computing, networking, and storage services for enterprise workloads. OCI is built with a strong focus on security, predictable performance, and isolation between tenants. Unlike many first-generation cloud providers that use shared virtualization layers, OCI provides bare metal servers, dedicated virtual machines, and strong network isolation using Virtual Cloud Networks (VCN). OCI architecture separates the control plane from the data plane to improve reliability and security. It also provides features such as regional isolation, availability domains, fault domains, and integrated identity and access management. OCI is particularly optimized for enterprise workloads such as Oracle databases, ERP systems, analytics, and high-performance applications. Another key difference is its flat network architecture which reduces latency compared to traditional hierarchical network models used by earlier cloud providers.
Example:
A company running an Oracle Autonomous Data Warehouse can deploy it in OCI with dedicated networking through a VCN and private subnet, while accessing it through a load balancer or API Gateway for secure enterprise access.
Ques 2. What are Regions, Availability Domains, and Fault Domains in OCI?
OCI organizes its infrastructure into Regions, Availability Domains (ADs), and Fault Domains (FDs) to ensure high availability and fault tolerance. A Region is a localized geographic area that contains one or more Availability Domains. Each Availability Domain is an isolated data center within the region with independent power, cooling, and networking infrastructure. Fault Domains are subdivisions within an Availability Domain that isolate hardware failures and maintenance events. By distributing resources across multiple ADs and FDs, applications can remain highly available even if one component fails. Regions allow disaster recovery across geographies, ADs protect against data center failures, and FDs protect against rack-level hardware failures.
Example:
If an application deploys three compute instances in different Fault Domains within the same Availability Domain, a hardware failure in one rack will not affect the other instances.
Ques 3. What is a Virtual Cloud Network (VCN) in OCI and how does it work?
A Virtual Cloud Network (VCN) is a customizable private network in Oracle Cloud Infrastructure that allows users to launch OCI resources such as compute instances, databases, and load balancers in a logically isolated network environment. A VCN is similar to a traditional on-premises network but operates in the cloud. It allows users to define CIDR blocks, create subnets (public or private), configure route tables, set up gateways, and apply security lists or network security groups. Public subnets allow resources to access the internet through an Internet Gateway, while private subnets restrict direct internet access and typically use a NAT Gateway or Service Gateway for controlled communication. VCNs allow hybrid connectivity using VPN or FastConnect to integrate on-premises environments with cloud infrastructure.
Example:
A company may create a VCN with CIDR 10.0.0.0/16 and two subnets: a public subnet for load balancers and a private subnet for databases. The public subnet connects through an Internet Gateway while the private subnet uses a NAT Gateway.
Ques 4. What are Compartments in OCI and why are they important?
Compartments in OCI are logical containers used to organize and isolate cloud resources within a tenancy. They enable administrators to manage access control, apply policies, and track resource usage across different teams or projects. Compartments can be nested hierarchically and resources can be moved between compartments if needed. They are essential for governance because IAM policies in OCI are defined at the compartment level. This allows organizations to control which users or groups can access specific resources without affecting the entire tenancy. Compartments also help with cost tracking, auditing, and resource lifecycle management.
Example:
A company may create separate compartments such as 'Development', 'Testing', and 'Production'. Developers may have full access in the Development compartment but only read access in the Production compartment.
Ques 5. What is a Tenancy in Oracle Cloud Infrastructure (OCI)?
A Tenancy in Oracle Cloud Infrastructure is the root container that represents an organization's entire cloud environment within OCI. When a company signs up for OCI, a unique tenancy is created for that organization. All cloud resources such as compute instances, databases, networks, storage, and compartments exist within this tenancy. The tenancy provides the highest level of administrative control and security boundaries. Administrators manage identity, access policies, billing, and resource organization within the tenancy. Compartments are created under the tenancy to logically organize resources. Policies defined in the tenancy determine which users or groups can access specific resources. Tenancy-level governance ensures centralized control over the entire cloud infrastructure while still allowing teams to operate independently within compartments.
Example:
A company named 'ABC Corp' creates an OCI account. The system creates a tenancy called 'ABC-Corp-Tenancy'. Inside this tenancy, the company creates compartments like Dev, QA, and Production to organize resources.
Ques 6. What is Object Storage in OCI and what are its storage tiers?
Object Storage in OCI is a highly scalable and durable storage service designed to store large amounts of unstructured data such as images, videos, backups, logs, and application data. Data is stored as objects inside buckets and can be accessed via APIs, SDKs, or the OCI Console. OCI Object Storage provides extremely high durability by replicating data across multiple storage nodes. There are two primary storage tiers: Standard Storage and Archive Storage. Standard Storage is designed for frequently accessed data and offers low-latency retrieval. Archive Storage is designed for infrequently accessed data such as long-term backups and compliance archives, and retrieval may take several hours. Lifecycle policies can automatically move objects between tiers to optimize storage costs.
Example:
A company stores application logs in Standard Object Storage for quick access. After 30 days, a lifecycle rule automatically moves the logs to Archive Storage to reduce storage costs.
Ques 7. What are OCI Fault Domains and why are they important in compute deployment?
Fault Domains in OCI are logical groupings of hardware and infrastructure within an Availability Domain. Each Availability Domain contains three Fault Domains that represent separate physical infrastructure such as different power supplies, cooling systems, and network switches. When deploying multiple compute instances, distributing them across Fault Domains ensures that a hardware failure or maintenance event affecting one domain does not impact other instances. This architecture improves application resilience and reduces downtime risk.
Example:
A high-availability application deploys three compute instances across Fault Domain 1, Fault Domain 2, and Fault Domain 3 within the same Availability Domain to ensure service continuity even if one domain experiences hardware failure.
Ques 8. What is OCI Block Volume and how is it different from Object Storage?
OCI Block Volume is a high-performance persistent storage service designed for compute instances. It provides block-level storage similar to traditional hard disks and can be attached to virtual machines or bare metal instances. Block Volumes are suitable for applications that require low latency, high IOPS, and consistent performance such as databases, enterprise applications, and transactional systems. In contrast, Object Storage is designed for storing large amounts of unstructured data such as backups, images, and logs. Block Volume supports features like snapshots, backups, resizing, and cloning, which makes it useful for enterprise workloads requiring persistent storage. Object Storage stores data as objects within buckets and is accessed through APIs rather than being attached as a disk.
Example:
A MySQL database running on an OCI compute instance stores its data files on an attached Block Volume for high I/O performance.
Ques 9. What is OCI File Storage Service (FSS) and when should it be used?
OCI File Storage Service (FSS) is a fully managed shared file system service that allows multiple compute instances to access the same file storage simultaneously using the NFS protocol. It is ideal for workloads that require shared access to files across multiple servers. FSS automatically scales as storage demand increases and provides high availability and durability. It is commonly used for enterprise applications, content management systems, analytics workloads, container storage, and media processing systems where multiple compute nodes need concurrent access to shared files.
Example:
In a web application cluster, multiple application servers may access shared user-uploaded files stored in OCI File Storage Service.
Ques 10. What is OCI Notifications Service?
OCI Notifications Service is a messaging service used to send alerts and messages to subscribers when specific events occur. It works with other OCI services such as Monitoring, Events, and Alarms to notify administrators about system changes or performance issues. Notifications can be delivered through multiple channels including email, SMS, HTTPS endpoints, or Oracle Cloud Functions. Topics are created to group subscribers, and messages are published to these topics when events occur.
Example:
When CPU utilization of a compute instance exceeds 90%, an OCI Monitoring alarm triggers a notification that sends an email alert to system administrators.
Ques 11. What is the difference between Public Subnet and Private Subnet in OCI?
A Public Subnet in OCI allows resources to communicate directly with the internet through an Internet Gateway. Instances in a public subnet typically have public IP addresses and can accept inbound internet traffic depending on security rules. A Private Subnet does not allow direct internet access. Instances in private subnets do not have public IP addresses and are typically used for backend services such as databases or internal applications. Private subnet resources can still access external services using a NAT Gateway or Service Gateway without exposing them to inbound internet traffic.
Example:
A web server may run in a public subnet so users can access it from the internet, while the database server runs in a private subnet for security.
Ques 12. What is OCI Resource Tagging and why is it important?
OCI Resource Tagging is a mechanism used to organize and categorize cloud resources using key-value metadata labels. Tags help manage large cloud environments by enabling easier identification, automation, cost tracking, and governance. OCI supports two types of tags: defined tags and free-form tags. Defined tags are created in a namespace and provide structured tagging with policy enforcement, while free-form tags are simple key-value pairs without strict governance. Tagging helps organizations implement cost allocation, automate operations, and enforce compliance policies across resources.
Example:
A compute instance may have tags such as 'Department: Finance' and 'Environment: Production' to track usage and cost allocation.
Ques 13. What is OCI Cost Analysis and how does it help organizations?
OCI Cost Analysis is a tool that helps organizations monitor and analyze cloud spending across their tenancy. It provides detailed reports on resource usage and costs across compartments, services, and tagged resources. The service allows filtering and grouping of cost data to identify cost drivers and optimize cloud usage. Organizations can use cost analysis to track budgets, identify underutilized resources, and improve financial governance of cloud operations.
Example:
A company analyzes its monthly spending using OCI Cost Analysis and identifies that unused compute instances in the development environment are generating unnecessary costs.
Ques 14. What is an Availability Domain in Oracle Cloud Infrastructure (OCI)?
An Availability Domain (AD) in OCI is a physically isolated data center within a region. Each availability domain contains independent power, cooling, and network infrastructure, ensuring that failures in one domain do not impact others. Availability domains are designed to provide high availability and fault tolerance for applications. When deploying mission-critical systems, resources such as compute instances, databases, and load balancers can be distributed across multiple availability domains to ensure redundancy. Not all OCI regions have multiple availability domains; some regions operate with a single AD but still provide fault tolerance through fault domains within that AD.
Example:
An enterprise application deploys compute instances in AD-1 and AD-2 within the same region to ensure that if one data center fails, the application continues running in the other.
Ques 15. What is the difference between Region and Availability Domain in OCI?
A Region in OCI is a geographically localized area that contains one or more availability domains. Each region is completely isolated from other regions and is located in a specific geographic location such as India, the United States, or Europe. An Availability Domain is a fault-isolated data center within a region. Regions help organizations meet data residency, compliance, and latency requirements by deploying applications closer to users. Availability domains provide redundancy within a region to ensure high availability of applications.
Example:
The OCI region 'India South (Hyderabad)' may contain multiple availability domains such as AD-1, AD-2, and AD-3. Applications can deploy resources across these domains to improve reliability.
Ques 16. What is the purpose of OCI Internet Gateway?
The Internet Gateway in OCI enables communication between resources inside a Virtual Cloud Network (VCN) and the public internet. It acts as a routing target that allows instances with public IP addresses in a public subnet to send and receive internet traffic. Without an Internet Gateway, resources inside the VCN cannot communicate directly with external internet services. Internet Gateway works with route tables and security rules to control inbound and outbound traffic.
Example:
A public web server hosted on a compute instance needs an Internet Gateway to allow users on the internet to access the website.
Ques 17. What is the OCI NAT Gateway and why is it used?
OCI NAT Gateway allows instances in private subnets to initiate outbound connections to the internet without exposing those instances to inbound internet traffic. This improves security by ensuring that private instances do not have public IP addresses while still allowing them to download updates, patches, or access external APIs. NAT Gateway performs network address translation so that outbound traffic appears to originate from the gateway's public IP address.
Example:
A compute instance in a private subnet needs to download operating system updates from the internet. It routes outbound traffic through the NAT Gateway.
Ques 18. What is OCI Load Balancer and how does it improve application availability?
OCI Load Balancer is a managed service that distributes incoming network traffic across multiple backend servers to ensure high availability and scalability. It supports both public and private load balancers and can operate at Layer 4 (TCP) and Layer 7 (HTTP/HTTPS). The load balancer monitors backend servers using health checks and automatically routes traffic only to healthy instances. This prevents traffic from being sent to failed servers and improves overall application reliability.
Example:
An online shopping website runs on three compute instances. The OCI Load Balancer distributes incoming user requests across all three servers.
Ques 19. What is Autonomous Database in OCI?
Autonomous Database is a fully managed, self-driving database service in OCI that automates routine database administration tasks such as provisioning, patching, tuning, scaling, backup, and recovery. It uses machine learning to optimize performance and ensure high availability. Autonomous Database reduces operational overhead for database administrators while improving reliability and security. There are different types of Autonomous Databases including Autonomous Transaction Processing (ATP) and Autonomous Data Warehouse (ADW).
Example:
A company uses Autonomous Data Warehouse (ADW) to run large analytical queries on its sales data without needing to manually manage database infrastructure.
Ques 20. What is OCI Identity and Access Management (IAM)?
OCI Identity and Access Management (IAM) is the service responsible for authentication and authorization in Oracle Cloud Infrastructure. IAM controls who can access OCI resources and what actions they can perform. It uses concepts such as users, groups, compartments, and policies. Administrators create policies to grant permissions to groups of users. IAM ensures secure access control across all OCI services and supports identity federation with external identity providers.
Example:
A policy may allow a group called 'Developers' to manage compute instances in the development compartment.
Ques 21. What is the purpose of OCI Compartments?
Compartments in OCI are logical containers used to organize and isolate cloud resources within a tenancy. They help manage access control, resource organization, and billing. Administrators can create multiple compartments for different teams, projects, or environments such as development, testing, and production. Policies can be applied at the compartment level to control who can access resources inside them.
Example:
A company creates three compartments: Dev, Test, and Production. Developers can manage resources in the Dev compartment but only view resources in Production.
Ques 22. What is OCI DNS service and what are its key capabilities?
OCI DNS is a globally distributed Domain Name System service that translates human-readable domain names into IP addresses for cloud resources. It provides high availability, scalability, and low latency DNS resolution. OCI DNS supports features such as traffic steering, health checks, private DNS zones, and DNSSEC for enhanced security. It is commonly used to manage domain names for websites and cloud applications running on OCI.
Example:
When a user types www.example.com in the browser, OCI DNS resolves the domain name to the IP address of the load balancer hosting the website.
Ques 23. What is OCI Marketplace and how does it help organizations?
OCI Marketplace is a platform where users can find and deploy pre-configured applications, solutions, and services from Oracle and third-party vendors. It provides ready-to-use images and stacks for applications such as databases, security tools, developer frameworks, and enterprise software. Marketplace simplifies deployment because users can quickly launch complex solutions without manual installation or configuration.
Example:
An organization deploys a preconfigured WordPress application from OCI Marketplace to quickly launch a content management system.
Ques 24. What is OCI Budgets service and how does it help control cloud spending?
OCI Budgets allows organizations to set spending limits for compartments or the entire tenancy and receive alerts when spending approaches or exceeds those limits. It helps cloud administrators maintain financial governance and avoid unexpected cloud costs. Budgets can trigger notifications when thresholds such as 80%, 90%, or 100% of the allocated budget are reached. This allows teams to take corrective actions before costs exceed planned limits.
Example:
A company sets a monthly budget of $5000 for the development compartment. OCI sends alerts when spending reaches 80% and 100% of the budget.
Ques 25. What is the purpose of Fault Domains in OCI?
Fault Domains are logical groupings of hardware within an Availability Domain designed to isolate hardware failures. Each availability domain typically contains three fault domains. Resources placed in different fault domains are protected from failures such as power outages, network failures, or hardware maintenance affecting a specific rack of servers. By distributing compute instances across fault domains, applications can achieve higher availability even within a single availability domain.
Example:
A three-tier application deploys web servers across Fault Domain 1, 2, and 3 within the same Availability Domain to avoid downtime caused by hardware failures.
Ques 26. What is the OCI Monitoring service and how does it help maintain system health?
OCI Monitoring service collects metrics from cloud resources and applications to help administrators monitor performance and availability. It provides real-time visibility into system metrics such as CPU usage, memory utilization, network traffic, and storage I/O. Monitoring integrates with alarms and notifications to alert administrators when predefined thresholds are exceeded. It also supports custom metrics for monitoring application-specific performance indicators.
Example:
An alarm is configured to trigger when CPU utilization on a compute instance exceeds 85%, sending an alert to the operations team.
Ques 27. What is OCI Archive Storage and when should it be used?
OCI Archive Storage is a low-cost storage tier within Object Storage designed for long-term data retention. It is suitable for data that is rarely accessed but must be preserved for compliance, backup, or archival purposes. While Archive Storage significantly reduces storage costs, retrieving archived data requires additional time compared to Standard Storage because the data must first be restored.
Example:
A company stores regulatory compliance records in Archive Storage because the data must be retained for several years but is rarely accessed.
Ques 28. What is OCI Block Volume and how does it differ from Object Storage?
OCI Block Volume is a persistent storage service that provides high-performance block storage for compute instances. It behaves like a traditional hard drive that can be attached to virtual machines and used to store operating systems, applications, and databases. In contrast, Object Storage stores unstructured data as objects inside buckets and is accessed through APIs rather than mounted like a disk. Block volumes are suitable for transactional workloads, while Object Storage is designed for large-scale data storage and backups.
Example:
A compute instance running a database uses a Block Volume as its primary disk storage.
Ques 29. What is the difference between Boot Volume and Block Volume in OCI?
Boot Volume is the storage volume that contains the operating system and boot files required to start a compute instance. It is automatically created when an instance is launched from an image. Block Volumes are additional storage volumes that can be attached to instances to store application data, databases, or backups. Boot volumes are mandatory for instance startup, while block volumes are optional and can be attached or detached dynamically.
Example:
A compute instance has a boot volume for the operating system and an additional block volume to store application logs and user data.
Ques 30. What is OCI Notifications service?
OCI Notifications is a messaging service that sends alerts and notifications to users or systems based on events occurring in OCI. It supports delivery channels such as email, SMS, Slack, HTTPS endpoints, and PagerDuty. Notifications are commonly used with alarms, budgets, and monitoring services to alert administrators about system events or threshold breaches.
Example:
When CPU usage exceeds a defined threshold, an alarm triggers the Notifications service to send an email alert to the operations team.
Ques 31. What is OCI Identity and Access Management (IAM)?
OCI Identity and Access Management (IAM) is the security service that controls authentication and authorization in Oracle Cloud Infrastructure. It ensures that only authorized users and resources can access OCI services.nnKey Concepts:n1. Users – Individuals who access OCI.n2. Groups – Collections of users.n3. Policies – Rules defining permissions.n4. Compartments – Logical containers for resources.nnIAM follows the principle of least privilege, meaning users are granted only the permissions necessary to perform their tasks.nnIAM policies are written in a human-readable language that defines who can access which resources and what actions they can perform.
Example:
An IAM policy allows the 'Developers' group to manage compute instances in the 'Development' compartment.
Ques 32. What is OCI Object Storage?
OCI Object Storage is a scalable storage service designed for storing large amounts of unstructured data such as images, videos, backups, and logs.nnKey Features:n1. Virtually unlimited storage capacity.n2. High durability and availability.n3. REST API access.n4. Lifecycle policies for automatic data management.nnStorage Tiers:n- Standard – Frequent access datan- Archive – Long-term storage with lower costnnBenefits:n- Cost-effective storagen- Reliable backup solutionn- Integration with analytics and AI services.
Example:
A company stores application backup files and log archives in OCI Object Storage to ensure data durability and easy retrieval.
Most helpful rated by users:
Related interview subjects
| AWS interview questions and answers - Total 87 questions |
| Microsoft Azure interview questions and answers - Total 35 questions |
| Azure Data Factory interview questions and answers - Total 30 questions |
| OpenStack interview questions and answers - Total 30 questions |
| ServiceNow interview questions and answers - Total 30 questions |
| Snowflake interview questions and answers - Total 30 questions |
| Oracle APEX interview questions and answers - Total 23 questions |
| Oracle Cloud Infrastructure (OCI) interview questions and answers - Total 100 questions |