Challenge - 5 Problems
CI/CD Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:00remaining
Output of a simple CI pipeline step
Consider a CI pipeline step that runs the following Node.js command to check the version of Node.js installed. What will be the output?
Node.js
node --version
Attempts:
2 left
💡 Hint
The command 'node --version' prints the installed Node.js version.
✗ Incorrect
The command 'node --version' outputs the current Node.js version installed on the system, for example 'v20.0.0'.
🧠 Conceptual
intermediate1:30remaining
Purpose of a build stage in CI/CD
What is the main purpose of the build stage in a CI/CD pipeline?
Attempts:
2 left
💡 Hint
Think about what happens before testing and deployment.
✗ Incorrect
The build stage compiles the source code and packages it into executable files or artifacts for testing and deployment.
❓ Troubleshoot
advanced2:00remaining
Troubleshooting a failing test step in CI pipeline
A CI pipeline runs tests using the command 'npm test' but fails with the error 'Cannot find module'. What is the most likely cause?
Attempts:
2 left
💡 Hint
Think about what is needed before running tests in Node.js projects.
✗ Incorrect
If dependencies are missing, tests fail with 'Cannot find module'. Installing dependencies with 'npm install' before testing fixes this.
🔀 Workflow
advanced1:30remaining
Correct order of CI/CD pipeline stages
Arrange the following CI/CD pipeline stages in the correct order from start to finish.
Attempts:
2 left
💡 Hint
Think about what happens first when a developer works, then what happens before deployment.
✗ Incorrect
The correct order is: Commit code, Build, Test, Deploy.
✅ Best Practice
expert2:00remaining
Best practice for handling secrets in CI/CD pipelines
Which option is the best practice for managing sensitive information like API keys in a CI/CD pipeline?
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 logs.