Exam NCP-MCA All QuestionsBrowse all questions from this 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?

    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
yoh007Option: C

Answer is C

FrankEOption: C

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