Skip to main content

1Z0-1084-20 Real Exam Questions

Oracle Cloud Infrastructure Developer 2020 Associate

72 questions available · Page 1 of 8

Updated Exam DumpsVerified AnswersPass Guarantee

Get Complete Exam Dumps
Question 1 Multiple choice

Which two statements accurately describe an Oracle Functions application?

  1. A

    A small block of code invoked in response to an Oracle Cloud Infrastructure (OCI) Events service

  2. B

    A Docker image containing all the functions that share the same configuration

  3. C

    An application based on Oracle Functions, Oracle Cloud Infrastructure (OCI) Events and OCI API Gateway services

  4. D

    A common context to store configuration variables that are available to all functions in the application

  5. E

    A logical group of functions

Show answer and explanation

Correct answers: D, E

Explanation

Applications in the Function services
In Oracle Functions, an application is:
1. a logical grouping of functions 2. a common context to store configuration variables that are available to all functions in the application
When you define an application in Oracle Functions, you specify the subnets in which to run the functions in the application.

Question 2 Single choice

Given a service deployed on Oracle Cloud Infrastructure Container Engine far Kubernetes (OKE), which annotation should you add in the sample manifest file below to specify a 400 Mbps load balancer?

  1. A

    service.beta.kubernetes.io/oci-load-balancer-value: 400Mbps

  2. B

    service.beta.kubernetes.io/oci-load-balancer-size: 400Mbps

  3. C

    service.beta.kubernetes.io/oci-load--balancer-shape: 4 00Mbps

  4. D

    service, beta, kubernetes . io/oci-load--balancer-kind: 400Mbps

Show answer and explanation

Correct answer: C

Question 3 Single choice

A service you are deploying to Oracle infrastructure (OCI) Container En9ine for Kubernetes (OKE) uses a docker image from a private repository.

Which configuration is necessary to provide access to this repository from OKE?

  1. A

    Add a generic secret on the cluster containing your identity credentials. Then specify a registrycredentials property in the deployment manifest.

  2. B

    Create a docker-registry secret for OCIR with API key credentials on the cluster, and specify the imagepullsecret property in the application deployment manifest.

  3. C

    Create a docker-registry secret for OCIR with identity Auth Token on the cluster, and specify the image pull secret property in the application deployment manifest.

  4. D

    Create a dynamic group for nodes in the cluster, and a policy that allows the dynamic group to read repositories in the same compartment.

Show answer and explanation

Correct answer: C

Explanation

Pulling Images from Registry during Deployment During the deployment of an application to a Kubernetes cluster, you'll typically want one or more images to be pulled from a Docker registry. In the application's manifest file you specify the images to pull, the registry to pull them from, and the credentials to use when pulling the images. The manifest file is commonly also referred to as a pod spec, or as a deployment.yaml file (although other filenames are allowed). If you want the application to pull images that reside in Oracle Cloud Infrastructure Registry, you have to perform two steps:
- You have to use kubectl to create a Docker registry secret. The secret contains the Oracle Cloud
Infrastructure credentials to use when pulling the image. When creating secrets, Oracle strongly recommends you use the latest version of kubectl
To create a Docker registry secret: 1- If you haven't already done so, follow the steps to set up the cluster's kubeconfig configuration file and (if necessary) set the KUBECONFIG environment variable to point to the file. Note that you must set up your own kubeconfig file. You cannot access a cluster using a kubeconfig file that a different user set up. 2- In a terminal window, enter:
$ kubectl create secret docker-registry <secret-name> --docker-server=<region-key>.ocir.io --docker- username='<tenancy-namespace>/<oci-username>' --docker-password='<oci-auth-token>' --docker-
email='<email-address>' where:
<secret-name> is a name of your choice, that you will use in the manifest file to refer to the secret .
For example, ocirsecret
<region-key> is the key for the Oracle Cloud Infrastructure Registry region you're using. For example, iad.
See Availability by Region. ocir.io is the Oracle Cloud Infrastructure Registry name. <tenancy-namespace> is the auto-generated Object Storage namespace string of the tenancy containing the repository from which the application is to pull the image (as shown on the Tenancy Information page). For example, the namespace of the acme-dev tenancy might be ansh81vru1zp. Note that for some older tenancies, the namespace string might be the same as the tenancy name in all lower-case letters (for example, acme-dev).
<oci-username> is the username to use when pulling the image. The username must have access to the tenancy specified by <tenancy-name>. For example, [email protected] . If your tenancy is federated with
Oracle Identity Cloud Service, use the format oracleidentitycloudservice/<username> <oci-auth-token> is the auth token of the user specified by <oci-username>. For example, k]j64r{1sJSSF-;)K8 <email-address>
is an email address. An email address is required, but it doesn't matter what you specify. For example, [email protected]
- You have to specify the image to pull from Oracle Cloud Infrastructure Registry, including the repository location and the Docker registry secret to use, in the application's manifest file.

Question 4 Single choice

You have two microservices, A and B running in production. Service A relies on APIs from service B. You want to test changes to service A without deploying all of its dependencies, which includes service B.

Which approach should you take to test service A?

  1. A

    Test against production APIs.

  2. B

    Test using API mocks.

  3. C

    There is no need to explicitly test APIs.

  4. D

    Test the APIs in private environments.

Show answer and explanation

Correct answer: B

Explanation

Testing using API mocks
Developers are frequently tasked with writing code that integrates with other system components via APIs.
Unfortunately, it might not always be desirable or even possible to actually access those systems during development. There could be security, performance or maintenance issues that make them unavailable ? or they might simply not have been developed yet. This is where mocking comes in: instead of developing code with actual external dependencies in place, a mock of those dependencies is created and used instead. Depending on your development needs this mock is made "intelligent" enough to allow you to make the calls you need and get similar results back as you would from the actual component, thus enabling development to move forward without being hindered by eventual unavailability of external systems you depend on

Question 5 Single choice

Which is NOT a valid option to execute a function deployed on Oracle Functions?

  1. A

    Send a signed HTTP requests to the function's invoke endpoint

  2. B

    Invoke from Oracle Cloud Infrastructure CLI

  3. C

    Invoke from Docker CLI

  4. D

    Trigger by an event in Oracle Cloud Infrastructure Events service

  5. E

    Invoke from Fn Project CLI

Show answer and explanation

Correct answer: C

Explanation

You can invoke a function that you've deployed to Oracle Functions in different ways: Using the Fn Project CLI.
Using the Oracle Cloud Infrastructure CLI.
Using the Oracle Cloud Infrastructure SDKs.
Making a signed HTTP request to the function's invoke endpoint. Every function has an invoke endpoint.
Each of the above invokes the function via requests to the API. Any request to the API must be authenticated by including a signature and the OCID of the compartment to which the function belongs in the request header. Such a request is referred to as a 'signed' request. The signature includes Oracle Cloud Infrastructure credentials in an encrypted form.

Question 6 Single choice

You are tasked with developing an application that requires the use of Oracle Cloud Infrastructure (OCI) APIs to POST messages to a stream in the OCI Streaming service.

Which statement is incorrect?

  1. A

    The request must include an authorization signing string including (but not limited to) x-content- sha256, content-type, and content-length headers.

  2. B

    The Content-Type header must be Set to application/j son

  3. C

    An HTTP 401 will be returned if the client's clock is skewed more than 5 minutes from the server's.

  4. D

    The request does not require an Authorization header.

Show answer and explanation

Correct answer: A

Explanation

Emits messages to a stream. There's no limit to the number of messages in a request, but the total size of a message or request must be 1 MiB or less. The service calculates the partition ID from the message key and stores messages that share a key on the same partition. If a message does not contain a key or if the key is null, the service generates a message key for you. The partition ID cannot be passed as a parameter.
POST /20180418/streams/<streamId>/messages
Host: streaming-api.us-phoenix-1.oraclecloud.com
<authorization and other headers>
{
"messages":
{
{
"key": null,
"value": "VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wZWQgb3ZlciB0aGUgbGF6eSBkb2cu" },
{
"key": null,
"value": "UGFjayBteSBib3ggd2l0aCBmaXZlIGRvemVuIGxpcXVvciBqdWdzLg==" }
}
}
https://docs.cloud.oracle.com/en-us/iaas/api/#/en/streaming/20180418/Message/PutMessages

Question 7 Single choice

Which one of the following is NOT a valid backend-type supported by Oracle Cloud Infrastructure (OCI) API Gateway?

  1. A

    STOCK_RESPONSE_BACKEND

  2. B

    ORACLE_FUNCTIONS_BACKEND

  3. C

    ORACLE_STREAMS_BACKEND

  4. D

    HTTP_BACKEND

Show answer and explanation

Correct answer: C

Explanation

In the API Gateway service, a back end is the means by which a gateway routes requests to the back-end services that implement APIs. If you add a private endpoint back end to an API gateway, you give the API gateway access to the VCN associated with that private endpoint. You can also grant an API gateway access to other Oracle Cloud Infrastructure services as back ends. For example, you could grant an API gateway access to Oracle Functions, so you can create and deploy an API that is backed by a serverless function. API Gateway service to create an API gateway, you can create an API deployment to access HTTP and HTTPS URLs.
https://docs.cloud.oracle.com/en-us/iaas/Content/APIGateway/Tasks/
apigatewayusinghttpbackend.htm API Gateway service to create an API gateway, you can create an API deployment that invokes serverless functions defined in Oracle Functions.
https://docs.cloud.oracle.com/en-us/iaas/Content/APIGateway/Tasks/
apigatewayusingfunctionsbackend.htm API Gateway service, you can define a path to a stock response
back end
https://docs.cloud.oracle.com/en-us/iaas/Content/APIGateway/Tasks/
apigatewayaddingstockresponses.htm

Question 8 Single choice

How can you find details of the tolerations field for the sample YAML file below?

  1. A

    kubectl list pod.spec.tolerations

  2. B

    kubectl explain pod.spec.tolerations

  3. C

    kubectl describe pod.spec tolerations

  4. D

    kubectl get pod.spec.tolerations

Show answer and explanation

Correct answer: B

Explanation

kubectl explain to List the fields for supported resources
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#explain

Question 9 Single choice

What is the difference between blue/green and canary deployment strategies?

  1. A

    In blue/green, application Is deployed In minor increments to a select group of people. In canary, both old and new applications are simultaneously in production.

  2. B

    In blue/green, both old and new applications are in production at the same time. In canary, application

    is deployed Incrementally to a select group of people.

  3. C

    In blue/green, current applications are slowly replaced with new ones. In < MW y, Application ll
    deployed incrementally to a select group of people.

  4. D

    In blue/green, current applications are slowly replaced with new ones. In canary, both old and new applications are In production at the same time.

Show answer and explanation

Correct answer: B

Explanation

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.
https://docs.cloudfoundry.org/devguide/deploy-apps/blue-green.html
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. ... Canaries were once regularly used in coal mining as an early warning system.
https://octopus.com/docs/deployment-patterns/canary-deployments

Question 10 Single choice

Which Oracle Cloud Infrastructure (OCI) load balancer shape is used by default in OCI container Engineer for Kubernetes?

  1. A

    400 Mbps

  2. B

    8000 Mbps

  3. C

    There is no default. The shape has to be specified.

  4. D

    100 Mbps

Show answer and explanation

Correct answer: D

Explanation

Specifying Alternative Load Balancer Shapes
The shape of an Oracle Cloud Infrastructure load balancer specifies its maximum total bandwidth (that is, ingress plus egress). By default, load balancers are created with a shape of 100Mbps. Other shapes are available, including 400Mbps and 8000Mbps.
https://docs.cloud.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengcreatingloadbalancer.htm