0
0
Intro to Computingfundamentals~20 mins

Deployment and release in Intro to Computing - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Deployment Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What is the main purpose of a deployment pipeline?

Imagine you are baking a cake and want to make sure each step is done correctly before moving on. In software, a deployment pipeline helps with this. What is its main purpose?

ATo write the initial code for a new feature
BTo design the user interface of the software
CTo automate testing and delivery of software changes to production
DTo monitor user activity after software release
Attempts:
2 left
💡 Hint

Think about a process that checks and moves software step-by-step until it is ready for users.

trace
intermediate
2:00remaining
Trace the deployment stages for a software update

Given these stages in a deployment process, which order correctly represents the flow from development to release?

A3,2,1,4
B2,1,3,4
C1,3,2,4
D1,2,3,4
Attempts:
2 left
💡 Hint

Think about writing code first, then testing, then staging, then final release.

identification
advanced
2:00remaining
Identify the error in this deployment script snippet

Look at this simplified deployment script snippet. What error will it cause?

Intro to Computing
deploy() {
  echo "Starting deployment"
  cp source/* /app/
  restart-service
  echo "Deployment complete"
}

deploy
ASyntaxError because 'restart-service' is not a valid command
BPermission denied error when copying files
CRuntime error because 'cp' command is missing source files
DNo error; script runs successfully
Attempts:
2 left
💡 Hint

Think about what might happen if the script tries to copy files without proper rights.

Comparison
advanced
2:00remaining
Compare blue-green deployment and rolling deployment

Which statement correctly compares blue-green deployment and rolling deployment?

ABlue-green switches between two environments instantly; rolling updates gradually replace instances
BRolling deployment uses two environments; blue-green updates instances one by one
CBoth methods update all servers at once without downtime
DBlue-green deployment is slower than rolling deployment
Attempts:
2 left
💡 Hint

Think about switching environments versus gradual updates.

🚀 Application
expert
2:00remaining
What is the output of this deployment log filter script?

This script filters deployment logs to show only error lines. What will be the output?

Intro to Computing
logs = [
  "INFO: Deployment started",
  "ERROR: Failed to copy files",
  "INFO: Retrying deployment",
  "ERROR: Service restart failed",
  "INFO: Deployment ended"
]

errors = [line for line in logs if 'ERROR' in line]
print(errors)
A["ERROR: Failed to copy files", "ERROR: Service restart failed"]
B[]
C["ERROR: Failed to copy files"]
D["INFO: Deployment started", "INFO: Retrying deployment"]
Attempts:
2 left
💡 Hint

Look for lines containing the word 'ERROR'.