0% found this document useful (0 votes)
7 views5 pages

Docker and MySQL Command Quiz

The document contains 15 multiple choice questions about various computing topics including Docker, Kubernetes, Linux, MySQL, PHP and HTML. Each question has between 2-6 possible answer choices with one answer being marked as correct. The questions cover topics such as Docker commands, Minikube configuration, MySQL commands language, scaling Docker services, PHP features, Linux backup utilities, MySQL client programs, listing Docker containers, PHP functions, HTML lists, file systems, Kubernetes label queries, Linux process listing commands, MySQL auto numbering and the purpose of Kubernetes ReplicaSets.

Uploaded by

xxjustawayxx
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views5 pages

Docker and MySQL Command Quiz

The document contains 15 multiple choice questions about various computing topics including Docker, Kubernetes, Linux, MySQL, PHP and HTML. Each question has between 2-6 possible answer choices with one answer being marked as correct. The questions cover topics such as Docker commands, Minikube configuration, MySQL commands language, scaling Docker services, PHP features, Linux backup utilities, MySQL client programs, listing Docker containers, PHP functions, HTML lists, file systems, Kubernetes label queries, Linux process listing commands, MySQL auto numbering and the purpose of Kubernetes ReplicaSets.

Uploaded by

xxjustawayxx
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Q1: Which command will you use to pull a Docker image??

a docker get IMAGE_NAME

b docker image-pull IMAGE_NAME

c None

d docker pull IMAGE_NAME

e None

f docker start IMAGE_NAME

Q2: While starting minikube, a configuration file, gets created by default inside what
directory on Linux??

a /home/user/.kube

The correct Answer is: None

c /home/user

d /root

The correct Answer is: None

f /tmp

Q3: Commands passed to the MySQL daemon are written in?

a Swedish

b Your Choice From Perl, PHP, Java Or Some Other Languages

c Binary

d English

e None

f The Structured Query Language

Q4: How to scale a service to 7 replicas in Docker Swarm??


a docker service update name_of_your_service_here=7

b docker service replica-set name_of_your_service_here=7

c docker service scale name_of_your_service_here=7

d None

e None

f docker service upgrade name_of_your_service_here=7

Q5: Which of the following is correct about PHP??

a PHP is a recursive acronym for "PHP: Hypertext Preprocessor".

The correct Answer is: None

c It is used to manage dynamic content, databases, session tracking, even build


entire e-commerce sites.

The correct Answer is: None

e PHP is a server side scripting language that is embedded in HTML.

f All of the mentioned.

Q6: A low-level utility that can be used for creating/restoring filesystem backup copies in
Linux is called:?

a format

b fsutil

c dd

d None

e diskpart

f None

Q7: To use MySQL on your computer, you'll need?

a None
b Some Sort Of Client Program To Access The Databases

c FTP And Telnet

d A Browser

e None

f Perl, PHP Or Java

Q8: How to list all the docker containers are running with container details.?

a $ docker ls

b $ docker ps

c $ docker details

d None

e None

f None

Q9: Which function is used to get the ASCII value of a character in PHP ??

a ascii()

b asc()

c None

d None

e val( )

f chr( )

Q10: How can you make a numbered list??

a <dl>

b <ul>

c None
d <ol>

e None

f <list>

Q11: Expand JFS in context of file system??

a Journal File Service

b Journal File System

c Journal Failing System

The correct Answer is: None

e Journal Failing Service

The correct Answer is: None

Q12: How to list all pods that are either labelled with env=development or with
env=production?

The correct Answer is: None

b $ kubectl get pods -l 'env in (production, development)'

The correct Answer is: None

The correct Answer is: None

The correct Answer is: None

f $ kubectl get pods 'env in (production, development)'

Q13: When looking for all the processes running on a Linux system, what command should
you use??

a ps

b None

c oterm

d None
e xrun

f service

Q14: MySQL does not support auto generating numbers?

a False

b None

c None

d None

e True

f None

Q15: What is the purpose of a ReplicaSet??

The correct Answer is: None

b To create and maintain volumes

c To prevent clones from invading other clusters

The correct Answer is: None

e To maintain a stable set of replica Pods running at any given time

f To monitor and respond to environmental latency

Common questions

Powered by AI

A configuration file is created by default inside the '/home/user/.kube' directory when starting Minikube on a Linux system. This directory is significant because it holds the configuration files and credentials needed to interact with the Kubernetes cluster. Understanding its role is important for Kubernetes practitioners as it enables them to manage cluster access and settings effectively, particularly when dealing with multiple clusters or configurations .

The correct command to pull a Docker image from a repository is 'docker pull IMAGE_NAME'. This command is used because it retrieves the specified image from a repository, often from Docker Hub, allowing users to deploy and run applications within a container. This is a crucial step in container management as it facilitates the workflow by ensuring the desired environment and application version is available for use .

To scale a service to a specific number of replicas in Docker Swarm, the command 'docker service scale name_of_your_service_here=7' is used. This capability is essential for application deployment because it allows for dynamic scaling of services, helping to manage load efficiently and ensure availability and reliability. By adjusting the number of replicas, the system can handle varying levels of demand and can improve fault tolerance .

A client program is needed to access MySQL databases because it provides the tools necessary to establish a connection with the database server and execute SQL commands for data manipulation and retrieval. Common clients include command-line interfaces like MySQL Shell, GUI-based applications like phpMyAdmin, and programming language interfaces such as PHP, Perl, or Java. These clients facilitate interaction with the database, making complex operations more manageable .

PHP, a recursive acronym for 'PHP: Hypertext Preprocessor', is a server-side scripting language embedded within HTML, widely used for managing dynamic content, database interactions, session tracking, and building entire e-commerce sites. Its significance in web development lies in its ease of integration with HTML, versatility in handling various web functionalities, and support for numerous databases, which makes it a popular choice for developing complex web applications .

Structured Query Language (SQL) is used for commands passed to the MySQL daemon because it is specifically designed for managing and querying relational databases. SQL provides a standardized, efficient, and flexible means of interacting with database systems, allowing for complex queries and transactions. Its wide adoption makes it essential for data management, enabling developers to perform operations like data retrieval, insertion, update, and deletion with ease and precision .

The command 'docker ps' is used to list all running Docker containers along with their details. This function is critical in container operations because it provides insights into the status and configuration of containers, which is essential for monitoring, troubleshooting, and managing containerized applications within a Docker environment .

In a Kubernetes environment, a ReplicaSet's role is to ensure that a specified number of Pod replicas are running at all times. This is important as it maintains the desired state of application deployment by scaling up or down in response to changes and failures, ensuring minimal downtime and resource utilization efficiency. ReplicaSets contribute to Kubernetes' self-healing capabilities, automatically replacing failed Pods to meet application demands .

The 'dd' utility in Linux is a low-level tool used for creating and restoring filesystem backup copies. It is considered critical for system administrators because it can perform precise and efficient data copying and conversion operations, such as making backups of entire disk partitions, creating bootable drives, or converting file formats. Its robustness and flexibility make it invaluable for data recovery and management .

In PHP, the 'ord()' function is used to get the ASCII value of a character. This functionality can be utilized in scenarios where encoding and character representation need to be manipulated or analyzed, such as in search algorithms, data encryption, or transforming characters for compatibility across different systems or data formats .

You might also like