JobsPing

DevOps interview practice

Covers Docker, Kubernetes, CI/CD, observability, Linux. Questions are written for real interviews at junior, mid and senior level.

Start a DevOps practice test

15 multiple-choice questions · 15 minutes · instant score with explanations

Sample DevOps interview questions

Three questions from the bank, with answers. The practice test draws different ones each time.

Question 1 · CI/CD artifacts · junior

In a CI/CD workflow, what is a build "artifact"?

# No code snippet needed
  1. A.Security vulnerabilities detected by static analysis tools.
  2. B.Files generated during a build job (such as compiled binaries or container images) passed to subsequent stages.
  3. C.Git commit hashes used to tag source code branches.
  4. D.Temporary log files generated by the operating system kernel.
Show answer

B. Files generated during a build job (such as compiled binaries or container images) passed to subsequent stages.

Artifacts in a CI/CD pipeline are files produced by a build or test job (such as compiled binaries, test reports, or built container images) that are needed by later jobs in the pipeline or for deployment.

Question 2 · Security and TLS · junior

How do HTTPS and TLS encryption protect data in transit?

# No code snippet needed
  1. A.It uses asymmetric encryption for all data packets transmitted during the session.
  2. B.It uses asymmetric encryption for the initial handshake to exchange a symmetric session key for faster data transfer.
  3. C.It relies entirely on hashing algorithms to obfuscate plaintext messages.
  4. D.It exchanges symmetric keys insecurely over public Wi-Fi networks without encryption.
Show answer

B. It uses asymmetric encryption for the initial handshake to exchange a symmetric session key for faster data transfer.

TLS (Transport Layer Security) uses asymmetric cryptography (public/private key pairs) during the initial handshake phase to securely exchange a symmetric session key. Once established, symmetric encryption is used for all subsequent data transfer because it is much faster and more efficient.

Question 3 · Linux permissions · junior

What permissions does the Linux command `chmod 755 script.sh` apply to a file?

chmod 755 script.sh
  1. A.Gives the owner read-only access and denies access to everyone else.
  2. B.Gives full read, write, and execute permissions to all users on the system.
  3. C.Gives execution rights exclusively to the system root user.
  4. D.Gives the owner read, write, and execute permissions, and read and execute permissions to group and others.
Show answer

D. Gives the owner read, write, and execute permissions, and read and execute permissions to group and others.

In Linux file permissions, the octal value 755 breaks down as: Owner = 7 (read, write, execute), Group = 5 (read, execute), and Others = 5 (read, execute). This gives the owner full access while allowing everyone else to read and execute the script.