

















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















































Examiner/Administrator: GitLab
━━━━━━━━━━━━━━━━━━━━━━━━━━━━ GITLAB CERTIFIED CI/CD ASSOCIATE EXAM 2026/2027 EDITION ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
COMPLETE PRACTICE EXAM 100+ MULTIPLE-CHOICE QUESTIONS PASSING SCORE: 70% TESTING TIME: 120 MINUTES ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
TABLE OF CONTENT
CI/CD Fundamentals and Pipeline Architecture GitLab Repository Management and Workflow GitLab CI/CD Configuration with YAML Runners, Executors, and Pipeline Execution Jobs, Stages, Artifacts, and Dependencies Variables, Secrets, and Environment Management Automation, Deployment Strategies, and DevOps Practices Security Integration and Compliance Concepts Troubleshooting and Pipeline Optimization GitLab CI/CD Best Practices and Advanced Concepts
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
GITLAB CERTIFIED CI/CD ASSOCIATE || ALIGNED WITH CURRENT GITLAB CI/CD COMPETENCY OBJECTIVES || PROFESSIONAL CERTIFICATION PREPARATION MATERIAL || ORIGINAL PRACTICE EXAM CONTENT || 100% VERIFIED STUDY RESOURCE || COMPREHENSIVE TECHNICAL EXAM REVIEW || PREPARED FOR
Q1. A DevOps engineer is designing a GitLab CI/CD workflow for a large application. The team wants every code change submitted to the repository to automatically trigger validation, testing, and deployment processes. Which GitLab feature provides the foundation for this automated workflow?
A. GitLab Issues B. GitLab CI/CD Pipelines C. GitLab Wiki Pages D. GitLab Snippets
Correct Answer: 🔴 B. GitLab CI/CD Pipelines
Explanation: 🔹 GitLab CI/CD Pipelines automate the software delivery lifecycle by executing defined jobs such as building, testing, and deploying applications. Pipelines are configured through (^) .gitlab-ci.yml files and are triggered by repository events.
GitLab Issues manage project tracking, Wiki Pages store documentation, and Snippets share reusable code examples, but they do not automate delivery workflows.
Q2. A development team wants to ensure that application code is tested automatically before being merged into the main branch. Which CI/CD practice should be implemented?
A. Manual deployment approvals only B. Continuous Integration with automated testing C. Removing all pipeline stages D. Disabling merge request validation
Correct Answer: 🔴 B. Continuous Integration with automated testing
Explanation: 🔹 Continuous Integration provides rapid feedback by automatically building and testing changes as they are introduced. This allows teams to identify defects early. Manual processes and delayed validation increase the time required to detect problems.
Q5. A GitLab project contains multiple pipeline jobs. The team wants some jobs to execute only after previous validation steps succeed. Which pipeline concept controls this sequence?
A. Issues B. Stages C. Labels D. Merge requests
Correct Answer: 🔴 B. Stages
Explanation: 🔹 GitLab CI/CD stages define the order in which groups of jobs execute. Jobs in later stages typically wait until earlier stages complete successfully. Issues, labels, and merge requests support project collaboration but do not define pipeline execution order.
Q6. A developer creates a .gitlab-ci.yml file but receives configuration errors
during pipeline creation. Which area should be checked first?
A. YAML syntax and indentation B. Browser cache settings C. GitLab profile picture D. Repository description text
Correct Answer: 🔴 A. YAML syntax and indentation
Explanation: 🔹 GitLab CI/CD configuration relies on YAML formatting rules. Incorrect indentation, invalid keys, or syntax errors commonly prevent pipelines from loading.
User profile settings and repository descriptions do not affect YAML parsing.
Q7. A team wants to define reusable pipeline behavior across multiple GitLab projects. Which GitLab CI/CD feature can help reduce duplicated configuration?
A. YAML templates and includes B. Git tags only C. Issue comments D. Project avatars
Correct Answer: 🔴 A. YAML templates and includes
Explanation: 🔹 GitLab supports reusable configuration through YAML templates and the include keyword. This allows teams to share common pipeline definitions. Git tags
and project interface elements do not provide pipeline reuse capabilities.
Q8. A pipeline contains build, test, and deployment jobs. The deployment job should only execute when the test job succeeds. How should this relationship generally be configured?
A. Place deployment in an earlier stage B. Define correct stage ordering and dependencies C. Remove the test job D. Rename the deployment job
Correct Answer: 🔴 B. Define correct stage ordering and dependencies
Explanation: 🔹 Proper stage ordering ensures that deployment occurs only after successful testing. Dependencies can further control artifact flow and execution relationships. Renaming jobs or removing tests does not create a controlled delivery process.
A. GitLab Runner registration B. Project description C. Commit message length D. Issue labels
Correct Answer: 🔴 A. GitLab Runner registration
Explanation: 🔹 GitLab Runners execute CI/CD jobs. If runners are unavailable, jobs remain pending even though the pipeline configuration is correct. Project metadata and commit formatting do not determine job execution capacity.
Q12. An organization wants isolated environments for running CI jobs using containers. Which runner executor is commonly used?
A. Docker executor B. Text executor C. Browser executor D. Spreadsheet executor
Correct Answer: 🔴 A. Docker executor
Explanation: 🔹 The Docker executor runs CI jobs inside containers, providing consistency and isolation. The other options are not standard GitLab Runner execution methods.
Q13. A security team requires that CI jobs run on company-controlled infrastructure instead of shared infrastructure. Which approach meets this requirement?
A. Use self-managed GitLab Runners B. Disable pipelines C. Delete the repository D. Remove all variables
Correct Answer: 🔴 A. Use self-managed GitLab Runners
Explanation: 🔹 Self-managed runners allow organizations to control the execution environment, security policies, and infrastructure. Disabling pipelines eliminates automation rather than improving control.
Q14. A runner is configured but cannot execute jobs because it is restricted to certain projects. What should be checked?
A. Runner scope and project assignment B. Repository file names C. Commit author formatting D. Issue descriptions
Correct Answer: 🔴 A. Runner scope and project assignment
Explanation: 🔹 GitLab runners can be configured for specific projects, groups, or instances. Incorrect scope prevents jobs from using the runner. Repository naming and issue content do not affect runner availability.
Q15. A team wants multiple pipeline jobs to run simultaneously to reduce total build time. Which CI/CD capability supports this?
A. Parallel job execution B. Removing stages C. Disabling automation D. Using fewer commits
Correct Answer: 🔴 A. Parallel job execution
Explanation: 🔹 Parallel execution allows independent jobs to run at the same time, reducing pipeline duration. Removing stages or limiting commits does not optimize execution in this manner.
Correct Answer: 🔴 A. Artifact dependency
Explanation: 🔹 Artifact dependencies allow later jobs to access outputs created earlier in the pipeline. Other options are unrelated to file transfer between CI/CD stages.
Q19. A pipeline contains independent testing jobs for different application components. What design improves efficiency?
A. Run independent jobs concurrently B. Place all jobs in one manual step C. Remove testing stages D. Avoid using runners
Correct Answer: 🔴 A. Run independent jobs concurrently
Explanation: 🔹 Independent tests can execute in parallel, reducing overall pipeline completion time. Consolidating everything manually reduces automation benefits.
Q20. A DevOps engineer wants failed jobs to retain logs and generated files for investigation. Which feature helps?
A. Job artifacts and logs B. Issue titles C. Repository naming D. Branch colors
Correct Answer: 🔴 A. Job artifacts and logs
Explanation: 🔹 Logs and artifacts provide evidence needed for troubleshooting failed executions. Repository appearance settings do not support debugging.
Q21. A team needs to store API credentials used during deployment without placing them directly in code. What should be used?
A. CI/CD variables B. README files C. Commit messages D. Public comments
Correct Answer: 🔴 A. CI/CD variables
Explanation: 🔹 CI/CD variables securely provide configuration values and secrets during pipeline execution. Storing credentials in code or public documentation creates security risks.
Q22. A company wants production deployment credentials hidden from developers while still allowing automated deployment. Which practice is recommended?
A. Protected variables and restricted access B. Hardcoding credentials C. Publishing secrets in YAML D. Sharing passwords through commits
Correct Answer: 🔴 A. Protected variables and restricted access
Explanation: 🔹 Protected variables limit access to authorized branches or environments. Hardcoding or publishing credentials exposes sensitive information.
Q23. A pipeline behaves differently between environments because configuration values vary. Which approach improves consistency?
A. Environment-specific variables B. Manual file editing C. Removing deployments D. Ignoring configuration differences
Q26. A pipeline fails after a recent YAML modification. What is the best initial troubleshooting step?
A. Review pipeline error messages and YAML validation B. Delete the project C. Disable GitLab permanently D. Remove all branches
Correct Answer: 🔴 A. Review pipeline error messages and YAML validation
Explanation: 🔹 Pipeline logs and configuration validation provide direct evidence of the failure cause. Destructive actions do not support effective troubleshooting.
Q27. A team wants safer production releases by gradually introducing changes. Which deployment approach supports this goal?
A. Incremental or staged deployment B. Immediate uncontrolled release C. Manual file copying only D. Skipping testing
Correct Answer: 🔴 A. Incremental or staged deployment
Explanation: 🔹 Incremental deployments reduce risk by releasing changes progressively. Uncontrolled releases increase operational risk.
Q28. A developer wants to understand why a job failed during execution. Which resource should be examined first?
A. Job logs B. Project icon C. User biography D. Repository visibility badge
Correct Answer: 🔴 A. Job logs
Explanation: 🔹 Job logs provide command output, errors, and execution details required for troubleshooting. Interface elements do not reveal runtime failures.
Q29. A company wants CI/CD pipelines to automatically verify code quality before deployment. Which practice supports this objective?
A. Automated quality checks B. Removing all tests C. Disabling merge workflows D. Avoiding pipeline automation
Correct Answer: 🔴 A. Automated quality checks
Explanation: 🔹 Automated quality checks integrate validation into delivery workflows, improving reliability. Removing tests eliminates important safeguards.
Q30. A DevOps engineer reviews a mature GitLab CI/CD implementation. Which characteristic best represents a well-designed pipeline?
A. Automated, repeatable, secure, and observable workflows B. Manual execution of every deployment C. No testing before release D. Storing credentials in source code
Correct Answer: 🔴 A. Automated, repeatable, secure, and observable workflows
Explanation: 🔹 A mature CI/CD pipeline emphasizes automation, consistency, security controls, monitoring, and reliable delivery. Manual-only processes and insecure credential handling contradict DevOps best practices.
Q33. A GitLab pipeline includes a job that should run only when files in a specific directory are modified. Which feature supports this requirement?
A. Path-based rules B. Commit emojis C. Merge request titles D. Project topics
Correct Answer: 🔴 A. Path-based rules
Explanation: 🔹 Path-based rules allow jobs to trigger only when specific files or directories change, improving pipeline efficiency. Other options do not control execution behavior.
Q34. A DevOps team notices that pipelines are triggered unnecessarily on documentation-only changes. What optimization should be applied?
A. Conditional pipeline rules based on file changes B. Increasing job count C. Disabling CI/CD entirely D. Removing repository README
Correct Answer: 🔴 A. Conditional pipeline rules based on file changes
Explanation: 🔹 Conditional rules prevent unnecessary pipeline execution, reducing resource usage and improving efficiency. Increasing jobs or disabling CI/CD harms productivity.
Q35. A pipeline job must access another job’s output securely. Which GitLab concept enables this transfer?
A. Artifacts and dependencies B. Issue boards C. Labels D. Project forks
Correct Answer: 🔴 A. Artifacts and dependencies
Explanation: 🔹 Artifacts store job outputs that can be securely passed between pipeline stages. Issues and labels are unrelated to data transfer in CI/CD workflows.
Q36. A developer wants to define a job that runs only when a merge request is created. Which configuration is appropriate?
A. CI/CD rules using merge request events B. Manual pipeline triggers only C. Repository description settings D. GitLab avatar changes
Correct Answer: 🔴 A. CI/CD rules using merge request events
Explanation: 🔹 GitLab CI/CD rules can target merge request events, enabling workflows specific to code review processes. Other options do not control pipeline execution events.
Q37. A pipeline must execute a cleanup job regardless of whether previous jobs succeed or fail. Which keyword supports this behavior?
A. Always-run condition (e.g., (^) when: always )
B. (^) only: success
C. except: manual
D. cache: false
Correct Answer: 🔴 A. Always-run condition (e.g., when: always )
Explanation: 🔹 The when: always condition ensures a job runs regardless of pipeline
success or failure, useful for cleanup tasks. Other options restrict execution conditions or affect caching.
Explanation: 🔹 Protected variables restrict access to specific branches or tags, enhancing security in production workflows. Other options do not enforce secret access control.
Q41. A GitLab runner is overloaded, causing delays in job execution. What is a recommended scaling approach?
A. Add more runners to distribute workload B. Disable pipelines C. Reduce repository commits D. Delete jobs randomly
Correct Answer: 🔴 A. Add more runners to distribute workload
Explanation: 🔹 Scaling runners improves parallel execution capacity and reduces queue time. Disabling pipelines or removing jobs reduces functionality.
Q42. A pipeline job requires a specific operating system environment. What should be configured?
A. Runner tags matching environment requirements B. Issue milestones C. Repository topics D. Commit emojis
Correct Answer: 🔴 A. Runner tags matching environment requirements
Explanation: 🔹 Runner tags ensure jobs execute on compatible environments such as OS or architecture-specific runners.
Q43. A developer wants to test multiple versions of a runtime in parallel. Which CI/CD concept supports this?
A. Matrix builds B. Manual execution C. Sequential pipelines only D. Single runner restriction
Correct Answer: 🔴 A. Matrix builds
Explanation: 🔹 Matrix builds allow testing across multiple runtime or configuration combinations in parallel, improving compatibility coverage.
Q44. A job must run only on runners with GPU capability. What should be used?
A. Tagged runners with GPU labels B. Issue labels C. Merge request approvals D. Repository forks
Correct Answer: 🔴 A. Tagged runners with GPU labels
Explanation: 🔹 Runner tags ensure jobs are executed on appropriate hardware, such as GPU-enabled machines.
Q45. A pipeline job remains stuck because no runner matches its requirements. What is the most likely cause?
A. No available runner with required tags or configuration B. Incorrect commit message C. Repository visibility settings D. Too many merge requests
Correct Answer: 🔴 A. No available runner with required tags or configuration
Explanation: 🔹 If no runner matches the job’s requirements, the job remains pending indefinitely until a compatible runner becomes available.