Topic 1 Question 41
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?
Add RUN commands in the Dockerfile to execute unit and integration tests.
Create a Cloud Build build config file with a single build step to compile unit and integration tests.
Create a Cloud Build build config file that will spawn a separate cloud build pipeline for unit and integration tests.
Create a Cloud Build build config file with separate cloud builder steps to compile and execute unit and integration tests.
ユーザの投票
コメント(5)
D is correct answer here
👍 10saurabh18052020/11/09- 正解だと思う選択肢: D
D is correct
👍 3tomato1232022/08/19 https://cloud.google.com/build/docs/build-config-file-schema: "A build step specifies an action that you want Cloud Build to perform. For each build step, Cloud Build executes a docker container as an instance of docker run. Build steps are analogous to commands in a script and provide you with the flexibility of executing arbitrary instructions in your build."
D makes the most sense here
👍 1syu31svc2021/07/02
シャッフルモード