SageMaker & IAM — SCS-C03 Practice Question
A representative AWS Security Specialty (SCS-C03) exam question on SageMaker & IAM. Work through it below, then read why each option is right or wrong.
This question is part of the free AWS Certified Security - Specialty practice test.
Short answer
The correct answer is B. Use the revoke active sessions option on the notebook execution role.
B is correct: Revoking active sessions attaches the AWSRevokeOlderSessions inline policy, which uses aws:TokenIssueTime to deny all actions to sessions issued before the revocation (including about 30 seconds into the future for propagation). The role stays usable: other notebooks lose their older sessions too, but credentials obtained afterward work. A is wrong because deleting the role disrupts every notebook that uses it, and a recreated role is a new principal. C is wrong because stopping the instance does not revoke temporary credentials that were already copied; they remain valid until they expire or are denied by policy. D is wrong because roles have no long-term access keys to rotate.
The Question
A data science team runs SageMaker AI notebook instances. A responder confirms that temporary credentials from one notebook's execution role were copied by an attacker and are being used from an unknown IP. The role must keep working for other notebooks after containment, and the stolen credentials must stop working immediately. Which action should the responder take?
Why B is correct
B is correct: Revoking active sessions attaches the AWSRevokeOlderSessions inline policy, which uses aws:TokenIssueTime to deny all actions to sessions issued before the revocation (including about 30 seconds into the future for propagation). The role stays usable: other notebooks lose their older sessions too, but credentials obtained afterward work. A is wrong because deleting the role disrupts every notebook that uses it, and a recreated role is a new principal. C is wrong because stopping the instance does not revoke temporary credentials that were already copied; they remain valid until they expire or are denied by policy. D is wrong because roles have no long-term access keys to rotate.
Why the other options are wrong
Option A does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (B) is the only one that fully meets every constraint stated in the question.
Option C does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (B) is the only one that fully meets every constraint stated in the question.
Option D does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (B) is the only one that fully meets every constraint stated in the question.
Key idea: SageMaker & IAM
B is correct: Revoking active sessions attaches the AWSRevokeOlderSessions inline policy, which uses aws:TokenIssueTime to deny all actions to sessions issued before the revocation (including about 30 seconds into the future for propagation). The role stays usable: other notebooks lose their older sessions too, but credentials obtained afterward work. A is wrong because deleting the role disrupts every notebook that uses it, and a recreated role is a new principal. C is wrong because stopping the instance does not revoke temporary credentials that were already copied; they remain valid until they expire or are denied by policy. D is wrong because roles have no long-term access keys to rotate. On the SCS-C03 exam, questions in the "Incident Response" domain test whether you can map a scenario's constraints to the right choice. Read the requirement carefully, eliminate options that violate any single constraint, and pick the one that satisfies all of them with the least operational overhead.
Ready to see how you'd score?
Take the free practice quiz and find out which AWS Certified Security - Specialty domains you need to focus on. No signup required.
Practice 5 similar questions
Same cert, same or adjacent domain. Use these after reviewing the explanation.
Related AWS Certified Security - Specialty Practice Questions
Official sources used
Verify program and exam details at the source before scheduling.