Skip to main content
DevOps ⭐ Premium

CNCF Certified Kubernetes Application Developer (CKAD) - 340 Questions

By Webmaster Certland ❤️ 0 likes

Practice exam for the Certified Kubernetes Application Developer (CKAD). Covers Application Design and Build, Deployment, Observability, Security, and Services and Networking.

🔒

Premium Content

This exam is exclusive to Premium users. Upgrade to get unlimited access!

Become Premium

👁️ Free Preview (5 of 340 questions)

1. A developer is writing a Dockerfile for a Node.js application. They want to ensure the final image is as small as possible and does not include build tools like npm or gcc. Which Dockerfile technique best achieves this goal?

A Install all build dependencies and then delete them with RUN rm -rf in the same Dockerfile
B Use a multi-stage build with a build stage and a minimal runtime base image in the final stage
C Add all build artifacts to .dockerignore so they are excluded from the final image
D Build the image normally and use docker build --squash to merge all layers into one

2. A company wants to run a data-processing container image that must be available on every node in a Kubernetes cluster, including nodes added in the future. The workload does not need to be scaled horizontally and must run exactly one replica per node. Which workload resource should the developer choose?

A Deployment
B StatefulSet
C DaemonSet
D Job

3. A developer needs to containerize a Go application. The build process requires the Go toolchain and several large dependencies, but the final binary is statically compiled and has no external dependencies. Which base image choice for the final stage of a multi-stage Dockerfile minimizes image size while keeping the container runnable?

A FROM scratch
B FROM alpine:3.19
C FROM ubuntu:22.04
D FROM golang:1.21

4. A developer is writing a Dockerfile for a Python web application. The application reads its database URL from an environment variable DATABASE_URL. Which Dockerfile instruction correctly sets a default value for this variable that can be overridden at container runtime?

A ARG DATABASE_URL=postgresql://localhost/mydb
B ENV DATABASE_URL=postgresql://localhost/mydb
C LABEL DATABASE_URL=postgresql://localhost/mydb
D RUN export DATABASE_URL=postgresql://localhost/mydb

5. A developer wants to tag a locally built container image called myapp with the version 2.1.0 and push it to a private registry at registry.example.com/team/myapp. Which sequence of commands is correct?

A docker build -t myapp:2.1.0 . && docker push registry.example.com/team/myapp
B docker rename myapp registry.example.com/team/myapp:2.1.0 && docker push registry.example.com/team/myapp:2.1.0
C docker tag myapp:2.1.0 registry.example.com/team/myapp:2.1.0 && docker push registry.example.com/team/myapp:2.1.0
D docker push registry.example.com/team/myapp:2.1.0 && docker tag myapp:2.1.0 registry.example.com/team/myapp:2.1.0

Want to test yourself for real?

Create a free account and run our exam simulation engine.

Free No credit card
  • Simulation engine
  • Up to 10 questions per attempt
  • Score & basic stats
Create free account Already have an account? Sign in
Best
Premium 7-day trial
  • All 340 questions
  • Detailed explanations
  • Smart Practice + Focus Mode
⭐ Start 7-day free trial

Information

Questions 340
Time 2h
Difficulty Medium
Minimum Score 66.00%

🤍 Like

Related Exams

Discussion

No comments yet. Be the first to start the discussion!

Sign in to join the discussion.