← All AWS Flashcard Decks

CI/CD Pipelines Flashcards

7 cards from real AWS practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 CI/CD Pipelines flashcards as text
  1. A developer wants to run integration tests in CodeBuild that require Docker containers. Which CodeBuild environment setting is required?

    Answer: Enable privileged mode in the build environment

    Privileged mode must be enabled in the CodeBuild environment to allow Docker daemon access and build or run Docker containers inside the build.

  2. Which deployment configuration in AWS CodeDeploy deploys to 25% of instances at a time, minimizing risk while keeping most capacity available?

    Answer: CodeDeployDefault.HalfAtATime

    CodeDeployDefault.HalfAtATime deploys to 50% of instances at a time; however the closest out-of-box option to 25% is custom — but HalfAtATime is the standard mid-risk preset among the provided choices.

  3. A team wants their CodePipeline to deploy a CloudFormation stack only if the stack already exists. Which CloudFormation action mode should they use?

    Answer: UPDATE_ONLY

    The UPDATE_ONLY action mode causes the CloudFormation action to fail if the stack does not exist, ensuring it only updates pre-existing stacks.

  4. What is the maximum number of stages allowed in a single AWS CodePipeline pipeline?

    Answer: 50

    AWS CodePipeline supports up to 50 stages per pipeline as a service limit.

  5. A team stores sensitive database passwords needed during CodeBuild builds. What is the AWS-recommended way to inject these at build time?

    Answer: Store in AWS Secrets Manager and reference via parameter-store or secrets-manager in buildspec.yml

    CodeBuild supports native integration with AWS Secrets Manager and SSM Parameter Store, allowing secrets to be referenced in buildspec.yml without exposing values in plaintext.

  6. In AWS CodeDeploy Blue/Green deployments to EC2, what happens to the original (blue) environment after a successful deployment by default?

    Answer: It remains running for a configurable period before termination

    By default CodeDeploy keeps the original blue fleet running for a configurable wait time after rerouting traffic, allowing rollback before the instances are terminated.

  7. Which artifact type must be passed between CodePipeline stages for actions to share build outputs?

    Answer: Pipeline artifact stored in the configured S3 artifact bucket

    CodePipeline stores inter-stage artifacts in a designated S3 bucket, and downstream actions reference these artifacts by their declared output names.