AWS DevOps CI/CD Pipelines 5 — Questions and Answers
Question 1: A pipeline must build artifacts and then deploy them to multiple AWS regions simultaneously. Which CodePipeline feature supports cross-region actions?
- CodePipeline Global Stage
- Multi-Region Action Groups using cross-region artifact stores (Correct answer)
- AWS Transit Gateway pipeline routing
- CloudFormation StackSets action only
Correct answer: Multi-Region Action Groups using cross-region artifact stores
CodePipeline supports cross-region actions by configuring region-specific artifact stores; actions in a stage can target different regions simultaneously.
Question 2: When using AWS CodeBuild with a cache configuration, which cache type stores cached files in an Amazon S3 bucket between builds?
- LOCAL cache
- S3 cache (Correct answer)
- EFS cache
- EBS cache
Correct answer: S3 cache
The S3 cache type in CodeBuild uploads and downloads cached directories (like dependency folders) to/from a specified S3 bucket across builds.
Question 3: A development team wants to use feature flags to decouple code deployment from feature release in their CI/CD pipeline. Which AWS service directly supports this pattern?
- AWS CodeStar
- AWS AppConfig (Correct answer)
- AWS Config
- AWS Service Catalog
Correct answer: AWS AppConfig
AWS AppConfig allows teams to deploy feature flags and configuration changes independently of code deployments, enabling safe progressive feature releases.
Question 4: In CodePipeline, what happens when two pipeline executions are triggered in quick succession and the pipeline is already running?
- Both executions run fully in parallel through all stages
- The second execution is queued and supersedes the first in pending stages once earlier stages complete (Correct answer)
- The second execution is immediately rejected
- Both executions merge into a single combined execution
Correct answer: The second execution is queued and supersedes the first in pending stages once earlier stages complete
CodePipeline queues the newer execution; if the older one is still running when the newer one catches up, the newer one supersedes (replaces) it in pending stages.
Question 5: Which AWS CodeBuild feature allows you to run multiple build tasks in parallel within a single build project using the same buildspec?
- Build batching with batch build configuration (Correct answer)
- CodeBuild parallel stages
- Multiple source inputs
- CodeBuild fleet scaling
Correct answer: Build batching with batch build configuration
CodeBuild batch builds allow a single buildspec to define multiple build tasks that run in parallel or in a dependency graph within a single batch execution.
Question 6: A team has an AWS CodePipeline that deploys to AWS Elastic Beanstalk. Which deployment policy in Elastic Beanstalk minimizes downtime by deploying to a separate set of instances before swapping?
- All at once
- Rolling
- Rolling with additional batch
- Immutable (Correct answer)
Correct answer: Immutable
The Immutable deployment policy launches a completely new set of instances, deploys to them, then swaps them in — ensuring no downtime and easy rollback.
Question 7: Which CodePipeline artifact encryption option allows you to use a customer-managed key (CMK) instead of the default service-managed key?
- Configure SSE-S3 on the artifact bucket
- Specify an AWS KMS CMK in the pipeline's encryption configuration (Correct answer)
- Enable S3 Bucket Key on the artifact store
- Use CloudHSM-backed encryption in the pipeline
Correct answer: Specify an AWS KMS CMK in the pipeline's encryption configuration
CodePipeline supports specifying a KMS customer-managed key (CMK) ARN in the pipeline's encryptionKey configuration to encrypt pipeline artifacts with your own key.
A pipeline must build artifacts and then deploy them to multiple AWS regions simultaneously.
Which CodePipeline feature supports cross-region actions?