Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Professional Cloud Security Engineer Exam - Topic 3 Question 112 Discussion

A patch for a vulnerability has been released, and a DevOps team needs to update their running containers in Google Kubernetes Engine (GKE).How should the DevOps team accomplish this?
C) Update the application code or apply a patch, build a new image, and redeploy it.
D) Configure containers to automatically upgrade when the base image is available in Container Registry.
A) Use Puppet or Chef to push out the patch to the running container.
B) Verify that auto upgrade is enabled; if so, Google will upgrade the nodes in a GKE cluster.

Google Professional Cloud Security Engineer Exam - Topic 3 Question 112 Discussion

Actual exam question for Google's Professional Cloud Security Engineer exam
Question #: 112
Topic #: 3
[All Professional Cloud Security Engineer Questions]

A patch for a vulnerability has been released, and a DevOps team needs to update their running containers in Google Kubernetes Engine (GKE).

How should the DevOps team accomplish this?

Show Suggested Answer Hide Answer
Suggested Answer: C

When a vulnerability patch is released for a running container in Google Kubernetes Engine (GKE), the recommended approach is to update the application code or apply the patch directly to the codebase. Then, a new container image should be built incorporating these changes. After building the new image, it should be deployed to replace the running containers. This method ensures that the containers run the updated, secure code.

Steps:

Update Application Code: Modify the application code or dependencies to incorporate the vulnerability patch.

Build New Image: Use a tool like Docker to build a new container image with the updated code.

Push New Image: Push the new container image to the Container Registry.

Update Deployments: Update the Kubernetes deployment to use the new image. This can be done by modifying the image tag in the deployment YAML file.

Redeploy Containers: Apply the updated deployment configuration using kubectl apply -f <deployment-file>.yaml, which will redeploy the containers with the new image.


Google Cloud: Container security

Kubernetes: Updating an application

Contribute your Thoughts:

0/2000 characters
Kami
10 days ago
Yes! That way, we can catch issues early.
upvoted 0 times
...
Benedict
16 days ago
What about using canary deployments? Test first, right?
upvoted 0 times
...
Mel
2 months ago
Agreed! It keeps the service running while updating.
upvoted 0 times
...
Hana
2 months ago
They should use rolling updates for minimal downtime.
upvoted 0 times
...
Macy
2 months ago
Yeah, but what if the containers are already running critical workloads?
upvoted 0 times
...
Meghann
3 months ago
Definitely need to test the patch in a staging environment first.
upvoted 0 times
...
Renay
3 months ago
Wait, are they really using GKE for production? Seems risky!
upvoted 0 times
...
Kara
3 months ago
I think they should also check for any breaking changes in the patch.
upvoted 0 times
...
Tamekia
3 months ago
Just use `kubectl rollout restart` to update the deployments.
upvoted 0 times
...
Pa
3 months ago
I heard the patch includes a feature to make the containers do backflips. Can't wait to see that!
upvoted 0 times
...
Tegan
3 months ago
Rolling update is the correct approach for updating containers in GKE.
upvoted 0 times
...
Emilio
4 months ago
Definitely need to do a rolling update to avoid downtime.
upvoted 0 times
...
Kandis
4 months ago
Rolling update is the way to go here.
upvoted 0 times
...
Giuseppe
4 months ago
I’m a bit confused about whether they should update the pods directly or the deployment. I hope it’s the deployment since that seems safer.
upvoted 0 times
...
Jacquelyne
5 months ago
I practiced a similar question where we had to update images in a deployment. I think they might need to specify the new image version in the deployment YAML.
upvoted 0 times
...
Therese
5 months ago
I remember something about rolling updates in Kubernetes. Maybe they can use `kubectl rollout` to manage the updates?
upvoted 0 times
...
Rosenda
5 months ago
I think they need to use `kubectl` to update the deployments, but I'm not entirely sure about the exact commands.
upvoted 0 times
...
Alexis
5 months ago
This seems straightforward enough. I'd first check the current container versions, then update the deployment to use the patched image. After that, I'd monitor the rollout to make sure everything goes smoothly.
upvoted 0 times
...
Emerson
5 months ago
Okay, I think I've got a plan. I'll update the container image in the deployment, then use the `kubectl rollout` command to trigger a rolling update. That should let me update the containers without downtime.
upvoted 0 times
...
Krissy
6 months ago
Hmm, I'm a bit unsure about the best approach here. I know we need to update the containers, but I'm not sure of the exact process in GKE. I'll need to research that a bit more.
upvoted 0 times
...
Layla
6 months ago
I'd start by checking the Kubernetes documentation on rolling updates. That should give me a good overview of the steps to update the containers.
upvoted 0 times
Sharee
3 hours ago
Rolling updates are the way to go! Keeps downtime minimal.
upvoted 0 times
...
Rossana
5 days ago
I agree, the documentation is key for understanding the process.
upvoted 0 times
...
...

Save Cancel