Final 1 Flashcards

(38 cards)

1
Q

Which one of the following is applicable when using Storage Class to provide storage for pods?
a. Pods request storage via a persistent volume claim
b. Persistent Volume Claim requests storage from Storage Class
c. Storage Class creates Persistent Volume dynamically that meets the needs of the claim
d. All of the above

A

d. All of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 3 types of Service objects supported by Kubernetes?
a. Pod, ReplicaSet, Deployment
b. Cluster IP, NodePort, Load Balancer
c. Deployment, Resiliency, Scalability
d. None of the above

A

b. Cluster IP, NodePort, Load Balancer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the benefit of deploying your containerized applications on Kubernetes?
a. Scalability
b. Resiliency
c. High Availability
d. All of the above

A

d. All of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is [(ngModel)] used for in Angular?
a. Two-way binding
b. One-way binding
c. Mustache Syntax
d. Banana in a box

A

a. Two-way binding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is JAX-RS?
a. Spec to implement Java persistence API
b. Java Architecture for XML and RESTful
c. Java API for RESTful Webs Services
d. None of the above

A

c. Java API for RESTful Webs Services

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Kubernetes cluster state data is stored in which of the following?
a. Kube-apiserver
b. Persistent Volume
c. etcd
d. All of the above

A

c. etcd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which one of the following does not have enough annotations to configure a Java class into a RESTful resource?
a. @PATH, @GET, @POST
b. @PATH, @GET
c. @PATH[{id}], @GET
d. None of the above

A

d. None of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does a Kubernetes service object determine which pod group to forward the requests to?
a. Using Pods’ IP addresses implicitly
b. Explicitly using a selector that points to a label used by the pod
c. Using Pods’ group ID implicitly
d. None of the above

A

b. Explicitly using a selector that points to a label used by the pod

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What Kubernetes resource can be used to provide persistence storage for your applications deployment in Kubernetes?
a. Ephemeral storage
b. Persistent Volume
c. Amazon RDS
d. etcd

A

b. Persistent Volume

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which one of the following manages ReplicaSets?
a. Scheduler
b. Kubelet
c. kube-proxy
d. Deployment

A

d. Deployment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the name of the file that you must first create to build and run a custom container image on your laptop?
a. Dockerfile
b. Container Image
c. Base image
d. None of the above

A

a. Dockerfile

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

When using the ingress to route external traffic to your application running on a Kubernetes cluster, you will need which one of the following?
a. Define a Deployment object with a Pod that encapsulates your application
b. Create a service object of type ClusterIP which routes traffic to a Pod
c. Create an ingress object that routes traffic to a service object, such as ClusterIP
d. All of the above

A

d. All of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which one of the following components of HTTP requests is used to identify the resource on server?
a. HTTP Version
b. Request Header
c. HTTP VERB
d. URI

A

d. URI

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

When using a NodePort service to access a web application deployed on Kubernetes, the NodePort opens a port on every node in the cluster randomly chosen in a range. What is that range?
a. 8081-8443
b. 80-8080
c. 30000-32767
d. 80-443

A

c. 30000-32767

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

For a critical enterprise system, which one of the following must be implemented to make sure the system is resilient and highly available?
a. Redundancy
b. Fault-tolerant
c. Security
d. All of the above

A

d. All of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which one of the following essentially maintains the distributed network across all nodes, pods, and containers?
a. Controller
b. API server
d. kubelet
d. kube-proxy

A

b. API server

17
Q

Which one of the following will enable you to make SSH connection to EC2 machine from your laptop?
a. EC2 instance in running state
b. Pem (.pem or .ppk) file configured into EC2 instance
c. Security Group configured to allow inbound traffic at port 22 from anywhere
d. All of the above

A

d. All of the above

18
Q

What is the name of the handy service that Angular provides out of the box that can be used to make REST API calls from Angular?
a. JAX-RS
b. Dependency Injection
c. Jersey
d. HttpClient

A

d. HttpClient

19
Q

What are the correct port numbers an Ingress Controller can listen to?
a. 8080, 8443
b. 30000, 32767
c. 80, 443
d. All of the above

20
Q

What annotation(s) are used to facilitate the automatic creation of the value of the primary key in a JPA entity when you persist the JPA entity in a table?
a. @PrimaryKey @Automated
b. @Id @GenerateValue
c. @Id @StrategyAuto
d. All of the above

