Q65 — AWS DOP-C02 Ch.1

Question 65 of 100 | ← Chapter 1

A DevOps engineer is creating a CI/CD pipeline for an Amazon ECS service. The ECS containers run behind an Application Load Balancer and serve as the web tier of a three-tier application. The success criterion for deployment is ensuring that the web tier can communicate with the application’s database and middleware tiers after deployment. How can this be achieved automatically?

Correct Answer: A. Create a health check endpoint in the web application that tests connectivity to the data and middleware tiers. Use this endpoint as the load balancer’s health check URL.

Explanation

In DevOps practices, ensuring correct inter-tier communication is critical. This question asks for an automated method to validate that the web tier can connect to its dependencies (database and middleware) post-deployment. Option A proposes implementing a custom health check endpoint in the application that verifies connectivity to downstream tiers and configuring it as the Application Load Balancer’s health check URL — a standard, effective automation pattern. Option B introduces manual intervention, violating the automation requirement. Option C focuses on monitoring metrics but does not directly validate functional connectivity. Option D uses Route 53 health checks, which operate at the DNS layer and do not assess application-layer dependencies. Therefore, Option A is the correct answer.