image
Mock Exam Walkthrough
Microservices Exam Questions - Part One
Difficulty
Beginner
Duration
1h 36m
Students
7
Description

In this course, we will work together to complete a practice exam that will reinforce the concepts you have covered throughout this learning path. The practice questions included in this course closely resemble those that you will encounter when taking the Red Hat Certified Enterprise Microservices Developer EX283 exam.

Transcript

Hello there friends. We have completed all the topics in our course. In this video, we will work together to complete a practice exam that will reinforce the concepts we have learned. I tried to select the questions that we will solve in this video from those that appeared in previous exams, as well as those that are expected to appear in future exams. I hope it's useful to you. Let's begin with the first question if you're ready. What is a microservice?

A, a design used primarily in functional programming and object oriented programming; B, a small program that represents discrete logic that executes within a well defined boundary on dedicated hardware; C, a style of design for enterprise systems based on a loosely coupled component architecture; or D, a very small piece of code that never gets any bigger than 10 lines.

Pause the video here and try to solve it yourself, and I'll give the answer shortly. Yes, C is the correct answer. In its simplest form, a microservices architecture consists of smaller loosely coupled components that combine to form a larger application. Let's go onto the next question. When would developers use microservices? A, when they want to write cell phone applications that run quickly; B, when they work with ephemeral nanotechnology; C, when they need to create large enterprise level applications that are subject to frequent changes; D, when they create applications specifically for scientific test equipment. Pause the video here and try to solve it yourself, I will give the answer shortly. Yes, C is the correct answer. Microservices allow enterprises to scale quickly and rapidly when properly adopted. Alright, let's move onto the next question. Which of the following responses is an advantage of microservices?

A, any micro service component can be changed independently of the others; B, they don't require a lot of expertise to program; C, they're so small that developers can typically write very powerful ones with a few lines of text; D, they are easy to manage. Pause the video here and try to solve it yourself, and I'll give you the answer shortly. Yes, A is the correct answer. The loosely coupled architecture allows a developer to change one element of a microservices architecture design a data log, for example, without affecting other elements. Okay, let's go onto the next question. Which of the following responses is a disadvantage of microservices? A, microservices are very difficult to manage at scale; B, microservices require a lot of monitoring to operate effectively; C, none of the options; D, all of the options. Pause the video here and try to solve it yourself and I will give you the answer shortly. Yes, D is the correct answer. A microservices architecture won't be easy. These challenges require dedicated personnel and a high overhead to run smoothly. Okay, let's go onto the next question. What are some technologies commonly used to implement microservices? A, Docker; B, Kubernetes; C, neither A nor B; D, both A and B. Pause the video here and try to solve it yourself, and I will give you the answer shortly. Yes, D is the correct answer. Containers, service mesh, and API Gateways make up some of the most common components of microservices. All these technologies are commonly found in a microservices architecture. Let's go onto the next question. What is a popular Java framework for developing microservices? A, Spring Boot; B, Eclipse Micro Profile; C, neither A nor B; D, both A and B. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Yes, D is the correct answer. Spring Boot and Eclipse Micro Profile are two of the many Java frameworks for developers of microservices, but they aren't the only options. Let's go onto the next question. 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; or D, as a mechanism to change the behavior of a microservice at runtime. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Yes, C is the correct answer. Distributed tracing tools help developers map and isolate data across system pathways to trace requests and identify potential bottlenecks. Let's go onto the next question. How does the backing service apply to microservices? A; it prevents a micro service from failing; B, it acts as a dedicated service that provides essential functionality required by a microservice; C, it shuts down a micro service when it can no longer handle the computing load; D, it coordinates network activity between microservices. Pause the video here and try to solve it yourself and I'll give you the answer shortly.

Yes, B is the correct answer. The backing service works as a fail safe option to maintain functional elements of a microservices component and allows the developer to continue building a resilient application. Let's go onto the next question. What's the difference between a microservices oriented architecture, MOA, and a service oriented architecture, SOA? A, an SOA uses inter-mediation technology to facilitate communication between services; B, an MOA shares as little data as possible while an SOA shares as much data as possible;  C, a developer can run a monolithic application with SOA principles; or D, all of the options. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Yes, D is the correct answer. Implementation is the main difference between MOA and SOA. While both share compartmentalized design principles, how developers choose to interconnect components, achieve self sufficiency, use technologies, and share data differ significantly between the two. Okay, let's go onto the next question. What does the term bounded context mean in relation to microservices?

A, how a microservice uses memory; B, the logical domain represented by the data consumed and emitted by a microservice according to the data's purpose, structure, and meaning; C, the cloud providers region where the micro service operates; or D, the common characteristics within a collection of entities in one or many business domains. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Yes, B is the correct answer. Bounded context prevent a microservice component from overstepping its bounds. While domains are connected, a microservices component should only do its work within its own domain and share the data after completion. Alright, let's go onto the next question. Microservices can be considered a subset of which of the following options. A, SOA; B, POA; C, Docker; D, HTTP; E, Cloud. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here, the right option is A. You should already know that SOA and microservices are similar concepts. SOA is more encompassing than microservices, whereas microservices are more atomized and granular approach. So, microservices can be taught as a subset of SOA. Let's go onto the next question. Which one of the following is true about a monolithic application? A, built to handle the functionality and data of many applications; B, built as a single unit; C, it consists of several loosely coupled applications; D, all of the options; E, none of the options. Pause the video here and try to solve it yourself, and I'll give the answer shortly. Here, the right option is B. Option A is not true because monolithic applications include a single unit of application. In other words, the whole system is an application. Option C is not true either, since monolithic applications consist of tightly coupled modules, not loosely coupled applications. As a result, the right option is B, the key phrase here is single unit. Let's go onto the next question. Which of the following architectures is suitable for agile development? A, monolithic; B, Open Liberty; C, microservices; D, all of the options; E, none of the options. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here, the right option is C. Monolithic is a difficult architecture to maintain for easy and continuous development. Open Liberty is not an architecture at all, it is a platform. Microservices are the best architecture for agility.

So, the correct answer is C. Let's go onto the next question. Select disadvantage of microservices architecture. A, you need to rebuild all applications in the system even if you add a simple component to the system; B, you need to use the same language or development platform throughout the system; C, it can be a bit complex to handle partial failures; D, it is difficult to scale the system horizontally; or E, all of the options. Pause the video here and try to solve it yourself and I'll give you the answer shortly. The right answer is C. Option A is a drawback of monolithic systems, not microservices architecture. Option B is not correct. In fact, it is the other way around, different languages can be used in subservices. Option D is also incorrect. In a microservices architecture, you can easily scale the system horizontally. By the way, it is a bit complex to handle partial failures in a microservices architecture. So, the right option is C. Let's go on to the next question. Which of the following is the benefit of microservices? A, improved fault tolerance. B, easy to scale. C, faster to build and deploy. D, programming language agnostic. E, all of the options. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here, the right option is E, each option defines the benefit of the microservices architecture. Let's go on to the next question. Microservices architecture adapts which of the following concepts?

A, OOPs. B, SOA. C, web services/HTTP. D, different development platforms or E, all of the options. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here, the right option is E. You can use OOP when developing microservices. Microservices can be a part of an SOA environment. You generally use web services with microservices. And lastly, you can develop microservices components in different platforms. Let's go on to the next question. What is the purpose of an API gateway in microservices architecture? A, protocol translation. B, request routing. C, composition. D, all of the options. E, none of the options. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here, the right option is D. API gateway is used for protocol translation, request routing and composition in microservices. Let's go on to the next question. Which component is used to hold a database of services, their instances, and their corresponding locations? A, Service Registry. B, API Gateway. C, Domain Registry. D, Bulkhead Class. E, none of the options. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here, the right option is A.

Service Registry is used to hold service knowledge. Let's go on to the next question. Which component do external clients use to communicate in microservices? A, messaging. B, API Gateway. C, API Proxy. D, API. E, Stream Service. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here, the right option is B. In microservices, internal components messaging and external services or clients use an API Gateway to communicate. Let's go on to the next question. Which component is used to insulate the applications in a microservice environment? A, Security Control. B, Service Deployment. C, Service Trigger. D, API Gateway. E, none of the options. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here the right option is D. We use API Gateway to separate applications. Let's go on to the next question. In a microservice environment, which components are used to communicate internally? A, Remote Procedure Invocation and Messaging. B, API Proxy. C, API Gateway. D, Stream Pool and Stream Registry. E, Domain Registry. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here, the right option is A.

As you know, API Gateways are used to communicate with external services. Internal services make use of remote procedure invocation as well as messaging. Let's go on to the next question. Which mitigation strategy is used to control and limit the number of consecutive request failures that cross a threshold? A, Review Breaker. B, Fallback. C, Timeout. D, Circuit Breaker. E, Service Registry. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here the right option is D. Review Breaker in option A is not a mitigation strategy at all. Fallback allows you to call another function in the event of a reach problem. Timeout allows you to make a request or wait for a specified time. Service Registry is not a mitigation strategy at all. You can use a circuit breaker to limit the number of consecutive request failures. Let's go on to the next question. If a client expects a timely response from the service and might even block while it waits, which interaction style would the client use? A, one to one. B, many to one. C, asynchronous. D, synchronous. E, one to many.

Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here the right option is D. In the asynchronous method one doesn't need to wait and block. If you use the synchronous method, you need to wait for the response and block other reach attempts to the same source. So, the right option is D. Let's go on to the next question. Which one do you use to implement a query that retrieves data from multiple services in a microservice architecture? A, SQRS. B, CQRS. C, TQRS. D, SQL. E, LQRS. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here the right option is B. CQRS stands for command and query responsibility segregation. Basically, this pattern separates read and update operations for a database. It enables you to ensure isolation and reliability when doing a transaction covering multiple services. Let's go on to the next question. As a general rule, which one does the microservices aspect opt for using? A, NoSQL databases. B, MySQL databases. C, Relational databases. D, Event-Driven databases. E, no dependency on any particular database. Pause the video here and try to solve it yourself and I'll give you the answer shortly.

