You are using Container Registry to centrally store your company's container images in a separate project. In another project, you want to create a Google Kubernetes Engine (GKE) cluster. You want to ensure that Kubernetes can download images from Container Registry. What should you do?
Suggested Answer: D
Get Premium Associate Cloud Engineer Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
30 comments · newest first
EL
Elenora
12 months ago
A is definitely the simplest and most effective solution!
CA
Candida
1 year ago
D is a bit outdated, ACLs aren't the best practice anymore.
SH
Shantay
1 year ago
Wait, isn't C too complicated for just pulling images?
AS
Ashley
1 year ago
I disagree, B seems better for full access to APIs.
SH
Shad
1 year ago
A is the right choice! Granting the Storage Object Viewer role is key.
IL
Iluminada
1 year ago
Option D seems off to me. I don't recall needing to configure ACLs for each image; it feels like there's a simpler way to handle access.
NG
Ngoc
1 year ago
I feel like option C is a bit complicated with the service account and P12 key. We didn't really cover that in depth, did we?
EL
Eliseo
1 year ago
I'm not entirely sure, but I remember something about access scopes in GKE. Maybe option B is the right choice?
AN
Annmarie
1 year ago
I think option A sounds familiar since we discussed IAM roles and permissions for accessing resources in our last practice session.
LA
Lavonne
1 year ago
This is a tricky one. I'm not sure if I fully understand the difference between the node service account and the default Compute Engine service account. I'll need to do some research on how Kubernetes and GCP handle service accounts and permissions.
VE
Veta
1 year ago
Okay, I've got a strategy for this. I'll focus on the least-privileged approach that still allows the GKE cluster to access the container images. I think option A is the way to go - granting the Storage Object Viewer role to the node service account.
SU
Sue
1 year ago
Hmm, I'm a bit confused about the different service accounts and permissions involved here. I'll need to carefully read through the options and think through the security implications of each approach.
DA
Daniel
1 year ago
This seems like a straightforward question about setting up access between a GKE cluster and a Container Registry. I think the key is to grant the appropriate IAM role to the service account used by the Kubernetes nodes.
FE
Felix
2 years ago
I hear the Cloud Storage team is offering a special 'Kubernetes Delivery' service. You just have to leave a trail of breadcrumbs for the cluster to follow.
GE
Gennie
1 year ago
C) Create a service account, and give it access to Cloud Storage. Create a P12 key for this service account and use it as an imagePullSecrets in Kubernetes.
JE
Jesus
1 year ago
B) When you create the GKE cluster, choose the Allow full access to all Cloud APIs option under 'Access scopes'.
EL
Elza
2 years ago
A) In the project where the images are stored, grant the Storage Object Viewer IAM role to the service account used by the Kubernetes nodes.
CH
Chu
2 years ago
Configuring ACLs on each image? Ain't nobody got time for that! I'm going with the easy button.
SA
Sanda
2 years ago
Creating a custom service account with a P12 key sounds a bit complicated. I'd prefer a simpler solution if possible.
LI
Linsey
2 years ago
D) Configure the ACLs on each image in Cloud Storage to give read-only access to the default Compute Engine service account.
SH
Shay
2 years ago
B) When you create the GKE cluster, choose the Allow full access to all Cloud APIs option under 'Access scopes'.
LA
Latosha
2 years ago
A) In the project where the images are stored, grant the Storage Object Viewer IAM role to the service account used by the Kubernetes nodes.
KA
Kayleigh
2 years ago
A) That sounds like a simpler solution. Granting the Storage Object Viewer IAM role seems easier.
TE
Terry
2 years ago
C) Create a service account, and give it access to Cloud Storage. Create a P12 key for this service account and use it as an imagePullSecrets in Kubernetes.
ER
Ernie
2 years ago
A) In the project where the images are stored, grant the Storage Object Viewer IAM role to the service account used by the Kubernetes nodes.
DE
Destiny
2 years ago
But granting the Storage Object Viewer IAM role seems more secure to me.
ED
Eden
2 years ago
I'm not a fan of the 'Allow full access to all Cloud APIs' option. That's way too broad and a security risk. Let's go with something more specific.
LA
Lai
2 years ago
Option A seems like the logical choice. Granting the Storage Object Viewer role to the Kubernetes node service account should allow the cluster to download images from the registry.
ZO
Zoila
2 years ago
I disagree, I believe the answer is C.
DE
Destiny
2 years ago
I think the correct answer is A.