Question 780
Another enterprise uses cross-account IAM resource policies and needs to review trust beyond its AWS Organization. Which unsafe assumption should the team MOST directly reject?
- Absence of an external-access finding does not establish that all identity policies follow least privilege internally.
- An S3 bucket's name or private intention does not prevent a later overly broad policy from exposing objects.
- Passing a Config rule evaluation does not prove that an unauthorized API change was prevented before it occurred.
- A session policy containing an Allow for a new action cannot grant permissions beyond those on the underlying role.
Explanation
Correct Answer
A:Absence of an external-access finding does not establish that all identity policies follow least privilege internally. This matters because access Analyzer reports applicable unintended external resource access according to its trust-zone configuration.
Incorrect Answers
B:An S3 bucket's name or private intention does not prevent a later overly broad policy from exposing objects. The appropriate comparison is: Absence of an external-access finding does not establish that all identity policies follow least privilege internally.
C:Passing a Config rule evaluation does not prove that an unauthorized API change was prevented before it occurred. The relevant evidence instead is: Absence of an external-access finding does not establish that all identity policies follow least privilege internally.
D:A session policy containing an Allow for a new action cannot grant permissions beyond those on the underlying role. The acceptance criterion here is: Absence of an external-access finding does not establish that all identity policies follow least privilege internally.
Question 781
A network incident involves unexpected traffic to a database, but the only available logs are application error messages. Which operational or configuration change MOST directly addresses this requirement?
- Collect VPC Flow Logs at appropriate scope and correlate flow metadata with security-group changes and application logs.
- Require an appropriate IAM permissions boundary on newly created roles and constrain boundary modification using IAM policies.
- Apply an organization-level SCP Deny for the prohibited action at the applicable account or OU scope.
- Configure a cross-account IAM role with required permissions, scoped trust and an external ID for the third-party assume-role workflow.
Explanation
Correct Answer
A:VPC Flow Logs help investigate network metadata, while other telemetry is required for application payloads or user context. The direct corrective decision is: Collect VPC Flow Logs at appropriate scope and correlate flow metadata with security-group changes and application logs. Verify the outcome by: Generate controlled allowed and blocked connections and verify expected records and action fields reach the log destination.
Incorrect Answers
B:Permissions boundaries restrict the maximum permissions of IAM roles or users, while identity policies still determine grants. This alternative belongs to implement techniques for identity and access management at scale, whereas the stated failure is most directly corrected by the selected control: Collect VPC Flow Logs at appropriate scope and correlate flow metadata with security-group changes and application logs.
C:SCPs limit maximum available member-account permissions and do not themselves grant service access. This alternative belongs to implement techniques for identity and access management at scale, whereas the stated failure is most directly corrected by the selected control: Collect VPC Flow Logs at appropriate scope and correlate flow metadata with security-group changes and application logs.
D:Cross-account third-party roles can use an external ID to mitigate confused-deputy risk and avoid permanent shared credentials. This alternative belongs to implement techniques for identity and access management at scale, whereas the stated failure is most directly corrected by the selected control: Collect VPC Flow Logs at appropriate scope and correlate flow metadata with security-group changes and application logs.
Question 782
For this case: A network incident involves unexpected traffic to a database, but the only available logs are application error messages. The team applies this change: Collect VPC Flow Logs at appropriate scope and correlate flow metadata with security-group changes and application logs. Which evidence BEST confirms it worked?
- Run two pods with distinct service accounts and confirm only the authorized workload can access the target S3 objects.
- Launch a replacement instance and verify it receives temporary role access and the AMI contains no static AWS keys.
- Generate controlled allowed and blocked connections and verify expected records and action fields reach the log destination.
- Have the vendor assume the role with the approved external ID and confirm permitted reads and denied writes in CloudTrail.
Explanation
Correct Answer
C:The reason is: VPC Flow Logs help investigate network metadata, while other telemetry is required for application payloads or user context.
Incorrect Answers
A:Workload-specific temporary roles reduce shared node credential exposure for container applications. What must be demonstrated is: Generate controlled allowed and blocked connections and verify expected records and action fields reach the log destination.
B:EC2 instance profiles enable applications to access AWS through temporary credentials tied to the instance role. The appropriate comparison is: Generate controlled allowed and blocked connections and verify expected records and action fields reach the log destination.
D:Cross-account third-party roles can use an external ID to mitigate confused-deputy risk and avoid permanent shared credentials. The relevant evidence instead is: Generate controlled allowed and blocked connections and verify expected records and action fields reach the log destination.
Question 783
Another team needs evidence about source IP, destination IP, protocol, ports and allowed/rejected flow direction. Which AWS DevOps engineering principle BEST explains the necessary response?
- Cross-account third-party roles can use an external ID to mitigate confused-deputy risk and avoid permanent shared credentials.
- VPC Flow Logs help investigate network metadata, while other telemetry is required for application payloads or user context.
- AWS KMS cross-account use requires authorization through the key policy and the consumer identity policy.
- Session policies intersect with role permissions; they can restrict an assumed session but cannot add rights the role lacks.
Explanation
Correct Answer
B:This explanation captures the technical mechanism or limitation illustrated by the second scenario. VPC Flow Logs help investigate network metadata, while other telemetry is required for application payloads or user context.
Incorrect Answers
A:Cross-account third-party roles can use an external ID to mitigate confused-deputy risk and avoid permanent shared credentials. That describes a neighboring DevOps concern, but the second scenario is decided by: VPC Flow Logs help investigate network metadata, while other telemetry is required for application payloads or user context.
C:AWS KMS cross-account use requires authorization through the key policy and the consumer identity policy. That describes a neighboring DevOps concern, but the second scenario is decided by: VPC Flow Logs help investigate network metadata, while other telemetry is required for application payloads or user context.
D:Session policies intersect with role permissions; they can restrict an assumed session but cannot add rights the role lacks. That describes a neighboring DevOps concern, but the second scenario is decided by: VPC Flow Logs help investigate network metadata, while other telemetry is required for application payloads or user context.
Question 784
Another team needs evidence about source IP, destination IP, protocol, ports and allowed/rejected flow direction. Which unsafe assumption should the team MOST directly reject?
- Synchronizing a user directory does not automatically grant an AWS account permission set until an assignment exists.
- Enabling Macie does not mean every object is immediately inspected by a fully comprehensive classification job.
- An ACCEPT flow record does not prove the database authenticated the connection or executed a valid query.
- An IAM policy granting AdministratorAccess does not override an applicable explicit SCP Deny.
Explanation
Correct Answer
C:An ACCEPT flow record does not prove the database authenticated the connection or executed a valid query. This matters because vPC Flow Logs help investigate network metadata, while other telemetry is required for application payloads or user context.
Incorrect Answers
A:Synchronizing a user directory does not automatically grant an AWS account permission set until an assignment exists. The acceptance criterion here is: An ACCEPT flow record does not prove the database authenticated the connection or executed a valid query.
B:Enabling Macie does not mean every object is immediately inspected by a fully comprehensive classification job. What must be demonstrated is: An ACCEPT flow record does not prove the database authenticated the connection or executed a valid query.
D:An IAM policy granting AdministratorAccess does not override an applicable explicit SCP Deny. The appropriate comparison is: An ACCEPT flow record does not prove the database authenticated the connection or executed a valid query.
Question 785
The AWS root user signs in unexpectedly, but the security account has no alert for sensitive root activity. Which operational or configuration change MOST directly addresses this requirement?
- Use IAM Access Analyzer findings and policy validation to inspect unintended external or public access and refine resource policies.
- Store credentials in Secrets Manager and design supported automatic rotation with application retrieval and failure monitoring.
- Build a protected CloudTrail-based EventBridge or log-metric alert path for root account and sensitive governance events.
- Use AWS Certificate Manager issued or imported certificates appropriately with supported endpoints and monitored renewal conditions.
Explanation
Correct Answer
C:Security-event alerting should monitor high-impact identity actions that may require prompt response. The direct corrective decision is: Build a protected CloudTrail-based EventBridge or log-metric alert path for root account and sensitive governance events. Verify the outcome by: Run an authorized test event or verified simulated event and confirm detection, escalation and evidence retention.
Incorrect Answers
A:IAM Access Analyzer helps surface external access and policy issues but still requires accountable evaluation of findings. This alternative belongs to implement techniques for identity and access management at scale, whereas the stated failure is most directly corrected by the selected control: Build a protected CloudTrail-based EventBridge or log-metric alert path for root account and sensitive governance events.
B:Secret rotation is effective only when the target service and consuming applications transition to the new credential safely. This alternative belongs to implement techniques for identity and access management at scale, whereas the stated failure is most directly corrected by the selected control: Build a protected CloudTrail-based EventBridge or log-metric alert path for root account and sensitive governance events.
D:Managed certificate lifecycle reduces operational certificate renewal risk when domain validation and attachment are maintained. This alternative belongs to apply automation for security controls and data protection, whereas the stated failure is most directly corrected by the selected control: Build a protected CloudTrail-based EventBridge or log-metric alert path for root account and sensitive governance events.
Question 786
For this case: The AWS root user signs in unexpectedly, but the security account has no alert for sensitive root activity. The team applies this change: Build a protected CloudTrail-based EventBridge or log-metric alert path for root account and sensitive governance events. Which evidence BEST confirms it worked?
- Assume the consumer role and confirm S3 read and KMS decrypt succeed only for the approved object and key.
- Run an authorized test event or verified simulated event and confirm detection, escalation and evidence retention.
- Test a user login and account assignment, then revoke the central group and confirm future access cannot be established.
- Attempt the prohibited operation using a locally privileged member-account role and confirm access is denied.
Explanation
Correct Answer
B:The reason is: Security-event alerting should monitor high-impact identity actions that may require prompt response.
Incorrect Answers
A:AWS KMS cross-account use requires authorization through the key policy and the consumer identity policy. The appropriate remedy is to run an authorized test event or verified simulated event and confirm detection, escalation and evidence retention.
C:Workforce identity federation centralizes access management and favors temporary role sessions over account-local passwords. Instead, the response must run an authorized test event or verified simulated event and confirm detection, escalation and evidence retention.
D:SCPs limit maximum available member-account permissions and do not themselves grant service access. The relevant control is to run an authorized test event or verified simulated event and confirm detection, escalation and evidence retention.
Question 787
Another organization needs rapid notification for selected high-risk AWS API activity without manually searching CloudTrail each day. Which AWS DevOps engineering principle BEST explains the necessary response?
- Conformance packs group compliance evaluation rules but do not automatically replace IAM preventive controls.
- Security-event alerting should monitor high-impact identity actions that may require prompt response.
- AWS WAF applies application-layer request filtering while network security groups operate at different traffic layers.
- Workforce identity federation centralizes access management and favors temporary role sessions over account-local passwords.
Explanation
Correct Answer
B:This explanation captures the technical mechanism or limitation illustrated by the second scenario. Security-event alerting should monitor high-impact identity actions that may require prompt response.
Incorrect Answers
A:Conformance packs group compliance evaluation rules but do not automatically replace IAM preventive controls. That describes a neighboring DevOps concern, but the second scenario is decided by: Security-event alerting should monitor high-impact identity actions that may require prompt response.
C:AWS WAF applies application-layer request filtering while network security groups operate at different traffic layers. That describes a neighboring DevOps concern, but the second scenario is decided by: Security-event alerting should monitor high-impact identity actions that may require prompt response.
D:Workforce identity federation centralizes access management and favors temporary role sessions over account-local passwords. That describes a neighboring DevOps concern, but the second scenario is decided by: Security-event alerting should monitor high-impact identity actions that may require prompt response.
Question 788
Another organization needs rapid notification for selected high-risk AWS API activity without manually searching CloudTrail each day. Which unsafe assumption should the team MOST directly reject?
- KMS encryption does not ensure secrecy when every application principal has broad decrypt and secret-read rights.
- Enabling Security Hub alone does not guarantee GuardDuty is producing findings in every workload account.
- A CloudTrail event recorded in storage does not automatically page security staff without an alerting rule and target.
- An external ID by itself is not a secret replacement for evaluating the trusting account principal and role permissions.
Explanation
Correct Answer
C:A CloudTrail event recorded in storage does not automatically page security staff without an alerting rule and target. This matters because security-event alerting should monitor high-impact identity actions that may require prompt response.
Incorrect Answers
A:This warning arises in apply automation for security controls and data protection and can be valid there, but the immediate unsupported belief in this case is: A CloudTrail event recorded in storage does not automatically page security staff without an alerting rule and target.
B:This warning arises in apply automation for security controls and data protection and can be valid there, but the immediate unsupported belief in this case is: A CloudTrail event recorded in storage does not automatically page security staff without an alerting rule and target.
D:This warning arises in implement techniques for identity and access management at scale and can be valid there, but the immediate unsupported belief in this case is: A CloudTrail event recorded in storage does not automatically page security staff without an alerting rule and target.
Question 789
A web application detects an unusual spike in blocked HTTP requests but its WAF logging is disabled, limiting incident investigation. Which operational or configuration change MOST directly addresses this requirement?
- Apply S3 Block Public Access at appropriate account and bucket scope and enforce resource/IAM access for legitimate clients.
- Select stateful security groups and stateless network ACLs according to supported semantics and configure both directions where required.
- Enable supported AWS WAF logging or sampled request telemetry to an authorized destination and correlate it with ALB access records.
- Attach appropriate AWS WAF web ACL rules to a supported application endpoint with testing, logging and false-positive management.
Explanation
Correct Answer
C:Web security controls need usable request telemetry to explain and tune filtering decisions. The direct corrective decision is: Enable supported AWS WAF logging or sampled request telemetry to an authorized destination and correlate it with ALB access records. Verify the outcome by: Generate controlled blocked requests and verify rule IDs, action, timestamp and relevant request metadata in logs.
Incorrect Answers
A:Layered S3 access protection combines public access blocking with explicit least-privilege bucket and identity policies. This alternative belongs to apply automation for security controls and data protection, whereas the stated failure is most directly corrected by the selected control: Enable supported AWS WAF logging or sampled request telemetry to an authorized destination and correlate it with ALB access records.
B:Security groups are stateful allow-only controls, whereas network ACLs are stateless and support allow and deny rules. This alternative belongs to apply automation for security controls and data protection, whereas the stated failure is most directly corrected by the selected control: Enable supported AWS WAF logging or sampled request telemetry to an authorized destination and correlate it with ALB access records.
D:AWS WAF applies application-layer request filtering while network security groups operate at different traffic layers. This alternative belongs to apply automation for security controls and data protection, whereas the stated failure is most directly corrected by the selected control: Enable supported AWS WAF logging or sampled request telemetry to an authorized destination and correlate it with ALB access records.
Question 790
For this case: A web application detects an unusual spike in blocked HTTP requests but its WAF logging is disabled, limiting incident investigation. The team applies this change: Enable supported AWS WAF logging or sampled request telemetry to an authorized destination and correlate it with ALB access records. Which evidence BEST confirms it worked?
- Create a controlled test resource policy that grants external access and verify a finding appears, then disappears after correction.
- Attempt a sensitive action with and without valid MFA and confirm denial or permission under the intended identity type.
- Generate controlled blocked requests and verify rule IDs, action, timestamp and relevant request metadata in logs.
- Test a user login and account assignment, then revoke the central group and confirm future access cannot be established.
Explanation
Correct Answer
C:The reason is: Web security controls need usable request telemetry to explain and tune filtering decisions.
Incorrect Answers
A:IAM Access Analyzer helps surface external access and policy issues but still requires accountable evaluation of findings. The relevant evidence instead is: Generate controlled blocked requests and verify rule IDs, action, timestamp and relevant request metadata in logs.
B:IAM conditions can enforce stronger authentication for relevant human sessions when evaluated in the correct context. The acceptance criterion here is: Generate controlled blocked requests and verify rule IDs, action, timestamp and relevant request metadata in logs.
D:Workforce identity federation centralizes access management and favors temporary role sessions over account-local passwords. What must be demonstrated is: Generate controlled blocked requests and verify rule IDs, action, timestamp and relevant request metadata in logs.
AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests