Cloud Application Exam 1
![]() |
![]() |
![]() |
Title of test:![]() Cloud Application Exam 1 Description: Cloud Application Exam 1 |




New Comment |
---|
NO RECORDS |
1-The command ........ is used to rebuild ..................Compose file. 1-docker compose make -services defined in a Docker. 2-docker compose rebuild -services defined in a Docker. 3-docker build -t myapp . -services defined in a Docker. 4-docker compose build -services defined in a Docker. 2-(In the docker-compose file) What is the purpose of the 'start_period' parameter in healthcheck configuration. 1-Specifies the time interval between consecutive health checks. 2-Specifies the timeout for the health check command. 3-Specifies the clock time to start the health check. 4-Specifies the time to wait before starting health checks. 3-The command ........ is used to remove a ............... 1-docker volume remove ex_volume -volume. 2-docker volume delete ex_volume -volume. 3-docker volume rm ex_volume -volume. 4-docker rm ex_volume -volume. 4-The command ........ is used to pull images defined in a Docker............ 1-docker compose get - Compose file. 2-docker compose fetch - Compose file. 3-docker compose pull - Compose file. 4-docker pull ubuntu:20.04 - Compose file. 5-(In the docker-compose file) What does the 'retries' parameter specify in the healthcheck configuration?. 1-Number of times to attempt the health check command. 2-Time interval between consecutive health checks. 3-Time to wait before starting health checks. 4-Time to wait for a response from the health check command. 6-What happens to the disk changes in independent & nonpersistent mode after restoring the VM using VM snapshots?. 1-Changes are retained. 2-Changes are discarded. 3-Changes are saved as snapshots. 4-Changes are merged with the base disk. 7-What occurs to the disk changes in independent & persistent mode after restoring the VM using VM snapshots?. 1-Changes are retained. 2-Changes are discarded. 3-Changes are saved as snapshots. 4-Changes are merged with the base disk. 8-Which storage type supports linked clone and disk capacity expansion?. 1-Virtualized Storage. 2-Non-virtualized Storage. 3-Raw Device Mapping (RDM). 4-LUNs on the SAN storage. 9-Which VMware disk mode ensures that disk changes are discarded after the VM is stopped or restored using a snapshot?. 1-Dependent. 2-Independent & persistent. 3-Independent & nonpersistent. Virtual. 10-What is the role of a Dockerfile in the Docker technology architecture?. 1-Executing jobs on the server. 2-Serving as an image repository. 3-Handling HTTP requests. 4-Describing how to create a Docker image. 11-Which component of Docker runs on a host and handles service requests?. -Docker Client. 2-Docker Registry. 3-Docker Daemon. 4-Docker container. 12-The command ........ loads a Docker ........from a TAR file. 1-docker import my_newImage.tar myapp -image. 2-docker add my_newImage.tar myapp -image. 3-docker load -i my_newImage.tar -image. 4-docker rm zealous_poitras –container. services: frontend: build: frontend ports: - 3000:3000 depends_on: - mongo ...................... mongo: container_name: mongo restart: always image: mongo:4.2.0 ................ 13-(In the docker-compose file) What is the purpose of the 'image' key in the Docker Compose file?. 1-the Docker image to be used for the service. 2-To specify the container name. 3-To name the built image. 4-To specify the Dockerfile name. 14-(In the docker-compose file) What command is used to specify a custom container name in Docker Compose?. 1-container_name. name. 3-custom_name. 4-set_name. 15-In "docker run -d -p 80:80 1cc5052c8b12", the "-d" flag signifies to .......... Delete. Deploy. Detached. Directory. 16-(In the docker-compose file) What is the default restart policy when not explicitly defined in Docker Compose?. always. 2-on-failure. 3-unless-stopped. No. version: "3.8" services: webapp: build: context: ./dir dockerfile: web args: buildno: 1 image:app 17-(In the docker-compose file) In the provided example, what is the name of the service?. web. webapp. app. dir. 18-The command ........ restarts .......................... 1-docker compose restart -services defined in a Docker Compose file. 2-docker compose refresh -services defined in a Docker Compose file. 3-docker compose reload -services defined in a Docker Compose file. 4-docker compose ps -services defined in a Docker Compose file. 19-The command ........exports a ......... to a TAR file. 1-docker export d74bdf5a9d8e > myapp.tar -container. 2-docker save -o myapp.tar d74bdf5a9d8e -container. 3-docker export myapp.tar d74bdf5a9d8e -container. 4-docker save d74bdf5a9d8e > myapp.tar –container. 20-(In the docker-compose file) Which key is used to specify arguments for the Docker build process?. buildargs. arguments. args. 4-build_arguments. 21-(In the docker-compose file) What is the primary purpose of setting stdin_open to true in a Docker Compose file?. 1-To increase security within the container. 2-To enhance logging capabilities. 3-To enable interactive communication with the container's processes. 4-To decrease container startup time. 22-What happens to the disk changes in independent & persistent mode after the VM is stopped?. 1-Changes are retained. 2-Changes are discarded. 3-Changes are saved as snapshots. 4-Changes are merged with the base disk. 23-Which disk configuration mode is recommended for system disks due to its better performance?. Common. 2-Thin provisioning. 3-Thick provisioning lazy zeroed. FusionStorage. 24-Which VMware disk mode ensures that disk changes are not saved as snapshots?. Dependent. 2-Independent & persistent. 3-Independent & nonpersistent. Virtual. 25-The command ........ is used to save image to a TAR file. 1-docker save -o my_newImage.tar myapp. 2-docker export myapp my_newImage.tar. 3-docker save myapp > my_newImage.tar. 4-docker export -o my_newImage.tar myapp. 26-The command .......views all ......., including stopped ones. 1-docker ps -a -containers. 2-docker list -a -containers. 3-docker show -a -containers. 4-docker rm zealous_poitras –container. 27-What is the characteristic of a dependent disk in VMware disk mode?. 1-It is excluded from snapshots. 2-It is included in snapshots. 3-It is unaffected by VM snapshots. 4-It retains changes even after the VM is stopped. 28-The command ........ checks the status of .................... 1-docker compose status -services defined in a Docker Compose file. 2-docker compose ps -services defined in a Docker Compose file. 3-docker compose up -services defined in a Docker Compose file. 4-docker compose check -services defined in a Docker Compose file. 29-Which VMware disk mode allows disk changes to be immediately written into the disk but are discarded after VM is stopped or restored using a snapshot?. Dependent. 2- Independent & persistent. 3- Independent & nonpersistent. Virtual. 30-(In the docker-compose file) Which parameter specifies the time to wait for a response from the health check command?. interval. timeout. retries. 4-start_period. 31-Which storage type offers few functions and weak support for snapshot and thin provisioning functions?. 1-Virtualized Storage. 2-Non-virtualized Storage. 3-Raw Device Mapping (RDM). 4-LUNs on the SAN storage. 32-What does a Docker Registry support?. 1-Docker container execution. 2-Docker image creation. 3-Docker image libraries with public and private access permissions. 4-Dockerfile creation. 33-(In the docker-compose file) Which command starts a detached container?. 1-docker run -d. 2-docker start. 3-docker-compose up -d. 4-docker create –d. 34-(In the docker-compose file) What does the stdin_open: true configuration in a Docker Compose file signify?. 1-It specifies that the container should run with elevated privileges. 2-It indicates that the standard input of the container should remain open. 3-It enables automatic port forwarding for the container. 4-It configures the container to run in read-only mode. 35-(In the docker-compose file) In a Docker Compose file, which behavior does depends_on cause during docker-compose up?. 1-Starts services alphabetically. 2-Starts services in reverse dependency order. 3-Starts services in dependency order. 4-Starts all services simultaneously. 36-The command ........ is used to create a ......... 1-docker volume add ex_volume -volume. 2-docker volume create ex_volume -volume. 3-docker volume make ex_volume -volume. 4-docker volume list –volume. version: "3.8" services: webapp: build: ./dir 37-(In the docker-compose file) In the 'build' key, what does the './dir' represent?. 1-Docker image name. 2-Docker container name. 3-Path to the build context. 4-Path to the Dockerfile. 38-(In the docker-compose file) What happens if stdin_open is set to false in a Docker Compose file?. 1-The container runs with elevated privileges. 2-The container's standard input is closed. 3-The container automatically restarts if it crashes. 4-The container is automatically scaled horizontally. 39-(In the docker-compose file) When using the expose directive in Docker Compose, which ports are made accessible to linked services? expose: - "3000" - "8000". 1-Both 3000 and 8000 on the host machine. 2-Only port 3000 on the host machine. 3-Only port 8000 on the host machine. 4-Neither, as expose only affects internal communication. 40-(In the docker-compose file) Which restart policy ensures that the container always restarts, regardless of its exit status?. always. 2-on-failure. 3-unless-stopped. no. |