Professional Cloud DevOps Engineer free question 2 / 10 · Domain 1: Establishing and bootstrapping foundational infrastructure and organizational governance
A project contains two GKE clusters, and one is already registered to the fleet whose host project is fleet-prod. An engineer wants to register the other cluster to a different fleet used for staging. What is the outcome?
- It is not allowed: the project's clusters belong to one fleet, so the cluster would have to move to another project
- It succeeds, and the cluster becomes a member of the staging fleet in addition to the production fleet it is already part of
- It succeeds if the staging fleet is created with the same host project as the production fleet
- It succeeds, and the cluster leaves its current fleet membership when it joins the staging fleet
Show the answer and explanation
Answer: A
Why this is correct
The planning guide lists limitations that shape how you group clusters. A project can be associated with only one fleet, a cluster can be a member of a single fleet, and all clusters in a project must be in the same fleet or not in a fleet. When a project already contains fleet members, you can't register a cluster from that project to a different fleet.
Why the other options are wrong
"It succeeds, and the cluster becomes a member of the staging fleet in addition to the production fleet it is already part of" … A cluster can be a member of only one fleet at any given time.
"It succeeds, and the cluster leaves its current fleet membership when it joins the staging fleet" … Clusters in one project share the fleet membership state. If the project already contains fleet members, you can't register one of its clusters to a different fleet.
"It succeeds if the staging fleet is created with the same host project as the production fleet" … A project can have a single fleet or none, so a second fleet cannot share the host project. The project's clusters must stay in the same fleet.
Key points
If production and staging clusters must live in different fleets, put them in different projects.