QuestionQ24

Section 3 – Validate Blueprints, Runbooks, Playbooks, and Automation Settings

A blueprint was created to deploy a standard three-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.

While testing the blueprint, the application cannot connect to the database. The cause is that the database software is still being installed when the application starts.

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

Explanation

An explicit service dependency establishes the database as a prerequisite for the application, enforcing deployment or startup ordering so the application starts only after the database service is ready. AWS CloudFormation’s DependsOn mechanism similarly directs dependent resources to be created after their prerequisites rather than relying on timing-based delays.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!