Question 1
A production deployment pipeline runs in a tooling account while target services belong to separate staging and production AWS accounts; developers currently copy long-lived access keys into pipeline variables. Which operational or configuration change MOST directly addresses this requirement?
Explanation
Correct Answer
Cross-account pipeline access should use temporary assumed-role credentials with explicit trust and least-privilege permissions. The direct corrective decision is: Use a narrowly scoped deployment role in the target account and configure the pipeline service role to assume it with the required cross-account artifact and KMS permissions. Verify the outcome by: Inspect the trust relationship, role permissions and cross-account pipeline execution to confirm the intended target can be deployed without static keys.
Incorrect Answers
Zero-downtime application deployment often requires backward-compatible data schema changes across overlapping versions. This alternative belongs to implement deployment strategies for instance, container, and serverless environments, whereas the stated failure is most directly corrected by the selected control: Use a narrowly scoped deployment role in the target account and configure the pipeline service role to assume it with the required cross-account artifact and KMS permissions.
Software dependency transparency enables reproducibility and targeted vulnerability investigation of existing artifacts. This alternative belongs to build and manage artifacts, whereas the stated failure is most directly corrected by the selected control: Use a narrowly scoped deployment role in the target account and configure the pipeline service role to assume it with the required cross-account artifact and KMS permissions.
Coverage numbers indicate executed code but do not alone establish behavioral correctness or sufficient risk coverage. This alternative belongs to integrate automated testing into ci/cd pipelines, whereas the stated failure is most directly corrected by the selected control: Use a narrowly scoped deployment role in the target account and configure the pipeline service role to assume it with the required cross-account artifact and KMS permissions.





AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests