Phase2Quiz Flashcards

1
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
2
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
3
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
4
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
5
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
6
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
7
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
8
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
9
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
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

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

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

A

b. Microservices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
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 * *

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
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”.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
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

21
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

22
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

23
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

24
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

25
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

26
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

27
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

28
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.

29
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

30
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.

31
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 {…}

32
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.

33
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.

34
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

35
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

36
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

37
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

38
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

39
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

40
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

41
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

42
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.

43
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.

44
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

45
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

46
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

47
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.

48
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.

49
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