A company runs a public-facing application that uses a Java-based web service via a
RESTful API in their on-premises data center. Use of the API is expected to double with a new
product launch. The business wants to migrate their application to Oracle Cloud Infrastructure
(OCI) to meet the scale and reliability requirements. In order to achieve this, they will divert only
40% of the traffic to the new Apache Tomcat web servers running on OCI and serve the
remaining 60% traffic through their on-premises infrastructure. Once the migration is complete
and application works fine, they will divert all traffic to OCI.
How can these requirements be met with the LEAST amount of effort?
Challenge 2 - Task 2 of 5
Deploy a Serverless Function and Access Using an API Gateway
Deployment in OCI
Scenario
You have joined ACME as their new Cloud Solutions Architect. Your organization wants to verify if
they can execute their microservices deployed as serverless functions on another cloud provider
using Oracle Functions in OCI.
Preconfigured
To complete this requirement, you are provided with the following:
* Access to an OCI Tenancy, an assigned compartment, and OCI credentials.
* Access to Cloud Shell to execute the Fn CLI and Docker commands.
* Code for a sample Python function, ExamFunction-main.zip.
* Permissions to perform only the tasks within the challenge.
Note: Throughout your exam, ensure to use assigned Compartment 99248134-
C01and Region us-ashburn-1
Complete the following task:
In the field below, write an IAM policy statement that allows API Gateway to access Oracle Functions
in your compartment.
One possible IAM policy statement that allows API Gateway to access Oracle Functions in your compartment is:
ALLOW any-user to use functions-family in compartment <your-compartment-name> where ALL {request.principal.type = 'ApiGateway', request.resource.compartment.id = '<your-compartment-OCID>'}
Challenge 1
Implement Private DNS Names and Private DNS Resolver
Deploy a Serverless Function and Access Using an API Gateway
Deployment in OCI
Scenario
You have joined ACME as their new Cloud Solutions Architect. Your organization wants to verify if
they can execute their microservices deployed as serverless functions on another cloud provider
using Oracle Functions in OCI.
Preconfigured
To complete this requirement, you are provided with the following:
* Access to an OCI Tenancy, an assigned compartment, and OCI credentials.
* Access to Cloud Shell to execute the Fn CLI and Docker commands.
* Code for a sample Python function, ExamFunction-main.zip.
* Permissions to perform only the tasks within the challenge.
Note: Throughout your exam, ensure to use assigned Compartment99248134-
C01 and Region us-ashburn-1
Complete the following tasks in the provisioned OCI environment:
1. Create a new VCN with the name exam-vcn within your assigned compartment by using the
Start VCN Wizard.
2. Create a new Oracle Functions application named exam-app within your assigned
compartment by using the private subnet in your previously created VCN.
Ensure you use all defaults provided with the Create VCN with Internet Connectivity option.
Here are the steps to complete the challenge:
To create a new VCN with the name exam-vcn within your assigned compartment by using the Start VCN Wizard, follow these steps:
In the OCI Console, go to Networking and click Virtual Cloud Networks.
Select your assigned compartment from the list on the left.
Click Start VCN Wizard.
Select Create VCN with Internet Connectivity and click Start VCN Wizard.
Enter exam-vcn as the VCN Name and leave the other fields as default. Click Next.
Review the summary and click Create. This will create a VCN with a public subnet, a private subnet, an internet gateway, a NAT gateway, a service gateway, and a route table.
To create a new Oracle Functions application named exam-app within your assigned compartment by using the private subnet in your previously created VCN, follow these steps:
In the OCI Console, go to Developer Services and click Functions.
Select your assigned compartment from the list on the left.
Click Create Application.
Enter exam-app as the Application Name and select your previously created VCN from the VCN dropdown menu.
Select the private subnet from the Subnet dropdown menu and leave the other fields as default. Click Create. This will create an Oracle Functions application that can run serverless functions in a private subnet.
You are running a mission-critical database application in Oracle Cloud Infrastructure (OCI).
You regular backups of your DB system to OCI Object Storage. Recently, you notice a failed
database back status in the console. * Ensure that the database is not active and running while
the backup is in progress.
What troubleshooting action can you perform to determine the cause of the backup failure?
Your company needs to migrate a business critical application from your data center to
Oracle Cloud Infrastructure (OCI). The application runs on Oracle * Deploy Virtual Machine RAC
DB system on OCI and use the Oracle Database Backup module with RMAN to migrate the
data from customer on-premises to OCI. The application server is WebLogic server running on
multiple 4-core servers and the database is deployed as an Oracle Database Enterprise Edition
RAC database on 2 servers (4-cores each). Which method of database migration should you
choose so that the application has minimal impact? (Choose the best answer.)