Review questions
Module summary: Design Secure Architectures
For cross-account access, locate the first failed request. AssumeRole requires source permission and target trust; the temporary session then needs the requested action on the correct resource ARN. An SCP is a ceiling, not a grant. Valid trust cannot repair a wrong object ARN or missing KMS authorization. Test an in-scope object, an out-of-scope object, and a denied write so one successful request does not masquerade as proof of least privilege.
In networking, separate client-to-ALB, ALB-to-app, and app-to-database flows. For each hop identify the initiator, port, route, and target security group. An S3 gateway endpoint supplies a private path through associated route tables but does not replace IAM, bucket, or endpoint authorization. Place WAF at a suitable HTTP entry point and retain application-level validation and authorization.
For data protection, combine encryption with permission to use the key and evidence that restore works. Copying ciphertext across accounts does not prove the recovery role can decrypt it. Restore a chosen version, verify contents, measure its age, and compare with the data-loss objective. Logical deletion or corruption may replicate to another location, so protected versions or independent restore points may be needed. A different KMS key, explicit Deny, or evidenced retention requirement changes the decision; fictional case inputs are not a general legal rule.
The smallest repair assigns `AuditReaders` to `AuditView` in production, verifies provisioning there, and tests one intended read and one write that must be denied. A counterfactual changes the repair: suppose the assignment and role exist, but a custom managed policy referenced by the permission set is missing at the exact name and path in production. Run a staged paper experiment. The counterfactual matters. The solution first isolates the faulty writer so that more misleading versions are not created. The counterfactual changes the answer.
Review questions
Test your understanding with these questions. Marking and saved results are available with a free account.
Create a free account to mark your answers and save your progress.