Courseiva
Application Deployment and SecurityhardMultiple ChoiceObjective-mapped

200-901 Application Deployment and Security Practice Question

In a Jenkins declarative pipeline, a stage named 'Deploy to Production' should only run after manual approval. Which directive should be used to achieve this?

⚠ Common exam trap

Cisco often tests the distinction between `when` (which only evaluates a condition to skip a stage) and `input` (which actively pauses for human interaction), leading candidates to mistakenly choose `when` because they think 'conditional approval' is the same as 'manual approval'.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

input

The `input` directive in a Jenkins declarative pipeline is specifically designed to pause a stage and wait for human approval before proceeding. When placed inside a stage block, it presents a message and optional parameters (like a 'Proceed' or 'Abort' button) to a user, effectively implementing a manual gate. This is the correct way to enforce manual approval before a 'Deploy to Production' stage runs.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • input

    Why this is correct

    The 'input' directive pauses the pipeline and waits for user input or approval.

  • post

    Why it's wrong here

    The 'post' section defines actions after a stage, not approval.

  • parallel

    Why it's wrong here

    The 'parallel' directive runs stages concurrently.

  • when

    Why it's wrong here

    The 'when' directive controls conditional execution but does not provide manual approval.

About these practice questions

One of 989 original 200-901 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This 200-901 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 200-901 exam.