
Answer-first summary for fast verification
Answer: The cloudbuild.yaml was not placed in the same directory as the application source code., The cloudbuild.json was not placed in the same directory as the application source code.
For Cloud Build to function correctly, the build configuration file must be either a JSON or YAML file and located in the same directory as the application's source code. Options B, D, and E are incorrect as they suggest file formats not supported for build configuration in Cloud Build. Reference: [Cloud Build Documentation](https://cloud.google.com/build/docs/building/build-containers#use-buildconfig).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Your company is leveraging GCP services to automate its Continuous Integration and Deployment process, utilizing Cloud Build for creating images and artifacts. A new developer is responsible for setting up the build configuration files, but the process is failing. What could be the potential reasons? Select two.
A
The cloudbuild.yaml was not placed in the same directory as the application source code.
B
The cloudbuild.sh was not placed in the same directory as the application source code.
C
The cloudbuild.json was not placed in the same directory as the application source code.
D
The cloudbuild.py was not placed in the same directory as the application source code.
E
The cloudbuild.xml was not placed in the same directory as the application source code.