Post Test Flashcards

1
Q

Which of the following statements are true for Java 8 environments?
a. JVM is responsible for converting java byte code into machine specific code
b. JDK is required to compile java programs.
c. JRE does not contain JVM.
d. JRE software contains javac compiler.
e. None of the above

A

a. JVM is responsible for converting java byte code into machine specific code b. JDK is required to compile java programs.

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

Which operator returns a boolean if the two operands have the same value?
a. ?:
b. ==
c. ^
d. =
e. None of the above

A

b. ==

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

Which of the following is valid initialization code?
a. Int x = 3;
b. String age = 44;
c. float f = “NewFloat”;
d. Integer int = new Integer;
e. None of the above

A

e. None of the above

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

If you want your conditional to depend on two conditions BOTH being true, what is the proper notation to put between the two boolean statements?
a. AND
b. &&
c. OR
d. II
e. None of the above

A

b. &&

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

What is the proper way to declare a variable?
a. variableName variableType;
b. variableName;
c. variableType;
d. variableType variableName;
e. None of the above

A

d. variableType variableName;

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

Which of the. following primitive data type may be used to store the integer value of 128?
a. byte
b. short
c. int
d. char

A

b. short c. int

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

What is the range of values for char data type variable?
a. -215-1 to -215
b. -215 to -215-1
c. \u0000 to \uFFFF
d. \0000 to \FFFF
e. None of the above

A

c. \u0000 to \uFFFF

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

What is the output of the following code?

System.out.println ;

a. The interest amount is =1005.0
b. The interest amount is =25.0
c. The interest amount is =125.0
d. The interest amount is =105.0
e. Code cannot compile, will result in compile error.

A

a. The interest amount is =1005.0

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

What is the output of the following code?

java.lang.Double height = new java.lang.Double32.34);
System.out.println;

a. 32.34
b. 32.0
c. 32
d. This code block will result in compile error.
e. none of the above

A

b. 32.0

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

Which of the following is the correct syntax to declare Scanner class object?
a. Scanner objectName = Scanner;
b. Scanner objectName = new Scanner;
c. Scanner objectName= Scanner;
d. Scanner objectName = new Scanner;
e. None of the above.

A

d. Scanner objectName = new Scanner(System.in);

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

Which is a valid structure for the syntax of a method declaration in a class?
a. private printOutput
b. protected Customer locateProfile CustomerNotFoundException
c. public Account openAccount
d. public Double getPrice;
e. None of the above

A

c. public Account openAccount(String name, double balance)

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

Which of the following statements about interfaces and abstract classes is FALSE?
a. A class can implement only one interface
b. Method declarations in interfaces must end in a semi-colon
c. A class can be a subclass of multiple abstract classes
d. Abstract classes can contain fields that are not static and final
e. None of the above

A

a. A class can implement only one interface

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

Which of these statements is true? Select the one correct answer.
a. For each try block there must be at least one catch block defined.
b. A try block may be followed by any number of finally blocks.
c. A try block must be followed by at least one finally or catch block.
d. Finally block is placed before any catch block.
e. None of the above

A

c. A try block must be followed by at least one finally or catch block.

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

Which access modifier makes a member available only to classes within the same
package and subclasses in any other package?
a. private
b. protected
c. public
d. package-private
e. None of the above

A

b. protected

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

What is the output of the following code block?

String[ ] numbers = {“10”, “20”, “34”, “56”};
System.out.println + 10);

a. 2010
b. 30
c. 20
d. 1010
e. None of the above

A

b. 30

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

Which of the following statements are true?
a. final methods cannot be overridden in sub classes
b. final field values cannot be changed after initialization
c. abstract classes cannot have final methods
d. abstract class cannot have final fields
e. None of the above

A

a. final methods cannot be overridden in sub classes
b. final field values cannot be changed after initialization

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

Which of the following is valid initialization code?
a. int x =3;
b. char c = 44;
c. String s = ‘b’;
d. Integer int = new Integer;
e. None of the above

A

a. int x =3;
b. char c = 44;

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

What is true about “casting”?
a. Casting is only possible between primitives
b. Involves the duplication of one object to another object
c. Casting implicitly takes place during numeric conversion
d. Casting requires a magic user with at least 16 in INT and DEX
e. None of the above

