ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 36 - CKS discussion

Report
Export

You can switch the cluster/configuration context using the following command:

[desk@cli] $ kubectl config use-context prod-account

Context:

A Role bound to a Pod's ServiceAccount grants overly permissive permissions. Complete the following tasks to reduce the set of permissions.

Task:

Given an existing Pod named web-pod running in the namespace database.

1. Edit the existing Role bound to the Pod's ServiceAccount test-sa to only allow performing get operations, only on resources of type Pods.

2. Create a new Role named test-role-2 in the namespace database, which only allows performing update operations, only on resources of type statuefulsets.

3. Create a new RoleBinding named test-role-2-bind binding the newly created Role to the Pod's ServiceAccount.

Note: Don't delete the existing RoleBinding.

A.
See the explanation
Answers
A.
See the explanation
Suggested answer: A

Explanation:

asked 18/09/2024
ANTONIO M SILVA
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first