100% Latest & Updated Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 860
An automation service creates application roles with custom policies, but no maximum-permissions constraint limits those roles. Choose TWO measures that implement and verify an effective AWS response to this specific situation. (Choose TWO.)
- Create a test role with an overprivileged identity policy and verify effective permissions remain bounded as intended.
- Apply permissions boundaries to delegated role creation and restrict the permissions to attach or remove the boundary.
- Permit delegated role creators to detach their own permissions boundaries after creating roles with broad policies.
- Evaluate the attached role policy alone and assume a newly created role cannot exceed the intended permission boundary.
- Treat attaching a permissions boundary as a grant of AWS API permissions even if no identity policy allows the requested action.
Explanation
Correct Answers
A:Create a test role with an overprivileged identity policy and verify effective permissions remain bounded as intended. Permissions boundaries constrain the maximum effective identity permissions but do not independently grant permissions.
B:Apply permissions boundaries to delegated role creation and restrict the permissions to attach or remove the boundary. Permissions boundaries constrain the maximum effective identity permissions but do not independently grant permissions. Delegated identity creation without enforced boundaries can become a privilege-escalation path.
Incorrect Answers
C:Permit delegated role creators to detach their own permissions boundaries after creating roles with broad policies. It conflicts with the stated operating condition: Permissions boundaries constrain the maximum effective identity permissions but do not independently grant permissions.
D:Evaluate the attached role policy alone and assume a newly created role cannot exceed the intended permission boundary. It conflicts with the stated operating condition: Permissions boundaries constrain the maximum effective identity permissions but do not independently grant permissions.
E:Treat attaching a permissions boundary as a grant of AWS API permissions even if no identity policy allows the requested action. It conflicts with the stated operating condition: Permissions boundaries constrain the maximum effective identity permissions but do not independently grant permissions.
Question 861
A deployment script writes access keys in a shared repository to assume a production automation identity each night. Which implementation BEST addresses the operational issue?
- Place appropriate AWS WAF protections on supported endpoints and use count-mode tests and tuned rules before broad blocking.
- Use short-lived role sessions with supported federation or workload identity and narrowly constrained trust conditions.
- Use ACM certificates with supported AWS integrations and an automated renewal or documented import replacement process.
- Use CloudFormation drift detection and configuration monitoring to compare supported deployed properties with approved IaC intent.
Explanation
Correct Answer
B:Use short-lived role sessions with supported federation or workload identity and narrowly constrained trust conditions. Temporary credentials narrow the duration of credential exposure compared with persistent static keys. Leaked standing credentials can allow repeated unauthorized access long after a pipeline run ends.
Incorrect Answers
A:Place appropriate AWS WAF protections on supported endpoints and use count-mode tests and tuned rules before broad blocking.
C:Use ACM certificates with supported AWS integrations and an automated renewal or documented import replacement process. That relates to acm certificate renewal and tls endpoint automation, not short lived sts role sessions rather than stored access keys.
D:Use CloudFormation drift detection and configuration monitoring to compare supported deployed properties with approved IaC intent. That relates to cloudformation drift detection on privileged security resources, not short lived sts role sessions rather than stored access keys.
Question 862
A deployment script writes access keys in a shared repository to assume a production automation identity each night. How should the team validate the intended result?
- Inspect CloudTrail role-session identity and confirm a deleted test job cannot reuse expired credentials.
- Reproduce an authorized sample finding and inspect its resource, event time and supporting CloudTrail or VPC evidence.
- Create a controlled external-principal access scenario and confirm Analyzer identifies the resource-based policy path.
- Check certificate domain validation, active listener binding and renewal status before expiration in a test environment.
Explanation
Correct Answer
A:Inspect CloudTrail role-session identity and confirm a deleted test job cannot reuse expired credentials. Temporary credentials narrow the duration of credential exposure compared with persistent static keys.
Incorrect Answers
B:Reproduce an authorized sample finding and inspect its resource, event time and supporting CloudTrail or VPC evidence.
C:Create a controlled external-principal access scenario and confirm Analyzer identifies the resource-based policy path. That relates to iam access analyzer external sharing assessment, not short lived sts role sessions rather than stored access keys.
D:Check certificate domain validation, active listener binding and renewal status before expiration in a test environment. That relates to acm certificate renewal and tls endpoint automation, not short lived sts role sessions rather than stored access keys.
Question 863
A deployment script writes access keys in a shared repository to assume a production automation identity each night. Which AWS operational principle BEST explains the issue?
- Data encryption does not replace discovery and classification of the actual information stored in an object repository.
- Resource-based policies can grant external access independently of an internal user's identity permissions.
- Temporary credentials narrow the duration of credential exposure compared with persistent static keys.
- S3 authorization and KMS key authorization are distinct gates when customer-managed encryption is used.
Explanation
Correct Answer
C:Temporary credentials narrow the duration of credential exposure compared with persistent static keys. Leaked standing credentials can allow repeated unauthorized access long after a pipeline run ends.
Incorrect Answers
A:Data encryption does not replace discovery and classification of the actual information stored in an object repository. That relates to macie sensitive s3 object discovery and remediation, not controlling principle for short lived sts role sessions rather than stored access keys.
B:Resource-based policies can grant external access independently of an internal user's identity permissions. That relates to iam access analyzer external sharing assessment, not controlling principle for short lived sts role sessions rather than stored access keys.
D:S3 authorization and KMS key authorization are distinct gates when customer-managed encryption is used. That relates to kms key policy and encrypted deployment artifact access, not controlling principle for short lived sts role sessions rather than stored access keys.
Question 864
A deployment script writes access keys in a shared repository to assume a production automation identity each night. What preventive practice should be maintained after the fix?
- Audit encryption grants, KMS key rotation and deployment role coverage across target accounts.
- Include Analyzer findings in IaC review and periodically reassess intentional external trust exceptions.
- Monitor unused long-lived keys and enforce workload identity standards across external build integrations.
- Monitor certificate expiry and validation records and retest endpoint TLS after domain or listener changes.
Explanation
Correct Answer
C:Monitor unused long-lived keys and enforce workload identity standards across external build integrations. Leaked standing credentials can allow repeated unauthorized access long after a pipeline run ends.
Incorrect Answers
A:Audit encryption grants, KMS key rotation and deployment role coverage across target accounts. This helps sustain a control for kms key policy and encrypted deployment artifact access; it does not directly stop recurrence of short lived sts role sessions rather than stored access keys described in this case.
B:Include Analyzer findings in IaC review and periodically reassess intentional external trust exceptions. This helps sustain a control for iam access analyzer external sharing assessment; it does not directly stop recurrence of short lived sts role sessions rather than stored access keys described in this case.
D:Monitor certificate expiry and validation records and retest endpoint TLS after domain or listener changes.
Question 865
A deployment script writes access keys in a shared repository to assume a production automation identity each night. What outcome most clearly explains the business impact?
- Leaked standing credentials can allow repeated unauthorized access long after a pipeline run ends.
- A noisy but unowned findings dashboard can conceal critical, untreated compliance and exposure risks.
- Ignoring anomalous identity or network behavior can prolong a compromise while infrastructure metrics appear healthy.
- Expired or wrongly installed certificates can interrupt customer access or weaken trusted transport guarantees.
Explanation
Correct Answer
A:Leaked standing credentials can allow repeated unauthorized access long after a pipeline run ends. This is the directly relevant business or security consequence of short lived sts role sessions rather than stored access keys. Root cause: Temporary credentials narrow the duration of credential exposure compared with persistent static keys.
Incorrect Answers
B:A noisy but unowned findings dashboard can conceal critical, untreated compliance and exposure risks. That risk is relevant to security hub multi account standards with remediation ownership, but the specific unresolved condition here concerns short lived sts role sessions rather than stored access keys and has a different direct consequence.
C:Ignoring anomalous identity or network behavior can prolong a compromise while infrastructure metrics appear healthy. That risk is relevant to guardduty threat findings event triage and evidence, but the specific unresolved condition here concerns short lived sts role sessions rather than stored access keys and has a different direct consequence.
D:Expired or wrongly installed certificates can interrupt customer access or weaken trusted transport guarantees. That risk is relevant to acm certificate renewal and tls endpoint automation, but the specific unresolved condition here concerns short lived sts role sessions rather than stored access keys and has a different direct consequence.
Question 866
An external CI system accesses AWS through a long-lived IAM user key that cannot be attributed to individual build runs. Which solution should be prioritized to resolve the stated failure?
- Use CloudFormation drift detection and configuration monitoring to compare supported deployed properties with approved IaC intent.
- Use ACM certificates with supported AWS integrations and an automated renewal or documented import replacement process.
- Use short-lived role sessions with supported federation or workload identity and narrowly constrained trust conditions.
- Place appropriate AWS WAF protections on supported endpoints and use count-mode tests and tuned rules before broad blocking.
Explanation
Correct Answer
C:Use short-lived role sessions with supported federation or workload identity and narrowly constrained trust conditions. Temporary credentials narrow the duration of credential exposure compared with persistent static keys. Leaked standing credentials can allow repeated unauthorized access long after a pipeline run ends.
Incorrect Answers
A:Use CloudFormation drift detection and configuration monitoring to compare supported deployed properties with approved IaC intent. That relates to cloudformation drift detection on privileged security resources, not short lived sts role sessions rather than stored access keys.
B:Use ACM certificates with supported AWS integrations and an automated renewal or documented import replacement process. That relates to acm certificate renewal and tls endpoint automation, not short lived sts role sessions rather than stored access keys.
D:Place appropriate AWS WAF protections on supported endpoints and use count-mode tests and tuned rules before broad blocking.
Question 867
An external CI system accesses AWS through a long-lived IAM user key that cannot be attributed to individual build runs. Which evidence would BEST demonstrate that the fix operates as intended?
- Create a controlled external-principal access scenario and confirm Analyzer identifies the resource-based policy path.
- Check certificate domain validation, active listener binding and renewal status before expiration in a test environment.
- Reproduce an authorized sample finding and inspect its resource, event time and supporting CloudTrail or VPC evidence.
- Inspect CloudTrail role-session identity and confirm a deleted test job cannot reuse expired credentials.
Explanation
Correct Answer
D:Inspect CloudTrail role-session identity and confirm a deleted test job cannot reuse expired credentials. Temporary credentials narrow the duration of credential exposure compared with persistent static keys.
Incorrect Answers
A:Create a controlled external-principal access scenario and confirm Analyzer identifies the resource-based policy path. That relates to iam access analyzer external sharing assessment, not short lived sts role sessions rather than stored access keys.
B:Check certificate domain validation, active listener binding and renewal status before expiration in a test environment. That relates to acm certificate renewal and tls endpoint automation, not short lived sts role sessions rather than stored access keys.
C:Reproduce an authorized sample finding and inspect its resource, event time and supporting CloudTrail or VPC evidence.
Question 868
An external CI system accesses AWS through a long-lived IAM user key that cannot be attributed to individual build runs. Which AWS operational principle BEST explains the issue?
- Certificate issuance and renewal depend on ownership validation and service-specific integration rather than a generic encryption flag.
- Resource-based policies can grant external access independently of an internal user's identity permissions.
- S3 authorization and KMS key authorization are distinct gates when customer-managed encryption is used.
- Temporary credentials narrow the duration of credential exposure compared with persistent static keys.
Explanation
Correct Answer
D:Temporary credentials narrow the duration of credential exposure compared with persistent static keys. Leaked standing credentials can allow repeated unauthorized access long after a pipeline run ends.
Incorrect Answers
A:Certificate issuance and renewal depend on ownership validation and service-specific integration rather than a generic encryption flag. That relates to acm certificate renewal and tls endpoint automation, not controlling principle for short lived sts role sessions rather than stored access keys.
B:Resource-based policies can grant external access independently of an internal user's identity permissions. That relates to iam access analyzer external sharing assessment, not controlling principle for short lived sts role sessions rather than stored access keys.
C:S3 authorization and KMS key authorization are distinct gates when customer-managed encryption is used. That relates to kms key policy and encrypted deployment artifact access, not controlling principle for short lived sts role sessions rather than stored access keys.
Question 869
An external CI system accesses AWS through a long-lived IAM user key that cannot be attributed to individual build runs. What preventive practice should be maintained after the fix?
- Audit encryption grants, KMS key rotation and deployment role coverage across target accounts.
- Include Analyzer findings in IaC review and periodically reassess intentional external trust exceptions.
- Monitor certificate expiry and validation records and retest endpoint TLS after domain or listener changes.
- Monitor unused long-lived keys and enforce workload identity standards across external build integrations.
Explanation
Correct Answer
D:Monitor unused long-lived keys and enforce workload identity standards across external build integrations. Leaked standing credentials can allow repeated unauthorized access long after a pipeline run ends.
Incorrect Answers
A:Audit encryption grants, KMS key rotation and deployment role coverage across target accounts. This helps sustain a control for kms key policy and encrypted deployment artifact access; it does not directly stop recurrence of short lived sts role sessions rather than stored access keys described in this case.
B:Include Analyzer findings in IaC review and periodically reassess intentional external trust exceptions. This helps sustain a control for iam access analyzer external sharing assessment; it does not directly stop recurrence of short lived sts role sessions rather than stored access keys described in this case.
C:Monitor certificate expiry and validation records and retest endpoint TLS after domain or listener changes.
Question 870
An external CI system accesses AWS through a long-lived IAM user key that cannot be attributed to individual build runs. What outcome most clearly explains the business impact?
- A noisy but unowned findings dashboard can conceal critical, untreated compliance and exposure risks.
- Ignoring anomalous identity or network behavior can prolong a compromise while infrastructure metrics appear healthy.
- Leaked standing credentials can allow repeated unauthorized access long after a pipeline run ends.
- Expired or wrongly installed certificates can interrupt customer access or weaken trusted transport guarantees.
Explanation
Correct Answer
C:Leaked standing credentials can allow repeated unauthorized access long after a pipeline run ends. This is the directly relevant business or security consequence of short lived sts role sessions rather than stored access keys. Root cause: Temporary credentials narrow the duration of credential exposure compared with persistent static keys.
Incorrect Answers
A:A noisy but unowned findings dashboard can conceal critical, untreated compliance and exposure risks. That risk is relevant to security hub multi account standards with remediation ownership, but the specific unresolved condition here concerns short lived sts role sessions rather than stored access keys and has a different direct consequence.
B:Ignoring anomalous identity or network behavior can prolong a compromise while infrastructure metrics appear healthy. That risk is relevant to guardduty threat findings event triage and evidence, but the specific unresolved condition here concerns short lived sts role sessions rather than stored access keys and has a different direct consequence.
D:Expired or wrongly installed certificates can interrupt customer access or weaken trusted transport guarantees. That risk is relevant to acm certificate renewal and tls endpoint automation, but the specific unresolved condition here concerns short lived sts role sessions rather than stored access keys and has a different direct consequence.
AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests