You are using Cloud Build to build a Docker image. You need to modify the build to execute unit and run
integration tests. When there is a failure, you want the build history to clearly display the stage at which the build failed.
What should you do?
Suggested Answer: D
Get Premium Professional Cloud Developer Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
11 comments · newest first
CH
Chauncey
1 year ago
I’m leaning towards B, but D seems more organized.
LA
Lawanda
1 year ago
Wait, can you really separate steps like that? Sounds complicated.
RO
Rocco
1 year ago
Option A could work, but it’s messy in the Dockerfile.
KR
Kris
1 year ago
Totally agree, D makes it easy to see where it fails.
AL
Albina
1 year ago
I think option D is the best choice for clear build history.
DO
Dona
1 year ago
I vaguely recall that creating a separate pipeline for tests could complicate things. I wonder if option C is overkill for this scenario?
HE
Herman
1 year ago
I feel like we practiced a similar question where we had to decide between using a single step or multiple steps. I think having separate steps is better for debugging, which makes me lean towards D.
MO
Mona
1 year ago
I'm not entirely sure, but I think adding RUN commands directly in the Dockerfile could make it harder to pinpoint where the failure occurred. So maybe A isn't the best option?
CH
Chara
1 year ago
I remember we discussed how using separate steps in a build config can help with clarity in the build history. It seems like option D might be the right choice.
DO
Dominga
1 year ago
This seems like a tricky situation. I'd want to really understand the team's concerns and work with them to find a balanced approach that respects Scrum principles while adapting to their needs.
TH
Thomasena
1 year ago
Assigning application access to a group makes sense to me. That's probably one of the main reasons you'd want to use groups in an identity management system like Okta.