Objective 2.2

PCD

Building

Objective 2.2 sits in Building and testing applications, which carries 23% of the Cloud Developer exam. The questions below are original, written from the official objective title above, and each explanation cites the Google Cloud page it rests on.

Objective title verbatim from the official objectives. Google Cloud exam page

A worked example

Shown solved, with the whole explanation open: this is what every question here carries.

2-2Building and testing applications

A team writes a build config and asks what the smallest valid step looks like. Which field must every step carry?

A timeout for the stepA limit can be left unset and the build still runs.
An args list for the stepA step with no arguments falls back to whatever the image runs.
An entrypoint for the builderMany images declare one already, so the field need not appear.
A name pointing at an imageCorrect · your answerCorrect. Nothing runs until something says what to run.

Correct.

Concept

A step is defined by the thing that executes it, so the one field that cannot be inferred is the identity of that executable environment.

Why D

Only the name field of a step is required in a build config. Every other field in the file is optional, and name points at the container image that carries out the task.

Source

The only required field in the build config file is the name field for a step. All other fields are optional.

Create a build configuration file, checked August 2026
#gcp#cloud-build#build-config#yaml

Now you: objective 2.2 questions

No account needed. The explanation opens when you answer.

Sample question 1 of 3

2-2Building and testing applications

A team adds a build step whose image declares no entrypoint of its own. What becomes of the first element in that step's args list?

Sample question 2 of 3

2-2Building and testing applications

A team's build produces a signed archive alongside its container image and needs somewhere to keep the archive. Where does that artifact belong?

Sample question 3 of 3

2-2Building and testing applications

A team finds one slow step holding a build open far past the point of use while every other step finishes quickly. What bounds that single step?

Full Cloud Developer question bank coming

We’re writing the complete bank from the official objectives right now. Leave your email and we’ll tell you when it ships, nothing else, ever.

Read the sources

These are the official pages the questions above cite. Reading them is studying the objective from the primary source, which is what the explanations point you toward anyway.

More objectives in Building and testing applications