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?
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.
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?
As a part of a migration exercise for an existing on-premises application to Oracle Cloud
Infrastructure (OCI), you are required to transfer a 7 TB file to OCI Object Storage. You have
decided to upload it using the multipart upload functionality of Object Storage.
Which two statements are true? (Choose two.)
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-
C01 and Region us-ashburn-1
Having deployed a private function to an Oracle Functions application in OCI as proof-of-concept,
demonstrate that it can be invoked via a public API Gateway deployment. Before you proceed
further, ensure that you have created the following resources:
* An OCI VCN in your compartment for hosting the API Gateway2
* The hello-python function deployed to a Functions application in your compartment
Complete the following tasks in the provisioned OCI environment:
1. Create a new public API Gateway in your compartment named exam-gateway.
2. Create a new API Deployment named exam-deployment using /v1 as the path prefix
in exam-gateway.
3. Create a new route by using /hello as the path and GET as the method. The route must
invoke the hello-python function.
4. Create a new stateful CIDR Ingress Rule that allows for TCP HTTPS traffic (port 443) from all
IP addresses and ports in the default Security List for exam-vcn.
5. Use curl to call the function via your API Gateway deployment.
curl -k -X GET {deployment-endpoint}/hell
To complete the task of creating a public API Gateway and invoking a private function in OCI, you can follow these steps:
To create a new public API Gateway in your compartment named exam-gateway, follow these steps:
In the OCI Console, go toDeveloper Servicesand clickAPI Gateway.
Select your assigned compartment from the list on the left.
ClickCreate Gateway.
Enterexam-gatewayas theNameand selectPublicas theType. You can also add a description for the gateway if you want.
Select your previously created VCN from theVCNdropdown menu and select any subnet from theSubnetdropdown menu. You can also enable logging for the gateway if you want.
ClickCreate. This will create a new public API Gateway in your compartment that can expose your functions to the internet.
To create a new API Deployment named exam-deployment using /v1 as the path prefix in exam-gateway, follow these steps:
In the OCI Console, go toDeveloper Servicesand clickAPI Gateway.
Select your assigned compartment from the list on the left and click on your previously created gateway (exam-gateway).
ClickDeploymentson the left panel and then clickCreate Deployment.
Enterexam-deploymentas theNameand selectFrom Scratchas theSpecification Type. You can also add a description for the deployment if you want.
Enter /v1 as thePath Prefixand leave the other fields as default. ClickNext.
To create a new route by using /hello as the path and GET as the method, follow these steps:
In the Create Deployment dialog box, clickAdd Route.
Enter /hello as thePath, select GET as theMethod, and select Oracle Functions as theType.
Select your previously created function (hello-python) from theFunction Namedropdown menu and leave the other fields as default. ClickSave Changes. This will create a new route that will invoke your function when you send a GET request to /v1/hello.
To create a new stateful CIDR Ingress Rule that allows for TCP HTTPS traffic (port 443) from all IP addresses and ports in the default Security List for exam-vcn, follow these steps:
In the OCI Console, go toNetworkingand clickVirtual Cloud Networks.
Select your assigned compartment from the list on the left and click on your previously created VCN (exam-vcn).
ClickSecurity Listson the left panel and then click on the default security list for your VCN.
ClickEdit All Rulesand then clickAdd Ingress Ruleunder the Ingress Rules section.
Enter 0.0.0.0/0 as theSource CIDR, select TCP as theIP Protocol, and enter 443 as both theSource Port Rangeand theDestination Port Range. You can also add a description for the rule if you want.
ClickSave Security List Rules. This will create a new stateful CIDR Ingress Rule that will allow HTTPS traffic from any source to reach your API Gateway.
To use curl to call the function via your API Gateway deployment, follow these steps:
In the OCI Console, go toDeveloper Servicesand clickAPI Gateway.
Select your assigned compartment from the list on the left and click on your previously created gateway (exam-gateway).
ClickDeploymentson the left panel and then click on your previously created deployment (exam-deployment).
Copy the value of the Endpoint URL field. This is the base URL for your API Deployment.
In a terminal window, enter the following command:
curl -k -X GET {deployment-endpoint}/v1/hello
where {deployment-endpoint} is the base URL that you copied.
For example, if your deployment endpoint is https://abc123xyz456.apigateway.us-ashburn-1.oci.customer-oci.com, your command would be:
curl -k -X GET https://abc123xyz456.apigateway.us-ashburn-1.oci.customer-oci.com/v1/hello
This will send a GET request to your API Deployment and invoke your function. You should see a response similar to this:
{'message': 'Hello World!'}
Topic 2, Multiple Choice Questions