Here the right option is E. Microservices architecture tends to use loose coupling, stateless components and less dependent components. As a result, it prefers not to rely on any particular database. Let's go on to the next question. Which couple are the two components of CQRS? A, server and client side. B, server and command side. C, query and client side. D, query and command side. E, none of the options. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here the right option is D. CQRS separates reads and writes into different models using commands to update data and queries to read data. So, commands and queries are two components of that aspect and the right option is D. Let's go on to the next question. In docker, each service instance is a... Which of the following should be filled in the blank?

A, process. B, bean. C, class. D, image. E, container. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here the right option is E. Each running service is named a container in docker. Let's go on to the next question. Which of the following does the "service instance per host" pattern ensure? A, great manageability. B, great isolation. C, leverage AWS for autoscaling and load balancing. D, all of the options. E, none of the options. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here the right option is D. "service instance per host" pattern provides manageability benefits, great isolation, and leverages AWS for autoscaling and load balancing. Let's go on to the next question. Which pattern should be selected for efficient utilization and fast deployment? A, service instance per host. B, service instance per container. C, multiple services per host. D, multiple services per container. E, none of the options.

Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here, the right option is C. If your priority is isolation, then you need to choose the service instance per host pattern. But if you want efficient utilization, you need to opt for the multiple services per host pattern. Let's go on to the next question. Which one would you use to reduce the loading times and I/O of a system? A, cache. B, Service Registry. C, Service Proxy. D, Exception Handler. E, isolation. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here the right option is A. Cache is used to store variables locally and enables you to reduce loading times. Let's go on to the next question. Which of the following is a method to monitor applications built on a microservices architecture? A, Exception Tracing. B, Distributed Tracing. C, Application Logging. D, Audit Logging. E, Error Logging. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here the right option is B. Distributed tracing is used to monitor and find faults. Let's go on to the next question.

Which of the following is not a part of the microservices architecture? A, metrics. B, health check. C, logging. D, token generation. E, fault tolerance. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here the right option is D. Metrics, health check, logging and fault tolerance are elements of the microservices architecture. Token generation is not a part of microservices. Let's go on to the next question. Spring Boot is an example of... Which of the following should be filled in the blank? A, API Gateway. B, Service Registry. C, Service Deployment. D, Chassis Framework. E, none of the options. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here, the right option is D. Spring Boot is an example of the Chassis Framework. Let's go on to the next question. In microservices, which option ensures the API gateway handles security?

A, key-value pair. B, JWT. C, chassis keys. D, encrypted keys. E, messaging queues. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here the right answer is B. A JSON Web Token is used to ensure security. Let's go on to the next question. Functional decomposition is an example of... Which of the following should be filled in the blank? A, monolithic. B, mixed. C, microservices. D, relational. E, none of the options. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here the right option is C. Microservices architecture requires itemizing applications functionally. Let's go on to the next question. Which definition is the best for Kubernetes and Marathon platforms? A, service instance per container. B, multiple service instances per container. C, service instance per host. D, multiple service instance per host. E, none of the options. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here the right answer is A.

You know both of them are container orchestration tools that consolidate containers on several hosts. They use the service instance per container method. Let's go on to the next question. Which methodology do the packer.io and boxful use? A, service instance per container. B, multiple service instances per container. C, service instance per host. D, multiple service instance per host. E, none of the options. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here the right option is C. These two platforms use different hosts for service instances to isolate them well. Let's go on to the next question. Which of the following is not guaranteed by "service instance per container"? A, great manageability. B, slow deployment. C, great isolation. D, resource utilization. E, scalability. Pause the video here and try to solve it yourself and I'll give you the answer shortly.

Here the right option is B. As you are aware, slow deployment is not true of such methodology. Actually, it's the opposite, it provides a fast deployment opportunity. Let's go on to the next question. Which of the following is a popular Docker clustering framework? A, Marathon/Mesos. B, Amazon EC2 container services. C, Kubernetes. D, all of the options. E, none of the options. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here the right option is D. Marathon/Mesos, Amazon EC2 container services and Kubernetes, are Docker clustering frameworks. Let's go on to the next question. What does ITL stand for? A, Interface Description Language. B, Inter-Dependency Language. C, Inter-Dependency Location Identifier. D, Internet Definition Loop. E, Interface Dependency Language. Pause the video here and try to solve it yourself and I'll give you the answer shortly. Here the right option is A. Interface Description Language or Interface Definition Language is a specification language used to describe a software component's application programming interface. All right, so let's take a short break here my friends, and I'll see you in the next lesson.

 

About the Author
Students
3918
Courses
64
Learning Paths
5

OAK Academy is made up of tech experts who have been in the sector for years and years and are deeply rooted in the tech world. They specialize in critical areas like cybersecurity, coding, IT, game development, app monetization, and mobile development.

Covered Topics