AZ-300 Exam QuestionsBrowse all questions from this exam

AZ-300 Exam - Question 105


You develop an entertainment application where users can buy and trade virtual real estate. The application must scale to support thousands of users.

The current architecture includes five Azure virtual machines (VM) that connect to an Azure SQL Database for account information and Azure Table Storage for backend services. A user interacts with these components in the cloud at any given time.

✑ Routing Service "" Routes a request to the appropriate service and must not persist data across sessions.

✑ Account Service "" Stores and manages all account information and authentication and requires data to persist across sessions

✑ User Service "" Stores and manages all user information and requires data to persist across sessions.

✑ Housing Network Service "" Stores and manages the current real-estate economy and requires data to persist across sessions.

✑ Trade Service "" Stores and manages virtual trade between accounts and requires data to persist across sessions.

Due to volatile user traffic, a microservices solution is selected for scale agility.

You need to migrate to a distributed microservices solution on Azure Service Fabric.

Solution: Create a Service Fabric Cluster with a stateful Reliable Service for each component.

Does the solution meet the goal?

Show Answer
Correct Answer: B

The solution does not meet the goal because one of the components, the Routing Service, must not persist data across sessions, meaning it is stateless. Creating a stateful Reliable Service for each component would not be appropriate for the Routing Service. Only the components that require data to persist across sessions (Account Service, User Service, Housing Network Service, and Trade Service) should be stateful. Therefore, the suggested solution does not fully address the varying state requirements of the components.

Discussion

6 comments
Sign in to comment
P0d
May 21, 2020

Answer B.No. As Routing service is stateful because not keeps session. https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-reliable-services-introduction

[Removed]
Jun 29, 2020

The question is basically testing if a candidate can distinguish between statefull and stateless. In this case the routing service requirments are stateless.. therefor answer B is the right answer

Linus0
Jul 7, 2021

only routing service is stateless, but other services are stateful. How to address those requirement?

JitheshT
Aug 24, 2020

Please ignore my previous comment, i am confused after reading more..

ct84
Aug 30, 2020

for me the most important bit here is “with a stateful Reliable Service for each component”.. not all of them need to be stateful, so the answer is B ..

Babin
Jan 18, 2020

There are no explanation or links references given. Why not option A?

SilentH
Jan 24, 2020

Because the Routing service says it must be stateless therefore a stateful solution won't work.

shyan391
May 21, 2020

A stateful design could be used for stateless design too. The drawback is that load balancing is not good. However, it still can be used. There is problem of the question itself.

tartar
Sep 14, 2020

B is ok

tartar
Sep 14, 2020

B is ok

shyan391
May 21, 2020

A stateful design could be used for stateless design too. The drawback is that load balancing is not good. However, it still can be used. There is problem of the question itself.

tartar
Sep 14, 2020

B is ok

tartar
Sep 14, 2020

B is ok

JitheshT
Aug 24, 2020

Answer should be 'Yes' Stateful Reliable Services A stateful service is one that must have some portion of state kept consistent and present in order for the service to function. Consider a service that constantly computes a rolling average of some value based on updates it receives. To do this, it must have the current set of incoming requests it needs to process and the current average. Any service that retrieves, processes, and stores information in an external store (such as an Azure blob or table store today) is stateful. It just keeps its state in the external state store.