ScenarioCert
SAP-C03 ยท Operational Excellence and Automation (20-20%)

Design CI/CD and DevSecOps pipelines

Practice questions and explanations for the "Design CI/CD and DevSecOps pipelines" objective of the AWS Certified Solutions Architect - Professional exam. Skills measured as of 2026-10-29.

Skills in this objective

  • Design CI/CD solutions to orchestrate automated build and deployment pipelines
  • Implement security scanning in pipelines to assess vulnerabilities and sign artifacts
  • Configure multi-account and multi-Region deployment pipelines that include features such as role delegation and artifact promotion
  • Evaluate AI/ML applications and validate outputs
  • Implement deployment strategies that provide rollback capabilities

Test yourself on this domain

Take the free 15-question test, or unlock all 150 questions and practice this domain on its own.

Sample questions

4 of the 7 questions we have for this objective, shown with the answer and the reasoning.

Design CI/CD and DevSecOps pipelines

Ardent Health Partners has a patient-education assistant built on an Amazon Bedrock knowledge base. The team wants to change the chunking settings and the generation model, but only if answer correctness and faithfulness to the source documents do not drop. They have 400 reference questions with expert-approved answers in Amazon S3 and want the comparison to run automatically in their release pipeline.

Which approach should the solutions architect recommend?

  1. AAttach a guardrail with contextual grounding and relevance checks to the proposed configuration, replay the 400 reference questions, and release it if no responses are blocked.Grounding checks filter individual responses at run time. They do not score correctness against the expert answers or compare two configurations.
  2. BRun Amazon Bedrock Evaluations RAG evaluation jobs for both configurations against the reference dataset, and fail the stage if correctness or faithfulness drops.RAG evaluation jobs score retrieval and generation with metrics such as correctness and faithfulness against a prompt dataset, so two configurations can be compared automatically before release.
  3. CCompare the InvocationLatency and OutputTokenCount CloudWatch metrics of the two configurations during a one-week trial in production.These metrics measure speed and size, not whether answers are correct or grounded, and a production trial exposes patients to the risk.
  4. DEnable an Amazon SageMaker AI Model Monitor data quality monitoring schedule on the knowledge base.Model Monitor watches SageMaker AI endpoints for data and model drift; it does not evaluate Bedrock knowledge base answers against reference answers.
Why: Validating AI changes belongs in the pipeline, just like unit tests. Amazon Bedrock Evaluations provides model evaluation and RAG evaluation jobs, including judge-model metrics for correctness, completeness and faithfulness, that run against a dataset in S3 and produce comparable reports. Running the old and new configurations against the same reference set turns a subjective change into a measurable gate. Operational metrics and run-time guardrails are useful, but they answer different questions.
Design CI/CD and DevSecOps pipelines

Ospreyline Payments deploys an AWS Lambda function named settle-batch with the AWS Serverless Application Model (AWS SAM) through AWS CodePipeline. Several past releases passed unit tests but failed against the live settlement ledger, and the team discovered the failures only after all traffic had moved. The new process must run an integration test against the new version before it receives any production traffic, then shift traffic gradually, and roll back automatically if the function's Errors metric alarm fires.

Which configuration meets these requirements with the LEAST custom code?

  1. APublish each release as a new function version, point a production alias at it, and configure a Lambda destination on failure that invokes a rollback function.On-failure destinations apply to asynchronous invocations of the function and do not test a version before traffic arrives. A custom rollback function is also the custom code the team wants to avoid.
  2. BConfigure weighted alias routing manually, assigning 10 percent to the new version, and use an Amazon EventBridge rule on the Errors alarm to invoke a function that resets the alias weight.Manual weighted aliases can split traffic, but promotion, the pre-traffic test and rollback all require custom scripts, and the new version would still receive production traffic before being tested.
  3. CAdd an AutoPublishAlias and a DeploymentPreference of type Linear10PercentEvery1Minute with a PreTraffic hook that runs the integration test and the Errors alarm under Alarms.SAM safe deployments create a CodeDeploy application and deployment group for the alias. The PreTraffic hook runs before any traffic shifts and can fail the deployment, the linear type shifts traffic gradually, and the listed alarm triggers automatic rollback of the alias to the previous version.
  4. DEnable Lambda provisioned concurrency on the new version and run the integration test from a CodeBuild stage after the alias is updated.Provisioned concurrency addresses cold starts, not release safety. Testing after the alias update means production traffic already reaches the untested version.
