Infosys Certified Docker and Kubernetes Practitioner
Practice with real exam-pattern questions for Infosys Certified Docker and Kubernetes Practitioner. Each question includes a detailed explanation to help you understand the concept, not just memorise the answer. Try 10 questions free — no login required.
Full question bank for this exam + 1,357+ others. Cancel anytime.
Join Premium10 Infosys Certified Docker and Kubernetes Practitioner practice questions with answers
Real Lex exam-pattern multiple-choice questions for the Infosys Certified Docker and Kubernetes Practitioner certification. Each question includes the correct answer. The full question bank is available to Premium members.
- Question 1
A government agency is planning to conduct a recruitment process and publish a notification calling for applications from eligible candidates. Several candidates have registered for various posts. When the organizer tried to extract the report of registered candidates, the application exhibited malfunction. Ticket was raised to support team. In the preliminary analysis it was found that the docker container that hosts the required service, got terminated. How do you get the data?
- ✓
Look for the database files in /var/lib/docker/ .. directories. If found, mount the db file to another database instance and retrieve the data
Correct - B
Use "docker ps -a " to check the containers and start the container if it is stopped. Spin up more containers to handle this functionality to avoid single point of failure
- C
Container was terminated with the command "docker rm -v
" and hence the database cannot be retrieved - D
Extend the advertisement and call for resubmission of applications from eligible candidates
- ✓
- Question 2
You recently moved to a finance domain project and you have been asked to work on Docker containers.
Which of following options would you use to identify how image is constructed?
- ✓
Use "docker image" command to display detailed information on one or more images
Correct - B
Use "docker inspect" command to display detailed information on one or more images
- C
Use "docker history" command to display detailed information on one or more images
- D
Use "docker stats" command to display detailed information on one or more images
- ✓
- Question 3
Peter is a developer, who is working for a banking client and is running a custom-built application which tracks daily transactions of the bank. He is running a microservices container and have deployed a PHP application for the client which stores logs of daily transactions.
Somehow the container got accidentally deleted, and the transaction has not been completed. Now the client has raised a complaint that all transactions are not reflecting.
What should Peter do to fix the issue and recover the data?
- ✓
As Peter was following a practice of launching containers using data volume -v flag option, he can certainly restore the files by spinning up a new container attached with the volume already mounted on the host
Correct - B
Peter can still recover the data as containers’ file system is persistent
- C
By default every container's backup is stored as a mount on the host, hence Peter can recover anyway
- D
Data is lost, going forward Peter should maintain multiple containers to ensure high availability and high reliability
- ✓
- Question 4
Arvind intends to have a cloud-hosted service where he can host his images. Which of the below Docker services will be useful to him?
- ✓
Docker Hub
Correct - B
Docker Swarm
- C
Docker Compose
- D
None of the above
- ✓
- Question 5
A University has decided to host their courses on a web portal and make it available for their students for E-learning during the covid-19 like pandemic. You are leading the development team, that has come up with a web application and the students were asked to register for the courses. When a new course is released, many students try to register in a short duration which is resulting in latency and more wait time. You are now entrusted with the task of optimizing the architecture. Which of the following are appropriate actions?
- ✓
Replace the multilayer images in the current docker environment with multi-stage builds to reduce the size of the final image so that the containers can be quickly spawned during scale out activity
Correct - B
Use Run, copy or add commands that reduce the number of layers in the image which inturn reduces it's size
- C
Use "--no-cache=true" option with docker build command to improve the performance of docker build
- D
Use a dockerfile with each instruction in separate lines to avoid multiple layers in the final image
- ✓
- Question 6
Tim wants to run his application on Amazon ECS. The configuration that has to be setup is in a JSON format, that describes the containers, that forms his application which specifies various parameters like which containers to use, which ports should be opened for his application, and what data volumes should be used with the containers that runs an NGINX web server using the Fargate service. Where can this be done in ECS service?
- ✓
Task definition
Correct - B
Container definition
- C
Cluster definition
- D
Service definition
- ✓
- Question 7
You are a developer, working for e-commerce startup project. You have been asked to deliver a Dockerized application to client.
While launching containers, you realized that it is taking time to launch the container, what could be the reason for this?
- ✓
With Docker using Copy-on-write strategy, it is increasing the I/O and the size of each of the subsequent layers
Correct - B
Base image is not present on the host, and the time being taken is actually the time to download the image from the Docker Hub
- C
The application has several mount points on the host, which is taking time for initialization
- D
You have launched several containers and hence launching new containers is taking time
- ✓
- Question 8
Joe is working on a application that runs in Docker Engine Swarm mode. There is a manager manager1 and two workers worker1 and worker2. The user runs the below command on the manager1:$ docker swarm leave --force
What happens when the above command executes?
- ✓
worker1 and worker2 leave the swarm.
Correct - B
manager1 leaves the swarm and reconfigure the swarm to ensure that there are enough managers to maintain a quorum in the swarm.
- C
manager1 leaves the swarm and does not reconfigure the swarm to ensure that there are enough managers to maintain a quorum in the swarm.
- D
manager1 demotes to a worker node.
- ✓
- Question 9
Joe manages a five node swarm cluster deployed on his local system. What will happen if the only manage node of the cluster fails?
- ✓
Swarm services will continue to run
Correct - B
All nodes will perform a re-election among them to elect a new manager
- C
Swarm cluster will stop all the processes until user configures a new manager of the cluster
- D
No action will be taken
- ✓
- Question 10
Dheera wants to map the current directory into /var/www/html, which is the document-root for apache
and wanted index.php to be served on http://localhost:8080. What is the command line to be executed for it?
- ✓
docker run -d -p 80:80 -v ${PWD}:/var/www/html php:7.2-apache
Correct - B
docker run -d -p 8080:80 -v ${PWD}:/var/www/html php:7.2-apache
- C
docker run -d -p 8080:8080 -v ${PWD}:/var/www/html php:7.2-apache
- D
docker run -d -p 80:80 -v {PWD}/var/www/html apache
- ✓
More in Cloud
Infosys Certified Google Professional Cloud Security Engineer
Infosys Certified AWS Cloud Beginner
Infosys Certified Google Cloud Digital Leader
Pay once. Clear every cert this year.
One subscription, full Telegram channel access, every PDF posted during your membership.
- Full access to all 1,357+ certifications
- Monthly updated question banks
- Telegram private channel access
- Cancel anytime
- Everything in Monthly
- Save ₹2,100 vs monthly billing
- Priority answer key requests
- Best for increasing DQ score fast
- Everything in Quarterly
- Lifetime channel access — no renewals
- All future certifications included
- Priority response from admin team
Common questions, straight answers.
A monthly-updated Telegram channel where we post real exam-pattern question banks and detailed answer keys for 1,357+ Infosys Lex certifications. You join once, you get every PDF posted during your membership.
Right after payment on our Graphy page, you'll receive a private invite link to the Telegram channel. Access is instant — usually under 30 seconds.
We compile question banks from the actual Lex test pattern, sourced and verified by 180K+ community members who've recently cleared these exams. Match rate is consistently 85–95%.
Every single month. When Infosys rolls out new versions of certifications, we post updated dumps within 7–10 days. You'll see channel activity weekly.
Clearing certifications is one of the highest-weighted DQ factors. Members typically clear 3–5 certifications in their first 3 months, which moves DQ scores up by a full band.