A

e. None of the above

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

Which statement best describes Spring Beans? Choose one.
a. They are instantiated using the ‘new’ keyword.
b. They are Java Classes.
c. They are objects managed by a Spring container.
d. They are configured using xml.
e. None of the above

A

c. They are objects managed by a Spring container.

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

True or False: the ApplicationContext is used to access the Spring container in your
code?
a. True
b. False

A

a. True

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

Which of the following is not a Spring application context?
a. ClassPathXmlApplicationContext
b. FileSystemXmlApplicationContext
c. FileSystemAnnotationApplicationContext
d. AnnotationConfigApplicationContext
e. None of the above

A

c.FileSystemAnnotationApplicationContext

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

Which of the following is not true of Annotations?
a. They start with the “@” symbol
b. They are used to add metadata to source code.
c. They only apply to classes.
d. They are recognized by the Spring container
e. None of the above

A

c. They only apply to classes.

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

Which one of the following is true of this XML element: ?
a. It is added to the web.xml file.
b. It provides functionality similar to that of @Autowired
c. It enables auto scanning for Spring Beans.
d. It typically includes the ‘base-classes’ attribute
e. None of the above

A

c. It enables auto scanning for Spring Beans.

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

Which of the following are true of ‘Dependency Injection’?
a. DI instantiates and provides objects required in Spring classes.
b. DI replaces the need for classes to instantiate objects on their own.
c. DI allows alternate implementations to be substituted based on configuration.
d. All the above.
e. None of the above

A

d. All the above.

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

What is purpose of the @Autowired annotation?
a. It documents jar level resources.
b. It allows bean classes to be detected by type.
c. It allows beans to be injected by type.
d. It is essentially the same as @Component
e. None of the above

A

c. It allows beans to be injected by type.

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

True or False, Dependency injection increases coupling?
a. True
b. False

A

b. False

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

Which of the following is a benefit of configuring Spring via XML?
a. Configuration is compiled along with the code.
b. Metadata from an XML file is always in sync with the Java code.
c. Configuration can be changed without recompiling code.
d. It provides less possibly points of failure.
e. None of the above

A

c. Configuration can be changed without recompiling code.

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

True or False, Spring beans are singletons by default?
a. True
b. False

A

a. True

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

Which best describes the purpose of an @Configuration class?
a. It includes methods that you can call in your code.
b. It takes the place of the container’s dependency injection code.
c. It provides metadata that the container can use to create bean instances for
injection.
d. It is executed just like any other Java code.
e. None of the above

A

c. It provides metadata that the container can use to create bean instances for injection.

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

What is the purpose of @Value?
a. It marks data that can injected using the string “jdbx.url”.
b. It injects a value from an external property file into a variable.
c. It replaces the name of the item being injected with an alias.
d. It injects the string “jdbc.url” literally into a variable.
e. None of the above

A

b. It injects a value from an external property file into a variable.

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

Which of the following is not a Spring module?
a. AOP
b. O/R Integration
c. Spring MVC
d. HTML/JSP
e. None of the above

A

d. HTML/JSP

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

Given a REST service that returns information about orders, including the various
items of each order, what might the URI look like for getting the second item of the
third order?
a. /orders3items2
b. /orders/1/items/2
c. /orders/2/items/3
d. /orders/3/items/2
e. None of the above

A

d. /orders/3/items/2

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

Annotations work as metadata for classes and Spring uses annotations as an
alternative to XML for declarative configuration. Is it true or false?
a. True
b. False
c. Do not know

A

a. True

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

In Spring Web App Environment, which of the following acts as a Front Controller?
a. @RestController
b. DispatcherServlet
c. Models
d. Views
e. None of the above

A

b. DispatcherServlet

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

Which of the following statements are true of Maven and Spring?
Select all that apply.
a. Maven is a build tool
b. Maven manages dependencies
c. Maven handles refactoring
d. Maven is useful for Spring development
e. Maven is required for Spring development

A

a. Maven is a build tool
b. Maven manages dependencies
d. Maven is useful for Spring development

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

@RequestMapping annotation is used to map a HTTP request method to a specific class or method in the controller which will handle the respective
request. Is it true or false?
a. True
b. False
c. Do not know

A

a. True

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

Which of the following layers uses the @Controller annotation for classes?
a. Service layer
b. Presentation layer
c. Business layer
d. Session layer
e. None of the above

A

b. Presentation layer

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

Which of the following statements is true?
a. BeanFactory implements ApplicationContext
b. BeanFactory extends ApplicationContext
c. ApplicationContext extends BeanFactory
d. ApplicationContext implements BeanFactory
e. None of the above

A

c. ApplicationContext extends BeanFactory

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

Which of the following HTTP Status code means OK, shows success?
a. 200
b. 201
c. 204
d. 304
e. None of the above

A

a. 200

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

What is the difference between a Jenkins job and a pipeline?
a. A job does not require scripting whereas a pipeline requires scripting.
b. A job requires scripting whereas a pipeline does not require scripting.
c. There is no difference.
d. A job is a schedule or trigger assigned to a pipeline.
e. None of the above.

A

a. A job does not require scripting whereas a pipeline requires scripting.

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

What is the purpose of Liquibase?
a. Database/schema refactoring
b. RESTful service development
c. Docker container orchestration platform
d. Authentication
e. None of the above

A

a. Database/schema refactoring

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

What is DevOps?
a. DevOps is the union of People, Process, and Tools to enable continuous
delivery of value to our end users
b. DevOps is a programming language
c. DevOps is operational staff doing development work
d. DevOps is a software development model
e. None of the above

A

a. DevOps is the union of People, Process, and Tools to enable continuous delivery of value to our end users.

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

What are the parts of JSON Web Tokens?
a. Header, Payload, Signature
b. Header, Payload, Attachment, Signature
c. Header, Payload, Signature, Attachments
d. Payload, Signature
e. None of the above

A

a. Header, Payload, Signature

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

Which of the following commands runs Jenkins from the command line?
a. java -jar jenkins.war
b. java -war jenkins.war
c. java -jar jenkins.jar
d. java -war jenkins.jar
e. None of the above

A

a. java -jar jenkins.war

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

To build RESTful web services, we need to add the following dependencies.
Select the correct dependencies.
a. spring-boot-starter-web
b. spring-boot-starter-rest
c. spring-boot-starter-web.rest
d. All the above
e. None of the above

A

a. spring-boot-starter-web

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

Given a REST service that returns information about orders, including the
various items of each order, what might the URI look like for getting the second
item of the first order?
a. /orders3items2
b. /orders/1/items/2
c. /orders/2/items/3
d. /orders/3/items/2
e. None of the above

A

b. /orders/1/items/2

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

Imagine that you just joined a development team that uses Git for version control
and collaboration. To start contributing to the project, what Git operation would you most
likely invoke first?
a. checkout
b. clone
c. export
d. revert
e. None of the above

A

b. clone

48
Q

In Spring Boot Web App, which of the following acts as a Front Controller?
a. @RestController
b. DispatcherServlet
c. Models
d. Views
e. None of the above

A

b. DispatcherServlet

49
Q

. What applications mostly benefit from 12-factor application methodology?
a. Monoliths
b. Microservices
c. None of the above

A

b. Microservices

50
Q

Which of the following is a flow of CI-CD pipeline?
a. Version control, Build, Deploy, Auto Test
b. Version control, Build, Auto Test, Deploy
c. Build, Deploy, Version control, Auto Test
d. Build, Deploy, Unit Test, Auto Test
e. None of the above

A

b. Version control, Build, Auto Test, Deploy

51
Q

Select the correct syntax schedule a Jenkins job to run at midnight on the 1st
of each month?
a. 0 0 1 0 0
b. 0 1 0 * *
c. 0 0 1 * *
d. 1 0 0 * 0
e. None of the above

A

c. 0 0 1 * *

52
Q

What status code should a REST service return when an unauthorized request
is received?
a. 500
b. 501
c. 401
d. 400
e. 403

A

c. 401

53
Q

REST Template is used to ______________________________
a. create applications that produce REST web services
b. create applications that consume REST web services
c. create applications that produce and consume REST web services
d. None of the above

A

c. create applications that produce and consume REST web services

54
Q

What does CALMS framework stands for?
a. Culture, Asset, Lean, Measurement, Sharing
b. Culture, Asset, Lean, Measurement, Solo
c. Culture, Automation, Lean, Measurement, Sharing
d. Culture, Automation, Lean, Measurement, Silo
e. None of the above

A

c. Culture, Automation, Lean, Measurement, Sharing

55
Q

What is trunk in trunk-based DevOps delivery?
a. Trunk is a special private branch in a developer workstation.
b. Trunk is the process of merging code in DevOps deliveries.
c. Developers collaborate on code in a single branch called “trunk”.
d. Trunk is a special source code version controlling system which stores
mission critical special projects of your DevOps organization.
e. None of the above.

A

c. Developers collaborate on code in a single branch called “trunk”.

56
Q

Which of the following file is created and used when working with Jenkins
pipeline?
a. Dockerfile
b. pipeline.groovy
c. Jenkinsfile
d. Jenkinsfile.pipeline
e. None of the above

A

c. Jenkinsfile

57
Q

What is the property used to change the port to 8090 in a Spring Boot
application?
a. server=8090
b. port=8090
c. server.port=8090
d. port cannot be changed.
e. None of the above

A

c. server.port=8090

58
Q

Select the valid options to implement hot deployment in a Spring Boot
application
a. Spring Boot Actuator
b. Spring Loaded
c. Spring-boot-devtools
d. Spring JPA
e. None of the above

A

c. Spring-boot-devtools

59
Q

What are the gradle build configuration files?
a. build.xml, gradle.properties, settings.gradle
b. pom.xml, gradle.properties, settings.gradle
c. pom.gradle, gradle.properties, settings.gradle
d. build.gradle, gradle.properies, settings.gradle
e. None of the above

A

d. build.gradle, gradle.properties, settings.gradle

60
Q

Which of the following is not a valid HTTP method used in REST services?
a. POST
b. PUT
c. GET
d. READ
e. None of the above

A

d. READ

61
Q

Is this code valid for creating a simple RESTful service in Spring Boot?

@RestController
public class EchoController {
@RequestMapping
public String echoback String echo) {
return echo;
}
}

A

Yes

62
Q

Select the valid HTTP methods used when developing RESTful services. Please
select all that apply.
a. GET
b. INSERT
c. PUT
d. UPDATE
e. MODIFY

A

a. GET
c. PUT

63
Q

What are the possible mechanisms provided by Spring Security to store user
details? Select one or more correct answers.
a. Database
b. JAAS
c. LDAP
d. Properties file
e. None of the above

A

a. Database
c. LDAP
d. Properties file

64
Q

Is this statement correct? True or false question
“DevOps is more than just a tool or a process change; it inherently requires an
organizational culture shift”.
a. True
b. False

A

a. True

65
Q

Both developer and release managers can create a release branch in Trunk-based
development. Is this true or false?
a. True
b. False

A

b. False

66
Q

What is the difference between Continuous Delivery and Continuous
Deployment?
a. Continuous Delivery is a manual task, while Continuous Deployment is an
automated task.
b. Continuous Delivery has a manual release to production decision, while
Continuous Deployment has releases automatically pushed to production.
c. Continuous Delivery includes all steps of software development lifecycle,
Continuous Deployment may skip few steps such as validation and testing.
d. Continuous Delivery means complete delivery of the application to customer,
Continuous Deployment includes only deployment of the application in
customer environment.
e. None of the above

A

b. Continuous Delivery has a manual release to production decision, while
Continuous Deployment has releases automatically pushed to production.

67
Q

What Gradle commands can be used to run a Spring Boot application?
a. gradle spring-boot:run
b. gradle bootRun
c. gradle springRun
d. gradlew bootRun
e. none of the above

A

b. gradle bootRun

68
Q

Which of the following are not features of Microservices?
a. Decentralized governance.
b. Independent deployment.
c. Microservices use Enterprise Service Bus for communication.
d. All the above.
e. None of the above

A

c. Microservices use Enterprise Service Bus (ESB) for communication.

69
Q

Select the valid code to utilize JPA/Hibernate in a Spring Boot application
a. @DAO
public class PurchaseDAOJDBCImpl implements PurchaseDAO {…}
b. @JPA
public class PurchaseDAOJDBCImpl implements PurchaseDAO {…}
c. @Hibernate
public class PurchaseDAOJDBCImpl implements PurchaseDAO {…}
d. @Repository
public class PurchaseDAOJDBCImpl implements PurchaseDAO {…}
e. None of the above

A

d. @Repository
public class PurchaseDAOJDBCImpl implements PurchaseDAO {…}

70
Q

Which one of the following is not an embedded web container runtime provided
by Spring Boot 2.x?
a. Tomcat
b. Jetty
c. Undertow
d. Binary Link
e. None of the above

A

d. Binary Link

71
Q

Which of the following HTTP method should be used to get list the supported
operations in RESTful web service?
d. GET
e. HEAD
f. PUT
g. OPTIONS
h. None of the above

A

g. OPTIONS

72
Q

What are the client-side mechanisms for storing user sessions state?
a. Store the state in a cookie.
b. Keep the state in hidden form variables.
c. Store in a third-party storage and retrieve it.
d. This question is wrong, you cannot store user sessions on the client side.
e. None of the above.

A

a. Store the state in a cookie.
b. Keep the state in hidden form variables.

73
Q

Select the valid statements for Spring Boot.
a. It has an embedded web container which lets you run applications from
command-line.
b. It is required to develop Java applications so they can run in a Docker
container.
c. It allows the development of stand-alone web applications with minimum
configuration.
d. It is a framework which allows the implementation of MVC design pattern in
desktop, web, and mobile applications.
e. None of the above

A

a. It has an embedded web container which lets you run applications from command-line.
c. it allows the development of stand-alone web applications with minimum configuration.

74
Q

Select the valid RESTful services principles.
a. Use the standard HTTP methods
b. Services should be stateful
c. Utilize SOAP/XML when making requests for backward comparability
d. Services should be stateless
e. None of the above

A

a. Use the standard HTTP methods
d. Services should be statelessd.

75
Q

Select the valid factors recommended by 12-factor application methodology?
a. Create a separate codebase for dev, test, and prod
b. Export services via port binding
c. Store config in code
d. Isolate dependencies
e. None of the above

A

b. Export services via port binding
d. Isolate dependenciese.

76
Q

In what file would you store configuration data when developing a Spring
Boot application?
a. spring.conf
b. build.gradle
c. application.properties
d. application.yml
e. None of the above

A

c. application.properties
d. application.yml

77
Q

A single @SpringBootApplication annotation can be used the enable three features. What are those 3 features?
a. @EnableAutoConfiguration
b. @ComponentScan
c. @Configuration
d. @RestController
e. None of the above

A

a. @EnableAutoConfiguration
b. @ComponentScan
c. @Configuration

78
Q

Select the valid Microservices Architecture Design principle
a. Deploy independently
b. Decentralize all components
c. Modeled around business domain
d. Every Component should databases directly
e. None of the above

A

a. Deploy independently
b. Decentralize all components
c. Modeled around business domain

79
Q

What are the valid options to secure REST services and web applications?
a. OAuth
b. gRPC
c. SAML
d. JWT
e. None of the above

A

a. OAuth
c. SAML
d. JWT

80
Q

Select the out-of-box branches available in Gitflow workflow
a. Troubleshoot
b. Release
c. Feature
d. Hotfix
e. Deploy

A

b. Release
c. Feature
d. Hotfix

81
Q

What are the disadvantages of monolith applications?
a. Tight coupling of system components
b. Inherent resistance to change
c. Difficult to scale elastically
d. Long term commitment to a single technology
e. Makes it harder to go cloud-native
f. None of the above

A

a. Tight coupling of system components
b. Inherent resistance to charge
c. Difficult to scale elastically
d. Long term commitment to a single technologye. Makes it harder to go cloud-native

82
Q

What are the core values of DevOps?
a. Culture
b. Sharing
c. Measurement
d. Automation
e. None of the above

A

a. Culture
b. Sharing
c. Measurement
d. Automation

83
Q

What are the teams required to deliver value faster to customer?
a. Business Team
b. Dev Teams
c. Ops team
d. All the above
e. None of the above

A

d. All the above

84
Q

What Challenge does DevOps resolves?
a. Increasingly complex virtualized IT environment
b. The need for rapidly times software releases; sometimes many in one day
c. The traditional siloed approach to app development and deployment
d. All the above
e. None of the above

A

d. All the above

85
Q

Why would a microservices architecture be beneficial?
a. A suite of services can be deployed and upgraded without a rebuild of other
functioning services.
b. Less service interruption for fast-paced cloud computing.
c. Teams can use their preferred language and tools to build the services they
own.
d. All the above
e. None of the above

A

d. All the above.

86
Q

What are the benefits of adopting DevOps?
a. Faster time to market
b. Increase end-use satisfaction
c. Increase in productivity
d. All the above
e. None of the above

A

d. All the abovee.

87
Q

In RESTful services, PUT HTTP verb is used to perform an insert operation
a. True
b. False
c. Do not know

A

b. False

88
Q

Which of the Dockerfile options executes any commands in a new layer on top
of the current image and commit the results?
a. RUN
b. FROM
c. ONBUILD
d. CMD
e. None of the above

A

a. RUN

89
Q

How do you share data across multiple Docker containers?
a. Docker doesn’t support content sharing since containers are isolated
b. Docker Volume
c. Docker Compose
d. Dockerfile
e. None of the above

A

b. Docker Volume

90
Q

What is Docker Compose?
a. It allows data sharing across multiple Docker containers
b. It allows you to define and create a group of Docker containers
c. It is a Docker plugin which lets you utilize Kubernetes
d. It is a container orchestration tool and provides load-balancing and autofailover features
e. None of the above

A

b. It allows you to define and create a group of Docker containers

91
Q

Which of the Dockerfile options initializes a new build stage and sets the base
image for subsequent instructions?
a. RUN
b. FROM
c. ONBUILD
d. CMD
e. None of the above

A

b. FROM

92
Q

What Docker command would you use to remove all unused images and
stopped containers?
a. docker rm -a
b. docker system prune -a
c. docker prune -a
d. docker clean a
e. None of the above

A

b. docker system prune -a

93
Q

What can you do when you run the following command?
docker exec -it container_id bash
a. Activate default VM machine
b. Access a running container
c. Build an Image
d. Commit changes done in a Docker image
e. None of the above

A

b. Access a running container

94
Q

Which of the following docker image commands display detailed information
on one or more images?
a. docker image detail
b. docker image history
c. docker image inspect
d. docker image ls
e. None of the above

A

c. docker image inspect

95
Q

What feature allows you to use Docker images from various locations?
a. Storage Volume
b. Pod
c. Route
d. Registry
e. None of the above

A

d. Registry

96
Q

Which of the following statements are true for the following images?
a. Image 1 shows containerization.
b. Image 2 shows virtualization.
c. Image 3 shows virtualization.
d. Image 4 shows containerization in a virtualization environment.
e. None of the above

A

a. Image 1 shows containerization.
b. Image 2 shows virtualization.
d. Image 4 shows containerization in a virtualization

97
Q

What does “docker system prune -a” command do?
a. Stops docker service
b. Removes all unused/dangling images
c. Stops all running containers
d. Removes all stopped containers
e. Removes all build caches

A

b. Removes all unused/dangling images
d. Removes all stopped containers
e. Removes all build caches

98
Q

. Which of the following are core Kubernetes objects?
a. Pods
b. Services
c. Volumes
d. All the above
e. None of the above

A

d. All the above

99
Q

Which of the following is used to store Kubernetes cluster data?
a. kubelet
b. etcd
c. kube-apiserver
d. replicaSet
e. None of above

A

b. etcd

100
Q

What are the responsibilities of a node controller?
a. To assign a CIDR block to the nodes
b. To maintain the list of nodes
c. To monitor the health of the nodes
d. To create a new pod if the existing pod crashes
e. None of the above

A

a. To assign a CIDR block to the nodes
b. To maintain the list of nodes
c. To monitor the health of the nodes

