Challenge - 5 Problems
Deno CI/CD Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediateUnderstanding Deno CI Pipeline Step Output
Given this Deno CI pipeline step configuration, what will be the output of the
deno test command if all tests pass successfully?Deno
steps:
- name: Run tests
run: deno test --unstable --allow-netAttempts:
2 left
💡 Hint
Think about what happens when tests run successfully with correct permissions.
✗ Incorrect
The command
deno test --unstable --allow-net runs tests with network permission. If all tests pass, the output confirms zero failures.❓ Configuration
intermediateCorrect YAML for Deno CI Pipeline with Cache
Which YAML snippet correctly sets up a Deno CI pipeline step that caches the
deno_dir directory to speed up dependencies installation?Attempts:
2 left
💡 Hint
Deno stores cache in a hidden directory inside the user's home cache folder.
✗ Incorrect
Deno caches dependencies in
~/.cache/deno. Caching this directory speeds up builds by reusing downloaded modules.❓ Troubleshoot
advancedDiagnosing Permission Error in Deno CI Pipeline
A Deno CI pipeline step runs
deno run server.ts but fails with the error: PermissionDenied: network access is not allowed. What is the most likely cause?Attempts:
2 left
💡 Hint
Check if the command includes the correct permission flags.
✗ Incorrect
Deno requires explicit permission flags like
--allow-net to allow network access. Missing this flag causes the permission error.🔀 Workflow
advancedOrder of Steps in a Deno CI/CD Pipeline
What is the correct order of steps in a Deno CI/CD pipeline to ensure code quality and deployment?
Attempts:
2 left
💡 Hint
Think about caching before running tests to speed up dependency loading.
✗ Incorrect
First cache dependencies to speed up installs, then run tests to verify code, then build, and finally deploy.
✅ Best Practice
expertBest Practice for Secrets Management in Deno CI/CD Pipelines
Which option describes the best practice for managing secrets like API keys in a Deno CI/CD pipeline?
Attempts:
2 left
💡 Hint
Think about security and avoiding exposure of sensitive data.
✗ Incorrect
Using encrypted secrets storage and environment variables keeps secrets secure and avoids accidental exposure.
