RH OpenShift I: Containers & Kubernetes 4.5
Which two commands display mysql images available for download from registry.redhat.io? - no images are locally available a) podman search registry.redhat.io/mysql b) podman images c) podman pull mysql d) podman search mysql
A and D
Which two commands pull the httpd image with the 2.2 tag? a) podman pull httpd:2.2 b) podman pull httpd:latest c) podman pull quai.io/httpd d) podman pull registry.redhat.io/httpd:2.2
A and D
Which two statements are true regarding Kubernetes and OpenShift networking? a) a Kubernetes service can provide an IP address to access a set of pods b) Kubernetes is responsible for providing a FQDN for a pod c) a replication controller is responsible for routing external requests to the pods d) a route is responsible for providing DNS names for external access
A and D
What is a container in relation to the Linux kernel? a) a virtual machine b) an isolated process with regulated resource access c) a set of file-system layers exposed by UnionFS d) an external service providing container images
B
Which method for creating container images is recommended by the containers community? a) Run commands inside a basic OS container, commit the container, and save or export it as a new container image b) run commands from a dockerfile and push the generated container image to an image repository c) create the container image layers manually from tar files d) run the podman build command to process a container image description in YAML format
B
Which of the following best describes a container image? a) a virtual machine image from which a container will be created b) a container blueprint from which a container will be created c) a runtime environment where an application will run d) the container's index file used by a registry
B
When running the following commands, what container images will be downloaded? podman pull registry.redhat.io/httpd:2.2 podman pull quay.io/mysql:5.6 a) quay.io/httpd:2.2 and registry.redhat.io/mysql:5.6 b) registry.redhat.io/httpd:2.2 and registry.redhat.io/mysql:5.6 c) registry.redhat.io/httpd:2.2 and no image will be downloaded for mysql c) quay.io/httpd:2.2 and no image will be downloaded for mysql
C - as quay.io only has mysql:5.5
Which statement is correct regarding OpenShift additions to Kubernetes a) OpenShift adds features to simplify Kubernetes configuration of many real-world use cases b) Container images created for OpenShift cannot be used with plain Kubernetes c) Red Hat maintains forked versions of Kubernetes internal to the RHOCP product d) Doing continuous integration and continuous deployment with RHOCP requires external tools
A
A company is migrating their PHP and Python applications running on the same host to a new architecture. Due to internal policies, both are using a set of custom made share libraries from the OS, but the latest update applied to them as a result of a Python development team request broke the PHP application. Which two architectures would provide the best support for both applications? a) Deploy each application to different VMs and apply the custom made share libraries individually to each VM host b) Deploy each application to different containers and apply the custom made shared libraries individually to each container c) Deploy each application to different VMs and apply the custom made shared libraries to all VM hosts d) Deploy each application to different containers and apply the custom made shared libraries to all containers
A and B
Which two options are examples of software applications that might run in a container? a) A database-driven Python application accessing services such as a MySQL database, a FTP server, and a web server one a single host b) a Java Enterprise Edition application, with an Oracle database, and a message broker running on a single VM c) An I/O monitoring tool responsible for analyzing the traffic and block data transfer. d) A memory dump application tool capable of taking snapshots from all the memory CPU caches for debugging purposes
A and B
What are two typical scenarios for creating a Dockerfile to build a child image from an existing image? a) adding new runtime libraries b) setting constraints to a container's access to the host machine's CPU b) adding internal libraries to be shared as a single image layer by multiple container images for different applications
A and C
Which two of the following use cases are best suited for containers? a) A software provider needs to distribute software that can be reused by other companies in a fast and error-free way b) A company is deploying applications on a physical host and would like to improve its performance by using containers c) Developers at a company need a disposable environment that mimics the production environment so that they can quickly test the code they develop d) A financial company is implementing a CPU-intensive risk analysis tool on their own containers to minimize the number of processors needed
A and C
Which three of the following Linux features are used for running containers? a) Namespaces b) Integrity Management c) Security-Enhanced Linux d) Control groups
A, C and D
Which three of the following components are common across container architecture implementations? a) container runtime b) container permissions c) container images d) container registries
A, C and D
Which three of the following statements are true regarding Red Hat OpenShift v4? a) OpenShift provides additional features to a Kubernetes infrastructure b) Kubernetes and Openshift are mutually exclusive c) OpenShift hosts Red Hat Enterprise Linux as the base operating system d) Openshift simplifies development incorporating a Source-to-Image technology and CI/CD pipelines e) Openshift simplifies routing and load balancing
A, D and E
Which statement is correct regarding persistent storage in OpenShift and Kubernetes? a) a PVC represents a storage area that a pod can use to store data and is provisioned by the application developer b) a PVC represents a storage area that can be requested by a pod to store data but is provisioned by the cluster administrator c) a PVC represents the amount of memory that can be allocated to a node, so that a developer can state how much memory he requires for his application to run d) a PVC represents the number of CPU processing units that can be allocated to an application pod, subject to a limit managed by the cluster administrator
B
What are two advantages of using the standalone S2I process as an alternative to Dockerfiles? a) Requires no additional tools apart from a basic Podman setup b) creates smaller container images, having fewer layers c) reuses high-quality builder images d) automatically updates the child images as the parent image changes (for example, with security fixes) e) creates images compatible with OpenShift, unlike container images created from Docker tools
B and C
What features does OpenShift offer that extend Kubernetes capabilities? a) Operators and the Operator Framework b) routes to expose services to the outside world c) an integrated development workflow d) self-healing and health checks
B and C
Which two sentences are correct regarding Kubernetes architecture? a) Kubernetes nodes can be managed without a master b) Kubernetes masters manage pod scaling c) Kubernetes masters schedule pods to specific nodes d) Kubernetes tools cannot be used to manage resources in an OpenShift cluster. e) Containers created from Kubernetes pods cannot be managed using standalone tools such as Podman
B and C
Which three of the following statements are correct regarding container limitations? a) containers are easily orchestrated in large numbers b) lack of automation increases response time to problems c) containers do not manage application failure inside them d) containers are not load-balanced e) containers are heavily isolated packaged applications
B, C and D
Which three kids of applications can be packaged as containers for immediate consumption? a) A virtual machine hypervisor b) a blog software, such as WrodPress c) a database d) a local file system recovery tool e) a web server
B, C and E
Which two of the following statements are correct regarding Kubernetes? a) Kubernetes is a containers b) Kubernetes can only use Docker containers c) Kubernetes is a container orchestration system d) Kubernetes simplifies management, deployment, and scaling of containerized applications e) Applications managed in Kubernetes cluster are harder to maintain
C and D
Which two sentences are correct regarding Kubernetes and OpenShift resource types? a) a pod is responsible for provisioning its own persistent storage b) all pods generated from the same replication controller have to run in the same node c) a route is responsible for providing IP addresses for external access to pods d) a replication controller is responsible for monitoring and maintaining the number of pods for a particular application
C and D
Which command is used to list all available image tags for the httpd container image? a) podman search httpd b) podman images httpd c) podman pull --all-tags=true httpd d) there is no podman command available to search for tags
D