DCA-2 Flashcards
(451 cards)
What environment variables must be set to allow client to communicate with UCP via CLI?
DOCKER
DOCKER_HOST
DOCKER_CERT_PATH
DOCKER_PATH
DOCKER_HOST
DOCKER_CERT_PATH
What is the command-line interface used to interact with UCP from a shell?
docker-ucp
docker
docker-ee
docker-ucp-cli
docker
Universal Control Plane (UCP), lets you authorize users to view, edit, and use cluster resources by granting role-based permissions against resource sets.
True
False
True
To authorize access to cluster resources across your organization, which of the following high-level steps must UCP administrators take?
Configure subjects (users, teams, and service accounts).
Define custom roles (or use defaults) by adding permitted operations per type of resource.
Configure resource sets of Swarm collections or Kubernetes namespaces.
Create grants by combining subject + role + resource set
Configure subjects (users, teams, and service accounts).
Define custom roles (or use defaults) by adding permitted operations per type of resource.
Configure resource sets of Swarm collections or Kubernetes namespaces.
Create grants by combining subject + role + resource set
Which of the statements best describes “Subjects” in the Access Control Model?
A subject represents a user, team, organization
A subject does not represent a service account.
A subject can be granted a role that defines permitted operations against one or more resource sets.
A subject represents a service account.
A subject represents a user, team, organization
A subject can be granted a role that defines permitted operations against one or more resource sets.
A subject represents a service account.
A group of teams that share a specific set of permissions forms a collection.
True
False
False
Which of the statements best describe “Roles” in the Access Control Model?
Roles define what operations are allowed on a resource.
A role is a set of permitted operations against a type of resource, like a container or volume, which can only be assigned to individual users.
Most organizations use multiple roles to fine-tune appropriate access to users and teams.
All of the above
Roles define what operations are allowed on a resource.
Most organizations use multiple roles to fine-tune appropriate access to users and teams.
Which of the statements best describe “Resource sets” in Access Control Model?
A collection of resources in Docker Swarm
A collection in Kubernetes
A namespace in Kubernetes
A namespace in Docker Swarm
A collection of resources in Docker Swarm
A namespace in Kubernetes
Which of the statements best describe “Grants” in the Access Control Model?
Grants define which users can access what resources in what way.
A grant is made up of a role and a resource set.
A grant is made up of a subject, a role, and a resource set.
Grants are effectively Access Control Lists (ACLs) which provide comprehensive access policies for an entire organization when grouped together.
Grants define which users can access what resources in what way.
A grant is made up of a subject, a role, and a resource set.
Grants are effectively Access Control Lists (ACLs) which provide comprehensive access policies for an entire organization when grouped together.
Only an administrator can manage grants, subjects, roles, and access to resources.
True
False
True
Docker Enterprise Edition provides … , where in we can create users and group them into teams which are nothing but group of users and tie them up with an organization.
DTR
UCP
UCP Agent
RBAC
RBAC
Which of the following is a common workflow for RBAC in Docker EE is
Create users, teams, and organization
Create custom roles with a set of permissions
Combine resources sets using a collection
Create users, teams, and organization
Create custom roles with a set of permissions
Combine resources sets using a collection
The … allows you to authorize a remote Docker engine to a specific user account managed in Docker EE, absorbing all associated RBAC controls in the process
DTR
UCP
Client bundle
RBAC
Client Bundle
A client bundle is a group of certificates downloadable directly from the Docker Trusted Registry (DTR) user interface within the admin section for “My Profile”
True
False
False
Using …. in Docker EE we can control who can access and make changes to your cluster and applications.
DTR
UCP
Client bundle
RBAC
RBAC
What are the minimum hardware requirements to install UCP?
4GB RAM, 2vCPUs and 10GB disk space for the /var partition for manager nodes, 2GB RAM and 500MB disk space for the /var partition for worker nodes
8GB RAM, 2vCPUs and 10GB disk space for the /var partition for manager nodes, 4GB RAM and 500MB disk space for the /var partition for worker nodes
8GB RAM, 2vCPUs and 10GB disk space for the /var/lib/docker partition for manager nodes, 4GB RAM and 500MB disk space for the /var/lib/docker partition for worker nodes
4GB RAM, 2vCPUs and 10GB disk space for the /var/lib/docker partition for manager nodes, 2GB RAM and 500MB disk space for the /var/lib/docker partition for worker nodes
8GB RAM, 2vCPUs and 10GB disk space for the /var partition for manager nodes, 4GB RAM and 500MB disk space for the /var partition for worker nodes
What are the features of Docker Trusted Registry (DTR)?
Built-in Access Control
Image and Job Management
Automated image builds
Security Scanning
Dockerfile management in SCM
Image Signing
Built-in Access Control
Image and Job Management
Security Scanning
Image Signing
A group of teams that share a specific set of permissions forms a collection.
True
False
False
When using the built-in authentication mechanism, you can create users to grant them fine-grained permissions.
Which of the following statements best describes managing users in DTR?
Users are shared across UCP and DTR.
When you create a new user in UCP, that user becomes available in DTR and vice versa.
Check the Trusted Registry admin option, if you want to grant permissions for the user to be a UCP and DTR administrator.
Users are not shared across UCP and DTR
Users are shared across UCP and DTR.
When you create a new user in UCP, that user becomes available in DTR and vice versa.
Check the Trusted Registry admin option, if you want to grant permissions for the user to be a UCP and DTR administrator.
When a user creates a repository, by default other users will also have permissions to make changes to the repository.
True
False
False
By default, DTR has one organization called ‘docker-datacenter’, that is shared between DTR and UCP.
True
False
True
What is the command to pull the docker repository owned by an organization?
docker get DTR-DOMAIN-NAME/ORG/REPOSITORY:TAG
docker pull DTR-DOMAIN-NAME/ORG/REPOSITORY:TAG
docker download DTR-DOMAIN-NAME/ORG/REPOSITORY:TAG
docker fetch DTR-DOMAIN-NAME/ORG/REPOSITORY:TAG
docker pull DTR-DOMAIN-NAME/ORG/REPOSITORY:TAG
Which of the following is the docker image addressing convention?
Registry-Address/Image-or-Repository-Name/User-Or-Account-Name
Registry-Address/User-Or-Account-Name/Image-or-Repository-Name
User-Or-Account-Name/Image-or-Repository-Name/Registry-Address
Image-or-Repository-Name/User-Or-Account-Name/Registry-Address
Registry-Address/User-Or-Account-Name/Image-or-Repository-Name
If we do not specify a registry information then it is assumed to be the default registry at docker hub at the address docker.io.
True
False
True
kubectl get services
kubectl get rs
kubectl get replicaset
kubectl get pods
kubectl get rs
kubectl get replicaset
kubectl set image
kubectl rollout undo
kubectl rollout status
kubectl rollout start
kubectl rollout undo
kubectl describe storageclass
kubectl list storageclass
kubectl describe storageclass