Why: For Lambda, CodeDeploy shifts traffic between function versions behind an alias, and AWS SAM exposes this through the DeploymentPreference property. A BeforeAllowTraffic (PreTraffic) hook is the supported place to run validation against the new version before any users reach it, and alarms attached to the deployment cause automatic rollback during the shift. The deciding constraints are testing before traffic and minimal custom code. The distractors either test too late or depend on hand-written rollback logic.
Design CI/CD and DevSecOps pipelines

Ravensworth Insurance runs AWS CodePipeline in a tooling account. The pipeline must deploy AWS CloudFormation stacks to a test account and then, after a manual approval, to a production account. The first attempt failed because the production account could not read the pipeline's artifacts, which are encrypted with the default AWS managed key for Amazon S3.

What should the solutions architect configure?

  1. AMake the artifact bucket public for read access during deployments.Public artifacts expose code and templates and are never an acceptable fix.
  2. BEncrypt the artifacts with a customer managed KMS key that the test and production accounts can decrypt, allow them in the bucket policy, and deploy through roles in each target account.AWS managed keys cannot be shared across accounts, so a customer managed key with a cross-account key policy, a bucket policy that allows the target accounts, and deploy action roles in the target accounts that the pipeline assumes let each stage read artifacts and deploy in its own account.
  3. CCopy the pipeline into the production account with its own artifact bucket, and trigger it from an EventBridge rule when the test stage succeeds.Separate pipelines duplicate configuration and lose the single promotion path, with its manual approval, from test to production.
  4. DStore long-term access keys for a production IAM user in AWS Secrets Manager in the tooling account and use them in a CodeBuild step that runs the deployment.Long-term keys are a security risk even when stored in Secrets Manager; cross-account roles provide temporary credentials for the same purpose.
Why: Multi-account pipelines promote the same artifact through accounts by assuming roles in each target account. The usual blocker is encryption: artifacts encrypted with the AWS managed aws/s3 key cannot be decrypted in other accounts, so the artifact store needs a customer managed KMS key whose key policy grants the target accounts, together with a bucket policy and per-account deployment roles. Manual approval actions between stages give the control point before production.
Design CI/CD and DevSecOps pipelines

Westbrook Health builds container images in AWS CodeBuild and deploys them to Amazon EKS. A new policy says that images with critical vulnerabilities must never reach the registry used by production, and that the cluster must run only images that the company's pipeline has signed. Security wants Amazon Inspector to be the scanning engine.

Which pipeline design meets the policy?

  1. AScan an SBOM with Amazon Inspector CI/CD scanning in CodeBuild and fail on critical findings before the push, sign passing images with AWS Signer, and enforce signatures with an admission controller.Scanning in the build blocks vulnerable images before they reach ECR, Signer signatures (applied through the Notation CLI) prove the pipeline produced the image, and admission control rejects anything unsigned at deployment.
  2. BTurn on Amazon GuardDuty EKS Runtime Monitoring to stop vulnerable containers after they start.GuardDuty detects threats at run time; it does not block vulnerable or unsigned images from being deployed.
  3. CStore a SHA-256 hash of each image in AWS Systems Manager Parameter Store and have developers compare hashes before deploying.A manual hash check is not a signature, can be skipped, and does not scan for vulnerabilities.
  4. DPush every image to Amazon ECR with Amazon Inspector enhanced scanning on push, use an EventBridge rule on critical findings to delete the image, and allow the cluster to pull only from that ECR repository.Scanning after the push lets vulnerable images into the registry until the rule deletes them, and nothing stops the cluster from running unsigned images.
Why: DevSecOps moves controls left and enforces them at the boundary. Vulnerability scanning in the build, here Amazon Inspector's CI/CD integration with an SBOM, stops bad images before publication. Signing, here AWS Signer with Notation, gives each image a verifiable origin, and an admission controller such as Kyverno or Ratify verifies signatures before pods start. Registry scanning and runtime detection remain useful as later layers, not as the gate.

Written from the public documentation. Not affiliated with AWS. Official study guide.