OCI Developer Exam | 65 Questions with
100% Correct Answers | Updated 2024 |
Guaranteed A+
Your organization uses federated identity provider to login to your OCI environment. As a developer, you
are writing a script to automate some operations and want use OCI CLI to do that. Your security team
doesn't allow storing private keys on local machines. How can you authenticate with OCI CLI?
- Run oci session refresh - profile <profile_name>
- Run oci setup keys and provide your credentials
- Run oci setup oci-cli-rc-file path/to/target/file
- Run oci session authenticate and provide your credentials - ✔✔Run oci session authenticate
and provide your credentials
As a cloud-native developer, you have written a web service for your company. You have used OCI API
Gateway service to expose the HTTP backend. However, your security team has suggested that your
web service should handle Distributed Denial of Service (DDoS) attack. You are time-constrained and
you need to make sure that this implemented as soon as possible. What should you do in this
scenario?
,- Use a third party service integration to implement a DDoS attack mitigation
- Use OCI VCN segregation to control DDoS
- Use OCI API Gateway service to configure rate limiting
- Re-write your web service and implement rate limiting - ✔✔Use OCI API Gateway service to
configure rate limiting
You encounter an unexpected error when invoking the Oracle Function named "myfunction" in
application "myapp". Which can you use to get more information on the error?
- fn --debug invoke myapp myfunction
- fn --verbose invoke myapp myfunction
- Call Oracle support with your error message
,- DEBUG=1 fn invoke myapp myfunction - ✔✔DEBUG=1 fn invoke myapp myfunction
You are working on a serverless DevSecOps application using Oracle Functions. You have deployed a
Python function that uses the OCI Python SDK to stop any OCI Compute instance that does not comply with
your corporate security standards. There are 3 non-compliant OCI Compute instances. However, when you
invoke this function none of the instances were stopped. How should you troubleshoot this?
- Enable function remote debugging in the OCI console, and use your favorite IDE to inspect the function
running on OCI Functions
- Enable function tracing in the OCI Console, and go to OCI monitoring console to see the function
stack trace
- Enable function logging in the OCI console, include some print statement in your function code and
use logs to troubleshoot this
- There is no way to troubleshoot a function running on Oracle Functions - ✔✔Enable function logging
in the OCI console, include some print statement in your function code and use logs to troubleshoot this
, You need to execute a script on a remote instance through Oracle Cloud Infrastructure Resource
Manager. Which option can you use?
- User /bin/sh with the full path to the location of the script to execute the script.
- It cannot be done.
- Download the script to a local desktop and execute the script.
- Use remote-exec - ✔✔Use remote-exec
A service you are deploying to Oracle Cloud Infrastructure (OCI) Container Engine for Kubernetes (OKE)
uses a docker image from a private repository in OCI Registry (OCIR). Which configuration is necessary to
provide access to this repository from OKE? (Choose the best answer).
- Add a generic secret on the cluster containing your identity credentials. Then specify
a registryCredentials property in the deployment manifest.
- Create a docker-registry secret for OCIR with API key credentials on the cluster, and specify the
imagePullSecret property in the application deployment manifest
100% Correct Answers | Updated 2024 |
Guaranteed A+
Your organization uses federated identity provider to login to your OCI environment. As a developer, you
are writing a script to automate some operations and want use OCI CLI to do that. Your security team
doesn't allow storing private keys on local machines. How can you authenticate with OCI CLI?
- Run oci session refresh - profile <profile_name>
- Run oci setup keys and provide your credentials
- Run oci setup oci-cli-rc-file path/to/target/file
- Run oci session authenticate and provide your credentials - ✔✔Run oci session authenticate
and provide your credentials
As a cloud-native developer, you have written a web service for your company. You have used OCI API
Gateway service to expose the HTTP backend. However, your security team has suggested that your
web service should handle Distributed Denial of Service (DDoS) attack. You are time-constrained and
you need to make sure that this implemented as soon as possible. What should you do in this
scenario?
,- Use a third party service integration to implement a DDoS attack mitigation
- Use OCI VCN segregation to control DDoS
- Use OCI API Gateway service to configure rate limiting
- Re-write your web service and implement rate limiting - ✔✔Use OCI API Gateway service to
configure rate limiting
You encounter an unexpected error when invoking the Oracle Function named "myfunction" in
application "myapp". Which can you use to get more information on the error?
- fn --debug invoke myapp myfunction
- fn --verbose invoke myapp myfunction
- Call Oracle support with your error message
,- DEBUG=1 fn invoke myapp myfunction - ✔✔DEBUG=1 fn invoke myapp myfunction
You are working on a serverless DevSecOps application using Oracle Functions. You have deployed a
Python function that uses the OCI Python SDK to stop any OCI Compute instance that does not comply with
your corporate security standards. There are 3 non-compliant OCI Compute instances. However, when you
invoke this function none of the instances were stopped. How should you troubleshoot this?
- Enable function remote debugging in the OCI console, and use your favorite IDE to inspect the function
running on OCI Functions
- Enable function tracing in the OCI Console, and go to OCI monitoring console to see the function
stack trace
- Enable function logging in the OCI console, include some print statement in your function code and
use logs to troubleshoot this
- There is no way to troubleshoot a function running on Oracle Functions - ✔✔Enable function logging
in the OCI console, include some print statement in your function code and use logs to troubleshoot this
, You need to execute a script on a remote instance through Oracle Cloud Infrastructure Resource
Manager. Which option can you use?
- User /bin/sh with the full path to the location of the script to execute the script.
- It cannot be done.
- Download the script to a local desktop and execute the script.
- Use remote-exec - ✔✔Use remote-exec
A service you are deploying to Oracle Cloud Infrastructure (OCI) Container Engine for Kubernetes (OKE)
uses a docker image from a private repository in OCI Registry (OCIR). Which configuration is necessary to
provide access to this repository from OKE? (Choose the best answer).
- Add a generic secret on the cluster containing your identity credentials. Then specify
a registryCredentials property in the deployment manifest.
- Create a docker-registry secret for OCIR with API key credentials on the cluster, and specify the
imagePullSecret property in the application deployment manifest