100% Latest & Updated Amazon AWS Certified Security - Specialty SCS-C02 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 370
An ECS workload cannot read a secret because the permission exists only on its task execution role. Which THREE observations together would establish the cause and verify successful remediation? (Choose THREE.)
- Trace CloudTrail principal identity for the container's denied application request.
- Verify listener processes and host firewall rules against the intended instance service inventory.
- Inspect Image Builder recipes, component versions and image tests for the relevant unauthorized artifact.
- Compare the task definition's executionRoleArn and taskRoleArn to the failing API principal.
- The container accesses only its intended resource and the execution role retains separate service duties.
- Determine the minimum S3 actions and resources required by the workload.
Explanation
Correct Answers
A:Trace CloudTrail principal identity for the container's denied application request. The investigation needs this evidence rather than a general service-health indicator. Cross-check this evidence: Compare the task definition's executionRoleArn and taskRoleArn to the failing API principal. Both observations bear on the stated operating condition.
D:Compare the task definition's executionRoleArn and taskRoleArn to the failing API principal. The investigation needs this evidence rather than a general service-health indicator. Cross-check this evidence: Trace CloudTrail principal identity for the container's denied application request. Both observations bear on the stated operating condition.
E:The container accesses only its intended resource and the execution role retains separate service duties. This is the post-change validation, whereas the other two correct options investigate the cause. It supplies observable evidence for the selected remediation: Assign least-privilege application permissions to the task role and keep pull/log duties on execution role.
Incorrect Answers
B:Verify listener processes and host firewall rules against the intended instance service inventory. It does not establish the missing AWS behavior in the stem. Corroborate the finding by Compare the task definition's executionRoleArn and taskRoleArn to the failing API principal. Trace CloudTrail principal identity for the container's denied application request.
C:Inspect Image Builder recipes, component versions and image tests for the relevant unauthorized artifact. This would help investigate ec2 image builder pipeline assurance, not the implicated ecs task role separation failure. The direct check is: Compare the task definition's executionRoleArn and taskRoleArn to the failing API principal.
F:Determine the minimum S3 actions and resources required by the workload. This would help investigate ec2 instance profile instead of keys, not the implicated ecs task role separation failure. The direct check is: Compare the task definition's executionRoleArn and taskRoleArn to the failing API principal.
Question 371
Developers give a container broad ECR and CloudWatch rights when it needs a narrow DynamoDB query. Which action should be prioritized once the diagnosis is confirmed?
- Add reproducible hardening and validation steps before promoting a signed-off AMI to launch templates.
- Assign least-privilege application permissions to the task role and keep pull/log duties on execution role.
- Require IMDSv2 where compatible and restrict the instance role and SSRF attack surface.
- Pin approved image digests and require scan and signature or provenance checks in deployment gates.
Explanation
Correct Answer
B:Assign least-privilege application permissions to the task role and keep pull/log duties on execution role. This change corrects the boundary described by the case: ECS task execution roles and task application roles serve different purposes; application API permissions belong to the task role. Closure should be checked against: The container accesses only its intended resource and the execution role retains separate service duties.
Incorrect Answers
A:Add reproducible hardening and validation steps before promoting a signed-off AMI to launch templates. The conditions call for the following correction: Assign least-privilege application permissions to the task role and keep pull/log duties on execution role. The acceptance test is: The container accesses only its intended resource and the execution role retains separate service duties.
C:Require IMDSv2 where compatible and restrict the instance role and SSRF attack surface. This remediation does not address the reported exposure. For the affected control, Assign least-privilege application permissions to the task role and keep pull/log duties on execution role.
D:Pin approved image digests and require scan and signature or provenance checks in deployment gates. The conditions call for the following correction: Assign least-privilege application permissions to the task role and keep pull/log duties on execution role. The acceptance test is: The container accesses only its intended resource and the execution role retains separate service duties.
Question 372
Developers give a container broad ECR and CloudWatch rights when it needs a narrow DynamoDB query. Which unsafe assumption must the closure review explicitly reject?
- A host firewall does not justify leaving needless public network exposure in place.
- Granting permission to the execution role does not automatically authorize all application code in the task.
- Temporary credentials still need least privilege and can be misused if the instance is compromised.
- A completed build job does not prove the AMI meets its hardening baseline.
Explanation
Correct Answer
B:Granting permission to the execution role does not automatically authorize all application code in the task. This is the residual-risk trap in the described system. The team should still trace CloudTrail principal identity for the container's denied application request. before declaring the operation safe.
Incorrect Answers
A:A host firewall does not justify leaving needless public network exposure in place. This warning concerns a different mechanism, host firewall and cloud controls. In this case the remaining unsafe assumption is: Granting permission to the execution role does not automatically authorize all application code in the task.
C:Temporary credentials still need least privilege and can be misused if the instance is compromised. This is not the shortcut that would make the current risk acceptance invalid. The case still demands: Granting permission to the execution role does not automatically authorize all application code in the task.
D:A completed build job does not prove the AMI meets its hardening baseline. This warning concerns a different mechanism, ec2 image builder pipeline assurance. In this case the remaining unsafe assumption is: Granting permission to the execution role does not automatically authorize all application code in the task.
Question 373
A container image contains a shared database password because developers want to avoid a Secrets Manager API call. What is the most defensible technical diagnosis?
- Production application secrets should be stored centrally and retrieved through scoped identity with an operational rotation strategy.
- Serverless execution roles need task-specific least privilege because compromise of function code exposes the role's permissions.
- Container security decisions should bind vulnerability evidence and approval to the immutable image digest actually deployed.
- ECS task execution roles and task application roles serve different purposes; application API permissions belong to the task role.
Explanation
Correct Answer
A:Production application secrets should be stored centrally and retrieved through scoped identity with an operational rotation strategy. Identify every image, environment variable and repository location exposing the credential. Cross-check this evidence: Verify the workload identity and Secrets Manager resource access required for secret retrieval.
Incorrect Answers
B:Serverless execution roles need task-specific least privilege because compromise of function code exposes the role's permissions. That concerns lambda execution-role privilege, not the reported AWS dependency. The relevant evidence is: Identify every image, environment variable and repository location exposing the credential.
C:Container security decisions should bind vulnerability evidence and approval to the immutable image digest actually deployed. This does not resolve the fault in the reported incident: A container image contains a shared database password because developers want to avoid a Secrets Manager API call. The relevant check is: Verify the workload identity and Secrets Manager resource access required for secret retrieval.
D:ECS task execution roles and task application roles serve different purposes; application API permissions belong to the task role. This addresses ecs task role separation rather than the current incident. Verify the reported dependency directly: Identify every image, environment variable and repository location exposing the credential.
Question 374
A container image contains a shared database password because developers want to avoid a Secrets Manager API call. Select THREE items needed to investigate this issue and establish closure. (Choose THREE.)
- Determine the minimum S3 actions and resources required by the workload.
- Identify every image, environment variable and repository location exposing the credential.
- Inspect CloudTrail actions by the function role and determine which are required by its handler.
- Newly deployed tasks obtain only approved secrets and compromised old values no longer authenticate.
- Verify the workload identity and Secrets Manager resource access required for secret retrieval.
- Inspect Image Builder recipes, component versions and image tests for the relevant unauthorized artifact.
Explanation
Correct Answers
B:Identify every image, environment variable and repository location exposing the credential. This is a direct diagnostic observation for the reported AWS failure. Combine it with the second relevant check: Verify the workload identity and Secrets Manager resource access required for secret retrieval. Together they discriminate the cause from a coincident symptom.
D:Newly deployed tasks obtain only approved secrets and compromised old values no longer authenticate. This is the post-change validation, whereas the other two correct options investigate the cause. It supplies observable evidence for the selected remediation: Move secrets out of baked images, rotate exposed values and restrict workload retrieval permissions.
E:Verify the workload identity and Secrets Manager resource access required for secret retrieval. This is a direct diagnostic observation for the reported AWS failure. Combine it with the second relevant check: Identify every image, environment variable and repository location exposing the credential. Together they discriminate the cause from a coincident symptom.
Incorrect Answers
A:Determine the minimum S3 actions and resources required by the workload. It does not establish the missing AWS behavior in the stem. Corroborate the finding by Identify every image, environment variable and repository location exposing the credential. Verify the workload identity and Secrets Manager resource access required for secret retrieval.
C:Inspect CloudTrail actions by the function role and determine which are required by its handler. This is a different AWS control path. The relevant test is: Verify the workload identity and Secrets Manager resource access required for secret retrieval.
F:Inspect Image Builder recipes, component versions and image tests for the relevant unauthorized artifact. This is a different AWS control path. The relevant test is: Verify the workload identity and Secrets Manager resource access required for secret retrieval.
Question 375
A leaked deployment file exposes API credentials that cannot be revoked without a service outage. Which action should be prioritized once the diagnosis is confirmed?
- Assign least-privilege application permissions to the task role and keep pull/log duties on execution role.
- Move secrets out of baked images, rotate exposed values and restrict workload retrieval permissions.
- Add reproducible hardening and validation steps before promoting a signed-off AMI to launch templates.
- Close unneeded cloud ingress and apply host-based restrictions with controlled testing.
Explanation
Correct Answer
B:Move secrets out of baked images, rotate exposed values and restrict workload retrieval permissions. This change corrects the boundary described by the case: Production application secrets should be stored centrally and retrieved through scoped identity with an operational rotation strategy. Closure should be checked against: Newly deployed tasks obtain only approved secrets and compromised old values no longer authenticate.
Incorrect Answers
A:Assign least-privilege application permissions to the task role and keep pull/log duties on execution role. It is a response to ecs task role separation, but the present fault is in a different control path. The corrective action is: Move secrets out of baked images, rotate exposed values and restrict workload retrieval permissions.
C:Add reproducible hardening and validation steps before promoting a signed-off AMI to launch templates. The conditions call for the following correction: Move secrets out of baked images, rotate exposed values and restrict workload retrieval permissions. The acceptance test is: Newly deployed tasks obtain only approved secrets and compromised old values no longer authenticate.
D:Close unneeded cloud ingress and apply host-based restrictions with controlled testing. It is a response to host firewall and cloud controls, but the present fault is in a different control path. The corrective action is: Move secrets out of baked images, rotate exposed values and restrict workload retrieval permissions.
Question 376
A leaked deployment file exposes API credentials that cannot be revoked without a service outage. What important limitation remains after a superficial configuration fix?
- Fixing a golden AMI alone does not retroactively patch all instances launched earlier.
- Encrypting a container registry does not hide secrets from someone authorized to pull the image.
- A completed build job does not prove the AMI meets its hardening baseline.
- A short-lived Lambda runtime is not protection against overprivileged execution credentials.
Explanation
Correct Answer
B:Encrypting a container registry does not hide secrets from someone authorized to pull the image. It distinguishes a superficial improvement from effective security. The acceptance test remains: Newly deployed tasks obtain only approved secrets and compromised old values no longer authenticate.
Incorrect Answers
A:Fixing a golden AMI alone does not retroactively patch all instances launched earlier. It can be true for inspector ec2 vulnerability scanning, but it does not identify the unsafe assumption in this case. Check the observed state instead: Identify every image, environment variable and repository location exposing the credential.
C:A completed build job does not prove the AMI meets its hardening baseline. This warning concerns a different mechanism, ec2 image builder pipeline assurance. In this case the remaining unsafe assumption is: Encrypting a container registry does not hide secrets from someone authorized to pull the image.
D:A short-lived Lambda runtime is not protection against overprivileged execution credentials. It can be true for lambda execution-role privilege, but it does not identify the unsafe assumption in this case. Check the observed state instead: Identify every image, environment variable and repository location exposing the credential.
Question 377
A Lambda that reads an SQS queue also has administrator access due to an inherited policy template. Which interpretation best matches the observed failure?
- Serverless execution roles need task-specific least privilege because compromise of function code exposes the role's permissions.
- EC2 vulnerability exposure must be assessed and remediated on deployed instances, not only on source images or schedules.
- EC2 instance profiles issue temporary role credentials that reduce the need for embedded long-lived application keys.
- Secure AMI pipelines need controlled source images, hardening recipes and tests against the produced image.
Explanation
Correct Answer
A:Serverless execution roles need task-specific least privilege because compromise of function code exposes the role's permissions. The failure described is not just a symptom: Inspect CloudTrail actions by the function role and determine which are required by its handler. Review attached and inline role policies for wildcard permissions and unnecessary resource scope. These observations directly establish which control boundary matters.
Incorrect Answers
B:EC2 vulnerability exposure must be assessed and remediated on deployed instances, not only on source images or schedules. That mechanism explains a different AWS operating failure: An EC2 fleet is patched monthly, yet Inspector reports internet-exposed findings in a forgotten AMI-based deployment. It cannot account for the specific missing control in this question; Review attached and inline role policies for wildcard permissions and unnecessary resource scope.
C:EC2 instance profiles issue temporary role credentials that reduce the need for embedded long-lived application keys. That concerns ec2 instance profile instead of keys, not the reported AWS dependency. The relevant evidence is: Inspect CloudTrail actions by the function role and determine which are required by its handler.
D:Secure AMI pipelines need controlled source images, hardening recipes and tests against the produced image. This does not resolve the fault in the reported incident: A Lambda that reads an SQS queue also has administrator access due to an inherited policy template. The relevant check is: Review attached and inline role policies for wildcard permissions and unnecessary resource scope.
Question 378
A Lambda that reads an SQS queue also has administrator access due to an inherited policy template. Which evidence would most directly distinguish this issue from an unrelated failure?
- Verify listener processes and host firewall rules against the intended instance service inventory.
- Compare running task image digests with ECR scan results and approved build provenance.
- Compare the task definition's executionRoleArn and taskRoleArn to the failing API principal.
- Inspect CloudTrail actions by the function role and determine which are required by its handler.
Explanation
Correct Answer
D:Inspect CloudTrail actions by the function role and determine which are required by its handler. The investigation needs this evidence rather than a general service-health indicator. Cross-check this evidence: Review attached and inline role policies for wildcard permissions and unnecessary resource scope. Both observations bear on the stated operating condition.
Incorrect Answers
A:Verify listener processes and host firewall rules against the intended instance service inventory. This is a different AWS control path. The relevant test is: Review attached and inline role policies for wildcard permissions and unnecessary resource scope.
B:Compare running task image digests with ECR scan results and approved build provenance. It does not establish the missing AWS behavior in the stem. Corroborate the finding by Inspect CloudTrail actions by the function role and determine which are required by its handler. Review attached and inline role policies for wildcard permissions and unnecessary resource scope.
C:Compare the task definition's executionRoleArn and taskRoleArn to the failing API principal. This would help investigate ecs task role separation, not the implicated lambda execution-role privilege failure. The direct check is: Inspect CloudTrail actions by the function role and determine which are required by its handler.
Question 379
Security finds a short-lived function accessing unrelated S3 buckets with its execution role. Which action should be prioritized once the diagnosis is confirmed?
- Move secrets out of baked images, rotate exposed values and restrict workload retrieval permissions.
- Assign least-privilege application permissions to the task role and keep pull/log duties on execution role.
- Replace broad policies with minimum required service actions and resource conditions.
- Pin approved image digests and require scan and signature or provenance checks in deployment gates.
Explanation
Correct Answer
C:Replace broad policies with minimum required service actions and resource conditions. This change corrects the boundary described by the case: Serverless execution roles need task-specific least privilege because compromise of function code exposes the role's permissions. Closure should be checked against: A function regression test passes while unauthorized cross-service calls return AccessDenied.
Incorrect Answers
A:Move secrets out of baked images, rotate exposed values and restrict workload retrieval permissions. The conditions call for the following correction: Replace broad policies with minimum required service actions and resource conditions. The acceptance test is: A function regression test passes while unauthorized cross-service calls return AccessDenied.
B:Assign least-privilege application permissions to the task role and keep pull/log duties on execution role. It is a response to ecs task role separation, but the present fault is in a different control path. The corrective action is: Replace broad policies with minimum required service actions and resource conditions.
D:Pin approved image digests and require scan and signature or provenance checks in deployment gates. The conditions call for the following correction: Replace broad policies with minimum required service actions and resource conditions. The acceptance test is: A function regression test passes while unauthorized cross-service calls return AccessDenied.
Question 380
Security finds a short-lived function accessing unrelated S3 buckets with its execution role. Which observed result is sufficient evidence of the targeted control improvement?
- The deployed digest matches the reviewed artifact and no targeted critical finding remains unresolved.
- Previously missed instances report compliant or remediated package state under the selected baseline.
- A function regression test passes while unauthorized cross-service calls return AccessDenied.
- Newly deployed tasks obtain only approved secrets and compromised old values no longer authenticate.
Explanation
Correct Answer
C:A function regression test passes while unauthorized cross-service calls return AccessDenied. This outcome tests the effectiveness of the targeted intervention: Replace broad policies with minimum required service actions and resource conditions. Verify it in the affected workload and repeat the supporting diagnostic check: Review attached and inline role policies for wildcard permissions and unnecessary resource scope.
Incorrect Answers
A:The deployed digest matches the reviewed artifact and no targeted critical finding remains unresolved. That result tests ecr image digest control, not whether the specific remediation in the question actually worked. The needed outcome is: A function regression test passes while unauthorized cross-service calls return AccessDenied.
B:Previously missed instances report compliant or remediated package state under the selected baseline. Even if observed, it would leave the described failure unverified. This is evidence for another scenario: Maintenance windows finish successfully while a security-sensitive fleet never receives approved patches. The present acceptance criterion is: A function regression test passes while unauthorized cross-service calls return AccessDenied.
D:Newly deployed tasks obtain only approved secrets and compromised old values no longer authenticate. That result tests secure application secrets retrieval, not whether the specific remediation in the question actually worked. The needed outcome is: A function regression test passes while unauthorized cross-service calls return AccessDenied.
AWS Certified Security - Specialty SCS-C02 Practice Tests