A

b. @Id @GenerateValue

21
Q

Which one of the following tools can be used to implement a fully functional DevOps-based CI/CD pipeline?
a. Jenkins
b. Git
c. ArgoCD/Kubernetes
d. All of the above

A

d. All of the above

22
Q

Which of the following annotations of JAX RS API is used to annotate a method to specify the relative path of the sub resource?
a. @GET
b. @Path
c. @POST
d. @PUT

23
Q

In the following, code, what is the purpose of {{}}?

<h3>
<a [title]="product.name + 'details'">
{{ product.name }}
</a>
</h3>

a. Mustache syntax
b. Two-way data binding
c. Interpolation
d. None of the above

A

c. Interpolation

24
Q

What is true about Docker containers?
a. Containers allow packaging of an application and its dependencies in a way that can run on any Linux server
b. Promotes portability and flexibility on where the application can run
c. Provides consistency in application deployment
d. All of the above

A

d. All of the above

25
The 4 top-level keys in any YAML file to specify configuration of K8s objects to deploy applications on a Kubernetes cluster are: a. Pod, ReplicaSet, Deployment, LoadBalancer b. ClusterIP, NodePort, LoadBalancer, Ingress c. apiVersion, kind, metadata, spec d. None of the above
c. apiVersion, kind, metadata, spec
26
What are the 2 bare minimum requirements to annotate simple POJO into a JPA entity? a. @JPA, @Entity b. @Entity, @Id c. @Entity, No argument public constructor d. @Entity, @Table
b. @Entity, @Id
27
What is true about a pod in Kubernetes? a. The smallest unit of deployment on Kubernetes b. It provides a runtime environment for containerized applications c. A pod generally hosts one container inside of it, but can host more than one containers grouped together to share resources and run as a unit d. All of the above
d. All of the above
28
How would you configure your RESTful application to use Jersey so that it can be deployed in Tomcat? a. Using annotations b. Using JAX-RS c. Using web.xml d. None of the above
c. Using web.xml
29
When using an S3 bucket for website hosting, what permissions are needed? a. Public access to S3 bucket b. Public access to objects inside the S3 bucket c. Both A and B d. Either A or B
c. Both A and B
30
What does "fetch=FetchType.EAGER" mean in terms of Customer and Phone entities? (command is in Customer class) @Entity public class Customer implements Serializable{ private Collection phones; @OneToMany (cascade={CascadeType.ALL}, fetch=FetchType. EAGER) @JoinColumn (name="customer id") public Collection getPhones () { return phones; } } a. No impact because FetchType.LAZY is missing b. When phones are loaded, the customer is loaded as well c. When customer is loaded, all phones are loaded as well d. None of the above
c. When customer is loaded, all phones are loaded as well
31
Which one of the following does not provide JPA implementation? a. EclipseLink b. Hibernate c. Jersey d. JBoss/Weblogic/GlassFish
c. Jersey
32
Which one of the following is not a key principle of the REST architecture? a. Resource identification through URI b. Multiple representation of data c. Stateful communication d. Uniform interface
c. Stateful communication
33
In the following code, what is the purpose of using parenthesis around click? a. Data binding b. Method binding c. Event binding d. None of the above
c. Event binding
34
What is the technology that Angular2 and later versions use to provide its capabilities such as those to define components and services? a. TypeScript b. JavaScript c. AngularJS d. None of the above
a. TypeScript
35
When using JPA, how do you get access to the database connection to read/write entity instances from/to a persistent storage? a. JDBC Driver b. PersistenceContext c. EntityManager d. DataSource
c. EntityManager
36
In Angular, what is a key different between a Component and a Service? a. Components expose its functionality via Services b. There is not different between a Service and Component c. A Component has view and a Service doesn't d. None of the above
c. A Component has view and a Service doesn't
37
If you were to deploy 3 copies of your containerized web application on Kubernetes, you will create a YAML manifest of the following object: a. Service b. Replicas c. Deployment d. Pod (encapsulating the containerized web application)
c. Deployment
38
You have a containerized web application deployed on a Kubernetes cluster. Which object combination will not enable you to externally (outside the Kubernetes cluster) access the web application running on the Kubernetes cluster? a. Deployment, Service of type NodePort B. Deployment, Service of type ClusterIP c. Deployment of type ClusterIP, Ingress d. None of the above
B. Deployment, Service of type ClusterIP