LoslegenKostenlos starten

Fix a failing build

At NovaTech, a CodeBuild project for your Python Lambda app is failing. Use the build debugger to read the build logs, identify the root cause, and understand the fix.

The debugger shows the build log with phase-by-phase output. The build fails during one of the phases with a clear error message. You can switch between three different failure scenarios to practice diagnosing common build problems:

  • Missing dependency
  • Failed unit test
  • Python syntax error

For each scenario, find the error line in the log and identify what needs to change to make the build pass.

Question: The build log shows: INSTALL phase succeeded, PREBUILD phase succeeded, BUILD phase failed with "FAILED tests/testhandler.py::testprocessorder - AssertionError: assert 500 == 200". Which phase and fix would resolve this?

Diese Übung ist Teil des Kurses

<Kurs>Automating Deployments on AWS</Kurs>
Kurs ansehen

Interaktive praktische Übung

Verwandle Theorie mit einer unserer interaktiven Übungen in die Praxis

Übung starten