NCP-MCA Exam QuestionsBrowse all questions from this exam

NCP-MCA Exam - Question 11


A blueprint was developed for deploying a standard 3-tier hosting environment for a company's applications. The blueprint includes a load balancer, multiple web servers, a database server, and a small test application.

During testing of the blueprint, the application fails to connect to the database. The cause is found to be the database software is still installing when the application starts.

Which method most efficiently prevents the application from starting before the database?

Show Answer
Correct Answer: C

The most efficient method to prevent the application from starting before the database is to create a service dependency. Service dependencies allow you to define the order in which services should start, ensuring that the database is up and running before the application attempts to connect to it. This method is more reliable and automated compared to the alternatives, such as using a sleep statement or creating a loop to retry the connection, which could lead to delays or redundant retries. A local install does not address the timing issue effectively.

Discussion

2 comments
Sign in to comment
FrankEOption: C
Dec 27, 2023

Dependencies are used to define the order in which tasks must get executed.

yoh007Option: C
May 25, 2024

Answer is C