Which of the following are true when using environment directives in a Declarative Pipeline?
Choose 3 answers
Suggested Answer: A, C, D
Get Premium CJE Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
15 comments · newest first
BU
Buck
11 months ago
Wait, are you sure about A? That sounds a bit off to me.
IS
Isaiah
12 months ago
D makes sense, I use it all the time for specific steps.
MA
Marguerita
12 months ago
C is spot on! Jenkins environment variables are super handy.
AL
Alex
1 year ago
I think B is correct too, but I'm not 100% sure.
ME
Melinda
1 year ago
A is definitely true, I've seen it in action.
CA
Carylon
1 year ago
I recall practicing a question similar to this, and I think option D is definitely true because we can set environment variables globally or for specific steps.
ME
Meghan
1 year ago
I'm not so sure about the specifics, but I feel like option C might be right since we talked about using Jenkins environment variables in class.
AI
Aide
1 year ago
I think option A is correct because I remember something about single and double quotes having different behaviors in the Pipeline DSL.
LE
Lenny
1 year ago
I vaguely recall that option A is incorrect, but I can't remember the exact reason why. I need to double-check the quoting rules.
GW
Gwenn
1 year ago
I’m pretty confident that option D is true since we can set environment variables globally or for specific steps, but I’m not entirely sure about the others.
LU
Lucia
1 year ago
I feel like I've seen a question about environment variables in Jenkins before, maybe something similar to option C about using built-in variables.
TO
Tonette
1 year ago
I think I remember that single quotes and double quotes behave differently, but I'm not sure which way it goes.
MA
Marvel
1 year ago
I’m a bit confused about the quotes part; I thought it was the other way around, so I’m leaning towards option B being correct instead of A.
RE
Reita
1 year ago
Hmm, I'm a bit unsure about this one. The output from the cluster command is a bit confusing, and I'm not sure which of these options is the correct action to take.
RE
Reuben
1 year ago
Hmm, I'm a bit unsure about how to approach this. The dividend and share price are given, but I'm not sure how to incorporate the reinvestment rate and return on reinvested funds.