Bird
0
0

A developer configured the index document as "index.html" but the website shows a 404 error on the root URL. What could be wrong?

medium📝 Debug Q7 of 15
AWS - S3 Fundamentals
A developer configured the index document as "index.html" but the website shows a 404 error on the root URL. What could be wrong?
AThe bucket does not have versioning enabled
BThe index.html file is missing from the bucket
CThe error document is not configured
DStatic website hosting is disabled
Step-by-Step Solution
Solution:
  1. Step 1: Understand 404 on root URL

    If the index document is set but missing, the root URL returns 404.
  2. Step 2: Check presence of index.html file

    The file must exist in the bucket for the website to serve it.
  3. Final Answer:

    The index.html file is missing from the bucket -> Option B
  4. Quick Check:

    404 on root = Missing index.html file [OK]
Quick Trick: Ensure index.html file exists in bucket root [OK]
Common Mistakes:
  • Assuming versioning affects 404
  • Confusing error document with index document
  • Ignoring static hosting status

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes