PCDOE Building and implementing CI/CD pipelines Practice Question
A company is using Cloud Build to build a Go application. The build fails with an error 'no Go files in /workspace'. What is the most likely cause?
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
✓
The build step is running in the wrong directory.
Cloud Build copies the repository contents to /workspace. If the Go source files are in a subdirectory, the build step might be pointing to the wrong directory.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The repository has no Go files.
Why it's wrong here
If there were no Go files, the build wouldn't be configured to build Go.
- ✓
The build step is running in the wrong directory.
Why this is correct
The error indicates no Go files found in /workspace, confirming a directory mismatch.
- ✗
The Go module is not properly initialized.
Why it's wrong here
This would cause a different error.
- ✗
Cloud Build is unable to clone the repository.
Why it's wrong here
A clone issue would show a different error.
Go deeper
Related to this question
About these practice questions
This PCDOE question is part of Courseiva's 486-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This PCDOE practice question is part of Courseiva's free Google Cloud 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 PCDOE exam.