Copyright (c) 2025 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

4.3.6. Sample Questions - Domain 6: Security & Compliance

Question 1:

A company is implementing a multi-account AWS strategy and needs to enforce a security policy that prevents any IAM user or role in member accounts from creating S3 buckets that are publicly accessible. This policy must apply to all existing and future accounts within their AWS Organization. Which AWS service should be used to centrally enforce this preventive control?

A) IAM Roles B) IAM Policies C) Service Control Policies (SCPs) D) AWS Config Rules

Correct Answer: C
Explanation:
  • A) IAM Roles: IAM Roles grant temporary permissions to AWS entities. While essential for access management, they are applied within an account and cannot centrally restrict actions across multiple accounts in an AWS Organization.
  • B) IAM Policies: IAM Policies define permissions for IAM users, groups, and roles. Like roles, they are applied within an account and cannot centrally enforce preventive controls across an entire AWS Organization.
  • C) Service Control Policies (SCPs): SCPs are a type of organization policy that you can use to manage permissions in your organization. SCPs offer central control over the maximum available permissions for all accounts in your organization. They can be used to restrict access to certain services or actions for all users and roles in affected accounts, including the root user. This directly addresses the need for central, preventive enforcement across multiple accounts, aligning with the First Principle of Centralized Governance and Preventive Security Controls.
  • D) AWS Config Rules: AWS Config Rules continuously evaluate whether your AWS resource configurations comply with desired settings. While Config can detect non-compliant S3 buckets, it is a detective control, not a preventive one. It cannot prevent the creation of publicly accessible buckets; it can only flag them after they are created.

Question 2:

A DevOps team needs to ensure that all data stored in Amazon S3 buckets is encrypted at rest. They want to enforce this encryption by default for all new objects uploaded to specific buckets without requiring application-level changes. Which S3 encryption option should they configure on the buckets?

A) Client-Side Encryption B) Server-Side Encryption with S3-Managed Keys (SSE-S3) C) Server-Side Encryption with Customer-Provided Keys (SSE-C) D) Server-Side Encryption with KMS-Managed Keys (SSE-KMS)

Correct Answer: B
Explanation:

Question 3:

A company needs to regularly assess their AWS environment for security vulnerabilities and deviations from security best practices. They want an automated service that can identify common security issues, such as open security groups, unencrypted S3 buckets, and overly permissive IAM policies. Which AWS service is designed to continuously monitor and report on these security posture issues?

A) AWS CloudTrail B) Amazon GuardDuty C) AWS Security Hub D) AWS WAF

Correct Answer: C
Explanation:

Question 4:

A DevOps team is deploying a new web application and needs to protect it from common web exploits, such as SQL injection and cross-site scripting (XSS). They also want to control access based on IP addresses and HTTP headers. Which AWS service should they use to provide this layer of protection for their application?

A) AWS Shield B) Amazon GuardDuty C) AWS Network Firewall D) AWS WAF

Correct Answer: D
Explanation:

Question 5:

A company needs to ensure that all changes to their AWS infrastructure are auditable and that they can trace who made specific changes to resources. They also need to be able to detect if any resource configurations have drifted from their desired state. Which two AWS services, when used together, provide comprehensive auditing of API calls and continuous monitoring of resource configuration changes?

A) AWS CloudTrail and AWS Config B) Amazon CloudWatch and AWS Systems Manager C) AWS Security Hub and Amazon Inspector D) AWS Organizations and Service Control Policies (SCPs)

Correct Answer: A
Explanation: