SOA-C02 Deployment, Provisioning, and Automation Practice Question
A company is deploying a new web application using AWS Elastic Beanstalk. The application requires a custom Amazon Machine Image (AMI) with specific software pre-installed. The SysOps administrator creates a custom AMI and configures Elastic Beanstalk to use it. However, during deployment, the instances fail to pass the health check. The health check endpoint is a simple 'index.html' file. What is the MOST likely cause?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The custom AMI does not have a web server installed and configured to serve the application.
Elastic Beanstalk expects the web server (e.g., Apache, Nginx) to be installed and configured to serve the application. If the custom AMI does not have a web server installed, the health check endpoint will not respond. Option A is incorrect because the environment URL is created regardless of the AMI. Option C is incorrect because Elastic Beanstalk does not require a specific AMI ID; it uses the one provided. Option D is incorrect because the health check is based on HTTP response, not instance status checks.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The Elastic Beanstalk environment was created before the custom AMI was registered.
Why it's wrong here
The creation order of the environment relative to the AMI registration is irrelevant because AMIs are snapshots referenced at launch time. If the environment was created before the AMI existed, you couldn't have selected it initially; you would have to create a new environment or replace instances using an updated configuration. Once an instance is launched from a particular AMI, the environment's health is determined by that instance's runtime behavior, not by when the AMI was registered.
- ✓
The custom AMI does not have a web server installed and configured to serve the application.
Why this is correct
The health check performed by Elastic Beanstalk is an HTTP request to the environment's health check path (typically / on port 80). If the custom AMI lacks a web server or the web server isn't configured to serve the application, the ELB health check receives a connection refused or non-2xx response, causing the instance to be marked unhealthy. Simply having a running EC2 instance is insufficient; the AMI must include the same web server and configuration as the standard Elastic Beanstalk platform AMI to serve traffic.
- ✗
The custom AMI is not registered with the same account that owns the Elastic Beanstalk environment.
Why it's wrong here
An AMI used for an Elastic Beanstalk environment must be registered in the same AWS account and region as the environment; otherwise, the environment cannot even launch instances from it. If the AMI were truly from another account, you would encounter a launch or authorization failure during instance provisioning, not a post-launch HTTP health check failure. The health check failure described in the scenario indicates the instance is running, so the AMI is accessible and account registration is not the issue.
- ✗
The custom AMI does not have the latest patches, causing the instance to fail the EC2 status checks.
Why it's wrong here
EC2 status checks are low-level tests for hardware, network connectivity, and system state; they do not perform HTTP-level application validation. Missing patches might introduce security vulnerabilities or application bugs, but they cannot cause EC2 status checks to fail because status checks don't inspect installed software. The unhealthy status in Elastic Beanstalk is driven by the ELB health check receiving no valid HTTP response from the web server, which is a completely separate layer from EC2 status checks.
Go deeper
Related to this question
About these practice questions
Courseiva writes every SOA-C02 question from scratch — 247 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This SOA-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SOA-C02 exam.