101
Q

What steps are performed when you perform a rolling update in Kubernetes?
a. Create a new replication controller with the updated configuration
b. Restart the etcd service
c. Create a new kubelet with the updated configuration
d. Increase/decrease the replica count on the new and old controllers until the
correct number of replicas is reached
e. Delete the original replication controller

A

a. Create a new replication controller with the updated configuration
d. Increase/decrease the replica count on the new and old controllers until the
correct number of replicas is reached
e. Delete the original replication controller

102
Q

. Which of the following commands do we use to open a proxy port on localhost
for the Kubernetes cluster?
a. kubectl create
b. kubectl proxy
c. kubectl localhost
d. kubectl proxy create
e. None of the above

A

b. kubectl proxy

103
Q

Kubernetes is written in __________
a. C++
b. Go
c. Python
d. Java spring framework
e. None of the above

A

b. Go

104
Q

The command to create Kubernetes service is ___________________
a. kubectl expose
b. kubectl set service
c. kubectl run
d. kubectl deploy
e. None of the above

A

a. kubectl expose

105
Q

Which of the following Service Type works only if your cluster is setup to
work with a cloud provider?
a. ClusterIP
b. NodePort
c. LoadBalancer
d. ExternalName
e. None of the above

A

c. LoadBalancer

106
Q

Kube-apiserver on Kubernetes master is designed to scale __________
a. Vertically
b. Horizontally
c. Vertically and Horizontally
d. Kube-apiserver cannot be scaled
e. None of the above

A

b. Horizontally

107
Q

Which of the following is/are responsible for health check of the pods running
on individual nodes?
a. kubectl
b. kube controller manager
c. kube scheduler
d. kubelet
e. None of the above

A

d. kubelet

108
Q

Which of the following tools and options can be used for distributed tracing of microservices?
a. OpenTracing
b. Zipkin
c. Jaeger
d. JVisualVM
e. None of the above

A

a. OpenTracing
b. Zipkin
c. Jaeger

109
Q

at are Microservices Logging best practices?
a. Correlate requests with a unique id.
b. Include a unique id in the response.
c. Send logs to a centralized location.
d. All the above.
e. None of the above

A

d. All the above.

110
Q

Which of the following is not a Prometheus pluggable approach to service discovery?
a. File discovery
b. Kubernetes
c. UDDI
d. EC2
e. None of the above

A

c. UDDI

111
Q

How is distributed tracing used in microservices?
a. As a mechanism to ensure that failed microservices are resurrected properly
b. As a mechanism to transfer log management between a given host on demand
c. As a mechanism to observe the behavior of distinct system calls between and within microservices
d. As a mechanism to change the behavior of a microservice at runtime
e. None of the above

A

c. As a mechanism to observe the behavior of distinct system calls between and within microservices

112
Q

What is Jaeger?
a. Storage engine
b. JVM memory monitoring tool
c. Distributed tracing tool
d. Code coverage tool
e. None of the above

A

c. Distributed tracing tool

113
Q

What is Prometheus?
a. Microservices Performance Monitoring tool
b. Distributed tracing tool
c. Log aggregator tool
d. Docker orchestration tool
e. None of the above

A

a. Microservices Performance Monitoring tool

114
Q

What is ELK stack?
a. Elasticsearch – Lean - Kindle
b. Elasticsearch – Logstash - Kindle
c. Elasticsearch – Logstash - Kibana
d. Elasticsearch – Logstash

A

c. Elasticsearch – Logstash - Kibana

115
Q

What is Fluentd?
a. Microservices Performance Monitoring tool
b. Log aggregation and processing tool
c. Cluster Orchestration tool
d. Distributed tracing tool
e. None of the above

A

b. Log aggregation and processing tool

116
Q

What is EFK stack?
a. Elasticsearch – Foundry - Kindle
b. Elasticsearch – Fluentd- Kindle
c. Elasticsearch – Focus - Kibana
d. Elasticsearch – Fluentd - Kibana
e. None of the above

A

d. Elasticsearch – Fluentd - Kibana

117
Q

True or False Question: Fluentd is an open-source data collector to unified logging layer.
a. true
b. false
c. not sure

A

a. true