Page 1 of 1

About Question enthuware.ocpjp.v11.2.3443 :

Posted: Fri May 13, 2022 9:28 am
by Thetri_enth
This question is very poorly phrased and should be altered.

It asks:
Which of the following is a valid module-info for a service user module that uses an Order service defined in OrderServiceAPI module and implemented by OrderServiceProvider module?
But then claims the third answer is incorrect, while saying:
The 'requires OrderServiceProvider;' is technically valid but logically incorrect. As explained in option 2, the module that uses a service should not even be aware of the module that provides the service.
If the question asks for a valid option, you can't discard an option if it is valid but illogical.

Re: About Question enthuware.ocpjp.v11.2.3443 :

Posted: Fri May 13, 2022 9:44 am
by admin
You are right.
Should be fixed.
thank you for your feedback!

Re: About Question enthuware.ocpjp.v11.2.3443 :

Posted: Tue Sep 19, 2023 12:12 pm
by powerofviva
But you still did not fix it right?
it should have 2 correct answers.

Re: About Question enthuware.ocpjp.v11.2.3443 :

Posted: Tue Sep 19, 2023 11:31 pm
by admin
I see that it has been fixed in the latest version of the question bank for OCP 17 but the change was not propagated to OCP 11. Sorry about that. It has been done now.

Re: About Question enthuware.ocpjp.v11.2.3443 :

Posted: Sat Dec 23, 2023 9:39 am
by Badem48
Hi,

There is nothing with the question but I think I am confused about the concept.
From the Boyarsky and Selikoff book I know that 'uses' keyword is for Service Locator but here it is used for Consumer. How and why?

Re: About Question enthuware.ocpjp.v11.2.3443 :

Posted: Sat Dec 23, 2023 10:55 am
by admin
The problem statement is talking about the module info of a "service user" i.e. user of a service named Order defined in OrderServiceAPI. So, I am not sure where service locator is coming into picture. Although, there is a service locator when applying the Service Locator pattern, it is not always required or even used. There is no rule saying 'uses' keyword is for Service Locator!
You may want to confirm from the author of the book about what they mean.

The 'uses' clause is used by a module to convey that it uses a service. That service is represented by an interface, which is what is mentioned in the 'uses' clause. That's it. Whether you use a service locator or not is entirely up to you.

Re: About Question enthuware.ocpjp.v11.2.3443 :

Posted: Sat Dec 23, 2023 11:36 am
by Badem48
Thank for the answer.