New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Scrum PSD Exam - Topic 4 Question 74 Discussion

Actual exam question for Scrum's PSD exam
Question #: 74
Topic #: 4
[All PSD Questions]

While practicing Test-Driven Development, what is done after the test fails? (choose the best answer)

Show Suggested Answer Hide Answer
Suggested Answer: B

Test-Driven Development (TDD) involves writing a failing test first, then writing the minimal code needed to make the test pass. This iterative process ensures code correctness and encourages better design.


Contribute your Thoughts:

0/2000 characters
Suzan
2 months ago
Implementing the functionality right away seems risky.
upvoted 0 times
...
Wei
2 months ago
I thought you just run it again to confirm the failure first?
upvoted 0 times
...
Tu
2 months ago
Totally agree, option B is the way to go!
upvoted 0 times
...
Chandra
3 months ago
Wait, why would you refactor the test? That seems off.
upvoted 0 times
...
Roxanne
3 months ago
You usually write the minimum code to pass the test.
upvoted 0 times
...
Mitzie
3 months ago
I recall a similar question where we discussed refactoring tests, but I think that's more about improving code after it passes, not right after a failure.
upvoted 0 times
...
Marjory
3 months ago
I feel like we might need to implement the required functionality after a failure, but I'm not completely confident about the order of steps.
upvoted 0 times
...
Filiberto
4 months ago
I'm not entirely sure, but I remember something about running the test again to confirm it fails before doing anything else.
upvoted 0 times
...
Kimi
4 months ago
I think after a test fails, we should write the minimum amount of product code to satisfy the test, right? That sounds like what we practiced.
upvoted 0 times
...
Penney
4 months ago
I remember learning about this in class. After the test fails, the next step is to write the minimum amount of code to satisfy the test. So the answer is definitely B.
upvoted 0 times
...
Zoila
4 months ago
I'm not too familiar with test-driven development, so I'm not sure about this one. I might go with D and just implement the required functionality, but I'm not certain that's the best approach.
upvoted 0 times
...
Maryann
4 months ago
Okay, I got this. The key is to write the minimum amount of code to pass the test, so the answer has to be B. That's the whole point of test-driven development.
upvoted 0 times
...
Galen
5 months ago
Hmm, I'm a little confused on this one. I think it might be C - run the test again to make sure it really fails. But I'm not totally confident.
upvoted 0 times
...
Gianna
5 months ago
I'm pretty sure the answer is B. After the test fails, the next step is to write the minimum amount of product code to satisfy the test.
upvoted 0 times
...
Kirk
9 months ago
I'm going with B. Anything else just feels like you're not following the principles of TDD.
upvoted 0 times
...
Shakira
10 months ago
Haha, E is a good one! Refactoring the test so the code passes? That's like cheating, right?
upvoted 0 times
...
Kaitlyn
10 months ago
C? Really? Why would you run the test again if it already failed? That's a waste of time!
upvoted 0 times
Aleisha
8 months ago
E) Refactor the test so the code passes.
upvoted 0 times
...
Lashawn
8 months ago
D) Implement the required functionality.
upvoted 0 times
...
Jerry
9 months ago
B) Write the minimum amount of product code to satisfy the test.
upvoted 0 times
...
...
Leota
10 months ago
Hmm, I'm torn between B and D. Isn't the whole point of TDD to write the simplest code first?
upvoted 0 times
Florinda
8 months ago
B) Yes, the idea is to write the simplest code that makes the test pass.
upvoted 0 times
...
Gerald
8 months ago
D) Implement the required functionality.
upvoted 0 times
...
Mi
9 months ago
B) Write the minimum amount of product code to satisfy the test.
upvoted 0 times
...
...
Winfred
10 months ago
B is the way to go! You don't want to overengineer, just write the minimum code to make the test pass.
upvoted 0 times
Annalee
9 months ago
User 3: D) Implement the required functionality.
upvoted 0 times
...
Merri
9 months ago
User 2: C) Run it again to make sure it really fails.
upvoted 0 times
...
William
9 months ago
User 1: B) Write the minimum amount of product code to satisfy the test.
upvoted 0 times
...
...
Sabra
10 months ago
But shouldn't we also consider C) Run it again to make sure it really fails before moving on?
upvoted 0 times
...
Felix
10 months ago
I agree with Tonette, that's what you do after the test fails.
upvoted 0 times
...
Tonette
10 months ago
I think the answer is B) Write the minimum amount of product code to satisfy the test.
upvoted 0 times
...

Save Cancel