Challenge - 5 Problems
CI/CD Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Output of a basic GitLab CI pipeline job
Given this simple GitLab CI job configuration, what will be the output when the job runs successfully?
Django
test_job:
script:
- echo "Running Django tests"
- python manage.py testAttempts:
2 left
💡 Hint
Think about what the 'python manage.py test' command outputs when tests pass.
✗ Incorrect
The job echoes a message and then runs Django tests. If tests pass, Django outputs creation of test database and 'OK' at the end.
🧠 Conceptual
intermediate1:30remaining
Purpose of a CI/CD pipeline stage
In a CI/CD pipeline for a Django project, what is the main purpose of the 'build' stage?
Attempts:
2 left
💡 Hint
Think about what 'build' means in software pipelines.
✗ Incorrect
The build stage compiles code and prepares deployable packages or artifacts before testing or deployment.
🔀 Workflow
advanced2:30remaining
Correct order of CI/CD pipeline stages
Arrange the following CI/CD pipeline stages in the correct order for a Django project deployment.
Attempts:
2 left
💡 Hint
Think about what must happen before testing and deployment.
✗ Incorrect
First build artifacts, then run tests, deploy to staging for validation, then deploy to production.
❓ Troubleshoot
advanced2:00remaining
Troubleshooting a failing Django test job in CI
A CI job running 'python manage.py test' fails with the error: 'ModuleNotFoundError: No module named 'django''. What is the most likely cause?
Attempts:
2 left
💡 Hint
Consider what causes 'ModuleNotFoundError' in Python.
✗ Incorrect
This error means the Django package is missing, likely because dependencies were not installed in the CI environment.
✅ Best Practice
expert3:00remaining
Best practice for secret management in CI/CD pipelines
What is the best practice for handling sensitive information like database passwords in a CI/CD pipeline for a Django application?
Attempts:
2 left
💡 Hint
Think about security and automation in pipelines.
✗ Incorrect
Storing secrets in environment variables managed securely by the CI/CD system avoids exposing them in code or images.