You are on page 1of 10

Oracle

1Z0-1084-21
Oracle Cloud Infrastructure Developer 2021 Associate
QUESTION & ANSWERS

https://www.oracledumpsfree.com/1Z0-1084-21-exam-dumps.html
QUESTION 1

You have two microservices, A and B running in production. Service A relies on APIs fromservice 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?
A. Test against production APIs.
B. Test using API mocks.
C. There is no need to explicitly test APIs.
D. Test the APIs in private environments.

Correct Answer: B

Explanation/Reference:

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
The most common term for creating simulated components is mocking, but others are also used, and
partly
apply to different things; stubbing, simulation, and virtualization. The basic concept is the same -
instead of
using an actual software component (an API in our case) – a “replacement” version of that API is
created and
used instead. It behaves as the original API, but lacks many of the functional and non-functional
characteristics of the original component. Which term is applicable depends on the degree to which
the
mock-up corresponds to the actual API:
Stubbing: mostly a placeholder without real functionality
Mocking: basic functionality required for a specific testing or development purpose
Simulation: complete functionality for testing or development purposes
Virtualization: imulation that is deployed into an operational, manageable and controllable
environment

https://www.oracledumpsfree.com/1Z0-1084-21-exam-dumps.html
References:
https://docs.oracle.com/en/solutions/build-governance-app-oracle-paas/test-custom-apis.html
https://www.soapui.org/learn/mocking/what-is-api-mocking/

QUESTION 2

You have created a repository in Oracle Cloud Infrastructure Registry in the us-ashburn-1 (iad) region
in your
tenancy with a namespace called "heyci.
Which three are valid tags for an image named "myapp"?
A. iad.ocir.io/heyoci/myproject/myapp:0.0.1
B. us-ashburn-l.ocirJo/heyoci/myapp:0.0.2-beta
C. us-ashburn-l.ocir.io/heyoci/myproject/myapp:0.0.2-beta
D. us-ashburn-l.ocir.io/myproject/heyoci/myapp:latest
E. iad.ocir.io/myproject/heyoci/myapprlatest
F. iad.ocir.io/heyoci/myapp:0.0.2-beta
G. iad.ocir.io/heyoci/myapp:latest

https://www.oracledumpsfree.com/1Z0-1084-21-exam-dumps.html
Correct Answer: A,F,G

Explanation/Reference:

Give a tag to the image that you're going to push to Oracle Cloud Infrastructure Registry by entering:
docker tag < image-identifier > < target-tag >
where:
< image-identifier > uniquely identifies the image, either using the image's id (for example,
8e0506e14874), or
the image's name and tag separated by a colon (for example, acme-web-app:latest).
< target-tag > is in the
format < region-key >.ocir.io/< tenancy-namespace >/< repo-name >/< image-name >:< tag >
where:
< 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 that
owns the
repository to which you want to push 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).
Note also that your user must have access to the tenancy.
< repo-name > (if specified) is the name of a repository to which you want to push the image (for
example, project01). Note that specifying a repository is optional (see About Repositories).
< image-name > is the name you want to give the image in Oracle Cloud Infrastructure Registry (for
example, acme-web-app).
< tag > is an image tag you want to give the image in Oracle Cloud Infrastructure Registry (for
example, version2.0.test).
For example, for convenience you might want to group together multiple versions of the acme-web-
app image
in the acme-dev tenancy in the Ashburn region into a repository called project01. You do this by
including the
name of the repository in the image name when you push the image, in the
format < region-key >.ocir.io/< tenancy-namespace >/< repo-name >/< image-name >:< tag >. For
example, iad.ocir.io/ansh81vru1zp/project01/acme-web-app:4.6.3. Subsequently, when you use the
docker
push command, the presence of the repository in the image's name ensures the image is pushed to
the intended
repository.
If you push an image and include the nameof a repository that doesn't already exist, a new private
repository is
created automatically. For example, if you enter a command like docker push
iad.ocir.io/ansh81vru1zp/project02/acme-web-app:7.5.2 and the project02 repository doesn't exist, a
privaterepository called project02 is created automatically.
If you push an image and don't include a repository name, the image's name is used as the name of

https://www.oracledumpsfree.com/1Z0-1084-21-exam-dumps.html
the
repository. For example, if you enter a command like docker
pushiad.ocir.io/ansh81vru1zp/acme-web-app:7.5.2 that doesn't contain a repository name, the
image's name

QUESTION 3

Which one of the following is NOT a valid backend-type supported by Oracle Cloud Infrastructure (OCI)
API Gateway?
A. STOCK_RESPONSE_BACKEND
B. ORACLE_FUNCTIONS_BACKEND
C. ORACLE_STREAMS_BACKEND
D. HTTP_BACKEND

Correct Answer: C

Explanation/Reference:

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 4

What are two of the main reasons you would choose to implement a serverless architecture?
A. No need for integration testing
B. Reduced operational cost
C. Improved In-function state management

https://www.oracledumpsfree.com/1Z0-1084-21-exam-dumps.html
D. Automatic horizontal scaling
E. Easier to run long-running operations

Correct Answer: B,D

Explanation/Reference:

Serverless computing refers to a concept in which the user does not need to manage any server
infrastructure
at all. The user does not run any servers, but instead deploys the application code to a
serviceprovider’s
platform. The application logic is executed, scaled, and billed on demand, without any costs to the
user when
the application is idle.
Benefits of the Serverless or FaaS
So far almost every aspect of Serverless or FaaS is discussed in a brief, so let’s talk about the pros
and cons of
using Serverless or FaaS
Reduced operational and development cost
Serverless or FaaS offers less operational and development cost as it encourages to use third-party
services
like Auth, Database and etc.
Scaling
Horizontal scaling in Serverless or FaaS is completely automatic, elastic and managed by FaaS
provider. If
your application needs more requests to be processed in parallel the provider will take of that without
you
providing any additional configuration.
References:
https://medium.com/@avishwakarma/serverless-or-faas-a-deep-dive-e67908ca69d5
https://qvik.com/news/serverless-faas-computing-costs/
https://pages.awscloud.com/rs/112-TZM-766/images/PTNR_gsc-serverless-ebook_Feb-2019.pdf

QUESTION 5

You have deployed a Python application on Oracle Cloud Infrastructure Container Engine for
Kubernetes.
However, during testing you found a bug that you rectified and created a new Docker image. You
need to
make sure that if this new Image doesn't work then you can roll back to the previous version.
Using kubectl, which deployment strategies should you choose?

A. Rolling Update
B. Canary Deployment
C. Blue/Green Deployment
D. A/B Testing

https://www.oracledumpsfree.com/1Z0-1084-21-exam-dumps.html
Correct Answer: C

Explanation/Reference:

Using Blue-Green Deployment to Reduce Downtime and Risk:


>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.
This technique can eliminate downtime due to app deployment. In addition, blue-green deployment
reduces
risk: if something unexpected happens with your new version on Green, you can immediately roll
back to
the last version by switching back to Blue.

>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.
The canary deployment serves as an early warning indicator with less impact on downtime: if the
canary
deployment fails, the rest of the servers aren't impacted.
>A/B testing is a way to compare two versions of a singlevariable, typically by testing a subject's
response to
variant A against variant B, and determining which of the two variants is more effective
>Rolling update offers a way to deploy the new version of your application gradually across your
cluster.
References:
https://docs.cloudfoundry.org/devguide/deploy-apps/blue-green.html

https://www.oracledumpsfree.com/1Z0-1084-21-exam-dumps.html
QUESTION 6

Which two "Action Type" options are NOT available in an Oracle Cloud Infrastructure (OCI) Events rule
definition?
A. Notifications
B. Functions
C. Streaming
D. Email
E. Slack

Correct Answer: D,E

Explanation/Reference:

Overview ofEvents
Oracle Cloud Infrastructure Events enables you to create automation based on the state changes of
resources
throughout your tenancy. Use Events to allow your development teams to automatically respond
when a
resource changes its state.
Event Rules must also specify an action to trigger when the filter finds a matching event. Actions are
responses you define for event matches. You set up select Oracle Cloud Infrastructure services that
the Events
service has established as actions. The resources forthese services act as destinations for matching
events.
When the filter in the rule finds a match, the Events service delivers the matching event to one or
more of the
destinations you identified in the rule. The destination service that receives the eventthen processes
the event
in whatever manner you defined. This delivery provides the automation in your environment.
You can only deliver events to certain Oracle Cloud Infrastructure services with a rule. Use the
following
services to create actions:
Notifications
Streaming
Functions

https://www.oracledumpsfree.com/1Z0-1084-21-exam-dumps.html
References:
https://docs.cloud.oracle.com/en-us/iaas/Content/Events/Concepts/eventsoverview.htm

QUESTION 7

Which two arerequired to enable Oracle Cloud Infrastructure (OCI) Container Engine for Kubernetes
(OKE) cluster access from the kubect1 CLI?
A. An SSH key pair with the public key added to cluster worker nodes
B. Install and configure the OCI CLI
C. OCI Identity and Access Management Auth Token
D. Tiller enabled on the OKE cluster
E. A configured OCI API signing key pair

Correct Answer: B,E

https://www.oracledumpsfree.com/1Z0-1084-21-exam-dumps.html
Explanation/Reference:

Setting Up Local Access to Clusters


To set up a kubeconfig file to enable access to a cluster using a local installation of kubectl and
theKubernetes
Dashboard:
Step 1: Generate an API signing key pair
Step 2: Upload the public key of the API signing key pair
Step 3: Install and configure the Oracle Cloud Infrastructure CLI
Step 4: Set up the kubeconfig file
Step 5: Verify that kubectl can access the cluster
References:
https://docs.cloud.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengdownloadkubeconfigfile.htm

https://www.oracledumpsfree.com/1Z0-1084-21-exam-dumps.html

You might also like