Advanced Linux

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Which directory contains the shell scripts intended to run daily? a. /etc/cron.hourly b. /etc/cron.daily c. /etc/cron.weekly d. /etc/cron.d

b. /etc/cron.daily

Which two sentences are correct regarding Kubernetes and OpenShift resource types? (Choose two.) 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. 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.

1. Which two of the following statements are correct regarding Kubernetes? (Choose two.) a. Kubernetes is a container. 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 a Kubernetes cluster are harder to maintain.

c. Kubernetes is a container orchestration system. d. Kubernetes simplifies management, deployment, and scaling of containerized applications.

Which command displays all the recurring user jobs scheduled for the currently logged-in user? a. crontab -r b. crontab -u c. crontab -l d. crontab -V

c. crontab -l

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. There is no podman command available to search for tags.

Which command displays all the user jobs that are currently scheduled to run as deferred jobs? a. atrm b. at --display c. at -c d. atq

d. atq

Which command removes the deferred user job that has the job number 5? a. at -c 5 b. at 5 c. at --delete 5 d. atrm 5

d. atrm 5

Which configuration file defines the settings for the system jobs that run on a daily, weekly, and monthly basis? a. /etc/crontab b. /etc/anacrontab c. /etc/inittab d. /etc/sysconfig/crond

a. /etc/crontab

Which two statements are true regarding Kubernetes and OpenShift networking? (Choose two.) a. A Kubernetes service can provide an IP address to access a set of pods. b. Kubernetes is responsible for providing a fully qualified domain name 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. A Kubernetes service can provide an IP address to access a set of pods. d. A route is responsible for providing DNS names for external access.

1. Which two options are examples of software applications that might run in a container? (Choose two.) a. A database-driven Python application accessing service such as a MySQL database, a file transfer protocol (FTP) server, and a webserver on a single physical 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. A memory dump application tool capable of taking snapshots from all the memory CPU caches for debugging purposes.

a. A database-driven Python application accessing service such as a MySQL database, a file transfer protocol (FTP) server, and a webserver on a single physical host. b. A Java Enterprise Edition application, with an Oracle database, and a message broker running on a single VM.

1. Which two of the following use cases are best suited for containers? (Choose two.) 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 toll on their own containers to minimize the number of processors needed.

a. A software provider needs to distribute software that can be reused by other companies in a fast and error-free way. c. Developers at a company need a disposable environment that mimics the production environment so that they can quickly test the code they develop.

What are two typical scenarios for creating a Dockerfile to build a child image from an existing image? (Choose two.) a. Adding new runtime libraries. b. Setting constraints to a container's access to the host machine's CPU. c. Adding internal libraries to be shared as a single image layer by multiple container images for different applications.

a. Adding new runtime libraries. c. Adding internal libraries to be shared as a single image layer by multiple container images for different applications.

1. Which three of the following components are common across container architecture implementation? (Choose three.) a. Container runtime b. Container permissions c. Container images d. Container registries

a. Container runtime c. Container images d. Container registries

1. 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 shared 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? (Choose two.) a. Deploy each application to different VMs and apply the custom made shared 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 container.

a. Deploy each application to different VMs and apply the custom made shared libraries individually to each VM host. b. Deploy each application to different containers and apply the custom made shared libraries individually to each container.

1. Which three of the following Linux features are used for running containers? (Choose three.) a. Namespaces b. Integrity Management c. Security-Enhanced Linux d. Control Groups

a. Namespaces c. Security-Enhanced Linux d. Control Groups

Which statement is correct regarding OpenShift additions to Kubernetes? a. OpenShift adds features to simplify Kubernetes configuration of many real-world use case. 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. OpenShift adds features to simplify Kubernetes configuration of many real-world use case.

1. Which three of the following statements are true regarding Red Hat OpenShift v4? (Choose three.) a. OpenShift provides additional features to a Kubernetes infrastructure. b. Kubernetes and OpenShift are mutually exclusive. c. OpenShift hosts use 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. OpenShift provides additional features to a Kubernetes infrastructure. d. OpenShift simplifies development incorporating a Source-to-Image Technology and CI/CD pipelines. e. OpenShift simplifies routing and load balancing.

Which two commands pull the httpd image with the 2.2 tag? (Choose two.) a. podman pull httpd:2.2 b. podman pull httpd:latest c. podman pull quay.io/httpd d. podman pull registry.redhat.io/httpd:2.2

a. podman pull httpd:2.2 d. podman pull registry.redhat.io/httpd:2.2

Which two commands display mysql images available for download from registry.redhat.io? (Choose two.) a. podman search registry.redhat.io/mysql b. podman images c. podman pull mysql d. podman search mysql

a. podman search registry.redhat.io/mysql b. podman search mysql

Which job format executes /usr/local/bin/daily_backup hourly from 9a.m. to 6p.m. on all days from Monday through Friday? a. 00 */18 * * * /usr/local/bin/daily_backup b. 00 09-18 * * Mon-Fri /usr/local/bin/daily_backup c. 00 * * * Mon-Fri /usr/local/bin/daily_backup d. * */9 * * Mon-Fri /usr/local/bin/daily_backup

b. 00 09-18 * * Mon-Fri /usr/local/bin/daily_backup

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 stat 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. A PVC represents a storage area that can be requested by a pod to store data but is provisioned by the cluster administrator.

1. Which three kinds of applications can be packaged as containers for immediate consumption? (Choose three.) a. A virtual machine hypervisor b. A blog software, such as WordPress c. A database d. A local file system recovery tool e. A web server

b. A blog software, such as WordPress c. A database e. A web server

1. Which of the following best describes a container image? a. A virtual machine image from which 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. A container blueprint from which a container will be created

1. 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. An isolated process with regulated resource access.

What are two advantages of using the standalone S2I process as an alternative to Dockerfiles? (Choose two.) 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 image as the parent image changes (for example, with security fixes). e. Creates images compatible with OpenShift, unlike container images created from Docker tools.

b. Creates smaller container images, having fewer layers. Reuses high-quality builder images

Which two sentences are correct regarding Kubernetes architecture? (Choose two.) 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. Kubernetes masters manage pod scaling. c. Kubernetes masters schedule pods to specific nodes.

1. Which of the following statements are correct regarding container limitations? (Choose three.) 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. Lack of automation increases response time to problems. c. Containers do not manage application failure inside them. d. Containers are not load-balanced.

1. What features does OpenShift offer that extend Kubernetes capabilities? (Choose two.) a. Operators and the Operator Framework. b. Routes to expose service to the outside world. c. An integrated development workflow. d. Self-healing and health checks.

b. Routes to expose service to the outside world. c. An integrated development workflow.

Which method for creating container images is recommended by the containers community? (Choose one.) 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 registry. 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. Run commands from a dockerfile and push the generated container image to an image registry.

Which systemd unit regularly triggers the cleanup of the temporary files? a. unbound-anchor.timer b. systemd-tmpfiles-clean.timer c. systemd-tmpfiles-clean.service d. dnf-makecache.timer

b. systemd-tmpfiles-clean.timer

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 registry.redhat.io/mysql:5.6 b. registry.redhat.io/httpd:2.2 registry.redhat.io/mysql:5.6 c. registry.redhat.io/httpd:2.2 No image will be downloaded for mysql. d. quay.io/httpd:2.2 No image will be downloaded for mysql.

c. registry.redhat.io/httpd:2.2 No image will be downloaded for mysql.


Ensembles d'études connexes

Mental Health: Physiological & Psychological Responses to Stress

View Set

Chapt. 12: Cognitive Interventions in Psychiatric Nursing

View Set

CH 04 READING QUIZ - LOUIS ARMSTRONG AND THE FIRST GREAT SOLOISTS

View Set

Chemistry Review over Covalent Bonding

View Set

PHYL141 C13 Cranial Nerves, Peripheral Nervous System & General Senses

View Set

Corporate Finance Chapter 1-3 Study Guide

View Set

Ch. 7 Membrane Structure and Function Dynamic Study Module

View Set

POLS 111 Ch. 1, POLS 111 CH. 2, POLS 111 CH3, POLS 111 CH4, POLS 111 CH. 5, POLS 111 CH. 6, POLS 111 CH.7, POLS 111 CH.8, POLS 111 CH.9, Pols 111 Ch 10

View Set